agentic-ui-libs 0.0.4 → 0.0.6

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(le,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],O):(le=typeof globalThis<"u"?globalThis:le||self,O(le.AgenticUILibs={},le.React,le.ReactDOM))})(this,function(le,O,Qr){"use strict";var ez=Object.defineProperty;var tz=(le,O,Qr)=>O in le?ez(le,O,{enumerable:!0,configurable:!0,writable:!0,value:Qr}):le[O]=Qr;var Bt=(le,O,Qr)=>tz(le,typeof O!="symbol"?O+"":O,Qr);function Kb(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=Kb(O);var Pi=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 Bs={exports:{}},oa={};/**
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={};/**
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 df;function qb(){if(df)return oa;df=1;var e=O,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 oa.Fragment=r,oa.jsx=o,oa.jsxs=o,oa}var sa={};/**
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={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,95 +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 hf;function Vb(){return hf||(hf=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"),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"),m=Symbol.iterator,y="@@iterator";function v(j){if(j===null||typeof j!="object")return null;var H=m&&j[m]||j[y];return typeof H=="function"?H:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(j){{for(var H=arguments.length,ne=new Array(H>1?H-1:0),ce=1;ce<H;ce++)ne[ce-1]=arguments[ce];x("error",j,ne)}}function x(j,H,ne){{var ce=b.ReactDebugCurrentFrame,Pe=ce.getStackAddendum();Pe!==""&&(H+="%s",ne=ne.concat([Pe]));var Me=ne.map(function(me){return String(me)});Me.unshift("Warning: "+H),Function.prototype.apply.call(console[j],console,Me)}}var T=!1,p=!1,g=!1,S=!1,P=!1,_;_=Symbol.for("react.module.reference");function R(j){return!!(typeof j=="string"||typeof j=="function"||j===n||j===i||P||j===a||j===u||j===c||S||j===h||T||p||g||typeof j=="object"&&j!==null&&(j.$$typeof===d||j.$$typeof===f||j.$$typeof===o||j.$$typeof===s||j.$$typeof===l||j.$$typeof===_||j.getModuleId!==void 0))}function M(j,H,ne){var ce=j.displayName;if(ce)return ce;var Pe=H.displayName||H.name||"";return Pe!==""?ne+"("+Pe+")":ne}function C(j){return j.displayName||"Context"}function W(j){if(j==null)return null;if(typeof j.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof j=="function")return j.displayName||j.name||null;if(typeof j=="string")return j;switch(j){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 j=="object")switch(j.$$typeof){case s:var H=j;return C(H)+".Consumer";case o:var ne=j;return C(ne._context)+".Provider";case l:return M(j,j.render,"ForwardRef");case f:var ce=j.displayName||null;return ce!==null?ce:W(j.type)||"Memo";case d:{var Pe=j,Me=Pe._payload,me=Pe._init;try{return W(me(Me))}catch{return null}}}return null}var U=Object.assign,F=0,N,D,L,$,E,I,B;function z(){}z.__reactDisabledLog=!0;function G(){{if(F===0){N=console.log,D=console.info,L=console.warn,$=console.error,E=console.group,I=console.groupCollapsed,B=console.groupEnd;var j={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:j,log:j,warn:j,error:j,group:j,groupCollapsed:j,groupEnd:j})}F++}}function Z(){{if(F--,F===0){var j={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},j,{value:N}),info:U({},j,{value:D}),warn:U({},j,{value:L}),error:U({},j,{value:$}),group:U({},j,{value:E}),groupCollapsed:U({},j,{value:I}),groupEnd:U({},j,{value:B})})}F<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=b.ReactCurrentDispatcher,ee;function te(j,H,ne){{if(ee===void 0)try{throw Error()}catch(Pe){var ce=Pe.stack.trim().match(/\n( *(at )?)/);ee=ce&&ce[1]||""}return`
18
- `+ee+j}}var q=!1,Y;{var J=typeof WeakMap=="function"?WeakMap:Map;Y=new J}function k(j,H){if(!j||q)return"";{var ne=Y.get(j);if(ne!==void 0)return ne}var ce;q=!0;var Pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Me;Me=Q.current,Q.current=null,G();try{if(H){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(dt){ce=dt}Reflect.construct(j,[],me)}else{try{me.call()}catch(dt){ce=dt}j.call(me.prototype)}}else{try{throw Error()}catch(dt){ce=dt}j()}}catch(dt){if(dt&&ce&&typeof dt.stack=="string"){for(var ye=dt.stack.split(`
19
- `),st=ce.stack.split(`
20
- `),ze=ye.length-1,Ve=st.length-1;ze>=1&&Ve>=0&&ye[ze]!==st[Ve];)Ve--;for(;ze>=1&&Ve>=0;ze--,Ve--)if(ye[ze]!==st[Ve]){if(ze!==1||Ve!==1)do if(ze--,Ve--,Ve<0||ye[ze]!==st[Ve]){var $t=`
21
- `+ye[ze].replace(" at new "," at ");return j.displayName&&$t.includes("<anonymous>")&&($t=$t.replace("<anonymous>",j.displayName)),typeof j=="function"&&Y.set(j,$t),$t}while(ze>=1&&Ve>=0);break}}}finally{q=!1,Q.current=Me,Z(),Error.prepareStackTrace=Pe}var ia=j?j.displayName||j.name:"",Zr=ia?te(ia):"";return typeof j=="function"&&Y.set(j,Zr),Zr}function ie(j,H,ne){return k(j,!1)}function V(j){var H=j.prototype;return!!(H&&H.isReactComponent)}function re(j,H,ne){if(j==null)return"";if(typeof j=="function")return k(j,V(j));if(typeof j=="string")return te(j);switch(j){case u:return te("Suspense");case c:return te("SuspenseList")}if(typeof j=="object")switch(j.$$typeof){case l:return ie(j.render);case f:return re(j.type,H,ne);case d:{var ce=j,Pe=ce._payload,Me=ce._init;try{return re(Me(Pe),H,ne)}catch{}}}return""}var oe=Object.prototype.hasOwnProperty,Ce={},Te=b.ReactDebugCurrentFrame;function Ee(j){if(j){var H=j._owner,ne=re(j.type,j._source,H?H.type:null);Te.setExtraStackFrame(ne)}else Te.setExtraStackFrame(null)}function et(j,H,ne,ce,Pe){{var Me=Function.call.bind(oe);for(var me in j)if(Me(j,me)){var ye=void 0;try{if(typeof j[me]!="function"){var st=Error((ce||"React class")+": "+ne+" type `"+me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof j[me]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw st.name="Invariant Violation",st}ye=j[me](H,me,ce,ne,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ze){ye=ze}ye&&!(ye instanceof Error)&&(Ee(Pe),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).",ce||"React class",ne,me,typeof ye),Ee(null)),ye instanceof Error&&!(ye.message in Ce)&&(Ce[ye.message]=!0,Ee(Pe),w("Failed %s type: %s",ne,ye.message),Ee(null))}}}var Lt=Array.isArray;function gt(j){return Lt(j)}function Oi(j){{var H=typeof Symbol=="function"&&Symbol.toStringTag,ne=H&&j[Symbol.toStringTag]||j.constructor.name||"Object";return ne}}function Si(j){try{return na(j),!1}catch{return!0}}function na(j){return""+j}function Ai(j){if(Si(j))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Oi(j)),na(j)}var Ti=b.ReactCurrentOwner,I8={key:!0,ref:!0,__self:!0,__source:!0},Db,Ib;function R8(j){if(oe.call(j,"ref")){var H=Object.getOwnPropertyDescriptor(j,"ref").get;if(H&&H.isReactWarning)return!1}return j.ref!==void 0}function L8(j){if(oe.call(j,"key")){var H=Object.getOwnPropertyDescriptor(j,"key").get;if(H&&H.isReactWarning)return!1}return j.key!==void 0}function B8(j,H){typeof j.ref=="string"&&Ti.current}function F8(j,H){{var ne=function(){Db||(Db=!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)",H))};ne.isReactWarning=!0,Object.defineProperty(j,"key",{get:ne,configurable:!0})}}function W8(j,H){{var ne=function(){Ib||(Ib=!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)",H))};ne.isReactWarning=!0,Object.defineProperty(j,"ref",{get:ne,configurable:!0})}}var U8=function(j,H,ne,ce,Pe,Me,me){var ye={$$typeof:t,type:j,key:H,ref:ne,props:me,_owner:Me};return ye._store={},Object.defineProperty(ye._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ye,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.defineProperty(ye,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Pe}),Object.freeze&&(Object.freeze(ye.props),Object.freeze(ye)),ye};function z8(j,H,ne,ce,Pe){{var Me,me={},ye=null,st=null;ne!==void 0&&(Ai(ne),ye=""+ne),L8(H)&&(Ai(H.key),ye=""+H.key),R8(H)&&(st=H.ref,B8(H,Pe));for(Me in H)oe.call(H,Me)&&!I8.hasOwnProperty(Me)&&(me[Me]=H[Me]);if(j&&j.defaultProps){var ze=j.defaultProps;for(Me in ze)me[Me]===void 0&&(me[Me]=ze[Me])}if(ye||st){var Ve=typeof j=="function"?j.displayName||j.name||"Unknown":j;ye&&F8(me,Ve),st&&W8(me,Ve)}return U8(j,ye,st,Pe,ce,Ti.current,me)}}var lf=b.ReactCurrentOwner,Rb=b.ReactDebugCurrentFrame;function aa(j){if(j){var H=j._owner,ne=re(j.type,j._source,H?H.type:null);Rb.setExtraStackFrame(ne)}else Rb.setExtraStackFrame(null)}var uf;uf=!1;function cf(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function Lb(){{if(lf.current){var j=W(lf.current.type);if(j)return`
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`
22
22
 
23
- Check the render method of \``+j+"`."}return""}}function K8(j){return""}var Bb={};function q8(j){{var H=Lb();if(!H){var ne=typeof j=="string"?j:j.displayName||j.name;ne&&(H=`
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=`
24
24
 
25
- Check the top-level render call using <`+ne+">.")}return H}}function Fb(j,H){{if(!j._store||j._store.validated||j.key!=null)return;j._store.validated=!0;var ne=q8(H);if(Bb[ne])return;Bb[ne]=!0;var ce="";j&&j._owner&&j._owner!==lf.current&&(ce=" It was passed a child from "+W(j._owner.type)+"."),aa(j),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ne,ce),aa(null)}}function Wb(j,H){{if(typeof j!="object")return;if(gt(j))for(var ne=0;ne<j.length;ne++){var ce=j[ne];cf(ce)&&Fb(ce,H)}else if(cf(j))j._store&&(j._store.validated=!0);else if(j){var Pe=v(j);if(typeof Pe=="function"&&Pe!==j.entries)for(var Me=Pe.call(j),me;!(me=Me.next()).done;)cf(me.value)&&Fb(me.value,H)}}}function V8(j){{var H=j.type;if(H==null||typeof H=="string")return;var ne;if(typeof H=="function")ne=H.propTypes;else if(typeof H=="object"&&(H.$$typeof===l||H.$$typeof===f))ne=H.propTypes;else return;if(ne){var ce=W(H);et(ne,j.props,"prop",ce,j)}else if(H.PropTypes!==void 0&&!uf){uf=!0;var Pe=W(H);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Pe||"Unknown")}typeof H.getDefaultProps=="function"&&!H.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function G8(j){{for(var H=Object.keys(j.props),ne=0;ne<H.length;ne++){var ce=H[ne];if(ce!=="children"&&ce!=="key"){aa(j),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ce),aa(null);break}}j.ref!==null&&(aa(j),w("Invalid attribute `ref` supplied to `React.Fragment`."),aa(null))}}var Ub={};function zb(j,H,ne,ce,Pe,Me){{var me=R(j);if(!me){var ye="";(j===void 0||typeof j=="object"&&j!==null&&Object.keys(j).length===0)&&(ye+=" 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=K8();st?ye+=st:ye+=Lb();var ze;j===null?ze="null":gt(j)?ze="array":j!==void 0&&j.$$typeof===t?(ze="<"+(W(j.type)||"Unknown")+" />",ye=" Did you accidentally export a JSX literal instead of a component?"):ze=typeof j,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ze,ye)}var Ve=z8(j,H,ne,Pe,Me);if(Ve==null)return Ve;if(me){var $t=H.children;if($t!==void 0)if(ce)if(gt($t)){for(var ia=0;ia<$t.length;ia++)Wb($t[ia],j);Object.freeze&&Object.freeze($t)}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 Wb($t,j)}if(oe.call(H,"key")){var Zr=W(j),dt=Object.keys(H).filter(function(Q8){return Q8!=="key"}),ff=dt.length>0?"{key: someKey, "+dt.join(": ..., ")+": ...}":"{key: someKey}";if(!Ub[Zr+ff]){var Z8=dt.length>0?"{"+dt.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
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:
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} />`,ff,Zr,Z8,Zr),Ub[Zr+ff]=!0}}return j===n?G8(Ve):V8(Ve),Ve}}function H8(j,H,ne){return zb(j,H,ne,!0)}function Y8(j,H,ne){return zb(j,H,ne,!1)}var X8=Y8,J8=H8;sa.Fragment=n,sa.jsx=X8,sa.jsxs=J8}()),sa}process.env.NODE_ENV==="production"?Bs.exports=qb():Bs.exports=Vb();var A=Bs.exports;/**
31
- * @license lucide-react v0.294.0 - ISC
32
- *
33
- * This source code is licensed under the ISC license.
34
- * See the LICENSE file in the root directory of this source tree.
35
- */var Gb={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"};/**
36
- * @license lucide-react v0.294.0 - ISC
37
- *
38
- * This source code is licensed under the ISC license.
39
- * See the LICENSE file in the root directory of this source tree.
40
- */const Hb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ht=(e,t)=>{const r=O.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:s="",children:l,...u},c)=>O.createElement("svg",{ref:c,...Gb,width:a,height:a,stroke:n,strokeWidth:o?Number(i)*24/Number(a):i,className:["lucide",`lucide-${Hb(e)}`,s].join(" "),...u},[...t.map(([f,d])=>O.createElement(f,d)),...Array.isArray(l)?l:[l]]));return r.displayName=`${e}`,r};/**
41
- * @license lucide-react v0.294.0 - ISC
42
- *
43
- * This source code is licensed under the ISC license.
44
- * See the LICENSE file in the root directory of this source tree.
45
- */const Yb=ht("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"}]]);/**
46
- * @license lucide-react v0.294.0 - ISC
47
- *
48
- * This source code is licensed under the ISC license.
49
- * See the LICENSE file in the root directory of this source tree.
50
- */const pf=ht("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"}]]);/**
51
- * @license lucide-react v0.294.0 - ISC
52
- *
53
- * This source code is licensed under the ISC license.
54
- * See the LICENSE file in the root directory of this source tree.
55
- */const _i=ht("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
56
- * @license lucide-react v0.294.0 - ISC
57
- *
58
- * This source code is licensed under the ISC license.
59
- * See the LICENSE file in the root directory of this source tree.
60
- */const Xb=ht("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
61
- * @license lucide-react v0.294.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const Jb=ht("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
66
- * @license lucide-react v0.294.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */const vf=ht("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
71
- * @license lucide-react v0.294.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const Zb=ht("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"}]]);/**
76
- * @license lucide-react v0.294.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const Qb=ht("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
81
- * @license lucide-react v0.294.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const e0=ht("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"}]]);/**
86
- * @license lucide-react v0.294.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const yf=ht("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
91
- * @license lucide-react v0.294.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const t0=ht("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"}]]);/**
96
- * @license lucide-react v0.294.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const r0=ht("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"}]]);/**
101
- * @license lucide-react v0.294.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const n0=ht("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"}]]);function mf(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=mf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ve(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=mf(e))&&(n&&(n+=" "),n+=t);return n}const Fs="-",a0=e=>{const t=o0(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(Fs);return s[0]===""&&s.length!==1&&s.shift(),gf(s,t)||i0(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},gf=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?gf(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(Fs);return(o=t.validators.find(({validator:s})=>s(i)))==null?void 0:o.classGroupId},bf=/^\[(.+)\]$/,i0=e=>{if(bf.test(e)){const t=bf.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},o0=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return l0(Object.entries(e.classGroups),r).forEach(([i,o])=>{Ws(o,n,i,t)}),n},Ws=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:xf(t,a);i.classGroupId=r;return}if(typeof a=="function"){if(s0(a)){Ws(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([i,o])=>{Ws(o,xf(t,i),r,n)})})},xf=(e,t)=>{let r=e;return t.split(Fs).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},s0=e=>e.isThemeGetter,l0=(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,u0=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)}}},wf="!",c0=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 b=s[v];if(u===0){if(b===a&&(n||s.slice(v,v+i)===t)){l.push(s.slice(c,v)),c=v+i;continue}if(b==="/"){f=v;continue}}b==="["?u++:b==="]"&&u--}const d=l.length===0?s:s.substring(c),h=d.startsWith(wf),m=h?d.substring(1):d,y=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:y}};return r?s=>r({className:s,parseClassName:o}):o},f0=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},d0=e=>({cache:u0(e.cacheSize),parseClassName:c0(e),...a0(e)}),h0=/\s+/,p0=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,i=[],o=e.trim().split(h0);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 m=!!h,y=n(m?d.substring(0,h):d);if(!y){if(!m){s=u+(s.length>0?" "+s:s);continue}if(y=n(d),!y){s=u+(s.length>0?" "+s:s);continue}m=!1}const v=f0(c).join(":"),b=f?v+wf:v,w=b+y;if(i.includes(w))continue;i.push(w);const x=a(y,m);for(let T=0;T<x.length;++T){const p=x[T];i.push(b+p)}s=u+(s.length>0?" "+s:s)}return s};function v0(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Of(t))&&(n&&(n+=" "),n+=r);return n}const Of=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Of(e[n]))&&(r&&(r+=" "),r+=t);return r};function y0(e,...t){let r,n,a,i=o;function o(l){const u=t.reduce((c,f)=>f(c),e());return r=d0(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=p0(l,r);return a(l,c),c}return function(){return i(v0.apply(null,arguments))}}const Ie=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Sf=/^\[(?:([a-z-]+):)?(.+)\]$/i,m0=/^\d+\/\d+$/,g0=new Set(["px","full","screen"]),b0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,x0=/\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$/,w0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,O0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yt=e=>en(e)||g0.has(e)||m0.test(e),cr=e=>tn(e,"length",C0),en=e=>!!e&&!Number.isNaN(Number(e)),Us=e=>tn(e,"number",en),la=e=>!!e&&Number.isInteger(Number(e)),A0=e=>e.endsWith("%")&&en(e.slice(0,-1)),pe=e=>Sf.test(e),fr=e=>b0.test(e),T0=new Set(["length","size","percentage"]),P0=e=>tn(e,T0,Af),_0=e=>tn(e,"position",Af),E0=new Set(["image","url"]),$0=e=>tn(e,E0,k0),j0=e=>tn(e,"",M0),ua=()=>!0,tn=(e,t,r)=>{const n=Sf.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},C0=e=>x0.test(e)&&!w0.test(e),Af=()=>!1,M0=e=>O0.test(e),k0=e=>S0.test(e),N0=y0(()=>{const e=Ie("colors"),t=Ie("spacing"),r=Ie("blur"),n=Ie("brightness"),a=Ie("borderColor"),i=Ie("borderRadius"),o=Ie("borderSpacing"),s=Ie("borderWidth"),l=Ie("contrast"),u=Ie("grayscale"),c=Ie("hueRotate"),f=Ie("invert"),d=Ie("gap"),h=Ie("gradientColorStops"),m=Ie("gradientColorStopPositions"),y=Ie("inset"),v=Ie("margin"),b=Ie("opacity"),w=Ie("padding"),x=Ie("saturate"),T=Ie("scale"),p=Ie("sepia"),g=Ie("skew"),S=Ie("space"),P=Ie("translate"),_=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",pe,t],C=()=>[pe,t],W=()=>["",Yt,cr],U=()=>["auto",en,pe],F=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],N=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",pe],E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[en,pe];return{cacheSize:500,separator:":",theme:{colors:[ua],spacing:[Yt,cr],blur:["none","",fr,pe],brightness:I(),borderColor:[e],borderRadius:["none","","full",fr,pe],borderSpacing:C(),borderWidth:W(),contrast:I(),grayscale:$(),hueRotate:I(),invert:$(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[A0,cr],inset:M(),margin:M(),opacity:I(),padding:C(),saturate:I(),scale:I(),sepia:$(),skew:I(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",pe]}],container:["container"],columns:[{columns:[fr]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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:[...F(),pe]}],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:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",la,pe]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",pe]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",la,pe]}],"grid-cols":[{"grid-cols":[ua]}],"col-start-end":[{col:["auto",{span:["full",la,pe]},pe]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[ua]}],"row-start-end":[{row:["auto",{span:[la,pe]},pe]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",pe]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...L()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...L(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...L(),"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":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",pe,t]}],"min-w":[{"min-w":[pe,t,"min","max","fit"]}],"max-w":[{"max-w":[pe,t,"none","full","min","max","fit","prose",{screen:[fr]},fr]}],h:[{h:[pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",fr,cr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Us]}],"font-family":[{font:[ua]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",pe]}],"line-clamp":[{"line-clamp":["none",en,Us]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Yt,pe]}],"list-image":[{"list-image":["none",pe]}],"list-style-type":[{list:["none","disc","decimal",pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...N(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Yt,cr]}],"underline-offset":[{"underline-offset":["auto",Yt,pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...F(),_0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",P0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"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":[b]}],"border-style":[{border:[...N(),"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":[b]}],"divide-style":[{divide:N()}],"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:["",...N()]}],"outline-offset":[{"outline-offset":[Yt,pe]}],"outline-w":[{outline:[Yt,cr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Yt,cr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fr,j0]}],"shadow-color":[{shadow:[ua]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",fr,pe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[p]}],"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":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[p]}],"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",pe]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",pe]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[la,pe]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[g]}],"skew-y":[{"skew-y":[g]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",pe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Yt,cr,Us]}],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 ue(...e){return N0(ve(e))}const Tf=({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 A.jsxs("div",{className:ue("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:[A.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[A.jsx("span",{className:"text-sm font-medium text-gray-600",children:n}),o&&A.jsxs("div",{className:"relative group",children:[A.jsx(Qb,{className:"h-4 w-4 text-gray-400 cursor-help"}),A.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,A.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"})]})]})]}),A.jsxs("div",{className:"flex items-baseline gap-3",children:[A.jsx("span",{className:"text-2xl font-semibold text-gray-900",children:l(a)}),i&&A.jsxs("div",{className:ue("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"?A.jsx(n0,{className:"h-3 w-3"}):A.jsx(r0,{className:"h-3 w-3"}),A.jsx("span",{children:u(i.value)})]})]})]})};var D0=Array.isArray,lt=D0,I0=typeof Pi=="object"&&Pi&&Pi.Object===Object&&Pi,Pf=I0,R0=Pf,L0=typeof self=="object"&&self&&self.Object===Object&&self,B0=R0||L0||Function("return this")(),Ft=B0,F0=Ft,W0=F0.Symbol,ca=W0,_f=ca,Ef=Object.prototype,U0=Ef.hasOwnProperty,z0=Ef.toString,fa=_f?_f.toStringTag:void 0;function K0(e){var t=U0.call(e,fa),r=e[fa];try{e[fa]=void 0;var n=!0}catch{}var a=z0.call(e);return n&&(t?e[fa]=r:delete e[fa]),a}var q0=K0,V0=Object.prototype,G0=V0.toString;function H0(e){return G0.call(e)}var Y0=H0,$f=ca,X0=q0,J0=Y0,Z0="[object Null]",Q0="[object Undefined]",jf=$f?$f.toStringTag:void 0;function ex(e){return e==null?e===void 0?Q0:Z0:jf&&jf in Object(e)?X0(e):J0(e)}var Xt=ex;function tx(e){return e!=null&&typeof e=="object"}var Jt=tx,rx=Xt,nx=Jt,ax="[object Symbol]";function ix(e){return typeof e=="symbol"||nx(e)&&rx(e)==ax}var rn=ix,ox=lt,sx=rn,lx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ux=/^\w*$/;function cx(e,t){if(ox(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||sx(e)?!0:ux.test(e)||!lx.test(e)||t!=null&&e in Object(t)}var zs=cx;function fx(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var dr=fx;const nn=ke(dr);var dx=Xt,hx=dr,px="[object AsyncFunction]",vx="[object Function]",yx="[object GeneratorFunction]",mx="[object Proxy]";function gx(e){if(!hx(e))return!1;var t=dx(e);return t==vx||t==yx||t==px||t==mx}var Ks=gx;const he=ke(Ks);var bx=Ft,xx=bx["__core-js_shared__"],wx=xx,qs=wx,Cf=function(){var e=/[^.]+$/.exec(qs&&qs.keys&&qs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ox(e){return!!Cf&&Cf in e}var Sx=Ox,Ax=Function.prototype,Tx=Ax.toString;function Px(e){if(e!=null){try{return Tx.call(e)}catch{}try{return e+""}catch{}}return""}var Mf=Px,_x=Ks,Ex=Sx,$x=dr,jx=Mf,Cx=/[\\^$.*+?()[\]{}|]/g,Mx=/^\[object .+?Constructor\]$/,kx=Function.prototype,Nx=Object.prototype,Dx=kx.toString,Ix=Nx.hasOwnProperty,Rx=RegExp("^"+Dx.call(Ix).replace(Cx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Lx(e){if(!$x(e)||Ex(e))return!1;var t=_x(e)?Rx:Mx;return t.test(jx(e))}var Bx=Lx;function Fx(e,t){return e==null?void 0:e[t]}var Wx=Fx,Ux=Bx,zx=Wx;function Kx(e,t){var r=zx(e,t);return Ux(r)?r:void 0}var _r=Kx,qx=_r,Vx=qx(Object,"create"),Ei=Vx,kf=Ei;function Gx(){this.__data__=kf?kf(null):{},this.size=0}var Hx=Gx;function Yx(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xx=Yx,Jx=Ei,Zx="__lodash_hash_undefined__",Qx=Object.prototype,ew=Qx.hasOwnProperty;function tw(e){var t=this.__data__;if(Jx){var r=t[e];return r===Zx?void 0:r}return ew.call(t,e)?t[e]:void 0}var rw=tw,nw=Ei,aw=Object.prototype,iw=aw.hasOwnProperty;function ow(e){var t=this.__data__;return nw?t[e]!==void 0:iw.call(t,e)}var sw=ow,lw=Ei,uw="__lodash_hash_undefined__";function cw(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=lw&&t===void 0?uw:t,this}var fw=cw,dw=Hx,hw=Xx,pw=rw,vw=sw,yw=fw;function an(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])}}an.prototype.clear=dw,an.prototype.delete=hw,an.prototype.get=pw,an.prototype.has=vw,an.prototype.set=yw;var mw=an;function gw(){this.__data__=[],this.size=0}var bw=gw;function xw(e,t){return e===t||e!==e&&t!==t}var Vs=xw,ww=Vs;function Ow(e,t){for(var r=e.length;r--;)if(ww(e[r][0],t))return r;return-1}var $i=Ow,Sw=$i,Aw=Array.prototype,Tw=Aw.splice;function Pw(e){var t=this.__data__,r=Sw(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Tw.call(t,r,1),--this.size,!0}var _w=Pw,Ew=$i;function $w(e){var t=this.__data__,r=Ew(t,e);return r<0?void 0:t[r][1]}var jw=$w,Cw=$i;function Mw(e){return Cw(this.__data__,e)>-1}var kw=Mw,Nw=$i;function Dw(e,t){var r=this.__data__,n=Nw(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Iw=Dw,Rw=bw,Lw=_w,Bw=jw,Fw=kw,Ww=Iw;function on(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])}}on.prototype.clear=Rw,on.prototype.delete=Lw,on.prototype.get=Bw,on.prototype.has=Fw,on.prototype.set=Ww;var ji=on,Uw=_r,zw=Ft,Kw=Uw(zw,"Map"),Gs=Kw,Nf=mw,qw=ji,Vw=Gs;function Gw(){this.size=0,this.__data__={hash:new Nf,map:new(Vw||qw),string:new Nf}}var Hw=Gw;function Yw(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Xw=Yw,Jw=Xw;function Zw(e,t){var r=e.__data__;return Jw(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ci=Zw,Qw=Ci;function e1(e){var t=Qw(this,e).delete(e);return this.size-=t?1:0,t}var t1=e1,r1=Ci;function n1(e){return r1(this,e).get(e)}var a1=n1,i1=Ci;function o1(e){return i1(this,e).has(e)}var s1=o1,l1=Ci;function u1(e,t){var r=l1(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var c1=u1,f1=Hw,d1=t1,h1=a1,p1=s1,v1=c1;function sn(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])}}sn.prototype.clear=f1,sn.prototype.delete=d1,sn.prototype.get=h1,sn.prototype.has=p1,sn.prototype.set=v1;var Hs=sn,Df=Hs,y1="Expected a function";function Ys(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(y1);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(Ys.Cache||Df),r}Ys.Cache=Df;var If=Ys;const m1=ke(If);var g1=If,b1=500;function x1(e){var t=g1(e,function(n){return r.size===b1&&r.clear(),n}),r=t.cache;return t}var w1=x1,O1=w1,S1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A1=/\\(\\)?/g,T1=O1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(S1,function(r,n,a,i){t.push(a?i.replace(A1,"$1"):n||r)}),t}),P1=T1;function _1(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 Xs=_1,Rf=ca,E1=Xs,$1=lt,j1=rn,Lf=Rf?Rf.prototype:void 0,Bf=Lf?Lf.toString:void 0;function Ff(e){if(typeof e=="string")return e;if($1(e))return E1(e,Ff)+"";if(j1(e))return Bf?Bf.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var C1=Ff,M1=C1;function k1(e){return e==null?"":M1(e)}var Wf=k1,N1=lt,D1=zs,I1=P1,R1=Wf;function L1(e,t){return N1(e)?e:D1(e,t)?[e]:I1(R1(e))}var Uf=L1,B1=rn;function F1(e){if(typeof e=="string"||B1(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Mi=F1,W1=Uf,U1=Mi;function z1(e,t){t=W1(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[U1(t[r++])];return r&&r==n?e:void 0}var Js=z1,K1=Js;function q1(e,t,r){var n=e==null?void 0:K1(e,t);return n===void 0?r:n}var zf=q1;const xt=ke(zf);function V1(e){return e==null}var G1=V1;const fe=ke(G1);var H1=Xt,Y1=lt,X1=Jt,J1="[object String]";function Z1(e){return typeof e=="string"||!Y1(e)&&X1(e)&&H1(e)==J1}var Q1=Z1;const Er=ke(Q1);var Zs={exports:{}},xe={};/**
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={};/**
106
31
  * @license React
107
32
  * react-is.production.min.js
108
33
  *
@@ -110,7 +35,7 @@ React keys must be passed directly to JSX without using spread:
110
35
  *
111
36
  * This source code is licensed under the MIT license found in the
112
37
  * LICENSE file in the root directory of this source tree.
113
- */var Kf;function eO(){if(Kf)return xe;Kf=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"),m;m=Symbol.for("react.module.reference");function y(v){if(typeof v=="object"&&v!==null){var b=v.$$typeof;switch(b){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 b}}case t:return b}}}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 y(v)===o},xe.isContextProvider=function(v){return y(v)===i},xe.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},xe.isForwardRef=function(v){return y(v)===l},xe.isFragment=function(v){return y(v)===r},xe.isLazy=function(v){return y(v)===d},xe.isMemo=function(v){return y(v)===f},xe.isPortal=function(v){return y(v)===t},xe.isProfiler=function(v){return y(v)===a},xe.isStrictMode=function(v){return y(v)===n},xe.isSuspense=function(v){return y(v)===u},xe.isSuspenseList=function(v){return y(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===m||v.getModuleId!==void 0)},xe.typeOf=y,xe}var we={};/**
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={};/**
114
39
  * @license React
115
40
  * react-is.development.js
116
41
  *
@@ -118,142 +43,117 @@ React keys must be passed directly to JSX without using spread:
118
43
  *
119
44
  * This source code is licensed under the MIT license found in the
120
45
  * LICENSE file in the root directory of this source tree.
121
- */var qf;function tO(){return qf||(qf=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"),m=!1,y=!1,v=!1,b=!1,w=!1,x;x=Symbol.for("react.module.reference");function T(V){return!!(typeof V=="string"||typeof V=="function"||V===r||V===a||w||V===n||V===u||V===c||b||V===h||m||y||v||typeof V=="object"&&V!==null&&(V.$$typeof===d||V.$$typeof===f||V.$$typeof===i||V.$$typeof===o||V.$$typeof===l||V.$$typeof===x||V.getModuleId!==void 0))}function p(V){if(typeof V=="object"&&V!==null){var re=V.$$typeof;switch(re){case e:var oe=V.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 re}}case t:return re}}}var g=o,S=i,P=e,_=l,R=r,M=d,C=f,W=t,U=a,F=n,N=u,D=c,L=!1,$=!1;function E(V){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function I(V){return $||($=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(V){return p(V)===o}function z(V){return p(V)===i}function G(V){return typeof V=="object"&&V!==null&&V.$$typeof===e}function Z(V){return p(V)===l}function Q(V){return p(V)===r}function ee(V){return p(V)===d}function te(V){return p(V)===f}function q(V){return p(V)===t}function Y(V){return p(V)===a}function J(V){return p(V)===n}function k(V){return p(V)===u}function ie(V){return p(V)===c}we.ContextConsumer=g,we.ContextProvider=S,we.Element=P,we.ForwardRef=_,we.Fragment=R,we.Lazy=M,we.Memo=C,we.Portal=W,we.Profiler=U,we.StrictMode=F,we.Suspense=N,we.SuspenseList=D,we.isAsyncMode=E,we.isConcurrentMode=I,we.isContextConsumer=B,we.isContextProvider=z,we.isElement=G,we.isForwardRef=Z,we.isFragment=Q,we.isLazy=ee,we.isMemo=te,we.isPortal=q,we.isProfiler=Y,we.isStrictMode=J,we.isSuspense=k,we.isSuspenseList=ie,we.isValidElementType=T,we.typeOf=p}()),we}process.env.NODE_ENV==="production"?Zs.exports=eO():Zs.exports=tO();var rO=Zs.exports,nO=Xt,aO=Jt,iO="[object Number]";function oO(e){return typeof e=="number"||aO(e)&&nO(e)==iO}var Vf=oO;const sO=ke(Vf);var lO=Vf;function uO(e){return lO(e)&&e!=+e}var cO=uO;const ln=ke(cO);var jt=function(t){return t===0?0:t>0?1:-1},$r=function(t){return Er(t)&&t.indexOf("%")===t.length-1},X=function(t){return sO(t)&&!ln(t)},fO=function(t){return fe(t)},Ge=function(t){return X(t)||Er(t)},dO=0,jr=function(t){var r=++dO;return"".concat(t||"").concat(r)},Cr=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)&&!Er(t))return n;var i;if($r(t)){var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return ln(i)&&(i=n),a&&i>r&&(i=r),i},hr=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},hO=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 pO=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}},vO=function(t,r){return X(t)&&X(r)?t-r:Er(t)&&Er(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function un(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 Qs(e){"@babel/helpers - typeof";return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qs(e)}var yO=["viewBox","children"],mO=["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"],Gf=["points","pathLength"],el={svg:yO,polygon:Gf,polyline:Gf},tl=["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(O.isValidElement(t)&&(n=t.props),!nn(n))return null;var a={};return Object.keys(n).forEach(function(i){tl.includes(i)&&(a[i]=r||function(o){return n[i](n,o)})}),a},gO=function(t,r,n){return function(a){return t(r,n,a),null}},da=function(t,r,n){if(!nn(t)||Qs(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var o=t[i];tl.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=gO(o,r,n))}),a},bO=["children"],xO=["children"];function Hf(e,t){if(e==null)return{};var r=wO(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 wO(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){"@babel/helpers - typeof";return rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rl(e)}var Yf={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"},Zt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Xf=null,nl=null,al=function e(t){if(t===Xf&&Array.isArray(nl))return nl;var r=[];return O.Children.forEach(t,function(n){fe(n)||(rO.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),nl=r,Xf=t,r};function ut(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return Zt(a)}):n=[Zt(t)],al(e).forEach(function(a){var i=xt(a,"type.displayName")||xt(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function pt(e,t){var r=ut(e,t);return r&&r[0]}var Jf=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)},OO=["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"],SO=function(t){return t&&t.type&&Er(t.type)&&OO.indexOf(t.type)>=0},Zf=function(t){return t&&rl(t)==="object"&&"clipDot"in t},AO=function(t,r,n,a){var i,o=(i=el==null?void 0:el[a])!==null&&i!==void 0?i:[];return r.startsWith("data-")||!he(t)&&(a&&o.includes(r)||mO.includes(r))||n&&tl.includes(r)},de=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(O.isValidElement(t)&&(a=t.props),!nn(a))return null;var i={};return Object.keys(a).forEach(function(o){var s;AO((s=a)===null||s===void 0?void 0:s[o],o,r,n)&&(i[o]=a[o])}),i},il=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 Qf(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(!Qf(i,o))return!1}return!0},Qf=function(t,r){if(fe(t)&&fe(r))return!0;if(!fe(t)&&!fe(r)){var n=t.props||{},a=n.children,i=Hf(n,bO),o=r.props||{},s=o.children,l=Hf(o,xO);return a&&s?un(i,l)&&il(a,s):!a&&!s?un(i,l):!1}return!1},ed=function(t,r){var n=[],a={};return al(t).forEach(function(i,o){if(SO(i))n.push(i);else if(i){var s=Zt(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},TO=function(t){var r=t&&t.type;return r&&Yf[r]?Yf[r]:null},PO=function(t,r){return al(r).indexOf(t)},_O=["children","width","height","viewBox","className","style","title","desc"];function ol(){return ol=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},ol.apply(this,arguments)}function EO(e,t){if(e==null)return{};var r=$O(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 $O(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 sl(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=EO(e,_O),c=a||{width:r,height:n,x:0,y:0},f=ve("recharts-surface",i);return O.createElement("svg",ol({},de(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 jO=["children","className"];function ll(){return ll=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},ll.apply(this,arguments)}function CO(e,t){if(e==null)return{};var r=MO(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 MO(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=O.forwardRef(function(e,t){var r=e.children,n=e.className,a=CO(e,jO),i=ve("recharts-layer",n);return O.createElement("g",ll({className:i},de(a,!0),{ref:t}),r)}),kO=process.env.NODE_ENV!=="production",Qt=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(kO&&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 NO(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 DO=NO,IO=DO;function RO(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:IO(e,t,r)}var LO=RO,BO="\\ud800-\\udfff",FO="\\u0300-\\u036f",WO="\\ufe20-\\ufe2f",UO="\\u20d0-\\u20ff",zO=FO+WO+UO,KO="\\ufe0e\\ufe0f",qO="\\u200d",VO=RegExp("["+qO+BO+zO+KO+"]");function GO(e){return VO.test(e)}var td=GO;function HO(e){return e.split("")}var YO=HO,rd="\\ud800-\\udfff",XO="\\u0300-\\u036f",JO="\\ufe20-\\ufe2f",ZO="\\u20d0-\\u20ff",QO=XO+JO+ZO,eS="\\ufe0e\\ufe0f",tS="["+rd+"]",ul="["+QO+"]",cl="\\ud83c[\\udffb-\\udfff]",rS="(?:"+ul+"|"+cl+")",nd="[^"+rd+"]",ad="(?:\\ud83c[\\udde6-\\uddff]){2}",id="[\\ud800-\\udbff][\\udc00-\\udfff]",nS="\\u200d",od=rS+"?",sd="["+eS+"]?",aS="(?:"+nS+"(?:"+[nd,ad,id].join("|")+")"+sd+od+")*",iS=sd+od+aS,oS="(?:"+[nd+ul+"?",ul,ad,id,tS].join("|")+")",sS=RegExp(cl+"(?="+cl+")|"+oS+iS,"g");function lS(e){return e.match(sS)||[]}var uS=lS,cS=YO,fS=td,dS=uS;function hS(e){return fS(e)?dS(e):cS(e)}var pS=hS,vS=LO,yS=td,mS=pS,gS=Wf;function bS(e){return function(t){t=gS(t);var r=yS(t)?mS(t):void 0,n=r?r[0]:t.charAt(0),a=r?vS(r,1).join(""):t.slice(1);return n[e]()+a}}var xS=bS,wS=xS,OS=wS("toUpperCase"),SS=OS;const Di=ke(SS);function Ne(e){return function(){return e}}const ld=Math.cos,Ii=Math.sin,Ct=Math.sqrt,Ri=Math.PI,Li=2*Ri,fl=Math.PI,dl=2*fl,Mr=1e-6,AS=dl-Mr;function ud(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function TS(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return ud;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 PS{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?ud:TS(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>Mr)if(!(Math.abs(f*l-u*c)>Mr)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,m=a-s,y=l*l+u*u,v=h*h+m*m,b=Math.sqrt(y),w=Math.sqrt(d),x=i*Math.tan((fl-Math.acos((y+d-v)/(2*b*w)))/2),T=x/w,p=x/b;Math.abs(T-1)>Mr&&this._append`L${t+T*c},${r+T*f}`,this._append`A${i},${i},0,0,${+(f*h>c*m)},${this._x1=t+p*l},${this._y1=r+p*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)>Mr||Math.abs(this._y1-c)>Mr)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%dl+dl),d>AS?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>Mr&&this._append`A${n},${n},0,${+(d>=fl)},${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 hl(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 PS(t)}function pl(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cd(e){this._context=e}cd.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 cd(e)}function fd(e){return e[0]}function dd(e){return e[1]}function hd(e,t){var r=Ne(!0),n=null,a=Bi,i=null,o=hl(s);e=typeof e=="function"?e:e===void 0?fd:Ne(e),t=typeof t=="function"?t:t===void 0?dd:Ne(t);function s(l){var u,c=(l=pl(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=hl(u);e=typeof e=="function"?e:e===void 0?fd:Ne(+e),t=typeof t=="function"?t:Ne(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?dd:Ne(+r);function u(f){var d,h,m,y=(f=pl(f)).length,v,b=!1,w,x=new Array(y),T=new Array(y);for(i==null&&(s=o(w=l())),d=0;d<=y;++d){if(!(d<y&&a(v=f[d],d,f))===b)if(b=!b)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=h;--m)s.point(x[m],T[m]);s.lineEnd(),s.areaEnd()}b&&(x[d]=+e(v,d,f),T[d]=+t(v,d,f),s.point(n?+n(v,d,f):x[d],r?+r(v,d,f):T[d]))}if(w)return s=null,w+""||null}function c(){return hd().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 pd{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 _S(e){return new pd(e,!0)}function ES(e){return new pd(e,!1)}const vl={draw(e,t){const r=Ct(t/Ri);e.moveTo(r,0),e.arc(0,0,r,0,Li)}},$S={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()}},vd=Ct(1/3),jS=vd*2,CS={draw(e,t){const r=Ct(t/jS),n=r*vd;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},MS={draw(e,t){const r=Ct(t),n=-r/2;e.rect(n,n,r,r)}},kS=.8908130915292852,yd=Ii(Ri/10)/Ii(7*Ri/10),NS=Ii(Li/10)*yd,DS=-ld(Li/10)*yd,IS={draw(e,t){const r=Ct(t*kS),n=NS*r,a=DS*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=Li*i/5,s=ld(o),l=Ii(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*a,l*n+s*a)}e.closePath()}},yl=Ct(3),RS={draw(e,t){const r=-Ct(t/(yl*3));e.moveTo(0,r*2),e.lineTo(-yl*r,-r),e.lineTo(yl*r,-r),e.closePath()}},wt=-.5,Ot=Ct(3)/2,ml=1/Ct(12),LS=(ml/2+1)*3,BS={draw(e,t){const r=Ct(t/LS),n=r/2,a=r*ml,i=n,o=r*ml+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 FS(e,t){let r=null,n=hl(a);e=typeof e=="function"?e:Ne(e||vl),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 md(e){this._context=e}md.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 WS(e){return new md(e)}function gd(e){this._context=e}gd.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 US(e){return new gd(e)}function bd(e){this._context=e}bd.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 zS(e){return new bd(e)}function xd(e){this._context=e}xd.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 KS(e){return new xd(e)}function wd(e){return e<0?-1:1}function Od(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(wd(i)+wd(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function Sd(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function gl(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:gl(this,this._t0,Sd(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,gl(this,Sd(this,r=Od(this,e,t)),r);break;default:gl(this,this._t0,r=Od(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Ad(e){this._context=new Td(e)}(Ad.prototype=Object.create(zi.prototype)).point=function(e,t){zi.prototype.point.call(this,t,e)};function Td(e){this._context=e}Td.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 qS(e){return new zi(e)}function VS(e){return new Ad(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=_d(e),a=_d(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 _d(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 GS(e){return new Pd(e)}function Ki(e,t){this._context=e,this._t=t}Ki.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 HS(e){return new Ki(e,.5)}function YS(e){return new Ki(e,0)}function XS(e){return new Ki(e,1)}function cn(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 bl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function JS(e,t){return e[t]}function ZS(e){const t=[];return t.key=e,t}function QS(){var e=Ne([]),t=bl,r=cn,n=JS;function a(i){var o=Array.from(e.apply(this,arguments),ZS),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=pl(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?bl:typeof i=="function"?i:Ne(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(r=i??cn,a):r},a}function eA(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}cn(e,t)}}function tA(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}cn(e,t)}}function rA(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,m=0;m<s;++m){var y=e[t[m]],v=y[n][1]||0,b=y[n-1][1]||0;h+=v-b}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,cn(e,t)}}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)}var nA=["type","size","sizeType"];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 Ed(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 $d(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ed(Object(r),!0).forEach(function(n){aA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ed(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aA(e,t,r){return t=iA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iA(e){var t=oA(e,"string");return ha(t)=="symbol"?t:t+""}function oA(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 sA(e,t){if(e==null)return{};var r=lA(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 lA(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 jd={symbolCircle:vl,symbolCross:$S,symbolDiamond:CS,symbolSquare:MS,symbolStar:IS,symbolTriangle:RS,symbolWye:BS},uA=Math.PI/180,cA=function(t){var r="symbol".concat(Di(t));return jd[r]||vl},fA=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*uA;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}},dA=function(t,r){jd["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=sA(t,nA),u=$d($d({},l),{},{type:n,size:i,sizeType:s}),c=function(){var v=cA(n),b=FS().type(v).size(fA(i,s,n));return b()},f=u.className,d=u.cx,h=u.cy,m=de(u,!0);return d===+d&&h===+h&&i===+i?O.createElement("path",xl({},m,{className:ve("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:c()})):null};qi.registerSymbol=dA;function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}function wl(){return wl=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},wl.apply(this,arguments)}function Cd(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 hA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cd(Object(r),!0).forEach(function(n){pa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vA(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,kd(n.key),n)}}function yA(e,t,r){return t&&vA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mA(e,t,r){return t=Vi(t),gA(e,Md()?Reflect.construct(t,r||[],Vi(e).constructor):t.apply(e,r))}function gA(e,t){if(t&&(fn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bA(e)}function bA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Md(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Md=function(){return!!e})()}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(e)}function xA(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,a){return n.__proto__=a,n},Ol(e,t)}function pa(e,t,r){return t=kd(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kd(e){var t=wA(e,"string");return fn(t)=="symbol"?t:t+""}function wA(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var St=32,Sl=function(e){function t(){return pA(this,t),mA(this,t,arguments)}return xA(t,e),yA(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 O.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 O.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(s,`
122
- A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(i,`
123
- H`).concat(St,"M").concat(2*s,",").concat(i,`
124
- A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(n.type==="rect")return O.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(O.isValidElement(n.legendIcon)){var u=hA({},n);return delete u.legendIcon,O.cloneElement(n.legendIcon,u)}return O.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,m){var y=h.formatter||l,v=ve(pa(pa({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",h.inactive));if(h.type==="none")return null;var b=he(h.value)?null:h.value;Qt(!he(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 w=h.inactive?u:h.color;return O.createElement("li",wl({className:v,style:f,key:"legend-item-".concat(m)},da(n.props,h,m)),O.createElement(sl,{width:o,height:o,viewBox:c,style:d},n.renderIcon(h)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},y?y(b,h,m):b))})}},{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 O.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(O.PureComponent);pa(Sl,"displayName","Legend"),pa(Sl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var OA=ji;function SA(){this.__data__=new OA,this.size=0}var AA=SA;function TA(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var PA=TA;function _A(e){return this.__data__.get(e)}var EA=_A;function $A(e){return this.__data__.has(e)}var jA=$A,CA=ji,MA=Gs,kA=Hs,NA=200;function DA(e,t){var r=this.__data__;if(r instanceof CA){var n=r.__data__;if(!MA||n.length<NA-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new kA(n)}return r.set(e,t),this.size=r.size,this}var IA=DA,RA=ji,LA=AA,BA=PA,FA=EA,WA=jA,UA=IA;function dn(e){var t=this.__data__=new RA(e);this.size=t.size}dn.prototype.clear=LA,dn.prototype.delete=BA,dn.prototype.get=FA,dn.prototype.has=WA,dn.prototype.set=UA;var Nd=dn,zA="__lodash_hash_undefined__";function KA(e){return this.__data__.set(e,zA),this}var qA=KA;function VA(e){return this.__data__.has(e)}var GA=VA,HA=Hs,YA=qA,XA=GA;function Gi(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new HA;++t<r;)this.add(e[t])}Gi.prototype.add=Gi.prototype.push=YA,Gi.prototype.has=XA;var Dd=Gi;function JA(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 Id=JA;function ZA(e,t){return e.has(t)}var Rd=ZA,QA=Dd,eT=Id,tT=Rd,rT=1,nT=2;function aT(e,t,r,n,a,i){var o=r&rT,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&nT?new QA:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var m=e[f],y=t[f];if(n)var v=o?n(y,m,f,t,e,i):n(m,y,f,e,t,i);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!eT(t,function(b,w){if(!tT(h,w)&&(m===b||a(m,b,r,n,i)))return h.push(w)})){d=!1;break}}else if(!(m===y||a(m,y,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d}var Ld=aT,iT=Ft,oT=iT.Uint8Array,sT=oT;function lT(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var uT=lT;function cT(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Al=cT,Bd=ca,Fd=sT,fT=Vs,dT=Ld,hT=uT,pT=Al,vT=1,yT=2,mT="[object Boolean]",gT="[object Date]",bT="[object Error]",xT="[object Map]",wT="[object Number]",OT="[object RegExp]",ST="[object Set]",AT="[object String]",TT="[object Symbol]",PT="[object ArrayBuffer]",_T="[object DataView]",Wd=Bd?Bd.prototype:void 0,Tl=Wd?Wd.valueOf:void 0;function ET(e,t,r,n,a,i,o){switch(r){case _T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case PT:return!(e.byteLength!=t.byteLength||!i(new Fd(e),new Fd(t)));case mT:case gT:case wT:return fT(+e,+t);case bT:return e.name==t.name&&e.message==t.message;case OT:case AT:return e==t+"";case xT:var s=hT;case ST:var l=n&vT;if(s||(s=pT),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=yT,o.set(e,t);var c=dT(s(e),s(t),n,a,i,o);return o.delete(e),c;case TT:if(Tl)return Tl.call(e)==Tl.call(t)}return!1}var $T=ET;function jT(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Ud=jT,CT=Ud,MT=lt;function kT(e,t,r){var n=t(e);return MT(e)?n:CT(n,r(e))}var NT=kT;function DT(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 IT=DT;function RT(){return[]}var LT=RT,BT=IT,FT=LT,WT=Object.prototype,UT=WT.propertyIsEnumerable,zd=Object.getOwnPropertySymbols,zT=zd?function(e){return e==null?[]:(e=Object(e),BT(zd(e),function(t){return UT.call(e,t)}))}:FT,KT=zT;function qT(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var VT=qT,GT=Xt,HT=Jt,YT="[object Arguments]";function XT(e){return HT(e)&&GT(e)==YT}var JT=XT,Kd=JT,ZT=Jt,qd=Object.prototype,QT=qd.hasOwnProperty,eP=qd.propertyIsEnumerable,tP=Kd(function(){return arguments}())?Kd:function(e){return ZT(e)&&QT.call(e,"callee")&&!eP.call(e,"callee")},Pl=tP,Hi={exports:{}};function rP(){return!1}var nP=rP;Hi.exports,function(e,t){var r=Ft,n=nP,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 Vd=Hi.exports,aP=9007199254740991,iP=/^(?:0|[1-9]\d*)$/;function oP(e,t){var r=typeof e;return t=t??aP,!!t&&(r=="number"||r!="symbol"&&iP.test(e))&&e>-1&&e%1==0&&e<t}var _l=oP,sP=9007199254740991;function lP(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=sP}var El=lP,uP=Xt,cP=El,fP=Jt,dP="[object Arguments]",hP="[object Array]",pP="[object Boolean]",vP="[object Date]",yP="[object Error]",mP="[object Function]",gP="[object Map]",bP="[object Number]",xP="[object Object]",wP="[object RegExp]",OP="[object Set]",SP="[object String]",AP="[object WeakMap]",TP="[object ArrayBuffer]",PP="[object DataView]",_P="[object Float32Array]",EP="[object Float64Array]",$P="[object Int8Array]",jP="[object Int16Array]",CP="[object Int32Array]",MP="[object Uint8Array]",kP="[object Uint8ClampedArray]",NP="[object Uint16Array]",DP="[object Uint32Array]",Re={};Re[_P]=Re[EP]=Re[$P]=Re[jP]=Re[CP]=Re[MP]=Re[kP]=Re[NP]=Re[DP]=!0,Re[dP]=Re[hP]=Re[TP]=Re[pP]=Re[PP]=Re[vP]=Re[yP]=Re[mP]=Re[gP]=Re[bP]=Re[xP]=Re[wP]=Re[OP]=Re[SP]=Re[AP]=!1;function IP(e){return fP(e)&&cP(e.length)&&!!Re[uP(e)]}var RP=IP;function LP(e){return function(t){return e(t)}}var Gd=LP,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 BP=Yi.exports,FP=RP,WP=Gd,Hd=BP,Yd=Hd&&Hd.isTypedArray,UP=Yd?WP(Yd):FP,Xd=UP,zP=VT,KP=Pl,qP=lt,VP=Vd,GP=_l,HP=Xd,YP=Object.prototype,XP=YP.hasOwnProperty;function JP(e,t){var r=qP(e),n=!r&&KP(e),a=!r&&!n&&VP(e),i=!r&&!n&&!a&&HP(e),o=r||n||a||i,s=o?zP(e.length,String):[],l=s.length;for(var u in e)(t||XP.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||GP(u,l)))&&s.push(u);return s}var ZP=JP,QP=Object.prototype;function e_(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||QP;return e===r}var t_=e_;function r_(e,t){return function(r){return e(t(r))}}var Jd=r_,n_=Jd,a_=n_(Object.keys,Object),i_=a_,o_=t_,s_=i_,l_=Object.prototype,u_=l_.hasOwnProperty;function c_(e){if(!o_(e))return s_(e);var t=[];for(var r in Object(e))u_.call(e,r)&&r!="constructor"&&t.push(r);return t}var f_=c_,d_=Ks,h_=El;function p_(e){return e!=null&&h_(e.length)&&!d_(e)}var va=p_,v_=ZP,y_=f_,m_=va;function g_(e){return m_(e)?v_(e):y_(e)}var Xi=g_,b_=NT,x_=KT,w_=Xi;function O_(e){return b_(e,w_,x_)}var S_=O_,Zd=S_,A_=1,T_=Object.prototype,P_=T_.hasOwnProperty;function __(e,t,r,n,a,i){var o=r&A_,s=Zd(e),l=s.length,u=Zd(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in t:P_.call(t,d)))return!1}var h=i.get(e),m=i.get(t);if(h&&m)return h==t&&m==e;var y=!0;i.set(e,t),i.set(t,e);for(var v=o;++f<l;){d=s[f];var b=e[d],w=t[d];if(n)var x=o?n(w,b,d,t,e,i):n(b,w,d,e,t,i);if(!(x===void 0?b===w||a(b,w,r,n,i):x)){y=!1;break}v||(v=d=="constructor")}if(y&&!v){var T=e.constructor,p=t.constructor;T!=p&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof p=="function"&&p instanceof p)&&(y=!1)}return i.delete(e),i.delete(t),y}var E_=__,$_=_r,j_=Ft,C_=$_(j_,"DataView"),M_=C_,k_=_r,N_=Ft,D_=k_(N_,"Promise"),I_=D_,R_=_r,L_=Ft,B_=R_(L_,"Set"),Qd=B_,F_=_r,W_=Ft,U_=F_(W_,"WeakMap"),z_=U_,$l=M_,jl=Gs,Cl=I_,Ml=Qd,kl=z_,eh=Xt,hn=Mf,th="[object Map]",K_="[object Object]",rh="[object Promise]",nh="[object Set]",ah="[object WeakMap]",ih="[object DataView]",q_=hn($l),V_=hn(jl),G_=hn(Cl),H_=hn(Ml),Y_=hn(kl),kr=eh;($l&&kr(new $l(new ArrayBuffer(1)))!=ih||jl&&kr(new jl)!=th||Cl&&kr(Cl.resolve())!=rh||Ml&&kr(new Ml)!=nh||kl&&kr(new kl)!=ah)&&(kr=function(e){var t=eh(e),r=t==K_?e.constructor:void 0,n=r?hn(r):"";if(n)switch(n){case q_:return ih;case V_:return th;case G_:return rh;case H_:return nh;case Y_:return ah}return t});var X_=kr,Nl=Nd,J_=Ld,Z_=$T,Q_=E_,oh=X_,sh=lt,lh=Vd,eE=Xd,tE=1,uh="[object Arguments]",ch="[object Array]",Ji="[object Object]",rE=Object.prototype,fh=rE.hasOwnProperty;function nE(e,t,r,n,a,i){var o=sh(e),s=sh(t),l=o?ch:oh(e),u=s?ch:oh(t);l=l==uh?Ji:l,u=u==uh?Ji:u;var c=l==Ji,f=u==Ji,d=l==u;if(d&&lh(e)){if(!lh(t))return!1;o=!0,c=!1}if(d&&!c)return i||(i=new Nl),o||eE(e)?J_(e,t,r,n,a,i):Z_(e,t,l,r,n,a,i);if(!(r&tE)){var h=c&&fh.call(e,"__wrapped__"),m=f&&fh.call(t,"__wrapped__");if(h||m){var y=h?e.value():e,v=m?t.value():t;return i||(i=new Nl),a(y,v,r,n,i)}}return d?(i||(i=new Nl),Q_(e,t,r,n,a,i)):!1}var aE=nE,iE=aE,dh=Jt;function hh(e,t,r,n,a){return e===t?!0:e==null||t==null||!dh(e)&&!dh(t)?e!==e&&t!==t:iE(e,t,r,n,hh,a)}var Dl=hh,oE=Nd,sE=Dl,lE=1,uE=2;function cE(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 oE;if(n)var d=n(u,c,l,e,t,f);if(!(d===void 0?sE(c,u,lE|uE,n,f):d))return!1}}return!0}var fE=cE,dE=dr;function hE(e){return e===e&&!dE(e)}var ph=hE,pE=ph,vE=Xi;function yE(e){for(var t=vE(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,pE(a)]}return t}var mE=yE;function gE(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var vh=gE,bE=fE,xE=mE,wE=vh;function OE(e){var t=xE(e);return t.length==1&&t[0][2]?wE(t[0][0],t[0][1]):function(r){return r===e||bE(r,e,t)}}var SE=OE;function AE(e,t){return e!=null&&t in Object(e)}var TE=AE,PE=Uf,_E=Pl,EE=lt,$E=_l,jE=El,CE=Mi;function ME(e,t,r){t=PE(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=CE(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&&jE(a)&&$E(o,a)&&(EE(e)||_E(e)))}var kE=ME,NE=TE,DE=kE;function IE(e,t){return e!=null&&DE(e,t,NE)}var RE=IE,LE=Dl,BE=zf,FE=RE,WE=zs,UE=ph,zE=vh,KE=Mi,qE=1,VE=2;function GE(e,t){return WE(e)&&UE(t)?zE(KE(e),t):function(r){var n=BE(r,e);return n===void 0&&n===t?FE(r,e):LE(t,n,qE|VE)}}var HE=GE;function YE(e){return e}var pn=YE;function XE(e){return function(t){return t==null?void 0:t[e]}}var JE=XE,ZE=Js;function QE(e){return function(t){return ZE(t,e)}}var e$=QE,t$=JE,r$=e$,n$=zs,a$=Mi;function i$(e){return n$(e)?t$(a$(e)):r$(e)}var o$=i$,s$=SE,l$=HE,u$=pn,c$=lt,f$=o$;function d$(e){return typeof e=="function"?e:e==null?u$:typeof e=="object"?c$(e)?l$(e[0],e[1]):s$(e):f$(e)}var pr=d$;function h$(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 yh=h$;function p$(e){return e!==e}var v$=p$;function y$(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}var m$=y$,g$=yh,b$=v$,x$=m$;function w$(e,t,r){return t===t?x$(e,t,r):g$(e,b$,r)}var O$=w$,S$=O$;function A$(e,t){var r=e==null?0:e.length;return!!r&&S$(e,t,0)>-1}var T$=A$;function P$(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 _$=P$;function E$(){}var $$=E$,Il=Qd,j$=$$,C$=Al,M$=1/0,k$=Il&&1/C$(new Il([,-0]))[1]==M$?function(e){return new Il(e)}:j$,N$=k$,D$=Dd,I$=T$,R$=_$,L$=Rd,B$=N$,F$=Al,W$=200;function U$(e,t,r){var n=-1,a=I$,i=e.length,o=!0,s=[],l=s;if(r)o=!1,a=R$;else if(i>=W$){var u=t?null:B$(e);if(u)return F$(u);o=!1,a=L$,l=new D$}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 z$=U$,K$=pr,q$=z$;function V$(e,t){return e&&e.length?q$(e,K$(t)):[]}var G$=V$;const mh=ke(G$);function gh(e,t,r){return t===!0?mh(e,r):he(t)?mh(e,t):e}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)}var H$=["ref"];function bh(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 er(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bh(Object(r),!0).forEach(function(n){Qi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xh(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,Oh(n.key),n)}}function X$(e,t,r){return t&&xh(e.prototype,t),r&&xh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function J$(e,t,r){return t=Zi(t),Z$(e,wh()?Reflect.construct(t,r||[],Zi(e).constructor):t.apply(e,r))}function Z$(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 Q$(e)}function Q$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wh=function(){return!!e})()}function Zi(e){return Zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zi(e)}function ej(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 Qi(e,t,r){return t=Oh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oh(e){var t=tj(e,"string");return vn(t)=="symbol"?t:t+""}function tj(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 rj(e,t){if(e==null)return{};var r=nj(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 nj(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 aj(e){return e.value}function ij(e,t){if(O.isValidElement(e))return O.cloneElement(e,t);if(typeof e=="function")return O.createElement(e,t);t.ref;var r=rj(t,H$);return O.createElement(Sl,r)}var Sh=1,yn=function(e){function t(){var r;Y$(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=J$(this,t,[].concat(a)),Qi(r,"lastBoundingBox",{width:-1,height:-1}),r}return ej(t,e),X$(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)>Sh||Math.abs(a.height-this.lastBoundingBox.height)>Sh)&&(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?er({},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 m=this.getBBoxSnapshot();d={top:((c||0)-m.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return er(er({},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=er(er({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return O.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},ij(i,er(er({},this.props),{},{payload:gh(c,u,aj)})))}}],[{key:"getWithHeight",value:function(n,a){var i=er(er({},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}}])}(O.PureComponent);Qi(yn,"displayName","Legend"),Qi(yn,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ah=ca,oj=Pl,sj=lt,Th=Ah?Ah.isConcatSpreadable:void 0;function lj(e){return sj(e)||oj(e)||!!(Th&&e&&e[Th])}var uj=lj,cj=Ud,fj=uj;function Ph(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=fj),a||(a=[]);++i<o;){var s=e[i];t>0&&r(s)?t>1?Ph(s,t-1,r,n,a):cj(a,s):n||(a[a.length]=s)}return a}var _h=Ph;function dj(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 hj=dj,pj=hj,vj=pj(),yj=vj,mj=yj,gj=Xi;function bj(e,t){return e&&mj(e,t,gj)}var Eh=bj,xj=va;function wj(e,t){return function(r,n){if(r==null)return r;if(!xj(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 Oj=wj,Sj=Eh,Aj=Oj,Tj=Aj(Sj),Ll=Tj,Pj=Ll,_j=va;function Ej(e,t){var r=-1,n=_j(e)?Array(e.length):[];return Pj(e,function(a,i,o){n[++r]=t(a,i,o)}),n}var $h=Ej;function $j(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var jj=$j,jh=rn;function Cj(e,t){if(e!==t){var r=e!==void 0,n=e===null,a=e===e,i=jh(e),o=t!==void 0,s=t===null,l=t===t,u=jh(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 Mj=Cj,kj=Mj;function Nj(e,t,r){for(var n=-1,a=e.criteria,i=t.criteria,o=a.length,s=r.length;++n<o;){var l=kj(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 Dj=Nj,Bl=Xs,Ij=Js,Rj=pr,Lj=$h,Bj=jj,Fj=Gd,Wj=Dj,Uj=pn,zj=lt;function Kj(e,t,r){t.length?t=Bl(t,function(i){return zj(i)?function(o){return Ij(o,i.length===1?i[0]:i)}:i}):t=[Uj];var n=-1;t=Bl(t,Fj(Rj));var a=Lj(e,function(i,o,s){var l=Bl(t,function(u){return u(i)});return{criteria:l,index:++n,value:i}});return Bj(a,function(i,o){return Wj(i,o,r)})}var qj=Kj;function Vj(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 Gj=Vj,Hj=Gj,Ch=Math.max;function Yj(e,t,r){return t=Ch(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=Ch(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),Hj(e,this,s)}}var Xj=Yj;function Jj(e){return function(){return e}}var Zj=Jj,Qj=_r,eC=function(){try{var e=Qj(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Mh=eC,tC=Zj,kh=Mh,rC=pn,nC=kh?function(e,t){return kh(e,"toString",{configurable:!0,enumerable:!1,value:tC(t),writable:!0})}:rC,aC=nC,iC=800,oC=16,sC=Date.now;function lC(e){var t=0,r=0;return function(){var n=sC(),a=oC-(n-r);if(r=n,a>0){if(++t>=iC)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var uC=lC,cC=aC,fC=uC,dC=fC(cC),hC=dC,pC=pn,vC=Xj,yC=hC;function mC(e,t){return yC(vC(e,t,pC),e+"")}var gC=mC,bC=Vs,xC=va,wC=_l,OC=dr;function SC(e,t,r){if(!OC(r))return!1;var n=typeof t;return(n=="number"?xC(r)&&wC(t,r.length):n=="string"&&t in r)?bC(r[t],e):!1}var eo=SC,AC=_h,TC=qj,PC=gC,Nh=eo,_C=PC(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Nh(e,t[0],t[1])?t=[]:r>2&&Nh(t[0],t[1],t[2])&&(t=[t[0]]),TC(e,AC(t,1),[])}),EC=_C;const Fl=ke(EC);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 Wl(){return Wl=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},Wl.apply(this,arguments)}function $C(e,t){return kC(e)||MC(e,t)||CC(e,t)||jC()}function jC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
125
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CC(e,t){if(e){if(typeof e=="string")return Dh(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 Dh(e,t)}}function Dh(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,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 kC(e){if(Array.isArray(e))return e}function Ih(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 Ul(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ih(Object(r),!0).forEach(function(n){NC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ih(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NC(e,t,r){return t=DC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DC(e){var t=IC(e,"string");return ya(t)=="symbol"?t:t+""}function IC(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 RC(e){return Array.isArray(e)&&Ge(e[0])&&Ge(e[1])?e.join(" ~ "):e}var LC=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,m=t.labelClassName,y=t.label,v=t.labelFormatter,b=t.accessibilityLayer,w=b===void 0?!1:b,x=function(){if(c&&c.length){var C={padding:0,margin:0},W=(d?Fl(c,d):c).map(function(U,F){if(U.type==="none")return null;var N=Ul({display:"block",paddingTop:4,paddingBottom:4,color:U.color||"#000"},s),D=U.formatter||f||RC,L=U.value,$=U.name,E=L,I=$;if(D&&E!=null&&I!=null){var B=D(L,$,U,F,c);if(Array.isArray(B)){var z=$C(B,2);E=z[0],I=z[1]}else E=B}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(F),style:N},Ge(I)?O.createElement("span",{className:"recharts-tooltip-item-name"},I):null,Ge(I)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},E),O.createElement("span",{className:"recharts-tooltip-item-unit"},U.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:C},W)}return null},T=Ul({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),p=Ul({margin:0},u),g=!fe(y),S=g?y:"",P=ve("recharts-default-tooltip",h),_=ve("recharts-tooltip-label",m);g&&v&&c!==void 0&&c!==null&&(S=v(y,c));var R=w?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",Wl({className:P,style:T},R),O.createElement("p",{className:_,style:p},O.isValidElement(S)?S:"".concat(S)),x())};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 to(e,t,r){return t=BC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BC(e){var t=FC(e,"string");return ma(t)=="symbol"?t:t+""}function FC(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 ga="recharts-tooltip-wrapper",WC={visibility:"hidden"};function UC(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ve(ga,to(to(to(to({},"".concat(ga,"-right"),X(r)&&t&&X(t.x)&&r>=t.x),"".concat(ga,"-left"),X(r)&&t&&X(t.x)&&r<t.x),"".concat(ga,"-bottom"),X(n)&&t&&X(t.y)&&n>=t.y),"".concat(ga,"-top"),X(n)&&t&&X(t.y)&&n<t.y))}function Rh(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 m=f+s,y=l[n]+u;return m>y?Math.max(c,l[n]):Math.max(f,l[n])}function zC(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 KC(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=Rh({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=Rh({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=zC({translateX:c,translateY:f,useTranslate3d:s})):u=WC,{cssProperties:u,cssClasses:UC({translateX:c,translateY:f,coordinate:r})}}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 Lh(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 Bh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lh(Object(r),!0).forEach(function(n){Kl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VC(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,Wh(n.key),n)}}function GC(e,t,r){return t&&VC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HC(e,t,r){return t=ro(t),YC(e,Fh()?Reflect.construct(t,r||[],ro(e).constructor):t.apply(e,r))}function YC(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 XC(e)}function XC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fh=function(){return!!e})()}function ro(e){return ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ro(e)}function JC(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&&zl(e,t)}function zl(e,t){return zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},zl(e,t)}function Kl(e,t,r){return t=Wh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wh(e){var t=ZC(e,"string");return mn(t)=="symbol"?t:t+""}function ZC(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 Uh=1,QC=function(e){function t(){var r;qC(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=HC(this,t,[].concat(a)),Kl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Kl(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 JC(t,e),GC(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Uh||Math.abs(n.height-this.state.lastBoundingBox.height)>Uh)&&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,m=a.position,y=a.reverseDirection,v=a.useTranslate3d,b=a.viewBox,w=a.wrapperStyle,x=KC({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:h,position:m,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:b}),T=x.cssClasses,p=x.cssProperties,g=Bh(Bh({transition:d&&i?"transform ".concat(s,"ms ").concat(l):void 0},p),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},w);return O.createElement("div",{tabIndex:-1,className:T,style:g,ref:function(P){n.wrapperNode=P}},u)}}])}(O.PureComponent),eM=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},vr={isSsr:eM()};function gn(e){"@babel/helpers - typeof";return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(e)}function zh(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 Kh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zh(Object(r),!0).forEach(function(n){Vl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rM(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,Vh(n.key),n)}}function nM(e,t,r){return t&&rM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aM(e,t,r){return t=no(t),iM(e,qh()?Reflect.construct(t,r||[],no(e).constructor):t.apply(e,r))}function iM(e,t){if(t&&(gn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oM(e)}function oM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qh=function(){return!!e})()}function no(e){return no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},no(e)}function sM(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&&ql(e,t)}function ql(e,t){return ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ql(e,t)}function Vl(e,t,r){return t=Vh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vh(e){var t=lM(e,"string");return gn(t)=="symbol"?t:t+""}function lM(e,t){if(gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function uM(e){return e.dataKey}function cM(e,t){return O.isValidElement(e)?O.cloneElement(e,t):typeof e=="function"?O.createElement(e,t):O.createElement(LC,t)}var Wt=function(e){function t(){return tM(this,t),aM(this,t,arguments)}return sM(t,e),nM(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,m=a.payload,y=a.payloadUniqBy,v=a.position,b=a.reverseDirection,w=a.useTranslate3d,x=a.viewBox,T=a.wrapperStyle,p=m??[];f&&p.length&&(p=gh(m.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),y,uM));var g=p.length>0;return O.createElement(QC,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:d,active:i,coordinate:c,hasPayload:g,offset:h,position:v,reverseDirection:b,useTranslate3d:w,viewBox:x,wrapperStyle:T},cM(u,Kh(Kh({},this.props),{},{payload:p})))}}])}(O.PureComponent);Vl(Wt,"displayName","Tooltip"),Vl(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:!vr.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 fM=Ft,dM=function(){return fM.Date.now()},hM=dM,pM=/\s/;function vM(e){for(var t=e.length;t--&&pM.test(e.charAt(t)););return t}var yM=vM,mM=yM,gM=/^\s+/;function bM(e){return e&&e.slice(0,mM(e)+1).replace(gM,"")}var xM=bM,wM=xM,Gh=dr,OM=rn,Hh=NaN,SM=/^[-+]0x[0-9a-f]+$/i,AM=/^0b[01]+$/i,TM=/^0o[0-7]+$/i,PM=parseInt;function _M(e){if(typeof e=="number")return e;if(OM(e))return Hh;if(Gh(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Gh(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=wM(e);var r=AM.test(e);return r||TM.test(e)?PM(e.slice(2),r?2:8):SM.test(e)?Hh:+e}var Yh=_M,EM=dr,Gl=hM,Xh=Yh,$M="Expected a function",jM=Math.max,CM=Math.min;function MM(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($M);t=Xh(t)||0,EM(r)&&(c=!!r.leading,f="maxWait"in r,i=f?jM(Xh(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function h(g){var S=n,P=a;return n=a=void 0,u=g,o=e.apply(P,S),o}function m(g){return u=g,s=setTimeout(b,t),c?h(g):o}function y(g){var S=g-l,P=g-u,_=t-S;return f?CM(_,i-P):_}function v(g){var S=g-l,P=g-u;return l===void 0||S>=t||S<0||f&&P>=i}function b(){var g=Gl();if(v(g))return w(g);s=setTimeout(b,y(g))}function w(g){return s=void 0,d&&n?h(g):(n=a=void 0,o)}function x(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function T(){return s===void 0?o:w(Gl())}function p(){var g=Gl(),S=v(g);if(n=arguments,a=this,l=g,S){if(s===void 0)return m(l);if(f)return clearTimeout(s),s=setTimeout(b,t),h(l)}return s===void 0&&(s=setTimeout(b,t)),o}return p.cancel=x,p.flush=T,p}var kM=MM,NM=kM,DM=dr,IM="Expected a function";function RM(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(IM);return DM(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),NM(e,t,{leading:n,maxWait:t,trailing:a})}var LM=RM;const Jh=ke(LM);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 Zh(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?Zh(Object(r),!0).forEach(function(n){BM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BM(e,t,r){return t=FM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FM(e){var t=WM(e,"string");return ba(t)=="symbol"?t:t+""}function WM(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)}function UM(e,t){return VM(e)||qM(e,t)||KM(e,t)||zM()}function zM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
126
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KM(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 qM(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 VM(e){if(Array.isArray(e))return e}var GM=O.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,m=e.debounce,y=m===void 0?0:m,v=e.id,b=e.className,w=e.onResize,x=e.style,T=x===void 0?{}:x,p=O.useRef(null),g=O.useRef();g.current=w,O.useImperativeHandle(t,function(){return Object.defineProperty(p.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),p.current},configurable:!0})});var S=O.useState({containerWidth:a.width,containerHeight:a.height}),P=UM(S,2),_=P[0],R=P[1],M=O.useCallback(function(W,U){R(function(F){var N=Math.round(W),D=Math.round(U);return F.containerWidth===N&&F.containerHeight===D?F:{containerWidth:N,containerHeight:D}})},[]);O.useEffect(function(){var W=function($){var E,I=$[0].contentRect,B=I.width,z=I.height;M(B,z),(E=g.current)===null||E===void 0||E.call(g,B,z)};y>0&&(W=Jh(W,y,{trailing:!0,leading:!1}));var U=new ResizeObserver(W),F=p.current.getBoundingClientRect(),N=F.width,D=F.height;return M(N,D),U.observe(p.current),function(){U.disconnect()}},[M,y]);var C=O.useMemo(function(){var W=_.containerWidth,U=_.containerHeight;if(W<0||U<0)return null;Qt($r(o)||$r(l),`The width(%s) and height(%s) are both fixed numbers,
127
- maybe you don't need to use a ResponsiveContainer.`,o,l),Qt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var F=$r(o)?W:o,N=$r(l)?U:l;r&&r>0&&(F?N=F/r:N&&(F=N*r),d&&N>d&&(N=d)),Qt(F>0||N>0,`The width(%s) and height(%s) of chart should be greater than 0,
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,
128
53
  please check the style of container, or the props width(%s) and height(%s),
129
54
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
130
- height and width.`,F,N,o,l,c,f,r);var D=!Array.isArray(h)&&Zt(h.type).endsWith("Chart");return O.Children.map(h,function(L){return O.isValidElement(L)?O.cloneElement(L,ao({width:F,height:N},D?{style:ao({height:"100%",width:"100%",maxHeight:N,maxWidth:F},L.props.style)}:{})):L})},[r,h,l,d,f,c,_,o]);return O.createElement("div",{id:v?"".concat(v):void 0,className:ve("recharts-responsive-container",b),style:ao(ao({},T),{},{width:o,height:l,minWidth:c,minHeight:f,maxHeight:d}),ref:p},C)}),Hl=function(t){return null};Hl.displayName="Cell";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 ep(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 Yl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ep(Object(r),!0).forEach(function(n){HM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ep(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HM(e,t,r){return t=YM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YM(e){var t=XM(e,"string");return xa(t)=="symbol"?t:t+""}function XM(e,t){if(xa(e)!="object"||!e)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)}var bn={widthCache:{},cacheCount:0},JM=2e3,ZM={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},tp="recharts_measurement_span";function QM(e){var t=Yl({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var wa=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||vr.isSsr)return{width:0,height:0};var n=QM(r),a=JSON.stringify({text:t,copyStyle:n});if(bn.widthCache[a])return bn.widthCache[a];try{var i=document.getElementById(tp);i||(i=document.createElement("span"),i.setAttribute("id",tp),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=Yl(Yl({},ZM),n);Object.assign(i.style,o),i.textContent="".concat(t);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return bn.widthCache[a]=l,++bn.cacheCount>JM&&(bn.cacheCount=0,bn.widthCache={}),l}catch{return{width:0,height:0}}},ek=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Oa(e){"@babel/helpers - typeof";return Oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oa(e)}function io(e,t){return ak(e)||nk(e,t)||rk(e,t)||tk()}function tk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
131
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rk(e,t){if(e){if(typeof e=="string")return rp(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 rp(e,t)}}function rp(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 nk(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 ak(e){if(Array.isArray(e))return e}function ik(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function np(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,sk(n.key),n)}}function ok(e,t,r){return t&&np(e.prototype,t),r&&np(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function sk(e){var t=lk(e,"string");return Oa(t)=="symbol"?t:t+""}function lk(e,t){if(Oa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ap=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ip=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,uk=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,ck=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,op={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},fk=Object.keys(op),xn="NaN";function dk(e,t){return e*op[t]}var oo=function(){function e(t,r){ik(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!uk.test(r)&&(this.num=NaN,this.unit=""),fk.includes(r)&&(this.num=dk(t,r),this.unit="px")}return ok(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=ck.exec(r))!==null&&n!==void 0?n:[],i=io(a,3),o=i[1],s=i[2];return new e(parseFloat(o),s??"")}}])}();function sp(e){if(e.includes(xn))return xn;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=ap.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 xn;t=t.replace(ap,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=ip.exec(t))!==null&&f!==void 0?f:[],h=io(d,4),m=h[1],y=h[2],v=h[3],b=oo.parse(m??""),w=oo.parse(v??""),x=y==="+"?b.add(w):b.subtract(w);if(x.isNaN())return xn;t=t.replace(ip,x.toString())}return t}var lp=/\(([^()]*)\)/;function hk(e){for(var t=e;t.includes("(");){var r=lp.exec(t),n=io(r,2),a=n[1];t=t.replace(lp,sp(a))}return t}function pk(e){var t=e.replace(/\s+/g,"");return t=hk(t),t=sp(t),t}function vk(e){try{return pk(e)}catch{return xn}}function Xl(e){var t=vk(e.slice(5,-1));return t===xn?"":t}var yk=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],mk=["dx","dy","angle","className","breakAll"];function Jl(){return Jl=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},Jl.apply(this,arguments)}function up(e,t){if(e==null)return{};var r=gk(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 gk(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 cp(e,t){return Ok(e)||wk(e,t)||xk(e,t)||bk()}function bk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
132
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xk(e,t){if(e){if(typeof e=="string")return fp(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 fp(e,t)}}function fp(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 wk(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 Ok(e){if(Array.isArray(e))return e}var dp=/[ \f\n\r\t\v\u2028\u2029]+/,hp=function(t){var r=t.children,n=t.breakAll,a=t.style;try{var i=[];fe(r)||(n?i=r.toString().split(""):i=r.toString().split(dp));var o=i.map(function(l){return{word:l,width:wa(l,a).width}}),s=n?0:wa(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},Sk=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 F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return F.reduce(function(N,D){var L=D.word,$=D.width,E=N[N.length-1];if(E&&(a==null||i||E.width+$+n<Number(a)))E.words.push(L),E.width+=$+n;else{var I={words:[L],width:$};N.push(I)}return N},[])},h=d(r),m=function(F){return F.reduce(function(N,D){return N.width>D.width?N:D})};if(!c)return h;for(var y="…",v=function(F){var N=f.slice(0,F),D=hp({breakAll:u,style:l,children:N+y}).wordsWithComputedWidth,L=d(D),$=L.length>o||m(L).width>Number(a);return[$,L]},b=0,w=f.length-1,x=0,T;b<=w&&x<=f.length-1;){var p=Math.floor((b+w)/2),g=p-1,S=v(g),P=cp(S,2),_=P[0],R=P[1],M=v(p),C=cp(M,1),W=C[0];if(!_&&!W&&(b=p+1),_&&W&&(w=p-1),!_&&W){T=R;break}x++}return T||h},pp=function(t){var r=fe(t)?[]:t.toString().split(dp);return[{words:r}]},Ak=function(t){var r=t.width,n=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!vr.isSsr){var l,u,c=hp({breakAll:o,children:a,style:i});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;l=f,u=d}else return pp(a);return Sk({breakAll:o,children:a,maxLines:s,style:i},l,u,r,n)}return pp(a)},vp="#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,m=t.verticalAnchor,y=m===void 0?"end":m,v=t.fill,b=v===void 0?vp:v,w=up(t,yk),x=O.useMemo(function(){return Ak({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]),T=w.dx,p=w.dy,g=w.angle,S=w.className,P=w.breakAll,_=up(w,mk);if(!Ge(n)||!Ge(i))return null;var R=n+(X(T)?T:0),M=i+(X(p)?p:0),C;switch(y){case"start":C=Xl("calc(".concat(u,")"));break;case"middle":C=Xl("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:C=Xl("calc(".concat(x.length-1," * -").concat(s,")"));break}var W=[];if(f){var U=x[0].width,F=w.width;W.push("scale(".concat((X(F)?F/U:1)/U,")"))}return g&&W.push("rotate(".concat(g,", ").concat(R,", ").concat(M,")")),W.length&&(_.transform=W.join(" ")),O.createElement("text",Jl({},de(_,!0),{x:R,y:M,className:ve("recharts-text",S),textAnchor:h,fill:b.includes("url")?vp:b}),x.map(function(N,D){var L=N.words.join(P?"":" ");return O.createElement("tspan",{x:R,dy:D===0?C:s,key:"".concat(L,"-").concat(D)},L)}))};function yr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Tk(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Zl(e){let t,r,n;e.length!==2?(t=yr,r=(s,l)=>yr(e(s),l),n=(s,l)=>e(s)-l):(t=e===yr||e===Tk?e:Pk,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 Pk(){return 0}function yp(e){return e===null?NaN:+e}function*_k(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Sa=Zl(yr).right;Zl(yp).center;class mp extends Map{constructor(t,r=jk){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(gp(this,t))}has(t){return super.has(gp(this,t))}set(t,r){return super.set(Ek(this,t),r)}delete(t){return super.delete($k(this,t))}}function gp({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Ek({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function $k({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function jk(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Ck(e=yr){if(e===yr)return bp;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 bp(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Mk=Math.sqrt(50),kk=Math.sqrt(10),Nk=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>=Mk?10:i>=kk?5:i>=Nk?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 Ql(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 eu(e,t,r){return t=+t,e=+e,r=+r,lo(e,t,r)[2]}function tu(e,t,r){t=+t,e=+e,r=+r;const n=t<e,a=n?eu(t,e,r):eu(e,t,r);return(n?-1:1)*(a<0?1/-a:a)}function xp(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function wp(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Op(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?bp:Ck(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)),m=Math.min(n,Math.floor(t+(l-u)*f/l+d));Op(e,t,h,m,a)}const i=e[t];let o=r,s=n;for(Aa(e,r,t),a(e[n],i)>0&&Aa(e,r,n);o<s;){for(Aa(e,o,s),++o,--s;a(e[o],i)<0;)++o;for(;a(e[s],i)>0;)--s}a(e[r],i)===0?Aa(e,r,s):(++s,Aa(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Aa(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Dk(e,t,r){if(e=Float64Array.from(_k(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return wp(e);if(t>=1)return xp(e);var n,a=(n-1)*t,i=Math.floor(a),o=xp(Op(e,i).subarray(0,i+1)),s=wp(e.subarray(i+1));return o+(s-o)*(a-i)}}function Ik(e,t,r=yp){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 Rk(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 tr(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 ru=Symbol("implicit");function nu(){var e=new mp,t=[],r=[],n=ru;function a(i){let o=e.get(i);if(o===void 0){if(n!==ru)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 mp;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 nu(t,r).unknown(n)},At.apply(a,arguments),a}function Ta(){var e=nu().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,m=h?a:n,y=h?n:a;i=(y-m)/Math.max(1,d-l+u*2),s&&(i=Math.floor(i)),m+=(y-m-i*(d-l))*c,o=i*(1-l),s&&(m=Math.round(m),o=Math.round(o));var v=Rk(d).map(function(b){return m+i*b});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 Ta(t(),[n,a]).round(s).paddingInner(l).paddingOuter(u).align(c)},At.apply(f(),arguments)}function Sp(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Sp(t())},e}function Pa(){return Sp(Ta.apply(null,arguments).paddingInner(1))}function au(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ap(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function _a(){}var Ea=.7,uo=1/Ea,wn="\\s*([+-]?\\d+)\\s*",$a="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Lk=/^#([0-9a-f]{3,8})$/,Bk=new RegExp(`^rgb\\(${wn},${wn},${wn}\\)$`),Fk=new RegExp(`^rgb\\(${Ut},${Ut},${Ut}\\)$`),Wk=new RegExp(`^rgba\\(${wn},${wn},${wn},${$a}\\)$`),Uk=new RegExp(`^rgba\\(${Ut},${Ut},${Ut},${$a}\\)$`),zk=new RegExp(`^hsl\\(${$a},${Ut},${Ut}\\)$`),Kk=new RegExp(`^hsla\\(${$a},${Ut},${Ut},${$a}\\)$`),Tp={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};au(_a,ja,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Pp,formatHex:Pp,formatHex8:qk,formatHsl:Vk,formatRgb:_p,toString:_p});function Pp(){return this.rgb().formatHex()}function qk(){return this.rgb().formatHex8()}function Vk(){return Mp(this).formatHsl()}function _p(){return this.rgb().formatRgb()}function ja(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Lk.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Ep(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=Bk.exec(e))?new ct(t[1],t[2],t[3],1):(t=Fk.exec(e))?new ct(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Wk.exec(e))?co(t[1],t[2],t[3],t[4]):(t=Uk.exec(e))?co(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zk.exec(e))?Cp(t[1],t[2]/100,t[3]/100,1):(t=Kk.exec(e))?Cp(t[1],t[2]/100,t[3]/100,t[4]):Tp.hasOwnProperty(e)?Ep(Tp[e]):e==="transparent"?new ct(NaN,NaN,NaN,0):null}function Ep(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 Gk(e){return e instanceof _a||(e=ja(e)),e?(e=e.rgb(),new ct(e.r,e.g,e.b,e.opacity)):new ct}function iu(e,t,r,n){return arguments.length===1?Gk(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}au(ct,iu,Ap(_a,{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?Ea:Math.pow(Ea,e),new ct(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ct(Nr(this.r),Nr(this.g),Nr(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:$p,formatHex:$p,formatHex8:Hk,formatRgb:jp,toString:jp}));function $p(){return`#${Dr(this.r)}${Dr(this.g)}${Dr(this.b)}`}function Hk(){return`#${Dr(this.r)}${Dr(this.g)}${Dr(this.b)}${Dr((isNaN(this.opacity)?1:this.opacity)*255)}`}function jp(){const e=fo(this.opacity);return`${e===1?"rgb(":"rgba("}${Nr(this.r)}, ${Nr(this.g)}, ${Nr(this.b)}${e===1?")":`, ${e})`}`}function fo(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Nr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Dr(e){return e=Nr(e),(e<16?"0":"")+e.toString(16)}function Cp(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 Mp(e){if(e instanceof Mt)return new Mt(e.h,e.s,e.l,e.opacity);if(e instanceof _a||(e=ja(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 Yk(e,t,r,n){return arguments.length===1?Mp(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}au(Mt,Yk,Ap(_a,{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?Ea:Math.pow(Ea,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(ou(e>=240?e-240:e+120,a,n),ou(e,a,n),ou(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new Mt(kp(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("}${kp(this.h)}, ${ho(this.s)*100}%, ${ho(this.l)*100}%${e===1?")":`, ${e})`}`}}));function kp(e){return e=(e||0)%360,e<0?e+360:e}function ho(e){return Math.max(0,Math.min(1,e||0))}function ou(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 su=e=>()=>e;function Xk(e,t){return function(r){return e+r*t}}function Jk(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 Zk(e){return(e=+e)==1?Np:function(t,r){return r-t?Jk(t,r,e):su(isNaN(t)?r:t)}}function Np(e,t){var r=t-e;return r?Xk(e,r):su(isNaN(e)?t:e)}const Dp=function e(t){var r=Zk(t);function n(a,i){var o=r((a=iu(a)).r,(i=iu(i)).r),s=r(a.g,i.g),l=r(a.b,i.b),u=Np(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 Qk(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 e2(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function t2(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]=On(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 r2(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 n2(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]=On(e[a],t[a]):n[a]=t[a];return function(i){for(a in r)n[a]=r[a](i);return n}}var lu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,uu=new RegExp(lu.source,"g");function a2(e){return function(){return e}}function i2(e){return function(t){return e(t)+""}}function o2(e,t){var r=lu.lastIndex=uu.lastIndex=0,n,a,i,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=lu.exec(e))&&(a=uu.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=uu.lastIndex;return r<t.length&&(i=t.slice(r),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?i2(l[0].x):a2(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 On(e,t){var r=typeof t,n;return t==null||r==="boolean"?su(t):(r==="number"?po:r==="string"?(n=ja(t))?(t=n,Dp):o2:t instanceof ja?Dp:t instanceof Date?r2:e2(t)?Qk:Array.isArray(t)?t2:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?n2:po)(e,t)}function cu(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function s2(e,t){t===void 0&&(t=e,e=On);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 l2(e){return function(){return e}}function vo(e){return+e}var Ip=[0,1];function ot(e){return e}function fu(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:l2(isNaN(t)?NaN:.5)}function u2(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function c2(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a<n?(n=fu(a,n),i=r(o,i)):(n=fu(n,a),i=r(i,o)),function(s){return i(n(s))}}function f2(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]=fu(e[o],e[o+1]),i[o]=r(t[o],t[o+1]);return function(s){var l=Sa(e,s,1,n)-1;return i[l](a[l](s))}}function Ca(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function yo(){var e=Ip,t=Ip,r=On,n,a,i,o=ot,s,l,u;function c(){var d=Math.min(e.length,t.length);return o!==ot&&(o=u2(e[0],e[d-1])),s=d>2?f2:c2,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=cu,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 du(){return yo()(ot,ot)}function d2(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 Sn(e){return e=mo(Math.abs(e)),e?e[1]:NaN}function h2(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 p2(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var v2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ma(e){if(!(t=v2.exec(e)))throw new Error("invalid format: "+e);var t;return new hu({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]})}Ma.prototype=hu.prototype;function hu(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+""}hu.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 y2(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 Rp;function m2(e,t){var r=mo(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(Rp=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 Lp(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 Bp={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:d2,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)=>Lp(e*100,t),r:Lp,s:m2,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Fp(e){return e}var Wp=Array.prototype.map,Up=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function g2(e){var t=e.grouping===void 0||e.thousands===void 0?Fp:h2(Wp.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?Fp:p2(Wp.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=Ma(f);var d=f.fill,h=f.align,m=f.sign,y=f.symbol,v=f.zero,b=f.width,w=f.comma,x=f.precision,T=f.trim,p=f.type;p==="n"?(w=!0,p="g"):Bp[p]||(x===void 0&&(x=12),T=!0,p="g"),(v||d==="0"&&h==="=")&&(v=!0,d="0",h="=");var g=y==="$"?r:y==="#"&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",S=y==="$"?n:/[%p]/.test(p)?o:"",P=Bp[p],_=/[defgprs%]/.test(p);x=x===void 0?6:/[gprs]/.test(p)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function R(M){var C=g,W=S,U,F,N;if(p==="c")W=P(M)+W,M="";else{M=+M;var D=M<0||1/M<0;if(M=isNaN(M)?l:P(Math.abs(M),x),T&&(M=y2(M)),D&&+M==0&&m!=="+"&&(D=!1),C=(D?m==="("?m:s:m==="-"||m==="("?"":m)+C,W=(p==="s"?Up[8+Rp/3]:"")+W+(D&&m==="("?")":""),_){for(U=-1,F=M.length;++U<F;)if(N=M.charCodeAt(U),48>N||N>57){W=(N===46?a+M.slice(U+1):M.slice(U))+W,M=M.slice(0,U);break}}}w&&!v&&(M=t(M,1/0));var L=C.length+M.length+W.length,$=L<b?new Array(b-L+1).join(d):"";switch(w&&v&&(M=t($+M,$.length?b-W.length:1/0),$=""),h){case"<":M=C+M+W+$;break;case"=":M=C+$+M+W;break;case"^":M=$.slice(0,L=$.length>>1)+C+M+W+$.slice(L);break;default:M=$+C+M+W;break}return i(M)}return R.toString=function(){return f+""},R}function c(f,d){var h=u((f=Ma(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(Sn(d)/3)))*3,y=Math.pow(10,-m),v=Up[8+m/3];return function(b){return h(y*b)+v}}return{format:u,formatPrefix:c}}var go,pu,zp;b2({thousands:",",grouping:[3],currency:["$",""]});function b2(e){return go=g2(e),pu=go.format,zp=go.formatPrefix,go}function x2(e){return Math.max(0,-Sn(Math.abs(e)))}function w2(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Sn(t)/3)))*3-Sn(Math.abs(e)))}function O2(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Sn(t)-Sn(e))+1}function Kp(e,t,r,n){var a=tu(e,t,r),i;switch(n=Ma(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=w2(a,o))&&(n.precision=i),zp(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=O2(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=x2(a))&&(n.precision=i-(n.type==="%")*2);break}}return pu(n)}function mr(e){var t=e.domain;return e.ticks=function(r){var n=t();return Ql(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return Kp(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=eu(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=du();return e.copy=function(){return Ca(e,bo())},At.apply(e,arguments),mr(e)}function qp(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 qp(e).unknown(t)},e=arguments.length?Array.from(e,vo):[0,1],mr(r)}function Vp(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 Gp(e){return Math.log(e)}function Hp(e){return Math.exp(e)}function S2(e){return-Math.log(-e)}function A2(e){return-Math.exp(-e)}function T2(e){return isFinite(e)?+("1e"+e):e<0?0:e}function P2(e){return e===10?T2:e===Math.E?Math.exp:t=>Math.pow(e,t)}function _2(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 Yp(e){return(t,r)=>-e(-t,r)}function vu(e){const t=e(Gp,Hp),r=t.domain;let n=10,a,i;function o(){return a=_2(n),i=P2(n),r()[0]<0?(a=Yp(a),i=Yp(i),e(S2,A2)):e(Gp,Hp),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),m,y;const v=s==null?10:+s;let b=[];if(!(n%1)&&h-d<v){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(m=1;m<n;++m)if(y=d<0?m/i(-d):m*i(d),!(y<u)){if(y>c)break;b.push(y)}}else for(;d<=h;++d)for(m=n-1;m>=1;--m)if(y=d>0?m/i(-d):m*i(d),!(y<u)){if(y>c)break;b.push(y)}b.length*2<v&&(b=Ql(u,c,v))}else b=Ql(d,h,Math.min(h-d,v)).map(i);return f?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Ma(l)).precision==null&&(l.trim=!0),l=pu(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(Vp(r(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function Xp(){const e=vu(yo()).domain([1,10]);return e.copy=()=>Ca(e,Xp()).base(e.base()),At.apply(e,arguments),e}function Jp(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Zp(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function yu(e){var t=1,r=e(Jp(t),Zp(t));return r.constant=function(n){return arguments.length?e(Jp(t=+n),Zp(t)):t},mr(r)}function Qp(){var e=yu(yo());return e.copy=function(){return Ca(e,Qp()).constant(e.constant())},At.apply(e,arguments)}function ev(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function E2(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function $2(e){return e<0?-e*e:e*e}function mu(e){var t=e(ot,ot),r=1;function n(){return r===1?e(ot,ot):r===.5?e(E2,$2):e(ev(r),ev(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},mr(t)}function gu(){var e=mu(yo());return e.copy=function(){return Ca(e,gu()).exponent(e.exponent())},At.apply(e,arguments),e}function j2(){return gu.apply(null,arguments).exponent(.5)}function tv(e){return Math.sign(e)*e*e}function C2(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function rv(){var e=du(),t=[0,1],r=!1,n;function a(i){var o=C2(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(tv(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(tv)),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 rv(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},At.apply(a,arguments),mr(a)}function nv(){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]=Ik(e,o/s);return i}function i(o){return o==null||isNaN(o=+o)?n:t[Sa(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(yr),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 nv().domain(e).range(t).unknown(n)},At.apply(i,arguments)}function av(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function o(l){return l!=null&&l<=l?a[Sa(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 av().domain([e,t]).range(a).unknown(i)},At.apply(mr(o),arguments)}function iv(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[Sa(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 iv().domain(e).range(t).unknown(r)},At.apply(a,arguments)}const bu=new Date,xu=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)=>(bu.setTime(+i),xu.setTime(+o),e(bu),e(xu),Math.floor(r(bu,xu))),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 rr=1e3,Tt=rr*60,nr=Tt*60,ar=nr*24,wu=ar*7,ov=ar*30,Ou=ar*365,Ir=He(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*rr)},(e,t)=>(t-e)/rr,e=>e.getUTCSeconds());Ir.range;const Su=He(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*rr)},(e,t)=>{e.setTime(+e+t*Tt)},(e,t)=>(t-e)/Tt,e=>e.getMinutes());Su.range;const Au=He(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Tt)},(e,t)=>(t-e)/Tt,e=>e.getUTCMinutes());Au.range;const Tu=He(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*rr-e.getMinutes()*Tt)},(e,t)=>{e.setTime(+e+t*nr)},(e,t)=>(t-e)/nr,e=>e.getHours());Tu.range;const Pu=He(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*nr)},(e,t)=>(t-e)/nr,e=>e.getUTCHours());Pu.range;const ka=He(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Tt)/ar,e=>e.getDate()-1);ka.range;const wo=He(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ar,e=>e.getUTCDate()-1);wo.range;const sv=He(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ar,e=>Math.floor(e/ar));sv.range;function Rr(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)/wu)}const Oo=Rr(0),So=Rr(1),M2=Rr(2),k2=Rr(3),An=Rr(4),N2=Rr(5),D2=Rr(6);Oo.range,So.range,M2.range,k2.range,An.range,N2.range,D2.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)/wu)}const Ao=Lr(0),To=Lr(1),I2=Lr(2),R2=Lr(3),Tn=Lr(4),L2=Lr(5),B2=Lr(6);Ao.range,To.range,I2.range,R2.range,Tn.range,L2.range,B2.range;const _u=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());_u.range;const Eu=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());Eu.range;const ir=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());ir.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)}),ir.range;const or=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());or.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)}),or.range;function lv(e,t,r,n,a,i){const o=[[Ir,1,rr],[Ir,5,5*rr],[Ir,15,15*rr],[Ir,30,30*rr],[i,1,Tt],[i,5,5*Tt],[i,15,15*Tt],[i,30,30*Tt],[a,1,nr],[a,3,3*nr],[a,6,6*nr],[a,12,12*nr],[n,1,ar],[n,2,2*ar],[r,1,wu],[t,1,ov],[t,3,3*ov],[e,1,Ou]];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),m=h?h.range(u,+c+1):[];return d?m.reverse():m}function l(u,c,f){const d=Math.abs(c-u)/f,h=Zl(([,,v])=>v).right(o,d);if(h===o.length)return e.every(tu(u/Ou,c/Ou,f));if(h===0)return xo.every(Math.max(tu(u,c,f),1));const[m,y]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return m.every(y)}return[s,l]}const[F2,W2]=lv(or,Eu,Ao,sv,Pu,Au),[U2,z2]=lv(ir,_u,Oo,ka,Tu,Su);function $u(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 ju(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 Na(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function K2(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=Da(a),c=Ia(a),f=Da(i),d=Ia(i),h=Da(o),m=Ia(o),y=Da(s),v=Ia(s),b=Da(l),w=Ia(l),x={a:D,A:L,b:$,B:E,c:null,d:pv,e:pv,f:hN,g:SN,G:TN,H:cN,I:fN,j:dN,L:vv,m:pN,M:vN,p:I,q:B,Q:wv,s:Ov,S:yN,u:mN,U:gN,V:bN,w:xN,W:wN,x:null,X:null,y:ON,Y:AN,Z:PN,"%":xv},T={a:z,A:G,b:Z,B:Q,c:null,d:mv,e:mv,f:jN,g:FN,G:UN,H:_N,I:EN,j:$N,L:gv,m:CN,M:MN,p:ee,q:te,Q:wv,s:Ov,S:kN,u:NN,U:DN,V:IN,w:RN,W:LN,x:null,X:null,y:BN,Y:WN,Z:zN,"%":xv},p={a:R,A:M,b:C,B:W,c:U,d:dv,e:dv,f:oN,g:fv,G:cv,H:hv,I:hv,j:rN,L:iN,m:tN,M:nN,p:_,q:eN,Q:lN,s:uN,S:aN,u:Y2,U:X2,V:J2,w:H2,W:Z2,x:F,X:N,y:fv,Y:cv,Z:Q2,"%":sN};x.x=g(r,x),x.X=g(n,x),x.c=g(t,x),T.x=g(r,T),T.X=g(n,T),T.c=g(t,T);function g(q,Y){return function(J){var k=[],ie=-1,V=0,re=q.length,oe,Ce,Te;for(J instanceof Date||(J=new Date(+J));++ie<re;)q.charCodeAt(ie)===37&&(k.push(q.slice(V,ie)),(Ce=uv[oe=q.charAt(++ie)])!=null?oe=q.charAt(++ie):Ce=oe==="e"?" ":"0",(Te=Y[oe])&&(oe=Te(J,Ce)),k.push(oe),V=ie+1);return k.push(q.slice(V,ie)),k.join("")}}function S(q,Y){return function(J){var k=Na(1900,void 0,1),ie=P(k,q,J+="",0),V,re;if(ie!=J.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(Y&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(V=ju(Na(k.y,0,1)),re=V.getUTCDay(),V=re>4||re===0?To.ceil(V):To(V),V=wo.offset(V,(k.V-1)*7),k.y=V.getUTCFullYear(),k.m=V.getUTCMonth(),k.d=V.getUTCDate()+(k.w+6)%7):(V=$u(Na(k.y,0,1)),re=V.getDay(),V=re>4||re===0?So.ceil(V):So(V),V=ka.offset(V,(k.V-1)*7),k.y=V.getFullYear(),k.m=V.getMonth(),k.d=V.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),re="Z"in k?ju(Na(k.y,0,1)).getUTCDay():$u(Na(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(re+5)%7:k.w+k.U*7-(re+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,ju(k)):$u(k)}}function P(q,Y,J,k){for(var ie=0,V=Y.length,re=J.length,oe,Ce;ie<V;){if(k>=re)return-1;if(oe=Y.charCodeAt(ie++),oe===37){if(oe=Y.charAt(ie++),Ce=p[oe in uv?Y.charAt(ie++):oe],!Ce||(k=Ce(q,J,k))<0)return-1}else if(oe!=J.charCodeAt(k++))return-1}return k}function _(q,Y,J){var k=u.exec(Y.slice(J));return k?(q.p=c.get(k[0].toLowerCase()),J+k[0].length):-1}function R(q,Y,J){var k=h.exec(Y.slice(J));return k?(q.w=m.get(k[0].toLowerCase()),J+k[0].length):-1}function M(q,Y,J){var k=f.exec(Y.slice(J));return k?(q.w=d.get(k[0].toLowerCase()),J+k[0].length):-1}function C(q,Y,J){var k=b.exec(Y.slice(J));return k?(q.m=w.get(k[0].toLowerCase()),J+k[0].length):-1}function W(q,Y,J){var k=y.exec(Y.slice(J));return k?(q.m=v.get(k[0].toLowerCase()),J+k[0].length):-1}function U(q,Y,J){return P(q,t,Y,J)}function F(q,Y,J){return P(q,r,Y,J)}function N(q,Y,J){return P(q,n,Y,J)}function D(q){return o[q.getDay()]}function L(q){return i[q.getDay()]}function $(q){return l[q.getMonth()]}function E(q){return s[q.getMonth()]}function I(q){return a[+(q.getHours()>=12)]}function B(q){return 1+~~(q.getMonth()/3)}function z(q){return o[q.getUTCDay()]}function G(q){return i[q.getUTCDay()]}function Z(q){return l[q.getUTCMonth()]}function Q(q){return s[q.getUTCMonth()]}function ee(q){return a[+(q.getUTCHours()>=12)]}function te(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var Y=g(q+="",x);return Y.toString=function(){return q},Y},parse:function(q){var Y=S(q+="",!1);return Y.toString=function(){return q},Y},utcFormat:function(q){var Y=g(q+="",T);return Y.toString=function(){return q},Y},utcParse:function(q){var Y=S(q+="",!0);return Y.toString=function(){return q},Y}}}var uv={"-":"",_:" ",0:"0"},Ze=/^\s*\d+/,q2=/^%/,V2=/[\\^$*+?|[\]().{}]/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 G2(e){return e.replace(V2,"\\$&")}function Da(e){return new RegExp("^(?:"+e.map(G2).join("|")+")","i")}function Ia(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function H2(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Y2(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function X2(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function J2(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Z2(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function cv(e,t,r){var n=Ze.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function fv(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 Q2(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 eN(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 tN(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 dv(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function rN(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 hv(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function nN(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function aN(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function iN(e,t,r){var n=Ze.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function oN(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 sN(e,t,r){var n=q2.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function lN(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function uN(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function pv(e,t){return ge(e.getDate(),t,2)}function cN(e,t){return ge(e.getHours(),t,2)}function fN(e,t){return ge(e.getHours()%12||12,t,2)}function dN(e,t){return ge(1+ka.count(ir(e),e),t,3)}function vv(e,t){return ge(e.getMilliseconds(),t,3)}function hN(e,t){return vv(e,t)+"000"}function pN(e,t){return ge(e.getMonth()+1,t,2)}function vN(e,t){return ge(e.getMinutes(),t,2)}function yN(e,t){return ge(e.getSeconds(),t,2)}function mN(e){var t=e.getDay();return t===0?7:t}function gN(e,t){return ge(Oo.count(ir(e)-1,e),t,2)}function yv(e){var t=e.getDay();return t>=4||t===0?An(e):An.ceil(e)}function bN(e,t){return e=yv(e),ge(An.count(ir(e),e)+(ir(e).getDay()===4),t,2)}function xN(e){return e.getDay()}function wN(e,t){return ge(So.count(ir(e)-1,e),t,2)}function ON(e,t){return ge(e.getFullYear()%100,t,2)}function SN(e,t){return e=yv(e),ge(e.getFullYear()%100,t,2)}function AN(e,t){return ge(e.getFullYear()%1e4,t,4)}function TN(e,t){var r=e.getDay();return e=r>=4||r===0?An(e):An.ceil(e),ge(e.getFullYear()%1e4,t,4)}function PN(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ge(t/60|0,"0",2)+ge(t%60,"0",2)}function mv(e,t){return ge(e.getUTCDate(),t,2)}function _N(e,t){return ge(e.getUTCHours(),t,2)}function EN(e,t){return ge(e.getUTCHours()%12||12,t,2)}function $N(e,t){return ge(1+wo.count(or(e),e),t,3)}function gv(e,t){return ge(e.getUTCMilliseconds(),t,3)}function jN(e,t){return gv(e,t)+"000"}function CN(e,t){return ge(e.getUTCMonth()+1,t,2)}function MN(e,t){return ge(e.getUTCMinutes(),t,2)}function kN(e,t){return ge(e.getUTCSeconds(),t,2)}function NN(e){var t=e.getUTCDay();return t===0?7:t}function DN(e,t){return ge(Ao.count(or(e)-1,e),t,2)}function bv(e){var t=e.getUTCDay();return t>=4||t===0?Tn(e):Tn.ceil(e)}function IN(e,t){return e=bv(e),ge(Tn.count(or(e),e)+(or(e).getUTCDay()===4),t,2)}function RN(e){return e.getUTCDay()}function LN(e,t){return ge(To.count(or(e)-1,e),t,2)}function BN(e,t){return ge(e.getUTCFullYear()%100,t,2)}function FN(e,t){return e=bv(e),ge(e.getUTCFullYear()%100,t,2)}function WN(e,t){return ge(e.getUTCFullYear()%1e4,t,4)}function UN(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Tn(e):Tn.ceil(e),ge(e.getUTCFullYear()%1e4,t,4)}function zN(){return"+0000"}function xv(){return"%"}function wv(e){return+e}function Ov(e){return Math.floor(+e/1e3)}var Pn,Sv,Av;KN({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 KN(e){return Pn=K2(e),Sv=Pn.format,Pn.parse,Av=Pn.utcFormat,Pn.utcParse,Pn}function qN(e){return new Date(e)}function VN(e){return e instanceof Date?+e:+new Date(+e)}function Cu(e,t,r,n,a,i,o,s,l,u){var c=du(),f=c.invert,d=c.domain,h=u(".%L"),m=u(":%S"),y=u("%I:%M"),v=u("%I %p"),b=u("%a %d"),w=u("%b %d"),x=u("%B"),T=u("%Y");function p(g){return(l(g)<g?h:s(g)<g?m:o(g)<g?y:i(g)<g?v:n(g)<g?a(g)<g?b:w:r(g)<g?x:T)(g)}return c.invert=function(g){return new Date(f(g))},c.domain=function(g){return arguments.length?d(Array.from(g,VN)):d().map(qN)},c.ticks=function(g){var S=d();return e(S[0],S[S.length-1],g??10)},c.tickFormat=function(g,S){return S==null?p:u(S)},c.nice=function(g){var S=d();return(!g||typeof g.range!="function")&&(g=t(S[0],S[S.length-1],g??10)),g?d(Vp(S,g)):c},c.copy=function(){return Ca(c,Cu(e,t,r,n,a,i,o,s,l,u))},c}function GN(){return At.apply(Cu(U2,z2,ir,_u,Oo,ka,Tu,Su,Ir,Sv).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function HN(){return At.apply(Cu(F2,W2,or,Eu,Ao,wo,Pu,Au,Ir,Av).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,m;return arguments.length?([h,m]=d,o=f(h,m),u):[o(0),o(1)]}}return u.range=c(On),u.rangeRound=c(cu),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 gr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Tv(){var e=mr(Po()(ot));return e.copy=function(){return gr(e,Tv())},tr.apply(e,arguments)}function Pv(){var e=vu(Po()).domain([1,10]);return e.copy=function(){return gr(e,Pv()).base(e.base())},tr.apply(e,arguments)}function _v(){var e=yu(Po());return e.copy=function(){return gr(e,_v()).constant(e.constant())},tr.apply(e,arguments)}function Mu(){var e=mu(Po());return e.copy=function(){return gr(e,Mu()).exponent(e.exponent())},tr.apply(e,arguments)}function YN(){return Mu.apply(null,arguments).exponent(.5)}function Ev(){var e=[],t=ot;function r(n){if(n!=null&&!isNaN(n=+n))return t((Sa(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(yr),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)=>Dk(e,i/n))},r.copy=function(){return Ev(t).domain(e)},tr.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(y){return isNaN(y=+y)?d:(y=.5+((y=+c(y))-i)*(n*y<n*i?s:l),u(f?Math.max(0,Math.min(1,y)):y))}h.domain=function(y){return arguments.length?([e,t,r]=y,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(y){return arguments.length?(f=!!y,h):f},h.interpolator=function(y){return arguments.length?(u=y,h):u};function m(y){return function(v){var b,w,x;return arguments.length?([b,w,x]=v,u=s2(y,[b,w,x]),h):[u(0),u(.5),u(1)]}}return h.range=m(On),h.rangeRound=m(cu),h.unknown=function(y){return arguments.length?(d=y,h):d},function(y){return c=y,a=y(e),i=y(t),o=y(r),s=a===i?0:.5/(i-a),l=i===o?0:.5/(o-i),n=i<a?-1:1,h}}function $v(){var e=mr(_o()(ot));return e.copy=function(){return gr(e,$v())},tr.apply(e,arguments)}function jv(){var e=vu(_o()).domain([.1,1,10]);return e.copy=function(){return gr(e,jv()).base(e.base())},tr.apply(e,arguments)}function Cv(){var e=yu(_o());return e.copy=function(){return gr(e,Cv()).constant(e.constant())},tr.apply(e,arguments)}function ku(){var e=mu(_o());return e.copy=function(){return gr(e,ku()).exponent(e.exponent())},tr.apply(e,arguments)}function XN(){return ku.apply(null,arguments).exponent(.5)}const Mv=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ta,scaleDiverging:$v,scaleDivergingLog:jv,scaleDivergingPow:ku,scaleDivergingSqrt:XN,scaleDivergingSymlog:Cv,scaleIdentity:qp,scaleImplicit:ru,scaleLinear:bo,scaleLog:Xp,scaleOrdinal:nu,scalePoint:Pa,scalePow:gu,scaleQuantile:nv,scaleQuantize:av,scaleRadial:rv,scaleSequential:Tv,scaleSequentialLog:Pv,scaleSequentialPow:Mu,scaleSequentialQuantile:Ev,scaleSequentialSqrt:YN,scaleSequentialSymlog:_v,scaleSqrt:j2,scaleSymlog:Qp,scaleThreshold:iv,scaleTime:GN,scaleUtc:HN,tickFormat:Kp},Symbol.toStringTag,{value:"Module"}));var JN=rn;function ZN(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&&!JN(o):r(o,s)))var s=o,l=i}return l}var kv=ZN;function QN(e,t){return e>t}var eD=QN,tD=kv,rD=eD,nD=pn;function aD(e){return e&&e.length?tD(e,nD,rD):void 0}var iD=aD;const br=ke(iD);function oD(e,t){return e<t}var sD=oD,lD=kv,uD=sD,cD=pn;function fD(e){return e&&e.length?lD(e,cD,uD):void 0}var dD=fD;const Eo=ke(dD);var hD=Xs,pD=pr,vD=$h,yD=lt;function mD(e,t){var r=yD(e)?hD:vD;return r(e,pD(t))}var gD=mD,bD=_h,xD=gD;function wD(e,t){return bD(xD(e,t),1)}var OD=wD;const SD=ke(OD);var AD=Dl;function TD(e,t){return AD(e,t)}var PD=TD;const Br=ke(PD);var _n=1e9,_D={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Iu,Be=!0,Pt="[DecimalError] ",Fr=Pt+"Invalid argument: ",Nu=Pt+"Exponent out of range: ",En=Math.floor,Wr=Math.pow,ED=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,vt,Qe=1e7,Le=7,Nv=9007199254740991,$o=En(Nv/Le),ae={};ae.absoluteValue=ae.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},ae.comparedTo=ae.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},ae.decimalPlaces=ae.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},ae.dividedBy=ae.div=function(e){return sr(this,new this.constructor(e))},ae.dividedToIntegerBy=ae.idiv=function(e){var t=this,r=t.constructor;return je(sr(t,new r(e),0,1),r.precision)},ae.equals=ae.eq=function(e){return!this.cmp(e)},ae.exponent=function(){return Ke(this)},ae.greaterThan=ae.gt=function(e){return this.cmp(e)>0},ae.greaterThanOrEqualTo=ae.gte=function(e){return this.cmp(e)>=0},ae.isInteger=ae.isint=function(){return this.e>this.d.length-2},ae.isNegative=ae.isneg=function(){return this.s<0},ae.isPositive=ae.ispos=function(){return this.s>0},ae.isZero=function(){return this.s===0},ae.lessThan=ae.lt=function(e){return this.cmp(e)<0},ae.lessThanOrEqualTo=ae.lte=function(e){return this.cmp(e)<1},ae.logarithm=ae.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(vt))throw Error(Pt+"NaN");if(r.s<1)throw Error(Pt+(r.s?"NaN":"-Infinity"));return r.eq(vt)?new n(0):(Be=!1,t=sr(Ra(r,i),Ra(e,i),i),Be=!0,je(t,a))},ae.minus=ae.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Lv(t,e):Dv(t,(e.s=-e.s,e))},ae.modulo=ae.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=sr(r,e,0,1).times(e),Be=!0,r.minus(t)):je(new n(r),a)},ae.naturalExponential=ae.exp=function(){return Iv(this)},ae.naturalLogarithm=ae.ln=function(){return Ra(this)},ae.negated=ae.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},ae.plus=ae.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Dv(t,e):Lv(t,(e.s=-e.s,e))},ae.precision=ae.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Fr+e);if(t=Ke(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},ae.squareRoot=ae.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=Ke(s),Be=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=Kt(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=En((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(sr(s,i,o+2)).times(.5),Kt(i.d).slice(0,o)===(t=Kt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(je(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;o+=4}return Be=!0,je(n,r)},ae.times=ae.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?je(e,f.precision):e},ae.toDecimalPlaces=ae.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(zt(e,0,_n),t===void 0?t=n.rounding:zt(t,0,8),je(r,e+Ke(r)+1,t))},ae.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=Ur(n,!0):(zt(e,0,_n),t===void 0?t=a.rounding:zt(t,0,8),n=je(new a(n),e+1,t),r=Ur(n,!0,e+1)),r},ae.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?Ur(a):(zt(e,0,_n),t===void 0?t=i.rounding:zt(t,0,8),n=je(new i(a),e+Ke(a)+1,t),r=Ur(n.abs(),!1,e+Ke(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)},ae.toInteger=ae.toint=function(){var e=this,t=e.constructor;return je(new t(e),Ke(e)+1,t.rounding)},ae.toNumber=function(){return+this},ae.toPower=ae.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(vt);if(s=new l(s),!s.s){if(e.s<1)throw Error(Pt+"Infinity");return s}if(s.eq(vt))return s;if(n=l.precision,e.eq(vt))return je(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=s.s,o){if((r=c<0?-c:c)<=Nv){for(a=new l(vt),t=Math.ceil(n/Le+4),Be=!1;r%2&&(a=a.times(s),Bv(a.d,t)),r=En(r/2),r!==0;)s=s.times(s),Bv(s.d,t);return Be=!0,e.s<0?new l(vt).div(a):je(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(Ra(s,n+u)),Be=!0,a=Iv(a),a.s=i,a},ae.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=Ke(a),n=Ur(a,r<=i.toExpNeg||r>=i.toExpPos)):(zt(e,1,_n),t===void 0?t=i.rounding:zt(t,0,8),a=je(new i(a),e,t),r=Ke(a),n=Ur(a,e<=r||r<=i.toExpNeg,e)),n},ae.toSignificantDigits=ae.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(zt(e,1,_n),t===void 0?t=n.rounding:zt(t,0,8)),je(new n(r),e,t)},ae.toString=ae.valueOf=ae.val=ae.toJSON=ae[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ke(e),r=e.constructor;return Ur(e,t<=r.toExpNeg||t>=r.toExpPos)};function Dv(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?je(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?je(t,f):t}function zt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Fr+e)}function Kt(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+=xr(r)),i+=n;o=e[t],n=o+"",r=Le-n.length,r&&(i+=xr(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var sr=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,m,y,v,b,w,x,T,p,g,S,P,_=n.constructor,R=n.s==a.s?1:-1,M=n.d,C=a.d;if(!n.s)return new _(n);if(!a.s)throw Error(Pt+"Division by zero");for(l=n.e-a.e,S=C.length,p=M.length,h=new _(R),m=h.d=[],u=0;C[u]==(M[u]||0);)++u;if(C[u]>(M[u]||0)&&--l,i==null?w=i=_.precision:o?w=i+(Ke(n)-Ke(a))+1:w=i,w<0)return new _(0);if(w=w/Le+2|0,u=0,S==1)for(c=0,C=C[0],w++;(u<p||c)&&w--;u++)x=c*Qe+(M[u]||0),m[u]=x/C|0,c=x%C|0;else{for(c=Qe/(C[0]+1)|0,c>1&&(C=e(C,c),M=e(M,c),S=C.length,p=M.length),T=S,y=M.slice(0,S),v=y.length;v<S;)y[v++]=0;P=C.slice(),P.unshift(0),g=C[0],C[1]>=Qe/2&&++g;do c=0,s=t(C,y,S,v),s<0?(b=y[0],S!=v&&(b=b*Qe+(y[1]||0)),c=b/g|0,c>1?(c>=Qe&&(c=Qe-1),f=e(C,c),d=f.length,v=y.length,s=t(f,y,d,v),s==1&&(c--,r(f,S<d?P:C,d))):(c==0&&(s=c=1),f=C.slice()),d=f.length,d<v&&f.unshift(0),r(y,f,v),s==-1&&(v=y.length,s=t(C,y,S,v),s<1&&(c++,r(y,S<v?P:C,v))),v=y.length):s===0&&(c++,y=[0]),m[u++]=c,s&&y[0]?y[v++]=M[T]||0:(y=[M[T]],v=1);while((T++<p||y[0]!==void 0)&&w--)}return m[0]||m.shift(),h.e=l,je(h,o?i+Ke(h)+1:i)}}();function Iv(e,t){var r,n,a,i,o,s,l=0,u=0,c=e.constructor,f=c.precision;if(Ke(e)>16)throw Error(Nu+Ke(e));if(!e.s)return new c(vt);for(Be=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Wr(2,u))/Math.LN10*2+5|0,s+=n,r=a=i=new c(vt),c.precision=s;;){if(a=je(a.times(e),s),r=r.times(++l),o=i.plus(sr(a,r,s)),Kt(o.d).slice(0,s)===Kt(i.d).slice(0,s)){for(;u--;)i=je(i.times(i),s);return c.precision=f,t==null?(Be=!0,je(i,f)):i}i=o}}function Ke(e){for(var t=e.e*Le,r=e.d[0];r>=10;r/=10)t++;return t}function Du(e,t,r){if(t>e.LN10.sd())throw Be=!0,r&&(e.precision=r),Error(Pt+"LN10 precision limit exceeded");return je(new e(e.LN10),t)}function xr(e){for(var t="";e--;)t+="0";return t}function Ra(e,t){var r,n,a,i,o,s,l,u,c,f=1,d=10,h=e,m=h.d,y=h.constructor,v=y.precision;if(h.s<1)throw Error(Pt+(h.s?"NaN":"-Infinity"));if(h.eq(vt))return new y(0);if(t==null?(Be=!1,u=v):u=t,h.eq(10))return t==null&&(Be=!0),Du(y,u);if(u+=d,y.precision=u,r=Kt(m),n=r.charAt(0),i=Ke(h),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Kt(h.d),n=r.charAt(0),f++;i=Ke(h),n>1?(h=new y("0."+r),i++):h=new y(n+"."+r.slice(1))}else return l=Du(y,u+2,v).times(i+""),h=Ra(new y(n+"."+r.slice(1)),u-d).plus(l),y.precision=v,t==null?(Be=!0,je(h,v)):h;for(s=o=h=sr(h.minus(vt),h.plus(vt),u),c=je(h.times(h),u),a=3;;){if(o=je(o.times(c),u),l=s.plus(sr(o,new y(a),u)),Kt(l.d).slice(0,u)===Kt(s.d).slice(0,u))return s=s.times(2),i!==0&&(s=s.plus(Du(y,u+2,v).times(i+""))),s=sr(s,new y(f),u),y.precision=v,t==null?(Be=!0,je(s,v)):s;s=l,a+=2}}function Rv(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=En(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>$o||e.e<-$o))throw Error(Nu+r)}else e.s=0,e.e=0,e.d=[0];return e}function je(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=Wr(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/Wr(10,o-a):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(i=Ke(e),f.length=1,t=t-i-1,f[0]=Wr(10,(Le-t%Le)%Le),e.e=En(-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=Wr(10,Le-n),f[c]=a>0?(u/Wr(10,o-a)%Wr(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>$o||e.e<-$o))throw Error(Nu+Ke(e));return e}function Lv(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?je(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?je(t,h):t):new d(0)}function Ur(e,t,r){var n,a=Ke(e),i=Kt(e.d),o=i.length;return t?(r&&(n=r-o)>0?i=i.charAt(0)+"."+i.slice(1)+xr(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+xr(-a-1)+i,r&&(n=r-o)>0&&(i+=xr(n))):a>=o?(i+=xr(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+xr(n))):((n=a+1)<o&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-o)>0&&(a+1===o&&(i+="."),i+=xr(n))),e.s<0?"-"+i:i}function Bv(e,t){if(e.length>t)return e.length=t,!0}function Fv(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(Fr+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 Rv(o,i.toString())}else if(typeof i!="string")throw Error(Fr+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,ED.test(i))Rv(o,i);else throw Error(Fr+i)}if(a.prototype=ae,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=Fv,a.config=a.set=$D,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 $D(e){if(!e||typeof e!="object")throw Error(Pt+"Object expected");var t,r,n,a=["precision",1,_n,"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(En(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(Fr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Fr+r+": "+n);return this}var Iu=Fv(_D);vt=new Iu(1);const $e=Iu;function jD(e){return ND(e)||kD(e)||MD(e)||CD()}function CD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
133
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MD(e,t){if(e){if(typeof e=="string")return Ru(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 Ru(e,t)}}function kD(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ND(e){if(Array.isArray(e))return Ru(e)}function Ru(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 DD=function(t){return t},Wv={},Uv=function(t){return t===Wv},zv=function(t){return function r(){return arguments.length===0||arguments.length===1&&Uv(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},ID=function e(t,r){return t===1?r:zv(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!==Wv}).length;return o>=t?r.apply(void 0,a):e(t-o,zv(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 Uv(f)?l.shift():f});return r.apply(void 0,jD(c).concat(l))}))})},jo=function(t){return ID(t.length,t)},Lu=function(t,r){for(var n=[],a=t;a<r;++a)n[a-t]=a;return n},RD=jo(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),LD=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return DD;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))}},Bu=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Kv=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 BD(e){var t;return e===0?t=1:t=Math.floor(new $e(e).abs().log(10).toNumber())+1,t}function FD(e,t,r){for(var n=new $e(e),a=0,i=[];n.lt(t)&&a<1e5;)i.push(n.toNumber()),n=n.add(r),a++;return i}var WD=jo(function(e,t,r){var n=+e,a=+t;return n+r*(a-n)}),UD=jo(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),zD=jo(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:FD,getDigitCount:BD,interpolateNumber:WD,uninterpolateNumber:UD,uninterpolateTruncation:zD};function Fu(e){return VD(e)||qD(e)||qv(e)||KD()}function KD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
134
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qD(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function VD(e){if(Array.isArray(e))return Wu(e)}function La(e,t){return YD(e)||HD(e,t)||qv(e,t)||GD()}function GD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
135
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qv(e,t){if(e){if(typeof e=="string")return Wu(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 Wu(e,t)}}function Wu(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 HD(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 YD(e){if(Array.isArray(e))return e}function Vv(e){var t=La(e,2),r=t[0],n=t[1],a=r,i=n;return r>n&&(a=n,i=r),[a,i]}function Gv(e,t,r){if(e.lte(0))return new $e(0);var n=Co.getDigitCount(e.toNumber()),a=new $e(10).pow(n),i=e.div(a),o=n!==1?.05:.1,s=new $e(Math.ceil(i.div(o).toNumber())).add(r).mul(o),l=s.mul(a);return t?l:new $e(Math.ceil(l))}function XD(e,t,r){var n=1,a=new $e(e);if(!a.isint()&&r){var i=Math.abs(e);i<1?(n=new $e(10).pow(Co.getDigitCount(e)-1),a=new $e(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new $e(Math.floor(e)))}else e===0?a=new $e(Math.floor((t-1)/2)):r||(a=new $e(Math.floor(e)));var o=Math.floor((t-1)/2),s=LD(RD(function(l){return a.add(new $e(l-o).mul(n)).toNumber()}),Lu);return s(0,t)}function Hv(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 $e(0),tickMin:new $e(0),tickMax:new $e(0)};var i=Gv(new $e(t).sub(e).div(r-1),n,a),o;e<=0&&t>=0?o=new $e(0):(o=new $e(e).add(t).div(2),o=o.sub(new $e(o).mod(i)));var s=Math.ceil(o.sub(e).div(i).toNumber()),l=Math.ceil(new $e(t).sub(o).div(i).toNumber()),u=s+l+1;return u>r?Hv(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 $e(s).mul(i)),tickMax:o.add(new $e(l).mul(i))})}function JD(e){var t=La(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=Vv([r,n]),l=La(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(Fu(Lu(0,a-1).map(function(){return 1/0}))):[].concat(Fu(Lu(0,a-1).map(function(){return-1/0})),[c]);return r>n?Bu(f):f}if(u===c)return XD(u,a,i);var d=Hv(u,c,o,i),h=d.step,m=d.tickMin,y=d.tickMax,v=Co.rangeStep(m,y.add(new $e(.1).mul(h)),h);return r>n?Bu(v):v}function ZD(e,t){var r=La(e,2),n=r[0],a=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Vv([n,a]),s=La(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=Gv(new $e(u).sub(l).div(c-1),i,0),d=[].concat(Fu(Co.rangeStep(new $e(l),new $e(u).sub(new $e(.99).mul(f)),f)),[u]);return n>a?Bu(d):d}var QD=Kv(JD),eI=Kv(ZD),tI=process.env.NODE_ENV==="production",Uu="Invariant failed";function ft(e,t){if(tI)throw new Error(Uu);var r=typeof t=="function"?t():t,n=r?"".concat(Uu,": ").concat(r):Uu;throw new Error(n)}var rI=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 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 nI(e,t){return sI(e)||oI(e,t)||iI(e,t)||aI()}function aI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
136
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iI(e,t){if(e){if(typeof e=="string")return Yv(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 Yv(e,t)}}function Yv(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 oI(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 sI(e){if(Array.isArray(e))return e}function lI(e,t){if(e==null)return{};var r=uI(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 uI(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 cI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fI(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,Zv(n.key),n)}}function dI(e,t,r){return t&&fI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hI(e,t,r){return t=ko(t),pI(e,Xv()?Reflect.construct(t,r||[],ko(e).constructor):t.apply(e,r))}function pI(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 vI(e)}function vI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xv=function(){return!!e})()}function ko(e){return ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ko(e)}function yI(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&&zu(e,t)}function zu(e,t){return zu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},zu(e,t)}function Jv(e,t,r){return t=Zv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zv(e){var t=mI(e,"string");return $n(t)=="symbol"?t:t+""}function mI(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 jn=function(e){function t(){return cI(this,t),hI(this,t,arguments)}return yI(t,e),dI(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=lI(n,rI),h=de(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 m=l.map(function(y){var v=u(y,s),b=v.x,w=v.y,x=v.value,T=v.errorVal;if(!T)return null;var p=[],g,S;if(Array.isArray(T)){var P=nI(T,2);g=P[0],S=P[1]}else g=S=T;if(i==="vertical"){var _=c.scale,R=w+a,M=R+o,C=R-o,W=_(x-g),U=_(x+S);p.push({x1:U,y1:M,x2:U,y2:C}),p.push({x1:W,y1:R,x2:U,y2:R}),p.push({x1:W,y1:M,x2:W,y2:C})}else if(i==="horizontal"){var F=f.scale,N=b+a,D=N-o,L=N+o,$=F(x-g),E=F(x+S);p.push({x1:D,y1:E,x2:L,y2:E}),p.push({x1:N,y1:$,x2:N,y2:E}),p.push({x1:D,y1:$,x2:L,y2:$})}return O.createElement(be,Mo({className:"recharts-errorBar",key:"bar-".concat(p.map(function(I){return"".concat(I.x1,"-").concat(I.x2,"-").concat(I.y1,"-").concat(I.y2)}))},h),p.map(function(I){return O.createElement("line",Mo({},I,{key:"line-".concat(I.x1,"-").concat(I.x2,"-").concat(I.y1,"-").concat(I.y2)}))}))});return O.createElement(be,{className:"recharts-errorBars"},m)}}])}(O.Component);Jv(jn,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),Jv(jn,"displayName","ErrorBar");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 Qv(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 zr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qv(Object(r),!0).forEach(function(n){gI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gI(e,t,r){return t=bI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bI(e){var t=xI(e,"string");return Ba(t)=="symbol"?t:t+""}function xI(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 ey=function(t){var r=t.children,n=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,o=pt(r,yn);if(!o)return null;var s=yn.defaultProps,l=s!==void 0?zr(zr({},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,m=h.sectors||h.data||[];return c.concat(m.map(function(y){return{type:o.props.iconType||d.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):u=(n||[]).map(function(c){var f=c.item,d=f.type.defaultProps,h=d!==void 0?zr(zr({},d),f.props):{},m=h.dataKey,y=h.name,v=h.legendType,b=h.hide;return{inactive:b,dataKey:m,type:l.iconType||v||"square",color:qu(f),value:y||m,payload:h}}),zr(zr(zr({},l),yn.getWithHeight(o,a)),{},{payload:u,item:o})};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)}function ty(e){return AI(e)||SI(e)||OI(e)||wI()}function wI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
137
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OI(e,t){if(e){if(typeof e=="string")return Ku(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 Ku(e,t)}}function SI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AI(e){if(Array.isArray(e))return Ku(e)}function Ku(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 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 Fe(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){Cn(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 Cn(e,t,r){return t=TI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TI(e){var t=PI(e,"string");return Fa(t)=="symbol"?t:t+""}function PI(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 Ye(e,t,r){return fe(e)||fe(t)?r:Ge(t)?xt(e,t,r):he(t)?t(e):r}function Wa(e,t,r,n){var a=SD(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),br(i)]:[1/0,-1/0]}var o=n?a.filter(function(s){return!fe(s)}):a;return o.map(function(s){return Ge(s)||s instanceof Date?s:""})}var _I=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(jt(f-c)!==jt(d-f)){var m=[];if(jt(d-f)===jt(l[1]-l[0])){h=d;var y=f+l[1]-l[0];m[0]=Math.min(y,(y+c)/2),m[1]=Math.max(y,(y+c)/2)}else{h=c;var v=d+l[1]-l[0];m[0]=Math.min(f,(v+f)/2),m[1]=Math.max(f,(v+f)/2)}var b=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>b[0]&&t<=b[1]||t>=m[0]&&t<=m[1]){o=a[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=a[u].index;break}}}else for(var T=0;T<s;T++)if(T===0&&t<=(n[T].coordinate+n[T+1].coordinate)/2||T>0&&T<s-1&&t>(n[T].coordinate+n[T-1].coordinate)/2&&t<=(n[T].coordinate+n[T+1].coordinate)/2||T===s-1&&t>(n[T].coordinate+n[T-1].coordinate)/2){o=n[T].index;break}return o},qu=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},EI=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 m=c[f[d]],y=m.items,v=m.cateAxisId,b=y.filter(function(S){return Zt(S.type).indexOf("Bar")>=0});if(b&&b.length){var w=b[0].type.defaultProps,x=w!==void 0?Fe(Fe({},w),b[0].props):b[0].props,T=x.barSize,p=x[v];o[p]||(o[p]=[]);var g=fe(T)?r:T;o[p].push({item:b[0],stackList:b.slice(1),barSize:fe(g)?void 0:Cr(g,n,0)})}}return o},$I=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=Cr(r,a,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=a/l,m=o.reduce(function(T,p){return T+p.barSize||0},0);m+=(l-1)*u,m>=a&&(m-=(l-1)*u,u=0),m>=a&&h>0&&(d=!0,h*=.9,m=l*h);var y=(a-m)/2>>0,v={offset:y-u,size:0};c=o.reduce(function(T,p){var g={item:p.item,position:{offset:v.offset+v.size+u,size:d?h:p.barSize}},S=[].concat(ty(T),[g]);return v=S[S.length-1].position,p.stackList&&p.stackList.length&&p.stackList.forEach(function(P){S.push({item:P,position:v})}),S},f)}else{var b=Cr(n,a,0,!0);a-2*b-(l-1)*u<=0&&(u=0);var w=(a-2*b-(l-1)*u)/l;w>1&&(w>>=0);var x=s===+s?Math.min(w,s):w;c=o.reduce(function(T,p,g){var S=[].concat(ty(T),[{item:p.item,position:{offset:b+(w+u)*g+(w-x)/2,size:x}}]);return p.stackList&&p.stackList.length&&p.stackList.forEach(function(P){S.push({item:P,position:S[S.length-1].position})}),S},f)}return c},jI=function(t,r,n,a){var i=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=ey({children:i,legendWidth:l});if(u){var c=a||{},f=c.width,d=c.height,h=u.align,m=u.verticalAlign,y=u.layout;if((y==="vertical"||y==="horizontal"&&m==="middle")&&h!=="center"&&X(t[h]))return Fe(Fe({},t),{},Cn({},h,t[h]+(f||0)));if((y==="horizontal"||y==="vertical"&&h==="center")&&m!=="middle"&&X(t[m]))return Fe(Fe({},t),{},Cn({},m,t[m]+(d||0)))}return t},CI=function(t,r,n){return fe(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},ny=function(t,r,n,a,i){var o=r.props.children,s=ut(o,jn).filter(function(u){return CI(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(fe(f))return u;var d=Array.isArray(f)?[Eo(f),br(f)]:[f,f],h=l.reduce(function(m,y){var v=Ye(c,y,0),b=d[0]-Math.abs(Array.isArray(v)?v[0]:v),w=d[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(b,m[0]),Math.max(w,m[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},MI=function(t,r,n,a,i){var o=r.map(function(s){return ny(t,s,n,i,a)}).filter(function(s){return!fe(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},ay=function(t,r,n,a,i){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&ny(t,l,u,a)||Wa(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},[])},iy=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},oy=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},lr=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?jt(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!ln(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}})},Vu=new WeakMap,No=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 a=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},kI=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:Ta(),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:Pa(),realScaleType:"point"}:i==="category"?{scale:Ta(),realScaleType:"band"}:{scale:bo(),realScaleType:"linear"};if(Er(a)){var l="scale".concat(Di(a));return{scale:(Mv[l]||Pa)(),realScaleType:Mv[l]?l:"point"}}return he(a)?{scale:a}:{scale:Pa(),realScaleType:"point"}},sy=1e-4,NI=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])-sy,o=Math.max(a[0],a[1])+sy,s=t(r[0]),l=t(r[n-1]);(s<i||s>o||l<i||l>o)&&t.domain([r[0],r[n-1]])}},DI=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},II=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},RI=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=ln(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])}},LI=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=ln(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)}},BI={sign:RI,expand:eA,none:cn,silhouette:tA,wiggle:rA,positive:LI},FI=function(t,r,n){var a=r.map(function(s){return s.props.dataKey}),i=BI[n],o=QS().keys(a).value(function(s,l){return+Ye(s,l,0)}).order(bl).offset(i);return o(t)},WI=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,m=(h=d.type)!==null&&h!==void 0&&h.defaultProps?Fe(Fe({},d.type.defaultProps),d.props):d.props,y=m.stackId,v=m.hide;if(v)return f;var b=m[n],w=f[b]||{hasStack:!1,stackGroups:{}};if(Ge(y)){var x=w.stackGroups[y]||{numericAxisId:n,cateAxisId:a,items:[]};x.items.push(d),w.hasStack=!0,w.stackGroups[y]=x}else w.stackGroups[jr("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[d]};return Fe(Fe({},f),{},Cn({},b,w))},l),c={};return Object.keys(u).reduce(function(f,d){var h=u[d];if(h.hasStack){var m={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(y,v){var b=h.stackGroups[v];return Fe(Fe({},y),{},Cn({},v,{numericAxisId:n,cateAxisId:a,items:b.items,stackedData:FI(t,b.items,i)}))},m)}return Fe(Fe({},f),{},Cn({},d,h))},c)},UI=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=QD(u,i,s);return t.domain([Eo(c),br(c)]),{niceTicks:c}}if(i&&a==="number"){var f=t.domain(),d=eI(f,i,s);return{niceTicks:d}}return null};function Mn(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&&!fe(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,fe(o)?t.dataKey:o);return fe(l)?null:t.scale(l)}var ly=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 fe(l)?null:r.scale(l)-i/2+a},zI=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]},KI=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(Ge(i)){var o=r[i];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},qI=function(t){return t.reduce(function(r,n){return[Eo(n.concat([r[0]]).filter(X)),br(n.concat([r[1]]).filter(X))]},[1/0,-1/0])},uy=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=qI(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})},cy=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fy=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Gu=function(t,r,n){if(he(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(cy.test(t[0])){var i=+cy.exec(t[0])[1];a[0]=r[0]-i}else he(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(fy.test(t[1])){var o=+fy.exec(t[1])[1];a[1]=r[1]+o}else he(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=Fl(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},dy=function(t,r,n){return!t||!t.length||Br(t,xt(n,"type.defaultProps.domain"))?r:t},hy=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({},de(t,!1)),{},{dataKey:a,unit:o,formatter:s,name:i||a,color:qu(t),value:Ye(r,a),type:l,payload:r,chartType:u,hide:c})};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)}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=GI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GI(e){var t=HI(e,"string");return Ua(t)=="symbol"?t:t+""}function HI(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)}var Io=Math.PI/180,YI=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}},XI=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))},JI=function(t,r){var n=t.x,a=t.y,i=r.cx,o=r.cy,s=XI({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:YI(u),angleInRadian:u}},ZI=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}},QI=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},yy=function(t,r){var n=t.x,a=t.y,i=JI({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=ZI(r),f=c.startAngle,d=c.endAngle,h=s,m;if(f<=d){for(;h>d;)h-=360;for(;h<f;)h+=360;m=h>=f&&h<=d}else{for(;h>f;)h-=360;for(;h<d;)h+=360;m=h>=d&&h<=f}return m?vy(vy({},r),{},{radius:o,angle:QI(h,r)}):null};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)}var eR=["offset"];function tR(e){return iR(e)||aR(e)||nR(e)||rR()}function rR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
138
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nR(e,t){if(e){if(typeof e=="string")return Hu(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 Hu(e,t)}}function aR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iR(e){if(Array.isArray(e))return Hu(e)}function Hu(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 oR(e,t){if(e==null)return{};var r=sR(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 sR(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 my(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?my(Object(r),!0).forEach(function(n){lR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):my(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lR(e,t,r){return t=uR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uR(e){var t=cR(e,"string");return za(t)=="symbol"?t:t+""}function cR(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)}function Ka(){return Ka=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},Ka.apply(this,arguments)}var fR=function(t){var r=t.value,n=t.formatter,a=fe(t.children)?r:t.children;return he(n)?n(a):a},dR=function(t,r){var n=jt(r-t),a=Math.min(Math.abs(r-t),360);return n*a},hR=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,m=l.endAngle,y=l.clockWise,v=(f+d)/2,b=dR(h,m),w=b>=0?1:-1,x,T;a==="insideStart"?(x=h+w*o,T=y):a==="insideEnd"?(x=m-w*o,T=!y):a==="end"&&(x=m+w*o,T=y),T=b<=0?T:!T;var p=tt(u,c,v,x),g=tt(u,c,v,x+(T?1:-1)*359),S="M".concat(p.x,",").concat(p.y,`
139
- A`).concat(v,",").concat(v,",0,1,").concat(T?0:1,`,
140
- `).concat(g.x,",").concat(g.y),P=fe(t.id)?jr("recharts-radial-line-"):t.id;return O.createElement("text",Ka({},n,{dominantBaseline:"central",className:ve("recharts-radial-bar-label",s)}),O.createElement("defs",null,O.createElement("path",{id:P,d:S})),O.createElement("textPath",{xlinkHref:"#".concat(P)},r))},pR=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),m=h.x,y=h.y;return{x:m,y,textAnchor:m>=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,b=tt(o,s,v,d),w=b.x,x=b.y;return{x:w,y:x,textAnchor:"middle",verticalAnchor:"middle"}},vR=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",m=f>0?"start":"end",y=u>=0?1:-1,v=y*a,b=y>0?"end":"start",w=y>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 T={x:s+u/2,y:l+c+d,textAnchor:"middle",verticalAnchor:m};return Xe(Xe({},T),n?{height:Math.max(n.y+n.height-(l+c),0),width:u}:{})}if(i==="left"){var p={x:s-v,y:l+c/2,textAnchor:b,verticalAnchor:"middle"};return Xe(Xe({},p),n?{width:Math.max(p.x-n.x,0),height:c}:{})}if(i==="right"){var g={x:s+u+v,y:l+c/2,textAnchor:w,verticalAnchor:"middle"};return Xe(Xe({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:c}:{})}var S=n?{width:u,height:c}:{};return i==="insideLeft"?Xe({x:s+v,y:l+c/2,textAnchor:w,verticalAnchor:"middle"},S):i==="insideRight"?Xe({x:s+u-v,y:l+c/2,textAnchor:b,verticalAnchor:"middle"},S):i==="insideTop"?Xe({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:m},S):i==="insideBottom"?Xe({x:s+u/2,y:l+c-d,textAnchor:"middle",verticalAnchor:h},S):i==="insideTopLeft"?Xe({x:s+v,y:l+d,textAnchor:w,verticalAnchor:m},S):i==="insideTopRight"?Xe({x:s+u-v,y:l+d,textAnchor:b,verticalAnchor:m},S):i==="insideBottomLeft"?Xe({x:s+v,y:l+c-d,textAnchor:w,verticalAnchor:h},S):i==="insideBottomRight"?Xe({x:s+u-v,y:l+c-d,textAnchor:b,verticalAnchor:h},S):nn(i)&&(X(i.x)||$r(i.x))&&(X(i.y)||$r(i.y))?Xe({x:s+Cr(i.x,u),y:l+Cr(i.y,c),textAnchor:"end",verticalAnchor:"end"},S):Xe({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},S)},yR=function(t){return"cx"in t&&X(t.cx)};function nt(e){var t=e.offset,r=t===void 0?5:t,n=oR(e,eR),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||fe(s)&&fe(l)&&!O.isValidElement(u)&&!he(u))return null;if(O.isValidElement(u))return O.cloneElement(u,a);var h;if(he(u)){if(h=O.createElement(u,a),O.isValidElement(h))return h}else h=fR(a);var m=yR(i),y=de(a,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return hR(a,h,y);var v=m?pR(a):vR(a);return O.createElement(so,Ka({className:ve("recharts-label",f)},y,v,{breakAll:d}),h)}nt.displayName="Label";var gy=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,m=t.left,y=t.width,v=t.height,b=t.clockWise,w=t.labelViewBox;if(w)return w;if(X(y)&&X(v)){if(X(f)&&X(d))return{x:f,y:d,width:y,height:v};if(X(h)&&X(m))return{x:h,y:m,width:y,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:b}:t.viewBox?t.viewBox:{}},mR=function(t,r){return t?t===!0?O.createElement(nt,{key:"label-implicit",viewBox:r}):Ge(t)?O.createElement(nt,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===nt?O.cloneElement(t,{key:"label-implicit",viewBox:r}):O.createElement(nt,{key:"label-implicit",content:t,viewBox:r}):he(t)?O.createElement(nt,{key:"label-implicit",content:t,viewBox:r}):nn(t)?O.createElement(nt,Ka({viewBox:r},t,{key:"label-implicit"})):null:null},gR=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=gy(t),o=ut(a,nt).map(function(l,u){return O.cloneElement(l,{viewBox:r||i,key:"label-".concat(u)})});if(!n)return o;var s=mR(t.label,r||i);return[s].concat(tR(o))};nt.parseViewBox=gy,nt.renderCallByParent=gR;function bR(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var xR=bR;const wR=ke(xR);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 OR=["valueAccessor"],SR=["data","dataKey","clockWise","id","textBreakAll"];function AR(e){return ER(e)||_R(e)||PR(e)||TR()}function TR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
141
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PR(e,t){if(e){if(typeof e=="string")return Yu(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 Yu(e,t)}}function _R(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ER(e){if(Array.isArray(e))return Yu(e)}function Yu(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 Ro(){return Ro=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},Ro.apply(this,arguments)}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 xy(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){$R(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 $R(e,t,r){return t=jR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jR(e){var t=CR(e,"string");return qa(t)=="symbol"?t:t+""}function CR(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 wy(e,t){if(e==null)return{};var r=MR(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 MR(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 kR=function(t){return Array.isArray(t.value)?wR(t.value):t.value};function qt(e){var t=e.valueAccessor,r=t===void 0?kR:t,n=wy(e,OR),a=n.data,i=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=wy(n,SR);return!a||!a.length?null:O.createElement(be,{className:"recharts-label-list"},a.map(function(c,f){var d=fe(i)?r(c,f):Ye(c&&c.payload,i),h=fe(s)?{}:{id:"".concat(s,"-").concat(f)};return O.createElement(nt,Ro({},de(c,!0),u,h,{parentViewBox:c.parentViewBox,value:d,textBreakAll:l,viewBox:nt.parseViewBox(fe(o)?c:xy(xy({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}qt.displayName="LabelList";function NR(e,t){return e?e===!0?O.createElement(qt,{key:"labelList-implicit",data:t}):O.isValidElement(e)||he(e)?O.createElement(qt,{key:"labelList-implicit",data:t,content:e}):nn(e)?O.createElement(qt,Ro({data:t},e,{key:"labelList-implicit"})):null:null}function DR(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 O.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return a;var i=NR(e.label,t);return[i].concat(AR(a))}qt.renderCallByParent=DR;function Va(e){"@babel/helpers - typeof";return Va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Va(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 Oy(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 Sy(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){IR(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 IR(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=LR(e,"string");return Va(t)=="symbol"?t:t+""}function LR(e,t){if(Va(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Va(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var BR=function(t,r){var n=jt(r-t),a=Math.min(Math.abs(r-t),359.999);return n*a},Lo=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),m=tt(r,n,a,d),y=u?i-o*f:i,v=tt(r,n,c*Math.cos(f*Io),y);return{center:h,circleTangency:m,lineTangency:v,theta:f}},Ay=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.startAngle,s=t.endAngle,l=BR(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,`
142
- A `).concat(i,",").concat(i,`,0,
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,
143
68
  `).concat(+(Math.abs(l)>180),",").concat(+(o>u),`,
144
69
  `).concat(f.x,",").concat(f.y,`
145
- `);if(a>0){var h=tt(r,n,a,o),m=tt(r,n,a,u);d+="L ".concat(m.x,",").concat(m.y,`
146
- A `).concat(a,",").concat(a,`,0,
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,
147
72
  `).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`,
148
- `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},FR=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=jt(c-u),d=Lo({cx:r,cy:n,radius:i,angle:u,sign:f,cornerRadius:o,cornerIsExternal:l}),h=d.circleTangency,m=d.lineTangency,y=d.theta,v=Lo({cx:r,cy:n,radius:i,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:l}),b=v.circleTangency,w=v.lineTangency,x=v.theta,T=l?Math.abs(u-c):Math.abs(u-c)-y-x;if(T<0)return s?"M ".concat(m.x,",").concat(m.y,`
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,`
149
74
  a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
150
75
  a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
151
- `):Ay({cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:u,endAngle:c});var p="M ".concat(m.x,",").concat(m.y,`
152
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,`
153
- A`).concat(i,",").concat(i,",0,").concat(+(T>180),",").concat(+(f<0),",").concat(b.x,",").concat(b.y,`
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,`
154
79
  A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(w.x,",").concat(w.y,`
155
- `);if(a>0){var g=Lo({cx:r,cy:n,radius:a,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),S=g.circleTangency,P=g.lineTangency,_=g.theta,R=Lo({cx:r,cy:n,radius:a,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),M=R.circleTangency,C=R.lineTangency,W=R.theta,U=l?Math.abs(u-c):Math.abs(u-c)-_-W;if(U<0&&o===0)return"".concat(p,"L").concat(r,",").concat(n,"Z");p+="L".concat(C.x,",").concat(C.y,`
156
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(M.x,",").concat(M.y,`
157
- A`).concat(a,",").concat(a,",0,").concat(+(U>180),",").concat(+(f>0),",").concat(S.x,",").concat(S.y,`
158
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,"Z")}else p+="L".concat(r,",").concat(n,"Z");return p},WR={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Ty=function(t){var r=Sy(Sy({},WR),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=ve("recharts-sector",d),m=o-i,y=Cr(s,m,0,!0),v;return y>0&&Math.abs(c-f)<360?v=FR({cx:n,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(y,m/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:f}):v=Ay({cx:n,cy:a,innerRadius:i,outerRadius:o,startAngle:c,endAngle:f}),O.createElement("path",Xu({},de(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 Ju(){return Ju=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},Ju.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 _y(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){UR(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 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=KR(e,"string");return Ga(t)=="symbol"?t:t+""}function KR(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 Ey={curveBasisClosed:US,curveBasisOpen:zS,curveBasis:WS,curveBumpX:_S,curveBumpY:ES,curveLinearClosed:KS,curveLinear:Bi,curveMonotoneX:qS,curveMonotoneY:VS,curveNatural:GS,curveStep:HS,curveStepAfter:XS,curveStepBefore:YS},Bo=function(t){return t.x===+t.x&&t.y===+t.y},Ha=function(t){return t.x},Ya=function(t){return t.y},qR=function(t,r){if(he(t))return t;var n="curve".concat(Di(t));return(n==="curveMonotone"||n==="curveBump")&&r?Ey["".concat(n).concat(r==="vertical"?"Y":"X")]:Ey[n]||Bi},VR=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=qR(n,s),f=u?i.filter(function(y){return Bo(y)}):i,d;if(Array.isArray(o)){var h=u?o.filter(function(y){return Bo(y)}):o,m=f.map(function(y,v){return _y(_y({},y),{},{base:h[v]})});return s==="vertical"?d=Fi().y(Ya).x1(Ha).x0(function(y){return y.base.x}):d=Fi().x(Ha).y1(Ya).y0(function(y){return y.base.y}),d.defined(Bo).curve(c),d(m)}return s==="vertical"&&X(o)?d=Fi().y(Ya).x1(Ha).x0(o):X(o)?d=Fi().x(Ha).y1(Ya).y0(o):d=hd().x(Ha).y(Ya),d.defined(Bo).curve(c),d(f)},Kr=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?VR(t):a;return bt.createElement("path",Ju({},de(t,!1),Ni(t),{className:ve("recharts-curve",r),d:o,ref:i}))},Zu={exports:{}},Fo={exports:{}},Oe={};/** @license React v16.13.1
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
159
84
  * react-is.production.min.js
160
85
  *
161
86
  * Copyright (c) Facebook, Inc. and its affiliates.
162
87
  *
163
88
  * This source code is licensed under the MIT license found in the
164
89
  * LICENSE file in the root directory of this source tree.
165
- */var $y;function GR(){if($y)return Oe;$y=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,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case t:switch(p=p.type,p){case l:case u:case n:case i:case a:case f:return p;default:switch(p=p&&p.$$typeof,p){case s:case c:case m:case h:case o:return p;default:return g}}case r:return g}}}function T(p){return x(p)===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=m,Oe.Memo=h,Oe.Portal=r,Oe.Profiler=i,Oe.StrictMode=a,Oe.Suspense=f,Oe.isAsyncMode=function(p){return T(p)||x(p)===l},Oe.isConcurrentMode=T,Oe.isContextConsumer=function(p){return x(p)===s},Oe.isContextProvider=function(p){return x(p)===o},Oe.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},Oe.isForwardRef=function(p){return x(p)===c},Oe.isFragment=function(p){return x(p)===n},Oe.isLazy=function(p){return x(p)===m},Oe.isMemo=function(p){return x(p)===h},Oe.isPortal=function(p){return x(p)===r},Oe.isProfiler=function(p){return x(p)===i},Oe.isStrictMode=function(p){return x(p)===a},Oe.isSuspense=function(p){return x(p)===f},Oe.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===u||p===i||p===a||p===f||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===h||p.$$typeof===o||p.$$typeof===s||p.$$typeof===c||p.$$typeof===v||p.$$typeof===b||p.$$typeof===w||p.$$typeof===y)},Oe.typeOf=x,Oe}var Se={};/** @license React v16.13.1
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
166
91
  * react-is.development.js
167
92
  *
168
93
  * Copyright (c) Facebook, Inc. and its affiliates.
169
94
  *
170
95
  * This source code is licensed under the MIT license found in the
171
96
  * LICENSE file in the root directory of this source tree.
172
- */var jy;function HR(){return jy||(jy=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,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(k){return typeof k=="string"||typeof k=="function"||k===n||k===u||k===i||k===a||k===f||k===d||typeof k=="object"&&k!==null&&(k.$$typeof===m||k.$$typeof===h||k.$$typeof===o||k.$$typeof===s||k.$$typeof===c||k.$$typeof===v||k.$$typeof===b||k.$$typeof===w||k.$$typeof===y)}function T(k){if(typeof k=="object"&&k!==null){var ie=k.$$typeof;switch(ie){case t:var V=k.type;switch(V){case l:case u:case n:case i:case a:case f:return V;default:var re=V&&V.$$typeof;switch(re){case s:case c:case m:case h:case o:return re;default:return ie}}case r:return ie}}}var p=l,g=u,S=s,P=o,_=t,R=c,M=n,C=m,W=h,U=r,F=i,N=a,D=f,L=!1;function $(k){return L||(L=!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.")),E(k)||T(k)===l}function E(k){return T(k)===u}function I(k){return T(k)===s}function B(k){return T(k)===o}function z(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function G(k){return T(k)===c}function Z(k){return T(k)===n}function Q(k){return T(k)===m}function ee(k){return T(k)===h}function te(k){return T(k)===r}function q(k){return T(k)===i}function Y(k){return T(k)===a}function J(k){return T(k)===f}Se.AsyncMode=p,Se.ConcurrentMode=g,Se.ContextConsumer=S,Se.ContextProvider=P,Se.Element=_,Se.ForwardRef=R,Se.Fragment=M,Se.Lazy=C,Se.Memo=W,Se.Portal=U,Se.Profiler=F,Se.StrictMode=N,Se.Suspense=D,Se.isAsyncMode=$,Se.isConcurrentMode=E,Se.isContextConsumer=I,Se.isContextProvider=B,Se.isElement=z,Se.isForwardRef=G,Se.isFragment=Z,Se.isLazy=Q,Se.isMemo=ee,Se.isPortal=te,Se.isProfiler=q,Se.isStrictMode=Y,Se.isSuspense=J,Se.isValidElementType=x,Se.typeOf=T}()),Se}var Cy;function My(){return Cy||(Cy=1,process.env.NODE_ENV==="production"?Fo.exports=GR():Fo.exports=HR()),Fo.exports}/*
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}/*
173
98
  object-assign
174
99
  (c) Sindre Sorhus
175
100
  @license MIT
176
- */var Qu,ky;function YR(){if(ky)return Qu;ky=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 Qu=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},Qu}var ec,Ny;function tc(){if(Ny)return ec;Ny=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ec=e,ec}var rc,Dy;function Iy(){return Dy||(Dy=1,rc=Function.call.bind(Object.prototype.hasOwnProperty)),rc}var nc,Ry;function XR(){if(Ry)return nc;Ry=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=tc(),r={},n=Iy();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(m){f=m}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={})},nc=a,nc}var ac,Ly;function JR(){if(Ly)return ac;Ly=1;var e=My(),t=YR(),r=tc(),n=Iy(),a=XR(),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 ac=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(E){var I=E&&(u&&E[u]||E[c]);if(typeof I=="function")return I}var d="<<anonymous>>",h={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:w(),arrayOf:x,element:T(),elementType:p(),instanceOf:g,node:R(),objectOf:P,oneOf:S,oneOfType:_,shape:C,exact:W};function m(E,I){return E===I?E!==0||1/E===1/I:E!==E&&I!==I}function y(E,I){this.message=E,this.data=I&&typeof I=="object"?I:{},this.stack=""}y.prototype=Error.prototype;function v(E){if(process.env.NODE_ENV!=="production")var I={},B=0;function z(Z,Q,ee,te,q,Y,J){if(te=te||d,Y=Y||ee,J!==r){if(l){var k=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 k.name="Invariant Violation",k}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ie=te+":"+ee;!I[ie]&&B<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,B++)}}return Q[ee]==null?Z?Q[ee]===null?new y("The "+q+" `"+Y+"` is marked as required "+("in `"+te+"`, but its value is `null`.")):new y("The "+q+" `"+Y+"` is marked as required in "+("`"+te+"`, but its value is `undefined`.")):null:E(Q,ee,te,q,Y)}var G=z.bind(null,!1);return G.isRequired=z.bind(null,!0),G}function b(E){function I(B,z,G,Z,Q,ee){var te=B[z],q=N(te);if(q!==E){var Y=D(te);return new y("Invalid "+Z+" `"+Q+"` of type "+("`"+Y+"` supplied to `"+G+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return v(I)}function w(){return v(o)}function x(E){function I(B,z,G,Z,Q){if(typeof E!="function")return new y("Property `"+Q+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var ee=B[z];if(!Array.isArray(ee)){var te=N(ee);return new y("Invalid "+Z+" `"+Q+"` of type "+("`"+te+"` supplied to `"+G+"`, expected an array."))}for(var q=0;q<ee.length;q++){var Y=E(ee,q,G,Z,Q+"["+q+"]",r);if(Y instanceof Error)return Y}return null}return v(I)}function T(){function E(I,B,z,G,Z){var Q=I[B];if(!s(Q)){var ee=N(Q);return new y("Invalid "+G+" `"+Z+"` of type "+("`"+ee+"` supplied to `"+z+"`, expected a single ReactElement."))}return null}return v(E)}function p(){function E(I,B,z,G,Z){var Q=I[B];if(!e.isValidElementType(Q)){var ee=N(Q);return new y("Invalid "+G+" `"+Z+"` of type "+("`"+ee+"` supplied to `"+z+"`, expected a single ReactElement type."))}return null}return v(E)}function g(E){function I(B,z,G,Z,Q){if(!(B[z]instanceof E)){var ee=E.name||d,te=$(B[z]);return new y("Invalid "+Z+" `"+Q+"` of type "+("`"+te+"` supplied to `"+G+"`, expected ")+("instance of `"+ee+"`."))}return null}return v(I)}function S(E){if(!Array.isArray(E))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(B,z,G,Z,Q){for(var ee=B[z],te=0;te<E.length;te++)if(m(ee,E[te]))return null;var q=JSON.stringify(E,function(J,k){var ie=D(k);return ie==="symbol"?String(k):k});return new y("Invalid "+Z+" `"+Q+"` of value `"+String(ee)+"` "+("supplied to `"+G+"`, expected one of "+q+"."))}return v(I)}function P(E){function I(B,z,G,Z,Q){if(typeof E!="function")return new y("Property `"+Q+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var ee=B[z],te=N(ee);if(te!=="object")return new y("Invalid "+Z+" `"+Q+"` of type "+("`"+te+"` supplied to `"+G+"`, expected an object."));for(var q in ee)if(n(ee,q)){var Y=E(ee,q,G,Z,Q+"."+q,r);if(Y instanceof Error)return Y}return null}return v(I)}function _(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var I=0;I<E.length;I++){var B=E[I];if(typeof B!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(B)+" at index "+I+"."),o}function z(G,Z,Q,ee,te){for(var q=[],Y=0;Y<E.length;Y++){var J=E[Y],k=J(G,Z,Q,ee,te,r);if(k==null)return null;k.data&&n(k.data,"expectedType")&&q.push(k.data.expectedType)}var ie=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new y("Invalid "+ee+" `"+te+"` supplied to "+("`"+Q+"`"+ie+"."))}return v(z)}function R(){function E(I,B,z,G,Z){return U(I[B])?null:new y("Invalid "+G+" `"+Z+"` supplied to "+("`"+z+"`, expected a ReactNode."))}return v(E)}function M(E,I,B,z,G){return new y((E||"React class")+": "+I+" type `"+B+"."+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function C(E){function I(B,z,G,Z,Q){var ee=B[z],te=N(ee);if(te!=="object")return new y("Invalid "+Z+" `"+Q+"` of type `"+te+"` "+("supplied to `"+G+"`, expected `object`."));for(var q in E){var Y=E[q];if(typeof Y!="function")return M(G,Z,Q,q,D(Y));var J=Y(ee,q,G,Z,Q+"."+q,r);if(J)return J}return null}return v(I)}function W(E){function I(B,z,G,Z,Q){var ee=B[z],te=N(ee);if(te!=="object")return new y("Invalid "+Z+" `"+Q+"` of type `"+te+"` "+("supplied to `"+G+"`, expected `object`."));var q=t({},B[z],E);for(var Y in q){var J=E[Y];if(n(E,Y)&&typeof J!="function")return M(G,Z,Q,Y,D(J));if(!J)return new y("Invalid "+Z+" `"+Q+"` key `"+Y+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(B[z],null," ")+`
177
- Valid keys: `+JSON.stringify(Object.keys(E),null," "));var k=J(ee,Y,G,Z,Q+"."+Y,r);if(k)return k}return null}return v(I)}function U(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(U);if(E===null||s(E))return!0;var I=f(E);if(I){var B=I.call(E),z;if(I!==E.entries){for(;!(z=B.next()).done;)if(!U(z.value))return!1}else for(;!(z=B.next()).done;){var G=z.value;if(G&&!U(G[1]))return!1}}else return!1;return!0;default:return!1}}function F(E,I){return E==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function N(E){var I=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":F(I,E)?"symbol":I}function D(E){if(typeof E>"u"||E===null)return""+E;var I=N(E);if(I==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return I}function L(E){var I=D(E);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function $(E){return!E.constructor||!E.constructor.name?d:E.constructor.name}return h.checkPropTypes=a,h.resetWarningCache=a.resetWarningCache,h.PropTypes=h,h},ac}var ic,By;function ZR(){if(By)return ic;By=1;var e=tc();function t(){}function r(){}return r.resetWarningCache=t,ic=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},ic}if(process.env.NODE_ENV!=="production"){var QR=My(),eL=!0;Zu.exports=JR()(QR.isElement,eL)}else Zu.exports=ZR()();var tL=Zu.exports;const Ae=ke(tL);var rL=Object.getOwnPropertyNames,nL=Object.getOwnPropertySymbols,aL=Object.prototype.hasOwnProperty;function Fy(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 Wy(e){return rL(e).concat(nL(e))}var iL=Object.hasOwn||function(e,t){return aL.call(e,t)};function qr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var oL="__v",sL="__o",lL="_owner",Uy=Object.getOwnPropertyDescriptor,zy=Object.keys;function uL(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 cL(e,t){return qr(e.getTime(),t.getTime())}function fL(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function dL(e,t){return e===t}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.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 hL=qr;function pL(e,t,r){var n=zy(e),a=n.length;if(zy(t).length!==a)return!1;for(;a-- >0;)if(!Vy(e,t,r,n[a]))return!1;return!0}function Xa(e,t,r){var n=Wy(e),a=n.length;if(Wy(t).length!==a)return!1;for(var i,o,s;a-- >0;)if(i=n[a],!Vy(e,t,r,i)||(o=Uy(e,i),s=Uy(t,i),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function vL(e,t){return qr(e.valueOf(),t.valueOf())}function yL(e,t){return e.source===t.source&&e.flags===t.flags}function qy(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 mL(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 gL(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 Vy(e,t,r,n){return(n===lL||n===sL||n===oL)&&(e.$$typeof||t.$$typeof)?!0:iL(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var bL="[object Arguments]",xL="[object Boolean]",wL="[object Date]",OL="[object Error]",SL="[object Map]",AL="[object Number]",TL="[object Object]",PL="[object RegExp]",_L="[object Set]",EL="[object String]",$L="[object URL]",jL=Array.isArray,Gy=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Hy=Object.assign,CL=Object.prototype.toString.call.bind(Object.prototype.toString);function ML(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(m,y,v){if(m===y)return!0;if(m==null||y==null)return!1;var b=typeof m;if(b!==typeof y)return!1;if(b!=="object")return b==="number"?o(m,y,v):b==="function"?a(m,y,v):!1;var w=m.constructor;if(w!==y.constructor)return!1;if(w===Object)return s(m,y,v);if(jL(m))return t(m,y,v);if(Gy!=null&&Gy(m))return f(m,y,v);if(w===Date)return r(m,y,v);if(w===RegExp)return u(m,y,v);if(w===Map)return i(m,y,v);if(w===Set)return c(m,y,v);var x=CL(m);return x===wL?r(m,y,v):x===PL?u(m,y,v):x===SL?i(m,y,v):x===_L?c(m,y,v):x===TL?typeof m.then!="function"&&typeof y.then!="function"&&s(m,y,v):x===$L?d(m,y,v):x===OL?n(m,y,v):x===bL?s(m,y,v):x===xL||x===AL||x===EL?l(m,y,v):!1}}function kL(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,a={areArraysEqual:n?Xa:uL,areDatesEqual:cL,areErrorsEqual:fL,areFunctionsEqual:dL,areMapsEqual:n?Fy(Ky,Xa):Ky,areNumbersEqual:hL,areObjectsEqual:n?Xa:pL,arePrimitiveWrappersEqual:vL,areRegExpsEqual:yL,areSetsEqual:n?Fy(qy,Xa):qy,areTypedArraysEqual:n?Xa:mL,areUrlsEqual:gL};if(r&&(a=Hy({},a,r(a))),t){var i=Wo(a.areArraysEqual),o=Wo(a.areMapsEqual),s=Wo(a.areObjectsEqual),l=Wo(a.areSetsEqual);a=Hy({},a,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return a}function NL(e){return function(t,r,n,a,i,o,s){return e(t,r,s)}}function DL(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 IL=wr();wr({strict:!0}),wr({circular:!0}),wr({circular:!0,strict:!0}),wr({createInternalComparator:function(){return qr}}),wr({strict:!0,createInternalComparator:function(){return qr}}),wr({circular:!0,createInternalComparator:function(){return qr}}),wr({circular:!0,createInternalComparator:function(){return qr},strict:!0});function wr(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=kL(e),l=ML(s),u=n?n(l):NL(l);return DL({circular:r,comparator:l,createState:a,equals:u,strict:o})}function RL(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Yy(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):RL(a)};requestAnimationFrame(n)}function oc(e){"@babel/helpers - typeof";return oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oc(e)}function LL(e){return UL(e)||WL(e)||FL(e)||BL()}function BL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
178
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FL(e,t){if(e){if(typeof e=="string")return Xy(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 Xy(e,t)}}function Xy(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 WL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UL(e){if(Array.isArray(e))return e}function zL(){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=LL(o),l=s[0],u=s.slice(1);if(typeof l=="number"){Yy(a.bind(null,u),l);return}a(l),Yy(a.bind(null,u));return}oc(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 Ja(e){"@babel/helpers - typeof";return Ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ja(e)}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 Zy(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){Qy(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 Qy(e,t,r){return t=KL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KL(e){var t=qL(e,"string");return Ja(t)==="symbol"?t:String(t)}function qL(e,t){if(Ja(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ja(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var VL=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,a){return n.filter(function(i){return a.includes(i)})})},GL=function(t){return t},HL=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Za=function(t,r){return Object.keys(r).reduce(function(n,a){return Zy(Zy({},n),{},Qy({},a,t(a,r[a])))},{})},em=function(t,r,n){return t.map(function(a){return"".concat(HL(a)," ").concat(r,"ms ").concat(n)}).join(",")},YL=process.env.NODE_ENV!=="production",Uo=function(t,r,n,a,i,o,s,l){if(YL&&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 XL(e,t){return QL(e)||ZL(e,t)||tm(e,t)||JL()}function JL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
179
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZL(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 QL(e){if(Array.isArray(e))return e}function e3(e){return n3(e)||r3(e)||tm(e)||t3()}function t3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
180
- 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 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 r3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function n3(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}var zo=1e-4,rm=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},nm=function(t,r){return t.map(function(n,a){return n*Math.pow(r,a)}).reduce(function(n,a){return n+a})},am=function(t,r){return function(n){var a=rm(t,r);return nm(a,n)}},a3=function(t,r){return function(n){var a=rm(t,r),i=[].concat(e3(a.map(function(o,s){return o*s}).slice(1)),[0]);return nm(i,n)}},im=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=XL(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=am(a,o),d=am(i,s),h=a3(a,o),m=function(b){return b>1?1:b<0?0:b},y=function(b){for(var w=b>1?1:b,x=w,T=0;T<8;++T){var p=f(x)-w,g=h(x);if(Math.abs(p-w)<zo||g<zo)return d(x);x=m(x-p/g)}return d(x)};return y.isStepper=!1,y},i3=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,m=d*i,y=d+(h-m)*s/1e3,v=d*s/1e3+c;return Math.abs(v-f)<zo&&Math.abs(y)<zo?[f,0]:[v,y]};return l.isStepper=!0,l.dt=s,l},o3=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 im(a);case"spring":return i3();default:if(a.split("(")[0]==="cubic-bezier")return im(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 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)}function om(e){return u3(e)||l3(e)||lm(e)||s3()}function s3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
181
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function u3(e){if(Array.isArray(e))return uc(e)}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 rt(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){lc(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 lc(e,t,r){return t=c3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c3(e){var t=f3(e,"string");return Qa(t)==="symbol"?t:String(t)}function f3(e,t){if(Qa(e)!=="object"||e===null)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 d3(e,t){return v3(e)||p3(e,t)||lm(e,t)||h3()}function h3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
182
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lm(e,t){if(e){if(typeof e=="string")return uc(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 uc(e,t)}}function uc(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 p3(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 v3(e){if(Array.isArray(e))return e}var Ko=function(t,r,n){return t+(r-t)*n},cc=function(t){var r=t.from,n=t.to;return r!==n},y3=function e(t,r,n){var a=Za(function(i,o){if(cc(o)){var s=t(o.from,o.to,o.velocity),l=d3(s,2),u=l[0],c=l[1];return rt(rt({},o),{},{from:u,velocity:c})}return o},r);return n<1?Za(function(i,o){return cc(o)?rt(rt({},o),{},{velocity:Ko(o.velocity,a[i].velocity,n),from:Ko(o.from,a[i].from,n)}):o},r):e(t,a,n-1)};const m3=function(e,t,r,n,a){var i=VL(e,t),o=i.reduce(function(v,b){return rt(rt({},v),{},lc({},b,[e[b],t[b]]))},{}),s=i.reduce(function(v,b){return rt(rt({},v),{},lc({},b,{from:e[b],velocity:0,to:t[b]}))},{}),l=-1,u,c,f=function(){return null},d=function(){return Za(function(b,w){return w.from},s)},h=function(){return!Object.values(s).filter(cc).length},m=function(b){u||(u=b);var w=b-u,x=w/r.dt;s=y3(r,s,x),a(rt(rt(rt({},e),t),d())),u=b,h()||(l=requestAnimationFrame(f))},y=function(b){c||(c=b);var w=(b-c)/n,x=Za(function(p,g){return Ko.apply(void 0,om(g).concat([r(w)]))},o);if(a(rt(rt(rt({},e),t),x)),w<1)l=requestAnimationFrame(f);else{var T=Za(function(p,g){return Ko.apply(void 0,om(g).concat([r(1)]))},o);a(rt(rt(rt({},e),t),T))}};return f=r.isStepper?m:y,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}};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)}var g3=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function b3(e,t){if(e==null)return{};var r=x3(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 x3(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 fc(e){return A3(e)||S3(e)||O3(e)||w3()}function w3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
183
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O3(e,t){if(e){if(typeof e=="string")return dc(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 dc(e,t)}}function S3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function A3(e){if(Array.isArray(e))return dc(e)}function dc(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 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 kt(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){ei(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 ei(e,t,r){return t=cm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P3(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,cm(n.key),n)}}function _3(e,t,r){return t&&P3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cm(e){var t=E3(e,"string");return kn(t)==="symbol"?t:String(t)}function E3(e,t){if(kn(e)!=="object"||e===null)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 $3(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,a){return n.__proto__=a,n},hc(e,t)}function j3(e){var t=C3();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 pc(this,a)}}function pc(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 vc(e)}function vc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C3(){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){$3(r,e);var t=j3(r);function r(n,a){var i;T3(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(vc(i)),i.changeStyle=i.changeStyle.bind(vc(i)),!s||h<=0)return i.state={style:{}},typeof d=="function"&&(i.state={style:c}),pc(i);if(f&&f.length)i.state={style:f[0].style};else if(u){if(typeof d=="function")return i.state={style:u},pc(i);i.state={style:l?ei({},l,u):u}}else i.state={style:{}};return i}return _3(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?ei({},l,c):c};this.state&&d&&(l&&d[l]!==c||!l&&d!==c)&&this.setState(h);return}if(!(IL(a.to,c)&&a.canBegin&&a.isActive)){var m=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=m||u?f:a.to;if(this.state&&d){var v={style:l?ei({},l,y):y};(l&&d[l]!==y||!l&&d!==y)&&this.setState(v)}this.runAnimation(kt(kt({},this.props),{},{from:y,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=m3(o,s,o3(u),l,this.changeStyle),m=function(){i.stopJSAnimation=h()};this.manager.start([d,c,m,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(y,v,b){if(b===0)return y;var w=v.duration,x=v.easing,T=x===void 0?"ease":x,p=v.style,g=v.properties,S=v.onAnimationEnd,P=b>0?o[b-1]:v,_=g||Object.keys(p);if(typeof T=="function"||T==="spring")return[].concat(fc(y),[i.runJSAnimation.bind(i,{from:P.style,to:p,duration:w,easing:T}),w]);var R=em(_,w,T),M=kt(kt(kt({},P.style),p),{},{transition:R});return[].concat(fc(y),[M,w,S]).filter(GL)};return this.manager.start([l].concat(fc(o.reduce(h,[c,Math.max(d,s)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=zL());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,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(a);return}if(d.length>1){this.runStepAnimation(a);return}var y=s?ei({},s,l):l,v=em(Object.keys(y),o,u);m.start([c,i,kt(kt({},y),{},{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=b3(a,g3),u=O.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 m=h.props,y=m.style,v=y===void 0?{}:y,b=m.className,w=O.cloneElement(h,kt(kt({},l),{},{style:kt(kt({},v),c),className:b}));return w};return u===1?f(O.Children.only(i)):O.createElement("div",null,O.Children.map(i,function(d){return f(d)}))}}]),r}(O.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 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 Vo(){return Vo=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},Vo.apply(this,arguments)}function M3(e,t){return I3(e)||D3(e,t)||N3(e,t)||k3()}function k3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
184
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N3(e,t){if(e){if(typeof e=="string")return fm(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 fm(e,t)}}function fm(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 D3(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 I3(e){if(Array.isArray(e))return e}function dm(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 hm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dm(Object(r),!0).forEach(function(n){R3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function R3(e,t,r){return t=L3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L3(e){var t=B3(e,"string");return ti(t)=="symbol"?t:t+""}function B3(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)}var pm=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,`,
185
- `).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,`,
186
- `).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,`,
187
- `).concat(t,",").concat(r+a-s*f[3])),c+="Z"}else if(o>0&&i===+i&&i>0){var m=Math.min(o,i);c="M ".concat(t,",").concat(r+s*m,`
188
- A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+l*m,",").concat(r,`
189
- L `).concat(t+n-l*m,",").concat(r,`
190
- A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*m,`
191
- L `).concat(t+n,",").concat(r+a-s*m,`
192
- A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n-l*m,",").concat(r+a,`
193
- L `).concat(t+l*m,",").concat(r+a,`
194
- A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(r+a-s*m," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return c},F3=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},W3={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},yc=function(t){var r=hm(hm({},W3),t),n=O.useRef(),a=O.useState(-1),i=M3(a,2),o=i[0],s=i[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var T=n.current.getTotalLength();T&&s(T)}catch{}},[]);var l=r.x,u=r.y,c=r.width,f=r.height,d=r.radius,h=r.className,m=r.animationEasing,y=r.animationDuration,v=r.animationBegin,b=r.isAnimationActive,w=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var x=ve("recharts-rectangle",h);return w?O.createElement(Nt,{canBegin:o>0,from:{width:c,height:f,x:l,y:u},to:{width:c,height:f,x:l,y:u},duration:y,animationEasing:m,isActive:w},function(T){var p=T.width,g=T.height,S=T.x,P=T.y;return O.createElement(Nt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,isActive:b,easing:m},O.createElement("path",Vo({},de(r,!0),{className:x,d:pm(S,P,p,g,d),ref:n})))}):O.createElement("path",Vo({},de(r,!0),{className:x,d:pm(l,u,c,f,d)}))};function mc(){return mc=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},mc.apply(this,arguments)}var Go=function(t){var r=t.cx,n=t.cy,a=t.r,i=t.className,o=ve("recharts-dot",i);return r===+r&&n===+n&&a===+a?bt.createElement("circle",mc({},de(t,!1),Ni(t),{className:o,cx:r,cy:n,r:a})):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)}var U3=["x","y","top","left","width","height","className"];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 vm(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 z3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vm(Object(r),!0).forEach(function(n){K3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K3(e,t,r){return t=q3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q3(e){var t=V3(e,"string");return ri(t)=="symbol"?t:t+""}function V3(e,t){if(ri(e)!="object"||!e)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)}function G3(e,t){if(e==null)return{};var r=H3(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 H3(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 Y3=function(t,r,n,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(r,"h").concat(n)},X3=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,m=t.className,y=G3(t,U3),v=z3({x:n,y:i,top:s,left:u,width:f,height:h},y);return!X(n)||!X(i)||!X(f)||!X(h)||!X(s)||!X(u)?null:O.createElement("path",gc({},de(v,!0),{className:ve("recharts-cross",m),d:Y3(n,i,f,h,s,u)}))},J3=Jd,Z3=J3(Object.getPrototypeOf,Object),Q3=Z3,eB=Xt,tB=Q3,rB=Jt,nB="[object Object]",aB=Function.prototype,iB=Object.prototype,ym=aB.toString,oB=iB.hasOwnProperty,sB=ym.call(Object);function lB(e){if(!rB(e)||eB(e)!=nB)return!1;var t=tB(e);if(t===null)return!0;var r=oB.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ym.call(r)==sB}var uB=lB;const cB=ke(uB);var fB=Xt,dB=Jt,hB="[object Boolean]";function pB(e){return e===!0||e===!1||dB(e)&&fB(e)==hB}var vB=pB;const yB=ke(vB);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 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 mB(e,t){return wB(e)||xB(e,t)||bB(e,t)||gB()}function gB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
195
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bB(e,t){if(e){if(typeof e=="string")return mm(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 mm(e,t)}}function mm(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 xB(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 wB(e){if(Array.isArray(e))return e}function gm(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 bm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gm(Object(r),!0).forEach(function(n){OB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OB(e,t,r){return t=SB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SB(e){var t=AB(e,"string");return ni(t)=="symbol"?t:t+""}function AB(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 xm=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},TB={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},PB=function(t){var r=bm(bm({},TB),t),n=O.useRef(),a=O.useState(-1),i=mB(a,2),o=i[0],s=i[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,h=r.className,m=r.animationEasing,y=r.animationDuration,v=r.animationBegin,b=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||d!==+d||c===0&&f===0||d===0)return null;var w=ve("recharts-trapezoid",h);return b?O.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:y,animationEasing:m,isActive:b},function(x){var T=x.upperWidth,p=x.lowerWidth,g=x.height,S=x.x,P=x.y;return O.createElement(Nt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,easing:m},O.createElement("path",Ho({},de(r,!0),{className:w,d:xm(S,P,T,p,g),ref:n})))}):O.createElement("g",null,O.createElement("path",Ho({},de(r,!0),{className:w,d:xm(l,u,c,f,d)})))},_B=["option","shapeType","propTransformer","activeClassName","isActive"];function ai(e){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ai(e)}function EB(e,t){if(e==null)return{};var r=$B(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 $B(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 wm(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?wm(Object(r),!0).forEach(function(n){jB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jB(e,t,r){return t=CB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CB(e){var t=MB(e,"string");return ai(t)=="symbol"?t:t+""}function MB(e,t){if(ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kB(e,t){return Yo(Yo({},t),e)}function NB(e,t){return e==="symbols"}function Om(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return O.createElement(yc,r);case"trapezoid":return O.createElement(PB,r);case"sector":return O.createElement(Ty,r);case"symbols":if(NB(t))return O.createElement(qi,r);break;default:return null}}function DB(e){return O.isValidElement(e)?e.props:e}function bc(e){var t=e.option,r=e.shapeType,n=e.propTransformer,a=n===void 0?kB:n,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,s=e.isActive,l=EB(e,_B),u;if(O.isValidElement(t))u=O.cloneElement(t,Yo(Yo({},l),DB(t)));else if(he(t))u=t(l);else if(cB(t)&&!yB(t)){var c=a(t,l);u=O.createElement(Om,{shapeType:r,elementProps:c})}else{var f=l;u=O.createElement(Om,{shapeType:r,elementProps:f})}return s?O.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 ii(e,t){return t!=null&&"points"in e.props}function IB(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 RB(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function LB(e,t){var r=e.x===t.x,n=e.y===t.y,a=e.z===t.z;return r&&n&&a}function BB(e,t){var r;return Xo(e,t)?r=IB:Jo(e,t)?r=RB:ii(e,t)&&(r=LB),r}function FB(e,t){var r;return Xo(e,t)?r="trapezoids":Jo(e,t)?r="sectors":ii(e,t)&&(r="points"),r}function WB(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 ii(e,t)?t.payload:{}}function UB(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,a=FB(r,t),i=WB(r,t),o=n.filter(function(l,u){var c=Br(i,l),f=r.props[a].filter(function(m){var y=BB(r,t);return y(m,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 zB=Math.ceil,KB=Math.max;function qB(e,t,r,n){for(var a=-1,i=KB(zB((t-e)/(r||1)),0),o=Array(i);i--;)o[n?i:++a]=e,e+=r;return o}var VB=qB,GB=Yh,Sm=1/0,HB=17976931348623157e292;function YB(e){if(!e)return e===0?e:0;if(e=GB(e),e===Sm||e===-Sm){var t=e<0?-1:1;return t*HB}return e===e?e:0}var Am=YB,XB=VB,JB=eo,xc=Am;function ZB(e){return function(t,r,n){return n&&typeof n!="number"&&JB(t,r,n)&&(r=n=void 0),t=xc(t),r===void 0?(r=t,t=0):r=xc(r),n=n===void 0?t<r?1:-1:xc(n),XB(t,r,n,e)}}var QB=ZB,e5=QB,t5=e5(),r5=t5;const Zo=ke(r5);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 Tm(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?Tm(Object(r),!0).forEach(function(n){_m(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _m(e,t,r){return t=n5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n5(e){var t=a5(e,"string");return oi(t)=="symbol"?t:t+""}function a5(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)}var i5=["Webkit","Moz","O","ms"],o5=function(t,r){var n=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=i5.reduce(function(i,o){return Pm(Pm({},i),{},_m({},o+n,r))},{});return a[t]=r,a};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 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 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 wc(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){yt(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 s5(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,Cm(n.key),n)}}function l5(e,t,r){return t&&$m(e.prototype,t),r&&$m(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u5(e,t,r){return t=es(t),c5(e,jm()?Reflect.construct(t,r||[],es(e).constructor):t.apply(e,r))}function c5(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 f5(e)}function f5(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 es(e){return es=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},es(e)}function d5(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,a){return n.__proto__=a,n},Oc(e,t)}function yt(e,t,r){return t=Cm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cm(e){var t=h5(e,"string");return Nn(t)=="symbol"?t:t+""}function h5(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)}var p5=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=Pa().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}},Mm=function(t){return t.changedTouches&&!!t.changedTouches.length},Dn=function(e){function t(r){var n;return s5(this,t),n=u5(this,t,[r]),yt(n,"handleDrag",function(a){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(a):n.state.isSlideMoving&&n.handleSlideDrag(a)}),yt(n,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&n.handleDrag(a.changedTouches[0])}),yt(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()}),yt(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),yt(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),yt(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),yt(n,"handleSlideDragStart",function(a){var i=Mm(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 d5(t,e),l5(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),m=t.getIndexInRange(o,d);return{startIndex:h-h%l,endIndex:m===c?c:m-m%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 he(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,m=l.onChange,y=n.pageX-i;y>0?y=Math.min(y,u+c-f-s,u+c-f-o):y<0&&(y=Math.max(y,u-o,u-s));var v=this.getIndex({startX:o+y,endX:s+y});(v.startIndex!==d||v.endIndex!==h)&&m&&m(v),this.setState({startX:o+y,endX:s+y,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,a){var i=Mm(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,m=c.onChange,y=c.gap,v=c.data,b={startX:this.state.startX,endX:this.state.endX},w=n.pageX-i;w>0?w=Math.min(w,f+d-h-u):w<0&&(w=Math.max(w,f-u)),b[o]=u+w;var x=this.getIndex(b),T=x.startIndex,p=x.endIndex,g=function(){var P=v.length-1;return o==="startX"&&(s>l?T%y===0:p%y===0)||s<l&&p===P||o==="endX"&&(s>l?p%y===0:T%y===0)||s>l&&p===P};this.setState(yt(yt({},o,u+w),"brushMoveStartX",n.pageX),function(){m&&g()&&m(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(yt({},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 O.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=O.Children.only(u);return f?O.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,m=l.data,y=l.startIndex,v=l.endIndex,b=Math.max(n,this.props.x),w=wc(wc({},de(this.props,!1)),{},{x:b,y:u,width:c,height:f}),x=h||"Min value: ".concat((i=m[y])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=m[v])===null||o===void 0?void 0:o.name);return O.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(p){["ArrowLeft","ArrowRight"].includes(p.key)&&(p.preventDefault(),p.stopPropagation(),s.handleTravellerMoveKeyboard(p.key==="ArrowRight"?1:-1,a))},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,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 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,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,m={pointerEvents:"none",fill:u};return O.createElement(be,{className:"recharts-brush-texts"},O.createElement(so,Qo({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:o+s/2},m),this.getTextOfTick(a)),O.createElement(so,Qo({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+l+h,y:o+s/2},m),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,m=d.endX,y=d.isTextActive,v=d.isSlideMoving,b=d.isTravellerMoving,w=d.isTravellerFocused;if(!a||!a.length||!X(s)||!X(l)||!X(u)||!X(c)||u<=0||c<=0)return null;var x=ve("recharts-brush",i),T=O.Children.count(o)===1,p=o5("userSelect","none");return O.createElement(be,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:p},this.renderBackground(),T&&this.renderPanorama(),this.renderSlide(h,m),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(m,"endX"),(y||v||b||w||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 O.createElement(O.Fragment,null,O.createElement("rect",{x:a,y:i,width:o,height:s,fill:l,stroke:"none"}),O.createElement("line",{x1:a+1,y1:u,x2:a+o-1,y2:u,fill:"none",stroke:"#fff"}),O.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 O.isValidElement(n)?i=O.cloneElement(n,a):he(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 wc({prevData:i,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},i&&i.length?p5({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}}])}(O.PureComponent);yt(Dn,"displayName","Brush"),yt(Dn,"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 v5=Ll;function y5(e,t){var r;return v5(e,function(n,a,i){return r=t(n,a,i),!r}),!!r}var m5=y5,g5=Id,b5=pr,x5=m5,w5=lt,O5=eo;function S5(e,t,r){var n=w5(e)?g5:x5;return r&&O5(e,t,r)&&(t=void 0),n(e,b5(t))}var A5=S5;const T5=ke(A5);var Vt=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r},km=Mh;function P5(e,t,r){t=="__proto__"&&km?km(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var _5=P5,E5=_5,$5=Eh,j5=pr;function C5(e,t){var r={};return t=j5(t),$5(e,function(n,a,i){E5(r,a,t(n,a,i))}),r}var M5=C5;const k5=ke(M5);function N5(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 D5=N5,I5=Ll;function R5(e,t){var r=!0;return I5(e,function(n,a,i){return r=!!t(n,a,i),r}),r}var L5=R5,B5=D5,F5=L5,W5=pr,U5=lt,z5=eo;function K5(e,t,r){var n=U5(e)?B5:F5;return r&&z5(e,t,r)&&(t=void 0),n(e,W5(t))}var q5=K5;const Nm=ke(q5);var V5=["x","y"];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 Sc(){return Sc=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},Sc.apply(this,arguments)}function Dm(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 si(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dm(Object(r),!0).forEach(function(n){G5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G5(e,t,r){return t=H5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H5(e){var t=Y5(e,"string");return In(t)=="symbol"?t:t+""}function Y5(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(t==="string"?String:Number)(e)}function X5(e,t){if(e==null)return{};var r=J5(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 J5(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 Z5(e,t){var r=e.x,n=e.y,a=X5(e,V5),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 si(si(si(si(si({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:d,name:t.name,radius:t.radius})}function Im(e){return O.createElement(bc,Sc({shapeType:"rectangle",propTransformer:Z5,activeClassName:"recharts-active-bar"},e))}var Q5=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)||fO(n);return i?t(n,a):(i||(process.env.NODE_ENV!=="production"?ft(!1,"minPointSize callback function received a value with type of ".concat(In(n),". Currently only numbers or null/undefined are supported.")):ft()),r)}},e6=["value","background"],Rm;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 t6(e,t){if(e==null)return{};var r=r6(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 r6(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 Lm(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?Lm(Object(r),!0).forEach(function(n){Or(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bm(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,Wm(n.key),n)}}function a6(e,t,r){return t&&Bm(e.prototype,t),r&&Bm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i6(e,t,r){return t=rs(t),o6(e,Fm()?Reflect.construct(t,r||[],rs(e).constructor):t.apply(e,r))}function o6(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 s6(e)}function s6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fm=function(){return!!e})()}function rs(e){return rs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rs(e)}function l6(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&&Ac(e,t)}function Ac(e,t){return Ac=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Ac(e,t)}function Or(e,t,r){return t=Wm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wm(e){var t=u6(e,"string");return Rn(t)=="symbol"?t:t+""}function u6(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(t==="string"?String:Number)(e)}var Ln=function(e){function t(){var r;n6(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=i6(this,t,[].concat(a)),Or(r,"state",{isAnimationFinished:!1}),Or(r,"id",jr("recharts-bar-")),Or(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Or(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return l6(t,e),a6(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=de(this.props,!1);return n&&n.map(function(f,d){var h=d===l,m=h?u:o,y=qe(qe(qe({},c),f),{},{isActive:h,option:m,index:d,dataKey:s,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return O.createElement(be,ts({className:"recharts-bar-rectangle"},da(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)}),O.createElement(Im,y))})}},{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 O.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 m=h.t,y=i.map(function(v,b){var w=d&&d[b];if(w){var x=We(w.x,v.x),T=We(w.y,v.y),p=We(w.width,v.width),g=We(w.height,v.height);return qe(qe({},v),{},{x:x(m),y:T(m),width:p(m),height:g(m)})}if(o==="horizontal"){var S=We(0,v.height),P=S(m);return qe(qe({},v),{},{y:v.y+v.height-P,height:P})}var _=We(0,v.width),R=_(m);return qe(qe({},v),{},{width:R})});return O.createElement(be,null,n.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var n=this.props,a=n.data,i=n.isAnimationActive,o=this.state.prevData;return i&&a&&a.length&&(!o||!Br(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=de(this.props.background,!1);return i.map(function(u,c){u.value;var f=u.background,d=t6(u,e6);if(!f)return null;var h=qe(qe(qe(qe(qe({},d),{},{fill:"#eee"},f),l),da(n.props,u,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return O.createElement(Im,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,jn);if(!f)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,h=function(v,b){var w=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:w,errorVal:Ye(v,b)}},m={clipPath:n?"url(#clipPath-".concat(a,")"):null};return O.createElement(be,m,f.map(function(y){return O.cloneElement(y,{key:"error-bar-".concat(a,"-").concat(y.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,m=n.background,y=n.id;if(a||!i||!i.length)return null;var v=this.state.isAnimationFinished,b=ve("recharts-bar",o),w=s&&s.allowDataOverflow,x=l&&l.allowDataOverflow,T=w||x,p=fe(y)?this.id:y;return O.createElement(be,{className:b},w||x?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(p)},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(be,{className:"recharts-bar-rectangles",clipPath:T?"url(#clipPath-".concat(p,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(T,p),(!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}}])}(O.PureComponent);Rm=Ln,Or(Ln,"displayName","Bar"),Or(Ln,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!vr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),Or(Ln,"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=DI(n,r);if(!h)return null;var m=t.layout,y=r.type.defaultProps,v=y!==void 0?qe(qe({},y),r.props):r.props,b=v.dataKey,w=v.children,x=v.minPointSize,T=m==="horizontal"?o:i,p=u?T.scale.domain():null,g=zI({numericAxis:T}),S=ut(w,Hl),P=f.map(function(_,R){var M,C,W,U,F,N;u?M=II(u[c+R],p):(M=Ye(_,b),Array.isArray(M)||(M=[g,M]));var D=Q5(x,Rm.defaultProps.minPointSize)(M[1],R);if(m==="horizontal"){var L,$=[o.scale(M[0]),o.scale(M[1])],E=$[0],I=$[1];C=ly({axis:i,ticks:s,bandSize:a,offset:h.offset,entry:_,index:R}),W=(L=I??E)!==null&&L!==void 0?L:void 0,U=h.size;var B=E-I;if(F=Number.isNaN(B)?0:B,N={x:C,y:o.y,width:U,height:o.height},Math.abs(D)>0&&Math.abs(F)<Math.abs(D)){var z=jt(F||D)*(Math.abs(D)-Math.abs(F));W-=z,F+=z}}else{var G=[i.scale(M[0]),i.scale(M[1])],Z=G[0],Q=G[1];if(C=Z,W=ly({axis:o,ticks:l,bandSize:a,offset:h.offset,entry:_,index:R}),U=Q-Z,F=h.size,N={x:i.x,y:W,width:i.width,height:F},Math.abs(D)>0&&Math.abs(U)<Math.abs(D)){var ee=jt(U||D)*(Math.abs(D)-Math.abs(U));U+=ee}}return qe(qe(qe({},_),{},{x:C,y:W,width:U,height:F,value:u?M:M[1],payload:_,background:N},S&&S[R]&&S[R].props),{},{tooltipPayload:[hy(r,_)],tooltipPosition:{x:C+U/2,y:W+F/2}})});return qe({data:P,layout:m},d)});function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function c6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Um(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,Km(n.key),n)}}function f6(e,t,r){return t&&Um(e.prototype,t),r&&Um(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zm(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?zm(Object(r),!0).forEach(function(n){ns(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ns(e,t,r){return t=Km(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Km(e){var t=d6(e,"string");return li(t)=="symbol"?t:t+""}function d6(e,t){if(li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var h6=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=!!pt(u,Ln);return c.reduce(function(h,m){var y=r[m],v=y.orientation,b=y.domain,w=y.padding,x=w===void 0?{}:w,T=y.mirror,p=y.reversed,g="".concat(v).concat(T?"Mirror":""),S,P,_,R,M;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var C=b[1]-b[0],W=1/0,U=y.categoricalDomain.sort(vO);if(U.forEach(function(G,Z){Z>0&&(W=Math.min((G||0)-(U[Z-1]||0),W))}),Number.isFinite(W)){var F=W/C,N=y.layout==="vertical"?n.height:n.width;if(y.padding==="gap"&&(S=F*N/2),y.padding==="no-gap"){var D=Cr(t.barCategoryGap,F*N),L=F*N/2;S=L-D-(L-D)/N*D}}}a==="xAxis"?P=[n.left+(x.left||0)+(S||0),n.left+n.width-(x.right||0)-(S||0)]:a==="yAxis"?P=l==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(S||0),n.top+n.height-(x.bottom||0)-(S||0)]:P=y.range,p&&(P=[P[1],P[0]]);var $=kI(y,i,d),E=$.scale,I=$.realScaleType;E.domain(b).range(P),NI(E);var B=UI(E,Dt(Dt({},y),{},{realScaleType:I}));a==="xAxis"?(M=v==="top"&&!T||v==="bottom"&&T,_=n.left,R=f[g]-M*y.height):a==="yAxis"&&(M=v==="left"&&!T||v==="right"&&T,_=f[g]-M*y.width,R=n.top);var z=Dt(Dt(Dt({},y),B),{},{realScaleType:I,x:_,y:R,scale:E,width:a==="xAxis"?n.width:y.width,height:a==="yAxis"?n.height:y.height});return z.bandSize=Do(z,B),!y.hide&&a==="xAxis"?f[g]+=(M?-1:1)*z.height:y.hide||(f[g]+=(M?-1:1)*z.width),Dt(Dt({},h),{},ns({},m,z))},{})},qm=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)}},p6=function(t){var r=t.x1,n=t.y1,a=t.x2,i=t.y2;return qm({x:r,y:n},{x:a,y:i})},Vm=function(){function e(t){c6(this,e),this.scale=t}return f6(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(Vm,"EPS",1e-4);var Tc=function(t){var r=Object.keys(t).reduce(function(n,a){return Dt(Dt({},n),{},ns({},a,Vm.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 k5(a,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(a){return Nm(a,function(i,o){return r[o].isInRange(i)})}})};function v6(e){return(e%180+180)%180}var y6=function(t){var r=t.width,n=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=v6(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)},m6=pr,g6=va,b6=Xi;function x6(e){return function(t,r,n){var a=Object(t);if(!g6(t)){var i=m6(r);t=b6(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 w6=x6,O6=Am;function S6(e){var t=O6(e),r=t%1;return t===t?r?t-r:t:0}var A6=S6,T6=yh,P6=pr,_6=A6,E6=Math.max;function $6(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:_6(r);return a<0&&(a=E6(n+a,0)),T6(e,P6(t),a)}var j6=$6,C6=w6,M6=j6,k6=C6(M6),N6=k6;const D6=ke(N6);var I6=m1(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 Pc=O.createContext(void 0),_c=O.createContext(void 0),Gm=O.createContext(void 0),Hm=O.createContext({}),Ym=O.createContext(void 0),Xm=O.createContext(0),Jm=O.createContext(0),Zm=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=I6(i);return O.createElement(Pc.Provider,{value:n},O.createElement(_c.Provider,{value:a},O.createElement(Hm.Provider,{value:i},O.createElement(Gm.Provider,{value:c},O.createElement(Ym.Provider,{value:o},O.createElement(Xm.Provider,{value:u},O.createElement(Jm.Provider,{value:l},s)))))))},R6=function(){return O.useContext(Ym)};function Qm(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var eg=function(t){var r=O.useContext(Pc);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(Qm(r))):ft()),n},L6=function(){var t=O.useContext(Pc);return hr(t)},B6=function(){var t=O.useContext(_c),r=D6(t,function(n){return Nm(n.domain,Number.isFinite)});return r||hr(t)},tg=function(t){var r=O.useContext(_c);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(Qm(r))):ft()),n},F6=function(){var t=O.useContext(Gm);return t},W6=function(){return O.useContext(Hm)},Ec=function(){return O.useContext(Jm)},$c=function(){return O.useContext(Xm)};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 U6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z6(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 K6(e,t,r){return t&&z6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function q6(e,t,r){return t=is(t),V6(e,rg()?Reflect.construct(t,r||[],is(e).constructor):t.apply(e,r))}function V6(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 G6(e)}function G6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rg=function(){return!!e})()}function is(e){return is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},is(e)}function H6(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 ng(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 ag(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ng(Object(r),!0).forEach(function(n){Cc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ng(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cc(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=Y6(e,"string");return Bn(t)=="symbol"?t:t+""}function Y6(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)}function X6(e,t){return eF(e)||Q6(e,t)||Z6(e,t)||J6()}function J6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
196
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z6(e,t){if(e){if(typeof e=="string")return og(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 og(e,t)}}function og(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 Q6(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 eF(e){if(Array.isArray(e))return e}function Mc(){return Mc=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},Mc.apply(this,arguments)}var tF=function(t,r){var n;return O.isValidElement(t)?n=O.cloneElement(t,r):he(t)?n=t(r):n=O.createElement("line",Mc({},r,{className:"recharts-reference-line-line"})),n},rF=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 m=u.y,y=t.y.apply(m,{position:o});if(Vt(u,"discard")&&!t.y.isInRange(y))return null;var v=[{x:c+d,y},{x:c,y}];return l==="left"?v.reverse():v}if(r){var b=u.x,w=t.x.apply(b,{position:o});if(Vt(u,"discard")&&!t.x.isInRange(w))return null;var x=[{x:w,y:f+h},{x:w,y:f}];return s==="top"?x.reverse():x}if(a){var T=u.segment,p=T.map(function(g){return t.apply(g,{position:o})});return Vt(u,"discard")&&T5(p,function(g){return!t.isInRange(g)})?null:p}return null};function nF(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=R6(),c=eg(a),f=tg(i),d=F6();if(!u||!d)return null;Qt(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=Tc({x:c.scale,y:f.scale}),m=Ge(t),y=Ge(r),v=n&&n.length===2,b=rF(h,m,y,v,d,e.position,c.orientation,f.orientation,e);if(!b)return null;var w=X6(b,2),x=w[0],T=x.x,p=x.y,g=w[1],S=g.x,P=g.y,_=Vt(e,"hidden")?"url(#".concat(u,")"):void 0,R=ag(ag({clipPath:_},de(e,!0)),{},{x1:T,y1:p,x2:S,y2:P});return O.createElement(be,{className:ve("recharts-reference-line",s)},tF(o,R),nt.renderCallByParent(e,p6({x1:T,y1:p,x2:S,y2:P})))}var kc=function(e){function t(){return U6(this,t),q6(this,t,arguments)}return H6(t,e),K6(t,[{key:"render",value:function(){return O.createElement(nF,this.props)}}])}(O.Component);Cc(kc,"displayName","ReferenceLine"),Cc(kc,"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 Fn(e){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fn(e)}function sg(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 lg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sg(Object(r),!0).forEach(function(n){ss(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return 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,cg(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,ug()?Reflect.construct(t,r||[],os(e).constructor):t.apply(e,r))}function lF(e,t){if(t&&(Fn(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 ug(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ug=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&&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 ss(e,t,r){return t=cg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cg(e){var t=fF(e,"string");return Fn(t)=="symbol"?t:t+""}function fF(e,t){if(Fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dF=function(t){var r=t.x,n=t.y,a=t.xAxis,i=t.yAxis,o=Tc({x:a.scale,y:i.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Vt(t,"discard")&&!o.isInRange(s)?null:s},ls=function(e){function t(){return aF(this,t),sF(this,t,arguments)}return cF(t,e),oF(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=Ge(a),c=Ge(i);if(Qt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=dF(this.props);if(!f)return null;var d=f.x,h=f.y,m=this.props,y=m.shape,v=m.className,b=Vt(this.props,"hidden")?"url(#".concat(l,")"):void 0,w=lg(lg({clipPath:b},de(this.props,!0)),{},{cx:d,cy:h});return O.createElement(be,{className:ve("recharts-reference-dot",v)},t.renderDot(y,w),nt.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])}(O.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 O.isValidElement(e)?r=O.cloneElement(e,t):he(e)?r=e(t):r=O.createElement(Go,Nc({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Ic(){return Ic=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},Ic.apply(this,arguments)}function Wn(e){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(e)}function fg(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 dg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fg(Object(r),!0).forEach(function(n){cs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pF(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 vF(e,t,r){return t&&pF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yF(e,t,r){return t=us(t),mF(e,hg()?Reflect.construct(t,r||[],us(e).constructor):t.apply(e,r))}function mF(e,t){if(t&&(Wn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gF(e)}function gF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hg=function(){return!!e})()}function us(e){return us=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},us(e)}function bF(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 cs(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=xF(e,"string");return Wn(t)=="symbol"?t:t+""}function xF(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wF=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=Tc({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},m={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:a?d.y.apply(u,{position:"end"}):d.y.rangeMax};return Vt(i,"discard")&&(!d.isInRange(h)||!d.isInRange(m))?null:qm(h,m)},fs=function(e){function t(){return hF(this,t),yF(this,t,arguments)}return bF(t,e),vF(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;Qt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Ge(a),d=Ge(i),h=Ge(o),m=Ge(s),y=this.props.shape;if(!f&&!d&&!h&&!m&&!y)return null;var v=wF(f,d,h,m,this.props);if(!v&&!y)return null;var b=Vt(this.props,"hidden")?"url(#".concat(c,")"):void 0;return O.createElement(be,{className:ve("recharts-reference-area",l)},t.renderRect(y,dg(dg({clipPath:b},de(this.props,!0)),v)),nt.renderCallByParent(this.props,v))}}])}(O.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 O.isValidElement(e)?r=O.cloneElement(e,t):he(e)?r=e(t):r=O.createElement(yc,Ic({},t,{className:"recharts-reference-area-rect"})),r});function vg(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 OF(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return y6(n,r)}function SF(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 AF(e,t){return vg(e,t+1)}function TF(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 m=n==null?void 0:n[l];if(m===void 0)return{v:vg(n,u)};var y=l,v,b=function(){return v===void 0&&(v=r(m,y)),v},w=m.coordinate,x=l===0||ds(e,w,b,c,s);x||(l=0,c=o,u+=1),x&&(c=w+e*(b()/2+a),l+=u)},d;u<=i.length;)if(d=f(),d)return d.v;return[]}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 yg(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?yg(Object(r),!0).forEach(function(n){PF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PF(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=EF(e,"string");return ui(t)=="symbol"?t:t+""}function EF(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 $F(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],m,y=function(){return m===void 0&&(m=r(h,d)),m};if(d===o-1){var v=e*(h.coordinate+e*y()/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 b=ds(e,h.tickCoord,y,s,l);b&&(l=h.tickCoord-e*(y()/2+a),i[d]=at(at({},h),{},{isShow:!0}))},c=o-1;c>=0;c--)u(c);return i}function jF(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 m=i?s-1:s,y=function(w){var x=o[w],T,p=function(){return T===void 0&&(T=r(x,w)),T};if(w===0){var g=e*(x.coordinate-e*p()/2-l);o[w]=x=at(at({},x),{},{tickCoord:g<0?x.coordinate-g*e:x.coordinate})}else o[w]=x=at(at({},x),{},{tickCoord:x.coordinate});var S=ds(e,x.tickCoord,p,l,u);S&&(l=x.tickCoord+e*(p()/2+a),o[w]=at(at({},x),{},{isShow:!0}))},v=0;v<m;v++)y(v);return o}function Lc(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)||vr.isSsr)return AF(a,typeof l=="number"&&X(l)?l:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",m=c&&h==="width"?wa(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=function(x,T){var p=he(u)?u(x.value,T):x.value;return h==="width"?OF(wa(p,{fontSize:t,letterSpacing:r}),m,f):wa(p,{fontSize:t,letterSpacing:r})[h]},v=a.length>=2?jt(a[1].coordinate-a[0].coordinate):1,b=SF(i,v,h);return l==="equidistantPreserveStart"?TF(v,b,y,a,o):(l==="preserveStart"||l==="preserveStartEnd"?d=jF(v,b,y,a,o,l==="preserveStartEnd"):d=$F(v,b,y,a,o),d.filter(function(w){return w.isShow}))}var CF=["viewBox"],MF=["viewBox"],kF=["ticks"];function Un(e){"@babel/helpers - typeof";return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Un(e)}function zn(){return zn=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},zn.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(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?mg(Object(r),!0).forEach(function(n){Wc(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 Bc(e,t){if(e==null)return{};var r=NF(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 NF(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 DF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gg(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&&gg(e.prototype,t),r&&gg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RF(e,t,r){return t=hs(t),LF(e,bg()?Reflect.construct(t,r||[],hs(e).constructor):t.apply(e,r))}function LF(e,t){if(t&&(Un(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BF(e)}function BF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bg=function(){return!!e})()}function hs(e){return hs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hs(e)}function FF(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 Wc(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=WF(e,"string");return Un(t)=="symbol"?t:t+""}function WF(e,t){if(Un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Kn=function(e){function t(r){var n;return DF(this,t),n=RF(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return FF(t,e),IF(t,[{key:"shouldComponentUpdate",value:function(n,a){var i=n.viewBox,o=Bc(n,CF),s=this.props,l=s.viewBox,u=Bc(s,MF);return!un(i,l)||!un(o,u)||!un(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,m,y,v,b,w,x=f?-1:1,T=n.tickSize||c,p=X(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":h=m=n.coordinate,v=o+ +!f*l,y=v-x*T,w=y-x*d,b=p;break;case"left":y=v=n.coordinate,m=i+ +!f*s,h=m-x*T,b=h-x*d,w=p;break;case"right":y=v=n.coordinate,m=i+ +f*s,h=m+x*T,b=h+x*d,w=p;break;default:h=m=n.coordinate,v=o+ +f*l,y=v+x*T,w=y+x*d,b=p;break}return{line:{x1:h,y1:y,x2:m,y2:v},tick:{x:b,y:w}}}},{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({},de(this.props,!1)),de(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 O.createElement("line",zn({},f,{className:ve("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=Lc(Je(Je({},this.props),{},{ticks:n}),a,i),m=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),v=de(this.props,!1),b=de(c,!1),w=Je(Je({},v),{},{fill:"none"},de(l,!1)),x=h.map(function(T,p){var g=o.getTickLineCoord(T),S=g.line,P=g.tick,_=Je(Je(Je(Je({textAnchor:m,verticalAnchor:y},v),{},{stroke:"none",fill:u},b),P),{},{index:p,payload:T,visibleTicksCount:h.length,tickFormatter:f});return O.createElement(be,zn({className:"recharts-cartesian-axis-tick",key:"tick-".concat(T.value,"-").concat(T.coordinate,"-").concat(T.tickCoord)},da(o.props,T,p)),l&&O.createElement("line",zn({},w,S,{className:ve("recharts-cartesian-axis-tick-line",xt(l,"className"))})),c&&t.renderTickItem(c,_,"".concat(he(f)?f(T.value,p):T.value).concat(d||"")))});return O.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=Bc(f,kF),m=d;return he(l)&&(m=d&&d.length>0?l(this.props):l(h)),o<=0||s<=0||!m||!m.length?null:O.createElement(be,{className:ve("recharts-cartesian-axis",u),ref:function(v){n.layerReference=v}},i&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),nt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,a,i){var o,s=ve(a.className,"recharts-cartesian-axis-tick-value");return O.isValidElement(n)?o=O.cloneElement(n,Je(Je({},a),{},{className:s})):he(n)?o=n(Je(Je({},a),{},{className:s})):o=O.createElement(so,zn({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])}(O.Component);Wc(Kn,"displayName","CartesianAxis"),Wc(Kn,"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 UF=["x1","y1","x2","y2","key"],zF=["offset"];function Vr(e){"@babel/helpers - typeof";return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vr(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 it(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){KF(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 KF(e,t,r){return t=qF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qF(e){var t=VF(e,"string");return Vr(t)=="symbol"?t:t+""}function VF(e,t){if(Vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gr(){return Gr=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},Gr.apply(this,arguments)}function Og(e,t){if(e==null)return{};var r=GF(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 GF(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 HF=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 O.createElement("rect",{x:a,y:i,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Sg(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(he(e))r=e(t);else{var n=t.x1,a=t.y1,i=t.x2,o=t.y2,s=t.key,l=Og(t,UF),u=de(l,!1);u.offset;var c=Og(u,zF);r=O.createElement("line",Gr({},c,{x1:n,y1:a,x2:i,y2:o,fill:"none",key:s}))}return r}function YF(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 Sg(a,u)});return O.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function XF(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 Sg(a,u)});return O.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function JF(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 m=!c[h+1],y=m?a+o-d:c[h+1]-d;if(y<=0)return null;var v=h%t.length;return O.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:y,width:i,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function ZF(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 m=!c[h+1],y=m?i+s-d:c[h+1]-d;if(y<=0)return null;var v=h%n.length;return O.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:y,height:l,stroke:"none",fill:n[v],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var QF=function(t,r){var n=t.xAxis,a=t.width,i=t.height,o=t.offset;return oy(Lc(it(it(it({},Kn.defaultProps),n),{},{ticks:lr(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.left,o.left+o.width,r)},eW=function(t,r){var n=t.yAxis,a=t.width,i=t.height,o=t.offset;return oy(Lc(it(it(it({},Kn.defaultProps),n),{},{ticks:lr(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.top,o.top+o.height,r)},qn={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Ag(e){var t,r,n,a,i,o,s=Ec(),l=$c(),u=W6(),c=it(it({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:qn.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:qn.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:qn.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:qn.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:qn.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:qn.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,m=c.height,y=c.syncWithTicks,v=c.horizontalValues,b=c.verticalValues,w=L6(),x=B6();if(!X(h)||h<=0||!X(m)||m<=0||!X(f)||f!==+f||!X(d)||d!==+d)return null;var T=c.verticalCoordinatesGenerator||QF,p=c.horizontalCoordinatesGenerator||eW,g=c.horizontalPoints,S=c.verticalPoints;if((!g||!g.length)&&he(p)){var P=v&&v.length,_=p({yAxis:x?it(it({},x),{},{ticks:P?v:x.ticks}):void 0,width:s,height:l,offset:u},P?!0:y);Qt(Array.isArray(_),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Vr(_),"]")),Array.isArray(_)&&(g=_)}if((!S||!S.length)&&he(T)){var R=b&&b.length,M=T({xAxis:w?it(it({},w),{},{ticks:R?b:w.ticks}):void 0,width:s,height:l,offset:u},R?!0:y);Qt(Array.isArray(M),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Vr(M),"]")),Array.isArray(M)&&(S=M)}return O.createElement("g",{className:"recharts-cartesian-grid"},O.createElement(HF,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),O.createElement(YF,Gr({},c,{offset:u,horizontalPoints:g,xAxis:w,yAxis:x})),O.createElement(XF,Gr({},c,{offset:u,verticalPoints:S,xAxis:w,yAxis:x})),O.createElement(JF,Gr({},c,{horizontalPoints:g})),O.createElement(ZF,Gr({},c,{verticalPoints:S})))}Ag.displayName="CartesianGrid";var tW=["type","layout","connectNulls","ref"],rW=["key"];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 Tg(e,t){if(e==null)return{};var r=nW(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 nW(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 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 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 mt(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 sW(e)||oW(e)||iW(e)||aW()}function aW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
197
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iW(e,t){if(e){if(typeof e=="string")return Uc(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 Uc(e,t)}}function oW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sW(e){if(Array.isArray(e))return Uc(e)}function Uc(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 lW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _g(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 uW(e,t,r){return t&&_g(e.prototype,t),r&&_g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function cW(e,t,r){return t=ps(t),fW(e,Eg()?Reflect.construct(t,r||[],ps(e).constructor):t.apply(e,r))}function fW(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 dW(e)}function dW(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 ps(e){return ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ps(e)}function hW(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&&zc(e,t)}function zc(e,t){return zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},zc(e,t)}function It(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=pW(e,"string");return Vn(t)=="symbol"?t:t+""}function pW(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 fi=function(e){function t(){var r;lW(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=cW(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(b,w){return b+w});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/u),f=o%u,d=s-o,h=[],m=0,y=0;m<l.length;y+=l[m],++m)if(y+l[m]>f){h=[].concat(Gn(l.slice(0,m)),[f-y]);break}var v=h.length%2===0?[0,d]:[d];return[].concat(Gn(t.repeat(l,c)),Gn(h),v).map(function(b){return"".concat(b,"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 hW(t,e),uW(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,jn);if(!f)return null;var d=function(y,v){return{x:y.x,y:y.y,value:y.value,errorVal:Ye(y.payload,v)}},h={clipPath:n?"url(#clipPath-".concat(a,")"):null};return O.createElement(be,h,f.map(function(m){return O.cloneElement(m,{key:"bar-".concat(m.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=de(this.props,!1),d=de(l,!0),h=u.map(function(y,v){var b=mt(mt(mt({key:"dot-".concat(v),r:3},f),d),{},{index:v,cx:y.x,cy:y.y,value:y.value,dataKey:c,payload:y.payload,points:u});return t.renderDotItem(l,b)}),m={clipPath:n?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return O.createElement(be,ci({className:"recharts-line-dots",key:"dots"},m),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=Tg(s,tW),d=mt(mt(mt({},de(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 O.createElement(Kr,ci({},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,m=o.animateNewValues,y=o.width,v=o.height,b=this.state,w=b.prevPoints,x=b.totalLength;return O.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(T){var p=T.t;if(w){var g=w.length/s.length,S=s.map(function(C,W){var U=Math.floor(W*g);if(w[U]){var F=w[U],N=We(F.x,C.x),D=We(F.y,C.y);return mt(mt({},C),{},{x:N(p),y:D(p)})}if(m){var L=We(y*2,C.x),$=We(v/2,C.y);return mt(mt({},C),{},{x:L(p),y:$(p)})}return mt(mt({},C),{},{x:C.x,y:C.y})});return i.renderCurveStatically(S,n,a)}var P=We(0,x),_=P(p),R;if(l){var M="".concat(l).split(/[,\s]+/gim).map(function(C){return parseFloat(C)});R=i.getStrokeDasharray(_,x,M)}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||!Br(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,m=a.height,y=a.isAnimationActive,v=a.id;if(i||!s||!s.length)return null;var b=this.state.isAnimationFinished,w=s.length===1,x=ve("recharts-line",l),T=u&&u.allowDataOverflow,p=c&&c.allowDataOverflow,g=T||p,S=fe(v)?this.id:v,P=(n=de(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},_=P.r,R=_===void 0?3:_,M=P.strokeWidth,C=M===void 0?2:M,W=Zf(o)?o:{},U=W.clipDot,F=U===void 0?!0:U,N=R*2+C;return O.createElement(be,{className:x},T||p?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:T?d:d-h/2,y:p?f:f-m/2,width:T?h:h*2,height:p?m:m*2})),!F&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:d-N/2,y:f-N/2,width:h+N,height:m+N}))):null,!w&&this.renderCurve(g,S),this.renderErrorBar(g,S),(w||o)&&this.renderDots(g,F,S),(!y||b)&&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(O.isValidElement(n))i=O.cloneElement(n,a);else if(he(n))i=n(a);else{var o=a.key,s=Tg(a,rW),l=ve("recharts-line-dot",typeof n!="boolean"?n.className:"");i=O.createElement(Go,ci({key:o},s,{className:l}))}return i}}])}(O.PureComponent);It(fi,"displayName","Line"),It(fi,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!vr.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),It(fi,"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 m=Ye(d,o);return c==="horizontal"?{x:Mn({axis:r,ticks:a,bandSize:s,entry:d,index:h}),y:fe(m)?null:n.scale(m),value:m,payload:d}:{x:fe(m)?null:r.scale(m),y:Mn({axis:n,ticks:i,bandSize:s,entry:d,index:h}),value:m,payload:d}});return mt({points:f,layout:c},u)});var vW=["layout","type","stroke","connectNulls","isRange","ref"],yW=["key"],jg;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 Cg(e,t){if(e==null)return{};var r=mW(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 mW(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 Hr(){return Hr=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},Hr.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(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Sr(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){Gt(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 gW(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,Dg(n.key),n)}}function bW(e,t,r){return t&&kg(e.prototype,t),r&&kg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xW(e,t,r){return t=vs(t),wW(e,Ng()?Reflect.construct(t,r||[],vs(e).constructor):t.apply(e,r))}function wW(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 OW(e)}function OW(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 vs(e){return vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vs(e)}function SW(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&&Kc(e,t)}function Kc(e,t){return Kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Kc(e,t)}function Gt(e,t,r){return t=Dg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dg(e){var t=AW(e,"string");return Hn(t)=="symbol"?t:t+""}function AW(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)}var Ar=function(e){function t(){var r;gW(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=xW(this,t,[].concat(a)),Gt(r,"state",{isAnimationFinished:!0}),Gt(r,"id",jr("recharts-area-")),Gt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),he(o)&&o()}),Gt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),he(o)&&o()}),r}return SW(t,e),bW(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=de(this.props,!1),h=de(u,!0),m=c.map(function(v,b){var w=Sr(Sr(Sr({key:"dot-".concat(b),r:3},d),h),{},{index:b,cx:v.x,cy:v.y,dataKey:f,value:v.value,payload:v.payload,points:c});return t.renderDotItem(u,w)}),y={clipPath:n?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return O.createElement(be,Hr({className:"recharts-area-dots"},y),m)}},{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=br(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(br(i.map(function(d){return d.y||0})),f)),X(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 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=br(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(br(i.map(function(d){return d.x||0})),f)),X(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 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=Cg(s,vW);return O.createElement(be,{clipPath:i?"url(#clipPath-".concat(o,")"):null},O.createElement(Kr,Hr({},de(h,!0),{points:n,connectNulls:f,type:u,baseLine:a,layout:l,stroke:"none",className:"recharts-area-area"})),c!=="none"&&O.createElement(Kr,Hr({},de(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:n})),c!=="none"&&d&&O.createElement(Kr,Hr({},de(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,m=this.state,y=m.prevPoints,v=m.prevBaseLine;return O.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(b){var w=b.t;if(y){var x=y.length/s.length,T=s.map(function(P,_){var R=Math.floor(_*x);if(y[R]){var M=y[R],C=We(M.x,P.x),W=We(M.y,P.y);return Sr(Sr({},P),{},{x:C(w),y:W(w)})}return P}),p;if(X(l)&&typeof l=="number"){var g=We(v,l);p=g(w)}else if(fe(l)||ln(l)){var S=We(v,0);p=S(w)}else p=l.map(function(P,_){var R=Math.floor(_*x);if(v[R]){var M=v[R],C=We(M.x,P.x),W=We(M.y,P.y);return Sr(Sr({},P),{},{x:C(w),y:W(w)})}return P});return i.renderAreaStatically(T,p,n,a)}return O.createElement(be,null,O.createElement("defs",null,O.createElement("clipPath",{id:"animationClipPath-".concat(a)},i.renderClipRect(w))),O.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||!Br(c,o)||!Br(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,m=a.height,y=a.isAnimationActive,v=a.id;if(i||!s||!s.length)return null;var b=this.state.isAnimationFinished,w=s.length===1,x=ve("recharts-area",l),T=f&&f.allowDataOverflow,p=d&&d.allowDataOverflow,g=T||p,S=fe(v)?this.id:v,P=(n=de(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},_=P.r,R=_===void 0?3:_,M=P.strokeWidth,C=M===void 0?2:M,W=Zf(o)?o:{},U=W.clipDot,F=U===void 0?!0:U,N=R*2+C;return O.createElement(be,{className:x},T||p?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:T?c:c-h/2,y:p?u:u-m/2,width:T?h:h*2,height:p?m:m*2})),!F&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:c-N/2,y:u-N/2,width:h+N,height:m+N}))):null,w?null:this.renderArea(g,S),(o||w)&&this.renderDots(g,F,S),(!y||b)&&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}}])}(O.PureComponent);jg=Ar,Gt(Ar,"displayName","Area"),Gt(Ar,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!vr.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Gt(Ar,"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]}),Gt(Ar,"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,m=u&&u.length,y=jg.getBaseValue(t,r,n,a),v=h==="horizontal",b=!1,w=f.map(function(T,p){var g;m?g=u[c+p]:(g=Ye(T,l),Array.isArray(g)?b=!0:g=[y,g]);var S=g[1]==null||m&&Ye(T,l)==null;return v?{x:Mn({axis:n,ticks:i,bandSize:s,entry:T,index:p}),y:S?null:a.scale(g[1]),value:g,payload:T}:{x:S?null:n.scale(g[1]),y:Mn({axis:a,ticks:o,bandSize:s,entry:T,index:p}),value:g,payload:T}}),x;return m||b?x=w.map(function(T){var p=Array.isArray(T.value)?T.value[0]:null;return v?{x:T.x,y:p!=null&&T.y!=null?a.scale(p):null}:{x:p!=null?n.scale(p):null,y:T.y}}):x=v?a.scale(y):n.scale(y),Sr({points:w,baseLine:x,layout:h,isRange:b},d)}),Gt(Ar,"renderDotItem",function(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(he(e))r=e(t);else{var n=ve("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,i=Cg(t,yW);r=O.createElement(Go,Hr({},i,{key:a,className:n}))}return r});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 TW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PW(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 _W(e,t,r){return t&&PW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EW(e,t,r){return t=ys(t),$W(e,Ig()?Reflect.construct(t,r||[],ys(e).constructor):t.apply(e,r))}function $W(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 jW(e)}function jW(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 ys(e){return ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ys(e)}function CW(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&&qc(e,t)}function qc(e,t){return qc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},qc(e,t)}function Rg(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=MW(e,"string");return Yn(t)=="symbol"?t:t+""}function MW(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(t==="string"?String:Number)(e)}var ms=function(e){function t(){return TW(this,t),EW(this,t,arguments)}return CW(t,e),_W(t,[{key:"render",value:function(){return null}}])}(bt.Component);Rg(ms,"displayName","ZAxis"),Rg(ms,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var kW=["option","isActive"];function di(){return di=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},di.apply(this,arguments)}function NW(e,t){if(e==null)return{};var r=DW(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 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 IW(e){var t=e.option,r=e.isActive,n=NW(e,kW);return typeof t=="string"?bt.createElement(bc,di({option:bt.createElement(qi,di({type:t},n)),isActive:r,shapeType:"symbols"},n)):bt.createElement(bc,di({option:t,isActive:r,shapeType:"symbols"},n))}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 hi(){return hi=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},hi.apply(this,arguments)}function Bg(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?Bg(Object(r),!0).forEach(function(n){Tr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fg(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,Ug(n.key),n)}}function LW(e,t,r){return t&&Fg(e.prototype,t),r&&Fg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function BW(e,t,r){return t=gs(t),FW(e,Wg()?Reflect.construct(t,r||[],gs(e).constructor):t.apply(e,r))}function FW(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 WW(e)}function WW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wg=function(){return!!e})()}function gs(e){return gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gs(e)}function UW(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,a){return n.__proto__=a,n},Vc(e,t)}function Tr(e,t,r){return t=Ug(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ug(e){var t=zW(e,"string");return Xn(t)=="symbol"?t:t+""}function zW(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 bs=function(e){function t(){var r;RW(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=BW(this,t,[].concat(a)),Tr(r,"state",{isAnimationFinished:!1}),Tr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),Tr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),Tr(r,"id",jr("recharts-scatter-")),r}return UW(t,e),LW(t,[{key:"renderSymbolsStatically",value:function(n){var a=this,i=this.props,o=i.shape,s=i.activeShape,l=i.activeIndex,u=de(this.props,!1);return n.map(function(c,f){var d=l===f,h=d?s:o,m=_t(_t({},u),c);return O.createElement(be,hi({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)},da(a.props,c,f),{role:"img"}),O.createElement(IW,hi({option:h,isActive:d,key:"symbol-".concat(f)},m)))})}},{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 O.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,m=i.map(function(y,v){var b=f&&f[v];if(b){var w=We(b.cx,y.cx),x=We(b.cy,y.cy),T=We(b.size,y.size);return _t(_t({},y),{},{cx:w(h),cy:x(h),size:T(h)})}var p=We(0,y.size);return _t(_t({},y),{},{size:p(h)})});return O.createElement(be,null,n.renderSymbolsStatically(m))})}},{key:"renderSymbols",value:function(){var n=this.props,a=n.points,i=n.isAnimationActive,o=this.state.prevPoints;return i&&a&&a.length&&(!o||!Br(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,jn);return u?u.map(function(c,f){var d=c.props,h=d.direction,m=d.dataKey;return O.cloneElement(c,{key:"".concat(h,"-").concat(m,"-").concat(i[f]),data:i,xAxis:o,yAxis:s,layout:h==="x"?"vertical":"horizontal",dataPointFormatter:function(v,b){return{x:v.cx,y:v.cy,value:h==="x"?+v.node.x:+v.node.y,errorVal:Ye(v,b)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,a=n.points,i=n.line,o=n.lineType,s=n.lineJointType,l=de(this.props,!1),u=de(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=pO(a),h=d.xmin,m=d.xmax,y=d.a,v=d.b,b=function(T){return y*T+v};c=[{x:h,y:b(h)},{x:m,y:b(m)}]}var w=_t(_t(_t({},l),{},{fill:"none",stroke:l&&l.fill},u),{},{points:c});return O.isValidElement(i)?f=O.cloneElement(i,w):he(i)?f=i(w):f=O.createElement(Kr,hi({},w,{type:s})),O.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,m=n.id,y=n.isAnimationActive;if(a||!i||!i.length)return null;var v=this.state.isAnimationFinished,b=ve("recharts-scatter",s),w=l&&l.allowDataOverflow,x=u&&u.allowDataOverflow,T=w||x,p=fe(m)?this.id:m;return O.createElement(be,{className:b,clipPath:T?"url(#clipPath-".concat(p,")"):null},w||x?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(p)},O.createElement("rect",{x:w?c:c-d/2,y:x?f:f-h/2,width:w?d:d*2,height:x?h:h*2}))):null,o&&this.renderLine(),this.renderErrorBar(),O.createElement(be,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!y||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}}])}(O.PureComponent);Tr(bs,"displayName","Scatter"),Tr(bs,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!vr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),Tr(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,Hl),f=fe(t.dataKey)?a.props.dataKey:t.dataKey,d=fe(r.dataKey)?a.props.dataKey:r.dataKey,h=n&&n.dataKey,m=n?n.range:ms.defaultProps.range,y=m&&m[0],v=t.scale.bandwidth?t.scale.bandwidth():0,b=r.scale.bandwidth?r.scale.bandwidth():0,w=i.map(function(x,T){var p=Ye(x,f),g=Ye(x,d),S=!fe(h)&&Ye(x,h)||"-",P=[{name:fe(t.dataKey)?a.props.name:t.name||t.dataKey,unit:t.unit||"",value:p,payload:x,dataKey:f,type:u},{name:fe(r.dataKey)?a.props.name:r.name||r.dataKey,unit:r.unit||"",value:g,payload:x,dataKey:d,type:u}];S!=="-"&&P.push({name:n.name||n.dataKey,unit:n.unit||"",value:S,payload:x,dataKey:h,type:u});var _=Mn({axis:t,ticks:o,bandSize:v,entry:x,index:T,dataKey:f}),R=Mn({axis:r,ticks:s,bandSize:b,entry:x,index:T,dataKey:d}),M=S!=="-"?n.scale(S):y,C=Math.sqrt(Math.max(M,0)/Math.PI);return _t(_t({},x),{},{cx:_,cy:R,x:_-C,y:R-C,xAxis:t,yAxis:r,zAxis:n,width:2*C,height:2*C,size:M,node:{x:p,y:g,z:S},tooltipPayload:P,tooltipPosition:{x:_,y:R},payload:x},c&&c[T]&&c[T].props)});return _t({points:w},l)});function Jn(e){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jn(e)}function KW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qW(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 VW(e,t,r){return t&&qW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GW(e,t,r){return t=xs(t),HW(e,zg()?Reflect.construct(t,r||[],xs(e).constructor):t.apply(e,r))}function HW(e,t){if(t&&(Jn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YW(e)}function YW(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 xs(e){return xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xs(e)}function XW(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 Kg(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=JW(e,"string");return Jn(t)=="symbol"?t:t+""}function JW(e,t){if(Jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}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 ZW(e){var t=e.xAxisId,r=Ec(),n=$c(),a=eg(t);return a==null?null:bt.createElement(Kn,Hc({},a,{className:ve("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return lr(o,!0)}}))}var ws=function(e){function t(){return KW(this,t),GW(this,t,arguments)}return XW(t,e),VW(t,[{key:"render",value:function(){return bt.createElement(ZW,this.props)}}])}(bt.Component);Kg(ws,"displayName","XAxis"),Kg(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 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 QW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e4(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,Hg(n.key),n)}}function t4(e,t,r){return t&&e4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function r4(e,t,r){return t=Os(t),n4(e,Vg()?Reflect.construct(t,r||[],Os(e).constructor):t.apply(e,r))}function n4(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 a4(e)}function a4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vg=function(){return!!e})()}function Os(e){return Os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Os(e)}function i4(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,a){return n.__proto__=a,n},Yc(e,t)}function Gg(e,t,r){return t=Hg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hg(e){var t=o4(e,"string");return Zn(t)=="symbol"?t:t+""}function o4(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)}function Xc(){return Xc=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},Xc.apply(this,arguments)}var s4=function(t){var r=t.yAxisId,n=Ec(),a=$c(),i=tg(r);return i==null?null:bt.createElement(Kn,Xc({},i,{className:ve("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(s){return lr(s,!0)}}))},Ss=function(e){function t(){return QW(this,t),r4(this,t,arguments)}return i4(t,e),t4(t,[{key:"render",value:function(){return bt.createElement(s4,this.props)}}])}(bt.Component);Gg(Ss,"displayName","YAxis"),Gg(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 Yg(e){return f4(e)||c4(e)||u4(e)||l4()}function l4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
198
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u4(e,t){if(e){if(typeof e=="string")return Jc(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 Jc(e,t)}}function c4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function f4(e){if(Array.isArray(e))return Jc(e)}function Jc(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 Zc=function(t,r,n,a,i){var o=ut(t,kc),s=ut(t,ls),l=[].concat(Yg(o),Yg(s)),u=ut(t,fs),c="".concat(a,"Id"),f=a[0],d=r;if(l.length&&(d=l.reduce(function(y,v){if(v.props[c]===n&&Vt(v.props,"extendDomain")&&X(v.props[f])){var b=v.props[f];return[Math.min(y[0],b),Math.max(y[1],b)]}return y},d)),u.length){var h="".concat(f,"1"),m="".concat(f,"2");d=u.reduce(function(y,v){if(v.props[c]===n&&Vt(v.props,"extendDomain")&&X(v.props[h])&&X(v.props[m])){var b=v.props[h],w=v.props[m];return[Math.min(y[0],b,w),Math.max(y[1],b,w)]}return y},d)}return i&&i.length&&(d=i.reduce(function(y,v){return X(v)?[Math.min(y[0],v),Math.max(y[1],v)]:y},d)),d},Xg={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),m=r?r+u:u;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],h]:l._events[m].push(h):(l._events[m]=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,m=new Array(h);d<h;d++)m[d]=f[d].fn;return m},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,m){var y=r?r+u:u;if(!this._events[y])return!1;var v=this._events[y],b=arguments.length,w,x;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),b){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,m),!0}for(x=1,w=new Array(b-1);x<b;x++)w[x-1]=arguments[x];v.fn.apply(v.context,w)}else{var T=v.length,p;for(x=0;x<T;x++)switch(v[x].once&&this.removeListener(u,v[x].fn,void 0,!0),b){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(p=1,w=new Array(b-1);p<b;p++)w[p-1]=arguments[p];v[x].fn.apply(v[x].context,w)}}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 m=this._events[h];if(m.fn)m.fn===c&&(!d||m.once)&&(!f||m.context===f)&&o(this,h);else{for(var y=0,v=[],b=m.length;y<b;y++)(m[y].fn!==c||d&&!m[y].once||f&&m[y].context!==f)&&v.push(m[y]);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})(Xg);var d4=Xg.exports;const h4=ke(d4);var Qc=new h4,ef="recharts.syncMouseEvents";function pi(e){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pi(e)}function p4(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,Jg(n.key),n)}}function y4(e,t,r){return t&&v4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tf(e,t,r){return t=Jg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jg(e){var t=m4(e,"string");return pi(t)=="symbol"?t:t+""}function m4(e,t){if(pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var g4=function(){function e(){p4(this,e),tf(this,"activeIndex",0),tf(this,"coordinateList",[]),tf(this,"layout","horizontal")}return y4(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 b4(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 x4(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 Zg(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 w4(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 Zg(t);return[{x:n,y:a},{x:i,y:o}]}function vi(e){"@babel/helpers - typeof";return vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vi(e)}function Qg(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?Qg(Object(r),!0).forEach(function(n){O4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O4(e,t,r){return t=S4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S4(e){var t=A4(e,"string");return vi(t)=="symbol"?t:t+""}function A4(e,t){if(vi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function T4(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 m,y=Kr;if(d==="ScatterChart")m=o,y=X3;else if(d==="BarChart")m=x4(f,o,l,c),y=yc;else if(f==="radial"){var v=Zg(o),b=v.cx,w=v.cy,x=v.radius,T=v.startAngle,p=v.endAngle;m={cx:b,cy:w,startAngle:T,endAngle:p,innerRadius:x,outerRadius:x},y=Ty}else m={points:w4(f,o,l)},y=Kr;var g=As(As(As(As({stroke:"#ccc",pointerEvents:"none"},l),m),de(h,!1)),{},{payload:s,payloadIndex:u,className:ve("recharts-tooltip-cursor",h.className)});return O.isValidElement(h)?O.cloneElement(h,g):O.createElement(y,g)}var P4=["item"],_4=["children","className","width","height","style","compact","title","desc"];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 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 eb(e,t){return j4(e)||$4(e,t)||nb(e,t)||E4()}function E4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
199
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $4(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 j4(e){if(Array.isArray(e))return e}function tb(e,t){if(e==null)return{};var r=C4(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 C4(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 M4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k4(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,ib(n.key),n)}}function N4(e,t,r){return t&&k4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function D4(e,t,r){return t=Ts(t),I4(e,rb()?Reflect.construct(t,r||[],Ts(e).constructor):t.apply(e,r))}function I4(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 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 rb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rb=function(){return!!e})()}function Ts(e){return Ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ts(e)}function L4(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&&rf(e,t)}function rf(e,t){return rf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},rf(e,t)}function ta(e){return W4(e)||F4(e)||nb(e)||B4()}function B4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
200
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nb(e,t){if(e){if(typeof e=="string")return nf(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 nf(e,t)}}function F4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function W4(e){if(Array.isArray(e))return nf(e)}function nf(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 ab(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 K(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ab(Object(r),!0).forEach(function(n){se(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ab(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function se(e,t,r){return t=ib(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ib(e){var t=U4(e,"string");return Qn(t)=="symbol"?t:t+""}function U4(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(t==="string"?String:Number)(e)}var z4={xAxis:["bottom","top"],yAxis:["left","right"]},K4={width:"100%",height:"100%"},ob={x:0,y:0};function Ps(e){return e}var q4=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},V4=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 K(K(K({},a),tt(a.cx,a.cy,s,o)),{},{angle:o,radius:s})}var l=i.coordinate,u=a.angle;return K(K(K({},a),tt(a.cx,a.cy,l,u)),{},{angle:u,radius:l})}return ob},_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(ta(s),ta(u)):s},[]);return o.length>0?o:t&&t.length&&X(a)&&X(i)?t.slice(a,i+1):[]};function sb(e){return e==="number"?[0,"auto"]:void 0}var af=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(ta(l),[hy(u,d)]):l},[])},lb=function(t,r,n,a){var i=a||{x:t.chartX,y:t.chartY},o=q4(i,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=_I(o,s,u,l);if(c>=0&&u){var f=u[c]&&u[c].value,d=af(t,r,c,f),h=V4(n,s,c,i);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},G4=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=iy(c,i);return n.reduce(function(m,y){var v,b=y.type.defaultProps!==void 0?K(K({},y.type.defaultProps),y.props):y.props,w=b.type,x=b.dataKey,T=b.allowDataOverflow,p=b.allowDuplicatedCategory,g=b.scale,S=b.ticks,P=b.includeHidden,_=b[o];if(m[_])return m;var R=_s(t.data,{graphicalItems:a.filter(function(B){var z,G=o in B.props?B.props[o]:(z=B.type.defaultProps)===null||z===void 0?void 0:z[o];return G===_}),dataStartIndex:l,dataEndIndex:u}),M=R.length,C,W,U;b4(b.domain,T,w)&&(C=Gu(b.domain,null,T),h&&(w==="number"||g!=="auto")&&(U=Wa(R,x,"category")));var F=sb(w);if(!C||C.length===0){var N,D=(N=b.domain)!==null&&N!==void 0?N:F;if(x){if(C=Wa(R,x,w),w==="category"&&h){var L=hO(C);p&&L?(W=C,C=Zo(0,M)):p||(C=dy(D,C,y).reduce(function(B,z){return B.indexOf(z)>=0?B:[].concat(ta(B),[z])},[]))}else if(w==="category")p?C=C.filter(function(B){return B!==""&&!fe(B)}):C=dy(D,C,y).reduce(function(B,z){return B.indexOf(z)>=0||z===""||fe(z)?B:[].concat(ta(B),[z])},[]);else if(w==="number"){var $=MI(R,a.filter(function(B){var z,G,Z=o in B.props?B.props[o]:(z=B.type.defaultProps)===null||z===void 0?void 0:z[o],Q="hide"in B.props?B.props.hide:(G=B.type.defaultProps)===null||G===void 0?void 0:G.hide;return Z===_&&(P||!Q)}),x,i,c);$&&(C=$)}h&&(w==="number"||g!=="auto")&&(U=Wa(R,x,"category"))}else h?C=Zo(0,M):s&&s[_]&&s[_].hasStack&&w==="number"?C=d==="expand"?[0,1]:uy(s[_].stackGroups,l,u):C=ay(R,a.filter(function(B){var z=o in B.props?B.props[o]:B.type.defaultProps[o],G="hide"in B.props?B.props.hide:B.type.defaultProps.hide;return z===_&&(P||!G)}),w,c,!0);if(w==="number")C=Zc(f,C,_,i,S),D&&(C=Gu(D,C,T));else if(w==="category"&&D){var E=D,I=C.every(function(B){return E.indexOf(B)>=0});I&&(C=E)}}return K(K({},m),{},se({},_,K(K({},b),{},{axisType:i,domain:C,categoricalDomain:U,duplicateDomain:W,originalDomain:(v=b.domain)!==null&&v!==void 0?v:F,isCategorical:h,layout:c})))},{})},H4=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,m=iy(c,i),y=-1;return n.reduce(function(v,b){var w=b.type.defaultProps!==void 0?K(K({},b.type.defaultProps),b.props):b.props,x=w[o],T=sb("number");if(!v[x]){y++;var p;return m?p=Zo(0,h):s&&s[x]&&s[x].hasStack?(p=uy(s[x].stackGroups,l,u),p=Zc(f,p,x,i)):(p=Gu(T,ay(d,n.filter(function(g){var S,P,_=o in g.props?g.props[o]:(S=g.type.defaultProps)===null||S===void 0?void 0:S[o],R="hide"in g.props?g.props.hide:(P=g.type.defaultProps)===null||P===void 0?void 0:P.hide;return _===x&&!R}),"number",c),a.defaultProps.allowDataOverflow),p=Zc(f,p,x,i)),K(K({},v),{},se({},x,K(K({axisType:i},a.defaultProps),{},{hide:!0,orientation:xt(z4,"".concat(i,".").concat(y%2),null),domain:p,originalDomain:T,isCategorical:m,layout:c})))}return v},{})},Y4=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=G4(t,{axes:d,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(h=H4(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),h},X4=function(t){var r=hr(t),n=lr(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Fl(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Do(r,n)}},ub=function(t){var r=t.children,n=t.defaultShowTooltip,a=pt(r,Dn),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}},J4=function(t){return!t||!t.length?!1:t.some(function(r){var n=Zt(r&&r.type);return n&&n.indexOf("Bar")>=0})},cb=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"}},Z4=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=pt(f,Dn),m=pt(f,yn),y=Object.keys(l).reduce(function(p,g){var S=l[g],P=S.orientation;return!S.mirror&&!S.hide?K(K({},p),{},se({},P,p[P]+S.width)):p},{left:d.left||0,right:d.right||0}),v=Object.keys(o).reduce(function(p,g){var S=o[g],P=S.orientation;return!S.mirror&&!S.hide?K(K({},p),{},se({},P,xt(p,"".concat(P))+S.height)):p},{top:d.top||0,bottom:d.bottom||0}),b=K(K({},v),y),w=b.bottom;h&&(b.bottom+=h.props.height||Dn.defaultProps.height),m&&r&&(b=jI(b,a,n,r));var x=u-b.left-b.right,T=c-b.top-b.bottom;return K(K({brushBottom:w},b),{},{width:Math.max(x,0),height:Math.max(T,0)})},Q4=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},eU=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(b,w){var x=w.graphicalItems,T=w.stackGroups,p=w.offset,g=w.updateId,S=w.dataStartIndex,P=w.dataEndIndex,_=b.barSize,R=b.layout,M=b.barGap,C=b.barCategoryGap,W=b.maxBarSize,U=cb(R),F=U.numericAxisName,N=U.cateAxisName,D=J4(x),L=[];return x.forEach(function($,E){var I=_s(b.data,{graphicalItems:[$],dataStartIndex:S,dataEndIndex:P}),B=$.type.defaultProps!==void 0?K(K({},$.type.defaultProps),$.props):$.props,z=B.dataKey,G=B.maxBarSize,Z=B["".concat(F,"Id")],Q=B["".concat(N,"Id")],ee={},te=l.reduce(function(Lt,gt){var Oi,Si,na=w["".concat(gt.axisType,"Map")],Ai=B["".concat(gt.axisType,"Id")];na&&na[Ai]||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((Oi=$==null||(Si=$.type)===null||Si===void 0?void 0:Si.displayName)!==null&&Oi!==void 0?Oi:"")):ft());var Ti=na[Ai];return K(K({},Lt),{},se(se({},gt.axisType,Ti),"".concat(gt.axisType,"Ticks"),lr(Ti)))},ee),q=te[N],Y=te["".concat(N,"Ticks")],J=T&&T[Z]&&T[Z].hasStack&&KI($,T[Z].stackGroups),k=Zt($.type).indexOf("Bar")>=0,ie=Do(q,Y),V=[],re=D&&EI({barSize:_,stackGroups:T,totalSize:Q4(te,N)});if(k){var oe,Ce,Te=fe(G)?W:G,Ee=(oe=(Ce=Do(q,Y,!0))!==null&&Ce!==void 0?Ce:Te)!==null&&oe!==void 0?oe:0;V=$I({barGap:M,barCategoryGap:C,bandSize:Ee!==ie?Ee:ie,sizeList:re[Q],maxBarSize:Te}),Ee!==ie&&(V=V.map(function(Lt){return K(K({},Lt),{},{position:K(K({},Lt.position),{},{offset:Lt.position.offset-Ee/2})})}))}var et=$&&$.type&&$.type.getComposedData;et&&L.push({props:K(K({},et(K(K({},te),{},{displayedData:I,props:b,dataKey:z,item:$,bandSize:ie,barPosition:V,offset:p,stackedData:J,layout:R,dataStartIndex:S,dataEndIndex:P}))),{},se(se(se({key:$.key||"item-".concat(E)},F,te[F]),N,te[N]),"animationId",g)),childIndex:PO($,b.children),item:$})}),L},h=function(b,w){var x=b.props,T=b.dataStartIndex,p=b.dataEndIndex,g=b.updateId;if(!Jf({props:x}))return null;var S=x.children,P=x.layout,_=x.stackOffset,R=x.data,M=x.reverseStackOrder,C=cb(P),W=C.numericAxisName,U=C.cateAxisName,F=ut(S,n),N=WI(R,F,"".concat(W,"Id"),"".concat(U,"Id"),_,M),D=l.reduce(function(B,z){var G="".concat(z.axisType,"Map");return K(K({},B),{},se({},G,Y4(x,K(K({},z),{},{graphicalItems:F,stackGroups:z.axisType===W&&N,dataStartIndex:T,dataEndIndex:p}))))},{}),L=Z4(K(K({},D),{},{props:x,graphicalItems:F}),w==null?void 0:w.legendBBox);Object.keys(D).forEach(function(B){D[B]=c(x,D[B],L,B.replace("Map",""),r)});var $=D["".concat(U,"Map")],E=X4($),I=d(x,K(K({},D),{},{dataStartIndex:T,dataEndIndex:p,updateId:g,graphicalItems:F,stackGroups:N,offset:L}));return K(K({formattedGraphicalItems:I,graphicalItems:F,offset:L,stackGroups:N},E),D)},m=function(v){function b(w){var x,T,p;return M4(this,b),p=D4(this,b,[w]),se(p,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),se(p,"accessibilityManager",new g4),se(p,"handleLegendBBoxUpdate",function(g){if(g){var S=p.state,P=S.dataStartIndex,_=S.dataEndIndex,R=S.updateId;p.setState(K({legendBBox:g},h({props:p.props,dataStartIndex:P,dataEndIndex:_,updateId:R},K(K({},p.state),{},{legendBBox:g}))))}}),se(p,"handleReceiveSyncEvent",function(g,S,P){if(p.props.syncId===g){if(P===p.eventEmitterSymbol&&typeof p.props.syncMethod!="function")return;p.applySyncEvent(S)}}),se(p,"handleBrushChange",function(g){var S=g.startIndex,P=g.endIndex;if(S!==p.state.dataStartIndex||P!==p.state.dataEndIndex){var _=p.state.updateId;p.setState(function(){return K({dataStartIndex:S,dataEndIndex:P},h({props:p.props,dataStartIndex:S,dataEndIndex:P,updateId:_},p.state))}),p.triggerSyncEvent({dataStartIndex:S,dataEndIndex:P})}}),se(p,"handleMouseEnter",function(g){var S=p.getMouseInfo(g);if(S){var P=K(K({},S),{},{isTooltipActive:!0});p.setState(P),p.triggerSyncEvent(P);var _=p.props.onMouseEnter;he(_)&&_(P,g)}}),se(p,"triggeredAfterMouseMove",function(g){var S=p.getMouseInfo(g),P=S?K(K({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};p.setState(P),p.triggerSyncEvent(P);var _=p.props.onMouseMove;he(_)&&_(P,g)}),se(p,"handleItemMouseEnter",function(g){p.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),se(p,"handleItemMouseLeave",function(){p.setState(function(){return{isTooltipActive:!1}})}),se(p,"handleMouseMove",function(g){g.persist(),p.throttleTriggeredAfterMouseMove(g)}),se(p,"handleMouseLeave",function(g){p.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};p.setState(S),p.triggerSyncEvent(S);var P=p.props.onMouseLeave;he(P)&&P(S,g)}),se(p,"handleOuterEvent",function(g){var S=TO(g),P=xt(p.props,"".concat(S));if(S&&he(P)){var _,R;/.*touch.*/i.test(S)?R=p.getMouseInfo(g.changedTouches[0]):R=p.getMouseInfo(g),P((_=R)!==null&&_!==void 0?_:{},g)}}),se(p,"handleClick",function(g){var S=p.getMouseInfo(g);if(S){var P=K(K({},S),{},{isTooltipActive:!0});p.setState(P),p.triggerSyncEvent(P);var _=p.props.onClick;he(_)&&_(P,g)}}),se(p,"handleMouseDown",function(g){var S=p.props.onMouseDown;if(he(S)){var P=p.getMouseInfo(g);S(P,g)}}),se(p,"handleMouseUp",function(g){var S=p.props.onMouseUp;if(he(S)){var P=p.getMouseInfo(g);S(P,g)}}),se(p,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&p.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),se(p,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&p.handleMouseDown(g.changedTouches[0])}),se(p,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&p.handleMouseUp(g.changedTouches[0])}),se(p,"handleDoubleClick",function(g){var S=p.props.onDoubleClick;if(he(S)){var P=p.getMouseInfo(g);S(P,g)}}),se(p,"handleContextMenu",function(g){var S=p.props.onContextMenu;if(he(S)){var P=p.getMouseInfo(g);S(P,g)}}),se(p,"triggerSyncEvent",function(g){p.props.syncId!==void 0&&Qc.emit(ef,p.props.syncId,g,p.eventEmitterSymbol)}),se(p,"applySyncEvent",function(g){var S=p.props,P=S.layout,_=S.syncMethod,R=p.state.updateId,M=g.dataStartIndex,C=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)p.setState(K({dataStartIndex:M,dataEndIndex:C},h({props:p.props,dataStartIndex:M,dataEndIndex:C,updateId:R},p.state)));else if(g.activeTooltipIndex!==void 0){var W=g.chartX,U=g.chartY,F=g.activeTooltipIndex,N=p.state,D=N.offset,L=N.tooltipTicks;if(!D)return;if(typeof _=="function")F=_(L,g);else if(_==="value"){F=-1;for(var $=0;$<L.length;$++)if(L[$].value===g.activeLabel){F=$;break}}var E=K(K({},D),{},{x:D.left,y:D.top}),I=Math.min(W,E.x+E.width),B=Math.min(U,E.y+E.height),z=L[F]&&L[F].value,G=af(p.state,p.props.data,F),Z=L[F]?{x:P==="horizontal"?L[F].coordinate:I,y:P==="horizontal"?B:L[F].coordinate}:ob;p.setState(K(K({},g),{},{activeLabel:z,activeCoordinate:Z,activePayload:G,activeTooltipIndex:F}))}else p.setState(g)}),se(p,"renderCursor",function(g){var S,P=p.state,_=P.isTooltipActive,R=P.activeCoordinate,M=P.activePayload,C=P.offset,W=P.activeTooltipIndex,U=P.tooltipAxisBandSize,F=p.getTooltipEventType(),N=(S=g.props.active)!==null&&S!==void 0?S:_,D=p.props.layout,L=g.key||"_recharts-cursor";return O.createElement(T4,{key:L,activeCoordinate:R,activePayload:M,activeTooltipIndex:W,chartName:r,element:g,isActive:N,layout:D,offset:C,tooltipAxisBandSize:U,tooltipEventType:F})}),se(p,"renderPolarAxis",function(g,S,P){var _=xt(g,"type.axisType"),R=xt(p.state,"".concat(_,"Map")),M=g.type.defaultProps,C=M!==void 0?K(K({},M),g.props):g.props,W=R&&R[C["".concat(_,"Id")]];return O.cloneElement(g,K(K({},W),{},{className:ve(_,W.className),key:g.key||"".concat(S,"-").concat(P),ticks:lr(W,!0)}))}),se(p,"renderPolarGrid",function(g){var S=g.props,P=S.radialLines,_=S.polarAngles,R=S.polarRadius,M=p.state,C=M.radiusAxisMap,W=M.angleAxisMap,U=hr(C),F=hr(W),N=F.cx,D=F.cy,L=F.innerRadius,$=F.outerRadius;return O.cloneElement(g,{polarAngles:Array.isArray(_)?_:lr(F,!0).map(function(E){return E.coordinate}),polarRadius:Array.isArray(R)?R:lr(U,!0).map(function(E){return E.coordinate}),cx:N,cy:D,innerRadius:L,outerRadius:$,key:g.key||"polar-grid",radialLines:P})}),se(p,"renderLegend",function(){var g=p.state.formattedGraphicalItems,S=p.props,P=S.children,_=S.width,R=S.height,M=p.props.margin||{},C=_-(M.left||0)-(M.right||0),W=ey({children:P,formattedGraphicalItems:g,legendWidth:C,legendContent:u});if(!W)return null;var U=W.item,F=tb(W,P4);return O.cloneElement(U,K(K({},F),{},{chartWidth:_,chartHeight:R,margin:M,onBBoxUpdate:p.handleLegendBBoxUpdate}))}),se(p,"renderTooltip",function(){var g,S=p.props,P=S.children,_=S.accessibilityLayer,R=pt(P,Wt);if(!R)return null;var M=p.state,C=M.isTooltipActive,W=M.activeCoordinate,U=M.activePayload,F=M.activeLabel,N=M.offset,D=(g=R.props.active)!==null&&g!==void 0?g:C;return O.cloneElement(R,{viewBox:K(K({},N),{},{x:N.left,y:N.top}),active:D,label:F,payload:D?U:[],coordinate:W,accessibilityLayer:_})}),se(p,"renderBrush",function(g){var S=p.props,P=S.margin,_=S.data,R=p.state,M=R.offset,C=R.dataStartIndex,W=R.dataEndIndex,U=R.updateId;return O.cloneElement(g,{key:g.key||"_recharts-brush",onChange:No(p.handleBrushChange,g.props.onChange),data:_,x:X(g.props.x)?g.props.x:M.left,y:X(g.props.y)?g.props.y:M.top+M.height+M.brushBottom-(P.bottom||0),width:X(g.props.width)?g.props.width:M.width,startIndex:C,endIndex:W,updateId:"brush-".concat(U)})}),se(p,"renderReferenceElement",function(g,S,P){if(!g)return null;var _=p,R=_.clipPathId,M=p.state,C=M.xAxisMap,W=M.yAxisMap,U=M.offset,F=g.type.defaultProps||{},N=g.props,D=N.xAxisId,L=D===void 0?F.xAxisId:D,$=N.yAxisId,E=$===void 0?F.yAxisId:$;return O.cloneElement(g,{key:g.key||"".concat(S,"-").concat(P),xAxis:C[L],yAxis:W[E],viewBox:{x:U.left,y:U.top,width:U.width,height:U.height},clipPathId:R})}),se(p,"renderActivePoints",function(g){var S=g.item,P=g.activePoint,_=g.basePoint,R=g.childIndex,M=g.isRange,C=[],W=S.props.key,U=S.item.type.defaultProps!==void 0?K(K({},S.item.type.defaultProps),S.item.props):S.item.props,F=U.activeDot,N=U.dataKey,D=K(K({index:R,dataKey:N,cx:P.x,cy:P.y,r:4,fill:qu(S.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},de(F,!1)),Ni(F));return C.push(b.renderActiveDot(F,D,"".concat(W,"-activePoint-").concat(R))),_?C.push(b.renderActiveDot(F,K(K({},D),{},{cx:_.x,cy:_.y}),"".concat(W,"-basePoint-").concat(R))):M&&C.push(null),C}),se(p,"renderGraphicChild",function(g,S,P){var _=p.filterFormatItem(g,S,P);if(!_)return null;var R=p.getTooltipEventType(),M=p.state,C=M.isTooltipActive,W=M.tooltipAxis,U=M.activeTooltipIndex,F=M.activeLabel,N=p.props.children,D=pt(N,Wt),L=_.props,$=L.points,E=L.isRange,I=L.baseLine,B=_.item.type.defaultProps!==void 0?K(K({},_.item.type.defaultProps),_.item.props):_.item.props,z=B.activeDot,G=B.hide,Z=B.activeBar,Q=B.activeShape,ee=!!(!G&&C&&D&&(z||Z||Q)),te={};R!=="axis"&&D&&D.props.trigger==="click"?te={onClick:No(p.handleItemMouseEnter,g.props.onClick)}:R!=="axis"&&(te={onMouseLeave:No(p.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:No(p.handleItemMouseEnter,g.props.onMouseEnter)});var q=O.cloneElement(g,K(K({},_.props),te));function Y(gt){return typeof W.dataKey=="function"?W.dataKey(gt.payload):null}if(ee)if(U>=0){var J,k;if(W.dataKey&&!W.allowDuplicatedCategory){var ie=typeof W.dataKey=="function"?Y:"payload.".concat(W.dataKey.toString());J=ki($,ie,F),k=E&&I&&ki(I,ie,F)}else J=$==null?void 0:$[U],k=E&&I&&I[U];if(Q||Z){var V=g.props.activeIndex!==void 0?g.props.activeIndex:U;return[O.cloneElement(g,K(K(K({},_.props),te),{},{activeIndex:V})),null,null]}if(!fe(J))return[q].concat(ta(p.renderActivePoints({item:_,activePoint:J,basePoint:k,childIndex:U,isRange:E})))}else{var re,oe=(re=p.getItemByXY(p.state.activeCoordinate))!==null&&re!==void 0?re:{graphicalItem:q},Ce=oe.graphicalItem,Te=Ce.item,Ee=Te===void 0?g:Te,et=Ce.childIndex,Lt=K(K(K({},_.props),te),{},{activeIndex:et});return[O.cloneElement(Ee,Lt),null,null]}return E?[q,null,null]:[q,null]}),se(p,"renderCustomized",function(g,S,P){return O.cloneElement(g,K(K({key:"recharts-customized-".concat(P)},p.props),p.state))}),se(p,"renderMap",{CartesianGrid:{handler:Ps,once:!0},ReferenceArea:{handler:p.renderReferenceElement},ReferenceLine:{handler:Ps},ReferenceDot:{handler:p.renderReferenceElement},XAxis:{handler:Ps},YAxis:{handler:Ps},Brush:{handler:p.renderBrush,once:!0},Bar:{handler:p.renderGraphicChild},Line:{handler:p.renderGraphicChild},Area:{handler:p.renderGraphicChild},Radar:{handler:p.renderGraphicChild},RadialBar:{handler:p.renderGraphicChild},Scatter:{handler:p.renderGraphicChild},Pie:{handler:p.renderGraphicChild},Funnel:{handler:p.renderGraphicChild},Tooltip:{handler:p.renderCursor,once:!0},PolarGrid:{handler:p.renderPolarGrid,once:!0},PolarAngleAxis:{handler:p.renderPolarAxis},PolarRadiusAxis:{handler:p.renderPolarAxis},Customized:{handler:p.renderCustomized}}),p.clipPathId="".concat((x=w.id)!==null&&x!==void 0?x:jr("recharts"),"-clip"),p.throttleTriggeredAfterMouseMove=Jh(p.triggeredAfterMouseMove,(T=w.throttleDelay)!==null&&T!==void 0?T:1e3/60),p.state={},p}return L4(b,v),N4(b,[{key:"componentDidMount",value:function(){var x,T;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(T=this.props.margin.top)!==null&&T!==void 0?T:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,T=x.children,p=x.data,g=x.height,S=x.layout,P=pt(T,Wt);if(P){var _=P.props.defaultIndex;if(!(typeof _!="number"||_<0||_>this.state.tooltipTicks.length-1)){var R=this.state.tooltipTicks[_]&&this.state.tooltipTicks[_].value,M=af(this.state,p,_,R),C=this.state.tooltipTicks[_].coordinate,W=(this.state.offset.top+g)/2,U=S==="horizontal",F=U?{x:C,y:W}:{y:C,x:W},N=this.state.formattedGraphicalItems.find(function(L){var $=L.item;return $.type.name==="Scatter"});N&&(F=K(K({},F),N.props.points[_].tooltipPosition),M=N.props.points[_].tooltipPayload);var D={activeTooltipIndex:_,isTooltipActive:!0,activeLabel:R,activePayload:M,activeCoordinate:F};this.setState(D),this.renderCursor(P),this.accessibilityManager.setIndex(_)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,T){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==T.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 p,g;this.accessibilityManager.setDetails({offset:{left:(p=this.props.margin.left)!==null&&p!==void 0?p:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0}})}return null}},{key:"componentDidUpdate",value:function(x){il([pt(x.children,Wt)],[pt(this.props.children,Wt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=pt(this.props.children,Wt);if(x&&typeof x.props.shared=="boolean"){var T=x.props.shared?"axis":"item";return s.indexOf(T)>=0?T:i}return i}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var T=this.container,p=T.getBoundingClientRect(),g=ek(p),S={chartX:Math.round(x.pageX-g.left),chartY:Math.round(x.pageY-g.top)},P=p.width/T.offsetWidth||1,_=this.inRange(S.chartX,S.chartY,P);if(!_)return null;var R=this.state,M=R.xAxisMap,C=R.yAxisMap,W=this.getTooltipEventType(),U=lb(this.state,this.props.data,this.props.layout,_);if(W!=="axis"&&M&&C){var F=hr(M).scale,N=hr(C).scale,D=F&&F.invert?F.invert(S.chartX):null,L=N&&N.invert?N.invert(S.chartY):null;return K(K({},S),{},{xValue:D,yValue:L},U)}return U?K(K({},S),U):null}},{key:"inRange",value:function(x,T){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,S=x/p,P=T/p;if(g==="horizontal"||g==="vertical"){var _=this.state.offset,R=S>=_.left&&S<=_.left+_.width&&P>=_.top&&P<=_.top+_.height;return R?{x:S,y:P}:null}var M=this.state,C=M.angleAxisMap,W=M.radiusAxisMap;if(C&&W){var U=hr(C);return yy({x:S,y:P},U)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,T=this.getTooltipEventType(),p=pt(x,Wt),g={};p&&T==="axis"&&(p.props.trigger==="click"?g={onClick:this.handleClick}:g={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 S=Ni(this.props,this.handleOuterEvent);return K(K({},S),g)}},{key:"addListener",value:function(){Qc.on(ef,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Qc.removeListener(ef,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,T,p){for(var g=this.state.formattedGraphicalItems,S=0,P=g.length;S<P;S++){var _=g[S];if(_.item===x||_.props.key===x.key||T===Zt(_.item.type)&&p===_.childIndex)return _}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,T=this.state.offset,p=T.left,g=T.top,S=T.height,P=T.width;return O.createElement("defs",null,O.createElement("clipPath",{id:x},O.createElement("rect",{x:p,y:g,height:S,width:P})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(T,p){var g=eb(p,2),S=g[0],P=g[1];return K(K({},T),{},se({},S,P.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(T,p){var g=eb(p,2),S=g[0],P=g[1];return K(K({},T),{},se({},S,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var T;return(T=this.state.xAxisMap)===null||T===void 0||(T=T[x])===null||T===void 0?void 0:T.scale}},{key:"getYScaleByAxisId",value:function(x){var T;return(T=this.state.yAxisMap)===null||T===void 0||(T=T[x])===null||T===void 0?void 0:T.scale}},{key:"getItemByXY",value:function(x){var T=this.state,p=T.formattedGraphicalItems,g=T.activeItem;if(p&&p.length)for(var S=0,P=p.length;S<P;S++){var _=p[S],R=_.props,M=_.item,C=M.type.defaultProps!==void 0?K(K({},M.type.defaultProps),M.props):M.props,W=Zt(M.type);if(W==="Bar"){var U=(R.data||[]).find(function(L){return F3(x,L)});if(U)return{graphicalItem:_,payload:U}}else if(W==="RadialBar"){var F=(R.data||[]).find(function(L){return yy(x,L)});if(F)return{graphicalItem:_,payload:F}}else if(Xo(_,g)||Jo(_,g)||ii(_,g)){var N=UB({graphicalItem:_,activeTooltipItem:g,itemData:C.data}),D=C.activeIndex===void 0?N:C.activeIndex;return{graphicalItem:K(K({},_),{},{childIndex:D}),payload:ii(_,g)?C.data[N]:_.props.data[N]}}}return null}},{key:"render",value:function(){var x=this;if(!Jf(this))return null;var T=this.props,p=T.children,g=T.className,S=T.width,P=T.height,_=T.style,R=T.compact,M=T.title,C=T.desc,W=tb(T,_4),U=de(W,!1);if(R)return O.createElement(Zm,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement(sl,ea({},U,{width:S,height:P,title:M,desc:C}),this.renderClipPath(),ed(p,this.renderMap)));if(this.props.accessibilityLayer){var F,N;U.tabIndex=(F=this.props.tabIndex)!==null&&F!==void 0?F:0,U.role=(N=this.props.role)!==null&&N!==void 0?N:"application",U.onKeyDown=function(L){x.accessibilityManager.keyboardEvent(L)},U.onFocus=function(){x.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return O.createElement(Zm,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",ea({className:ve("recharts-wrapper",g),style:K({position:"relative",cursor:"default",width:S,height:P},_)},D,{ref:function($){x.container=$}}),O.createElement(sl,ea({},U,{width:S,height:P,title:M,desc:C,style:K4}),this.renderClipPath(),ed(p,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(O.Component);se(m,"displayName",r),se(m,"defaultProps",K({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),se(m,"getDerivedStateFromProps",function(v,b){var w=v.dataKey,x=v.data,T=v.children,p=v.width,g=v.height,S=v.layout,P=v.stackOffset,_=v.margin,R=b.dataStartIndex,M=b.dataEndIndex;if(b.updateId===void 0){var C=ub(v);return K(K(K({},C),{},{updateId:0},h(K(K({props:v},C),{},{updateId:0}),b)),{},{prevDataKey:w,prevData:x,prevWidth:p,prevHeight:g,prevLayout:S,prevStackOffset:P,prevMargin:_,prevChildren:T})}if(w!==b.prevDataKey||x!==b.prevData||p!==b.prevWidth||g!==b.prevHeight||S!==b.prevLayout||P!==b.prevStackOffset||!un(_,b.prevMargin)){var W=ub(v),U={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},F=K(K({},lb(b,x,S)),{},{updateId:b.updateId+1}),N=K(K(K({},W),U),F);return K(K(K({},N),h(K({props:v},N),b)),{},{prevDataKey:w,prevData:x,prevWidth:p,prevHeight:g,prevLayout:S,prevStackOffset:P,prevMargin:_,prevChildren:T})}if(!il(T,b.prevChildren)){var D,L,$,E,I=pt(T,Dn),B=I&&(D=(L=I.props)===null||L===void 0?void 0:L.startIndex)!==null&&D!==void 0?D:R,z=I&&($=(E=I.props)===null||E===void 0?void 0:E.endIndex)!==null&&$!==void 0?$:M,G=B!==R||z!==M,Z=!fe(x),Q=Z&&!G?b.updateId:b.updateId+1;return K(K({updateId:Q},h(K(K({props:v},b),{},{updateId:Q,dataStartIndex:B,dataEndIndex:z}),b)),{},{prevChildren:T,dataStartIndex:B,dataEndIndex:z})}return null}),se(m,"renderActiveDot",function(v,b,w){var x;return O.isValidElement(v)?x=O.cloneElement(v,b):he(v)?x=v(b):x=O.createElement(Go,b),O.createElement(be,{className:"recharts-active-dot",key:w},x)});var y=O.forwardRef(function(b,w){return O.createElement(m,ea({},b,{ref:w}))});return y.displayName=m.displayName,y},tU=eU({chartName:"ComposedChart",GraphicalChild:[fi,Ar,Ln,bs],axisComponents:[{axisType:"xAxis",AxisComp:ws},{axisType:"yAxis",AxisComp:Ss},{axisType:"zAxis",AxisComp:ms}],formatAxisMap:h6});const Rt=({className:e,width:t,height:r,rounded:n=!1})=>A.jsx("div",{className:ue("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}}),yi=({className:e})=>A.jsxs("div",{className:ue("rounded-lg border border-gray-200 bg-white p-4",e),children:[A.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[A.jsx(Rt,{className:"h-4 w-16"}),A.jsx(Rt,{className:"h-4 w-4",rounded:!0})]}),A.jsxs("div",{className:"flex items-baseline gap-3",children:[A.jsx(Rt,{className:"h-8 w-20"}),A.jsx(Rt,{className:"h-6 w-12 rounded-md"})]})]}),fb=({className:e})=>A.jsx("div",{className:ue("w-full",e),children:A.jsxs("div",{className:"relative bg-gray-50/30 p-6",children:[A.jsxs("div",{className:"relative h-[300px] mb-4",children:[A.jsx("div",{className:"absolute left-0 top-0 h-full flex flex-col justify-between items-end pr-2",children:[...Array(6)].map((t,r)=>A.jsx(Rt,{className:"h-3 w-8"},r))}),A.jsxs("div",{className:"ml-12 h-full relative overflow-hidden px-0 py-2",children:[[...Array(6)].map((t,r)=>A.jsx("div",{className:"absolute w-full border-t border-gray-100",style:{top:`${r*20}%`}},r)),A.jsx("div",{className:"absolute inset-0 flex justify-between items-stretch",children:[...Array(7)].map((t,r)=>A.jsx("div",{className:"w-0 h-full border-l border-gray-100"},r))}),A.jsx("div",{className:"absolute inset-0 flex items-end justify-between px-4 pb-4",children:[...Array(7)].map((t,r)=>A.jsx(Rt,{className:"w-8 bg-blue-100",height:Math.random()*180+40},r))})]}),A.jsx("div",{className:"ml-12 flex justify-between items-center mt-2",children:[...Array(7)].map((t,r)=>A.jsx(Rt,{className:"h-3 w-3"},r))})]}),A.jsxs("div",{className:"flex items-center justify-between px-0 py-1",children:[A.jsx(Rt,{className:"h-3 w-48"}),A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx(Rt,{className:"h-3 w-3",rounded:!0}),A.jsx(Rt,{className:"h-3 w-16"})]})]})]})}),rU=({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 A.jsxs("div",{className:ue("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:[A.jsx("div",{className:ue("font-medium mb-1",i?"text-gray-300":"text-gray-600"),children:new Date(r||"").toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}),A.jsx("div",{className:"space-y-1",children:a.map((s,l)=>A.jsxs("div",{className:"flex items-center justify-between gap-4",children:[A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:s.color}}),A.jsx("span",{className:ue("text-sm",i?"text-gray-300":"text-gray-600"),children:s.name})]}),A.jsx("span",{className:ue("font-medium",i?"text-white":"text-gray-900"),children:typeof s.value=="number"?s.value.toLocaleString():s.value})]},l))})]})},db=({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=y=>{const v=new Date(y);return isNaN(v.getTime())?y:v.getDate().toString()},d=y=>y>=1e3?`${(y/1e3).toFixed(0)}k`:y.toString(),m=o&&o.length>0?o:[{dataKey:a||"value",color:i,label:e.title,strokeWidth:2}];return r?(console.log("AnalyticsChart: Loading state active"),A.jsx(fb,{className:t})):!n||n.length===0?(console.log("AnalyticsChart: No data provided",{data:n,config:e}),A.jsx("div",{className:ue("w-full",t),children:A.jsxs("div",{className:"relative bg-gray-50/30 py-6",children:[A.jsxs("div",{className:"relative h-[300px] mb-4",children:[A.jsxs("div",{className:"absolute left-0 top-0 h-full flex flex-col justify-between items-end pr-2",children:[A.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-8"}),A.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-8"}),A.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-8"}),A.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-8"}),A.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-8"}),A.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-8"})]}),A.jsxs("div",{className:"ml-12 h-full relative overflow-hidden px-0 py-2 flex flex-col justify-between",children:[A.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),A.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),A.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),A.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),A.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),A.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),A.jsxs("div",{className:"absolute inset-0 flex justify-between items-stretch",children:[A.jsx("div",{className:"w-0 h-full border-l border-gray-100"}),A.jsx("div",{className:"w-0 h-full border-l border-gray-100"}),A.jsx("div",{className:"w-0 h-full border-l border-gray-100"}),A.jsx("div",{className:"w-0 h-full border-l border-gray-100"}),A.jsx("div",{className:"w-0 h-full border-l border-gray-100"}),A.jsx("div",{className:"w-0 h-full border-l border-gray-100"}),A.jsx("div",{className:"w-0 h-full border-l border-gray-100"})]}),A.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-4",children:[A.jsx("div",{className:"bg-white border border-gray-300 rounded-[10px] w-12 h-12 flex items-center justify-center",children:A.jsx("svg",{className:"w-6 h-6 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A.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"})})}),A.jsxs("div",{className:"text-center max-w-[352px]",children:[A.jsx("h3",{className:"font-semibold text-gray-900 text-base mb-1",children:"There is no data to display for this period"}),A.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."})]})]})]}),A.jsxs("div",{className:"ml-12 flex justify-between items-center mt-2",children:[A.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-3.5"}),A.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-3.5"}),A.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-3.5"}),A.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-3.5"}),A.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-3.5"}),A.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-3.5"}),A.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-3.5"})]})]}),A.jsxs("div",{className:"flex items-center justify-between px-0 py-1",children:[A.jsx("div",{className:"flex-1",children:A.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-[253px]"})}),A.jsxs("div",{className:"flex items-center gap-2 w-[100px] justify-center",children:[A.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full"}),A.jsx("div",{className:"bg-gray-100 h-[10.5px] 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:",m),console.log("Sample data point:",n[0]),console.log("Data point keys:",Object.keys(n[0]||{})),console.log("=== END ANALYTICS CHART DEBUG ==="),A.jsxs("div",{className:ue("w-full",t),children:[A.jsx("div",{className:"relative bg-gray-50/30 py-6",children:A.jsx(GM,{width:"100%",height:u,children:A.jsxs(tU,{data:n,margin:{top:20,right:30,left:20,bottom:20},children:[A.jsx("defs",{children:m.map((y,v)=>A.jsxs("linearGradient",{id:`gradient-${y.dataKey}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[A.jsx("stop",{offset:"5%",stopColor:y.color,stopOpacity:.08}),A.jsx("stop",{offset:"95%",stopColor:y.color,stopOpacity:.01})]},`gradient-${v}`))}),A.jsx(Ag,{strokeDasharray:"2 2",className:"opacity-30",stroke:"#d1d5db",horizontal:!0,vertical:!0}),A.jsx(ws,{dataKey:"date",tickFormatter:f,axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6b7280"},tickMargin:10}),A.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&&A.jsx(Wt,{content:y=>A.jsx(rU,{...y,config:e}),cursor:{stroke:"#d1d5db",strokeWidth:1,strokeDasharray:"4 4"},allowEscapeViewBox:{x:!1,y:!1}}),m.map(y=>A.jsx(Ar,{type:"monotone",dataKey:y.dataKey,stroke:"none",fill:`url(#gradient-${y.dataKey})`,fillOpacity:1,isAnimationActive:!1,name:""},`area-${y.dataKey}`)),m.map(y=>A.jsx(fi,{type:"monotone",dataKey:y.dataKey,stroke:y.color,strokeWidth:2.5,strokeDasharray:y.strokeDasharray,dot:!1,activeDot:{r:5,fill:y.color,stroke:y.color,strokeWidth:2},name:y.label},y.dataKey))]})})}),A.jsxs("div",{className:"mt-4 flex items-center justify-between",children:[A.jsx("div",{children:s&&A.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"})]})}),A.jsx("div",{className:"flex items-center gap-4",children:A.jsx("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:m.map(y=>A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:y.color}}),A.jsx("span",{children:y.label})]},y.dataKey))})})]})]}))},hb=({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]=O.useState(o.defaultSort||null),[c,f]=O.useState(""),[d,h]=O.useState(1),m=O.useMemo(()=>{let p=[...n];return s.searchable&&c&&(p=p.filter(g=>a.some(S=>{const P=g[S.key];return P==null?void 0:P.toString().toLowerCase().includes(c.toLowerCase())}))),l&&p.sort((g,S)=>{const P=g[l.key],_=S[l.key];if(typeof P=="number"&&typeof _=="number")return l.order==="asc"?P-_:_-P;const R=(P==null?void 0:P.toString())||"",M=(_==null?void 0:_.toString())||"",C=R.localeCompare(M);return l.order==="asc"?C:-C}),p},[n,a,c,l,s.searchable]),y=i.enabled?Math.ceil(m.length/i.pageSize):1,v=i.enabled?m.slice((d-1)*i.pageSize,d*i.pageSize):m,b=p=>{!o.enabled||!p.sortable||u(g=>(g==null?void 0:g.key)===p.key?g.order==="asc"?{key:p.key,order:"desc"}:null:{key:p.key,order:"asc"})},w=p=>{f(p),h(1)},x=(p,g,S)=>g.render?g.render(p,S):g.formatter?g.formatter(p,S):typeof p=="number"?p.toLocaleString():(p==null?void 0:p.toString())||"-",T=p=>!o.enabled||!p.sortable?null:(l==null?void 0:l.key)===p.key?l.order==="asc"?A.jsx(vf,{className:"w-4 h-4"}):A.jsx(_i,{className:"w-4 h-4"}):A.jsxs("div",{className:"flex flex-col",children:[A.jsx(vf,{className:"w-3 h-3 opacity-30"}),A.jsx(_i,{className:"w-3 h-3 opacity-30 -mt-1"})]});return A.jsxs("div",{className:ue("w-full",t),children:[A.jsxs("div",{className:"flex items-center justify-between mb-4",children:[A.jsx("h3",{className:"text-lg font-semibold",children:r}),s.enabled&&s.searchable&&A.jsxs("div",{className:"relative",children:[A.jsx(yf,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"}),A.jsx("input",{type:"text",placeholder:"Search...",value:c,onChange:p=>w(p.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"})]})]}),A.jsx("div",{className:"overflow-x-auto border border-gray-200 rounded-lg",children:A.jsxs("table",{className:"w-full",children:[A.jsx("thead",{className:"bg-gray-50",children:A.jsx("tr",{children:a.map(p=>A.jsx("th",{className:ue("px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",p.sortable&&o.enabled&&"cursor-pointer hover:bg-gray-100",p.align==="center"&&"text-center",p.align==="right"&&"text-right"),style:{width:p.width},onClick:()=>b(p),children:A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("span",{children:p.title}),T(p)]})},p.key))})}),A.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:v.map((p,g)=>A.jsx("tr",{className:"hover:bg-gray-50 transition-colors",children:a.map(S=>A.jsx("td",{className:ue("px-4 py-3 text-sm text-gray-900",S.align==="center"&&"text-center",S.align==="right"&&"text-right"),children:x(p[S.key],S,p)},S.key))},g))})]})}),i.enabled&&y>1&&A.jsxs("div",{className:"flex items-center justify-between mt-4",children:[A.jsxs("div",{className:"text-sm text-gray-500",children:["Showing ",(d-1)*i.pageSize+1," to"," ",Math.min(d*i.pageSize,m.length)," of"," ",m.length," results"]}),A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("button",{onClick:()=>h(p=>Math.max(1,p-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,y)},(p,g)=>{const S=Math.max(1,Math.min(y-4,d-2))+g;return S>y?null:A.jsx("button",{onClick:()=>h(S),className:ue("px-3 py-1 text-sm border rounded",d===S?"bg-blue-500 text-white border-blue-500":"border-gray-200 hover:bg-gray-50"),children:S},S)}),A.jsx("button",{onClick:()=>h(p=>Math.min(y,p+1)),disabled:d===y,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&&A.jsx("div",{className:"text-center py-8 text-gray-500",children:c?"No results found for your search.":"No data available."})]})},pb=({data:e,className:t})=>{const[r,n]=O.useState(5),a=()=>{n(o=>Math.min(o+10,e.length))},i=o=>o>=1e3?`${Math.floor(o/1e3)}k`:o.toString();return A.jsxs("div",{className:ue("w-full",t),children:[A.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:[A.jsx("div",{className:"text-left",children:"Name"}),A.jsx("div",{className:"text-right",children:"Runs"}),A.jsx("div",{className:"text-right",children:"Response Time"}),A.jsx("div",{className:"text-right",children:"Tokens"})]}),A.jsx("div",{className:"divide-y divide-gray-100",children:e.slice(0,r).map((o,s)=>A.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-4 hover:bg-gray-50 transition-colors duration-150",children:[A.jsxs("div",{className:"flex items-center space-x-3",children:[A.jsx("div",{className:"flex-shrink-0",children:A.jsx("img",{src:o.avatar||`https://api.dicebear.com/7.x/avataaars/svg?seed=${o.name}&backgroundColor=b6e3f4,c0aede,d1d4f9&backgroundType=solid`,alt:o.name,className:"w-8 h-8 rounded-full"})}),A.jsx("div",{className:"min-w-0 flex-1",children:A.jsx("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.name})})]}),A.jsx("div",{className:"text-right text-sm text-gray-900",children:i(o.runs)}),A.jsx("div",{className:"text-right text-sm text-gray-900",children:o.responseTime}),A.jsx("div",{className:"text-right text-sm text-gray-900",children:i(o.tokens)})]},o.id||s))}),r<e.length&&A.jsx("div",{className:"flex justify-center py-6",children:A.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"})})]})},nU=e=>{switch(e.toLowerCase()){case"code tool":return"bg-orange-100 text-orange-800 border-orange-200";case"workflow tool":return"bg-blue-100 text-blue-800 border-blue-200";case"mcp tool":return"bg-green-100 text-green-800 border-green-200";case"knowledge":return"bg-purple-100 text-purple-800 border-purple-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},aU=e=>{const t={"calculate-creditscore":"🎯","calculate-risk":"⭐","calculate-mortgage":"🔵","analyse-expenses":"⚡","fetch-statement":"💜",default:"🔧"};return t[e]||t.default},vb=({data:e,className:t})=>{const[r,n]=O.useState(5),a=()=>{n(o=>Math.min(o+10,e.length))},i=o=>o>=1e3?`${Math.floor(o/1e3)}k`:o.toString();return A.jsxs("div",{className:ue("w-full",t),children:[A.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:[A.jsx("div",{className:"text-left",children:"Name"}),A.jsx("div",{className:"text-left",children:"Type"}),A.jsx("div",{className:"text-right",children:"Runs"}),A.jsx("div",{className:"text-right",children:"Response Time"})]}),A.jsx("div",{className:"divide-y divide-gray-100",children:e.slice(0,r).map((o,s)=>A.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-4 hover:bg-gray-50 transition-colors duration-150",children:[A.jsxs("div",{className:"flex items-center space-x-3",children:[A.jsx("div",{className:"flex-shrink-0",children:A.jsx("div",{className:"w-8 h-8 rounded-full bg-gray-100 flex items-center justify-center text-lg",children:aU(o.name)})}),A.jsx("div",{className:"min-w-0 flex-1",children:A.jsx("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.name})})]}),A.jsx("div",{className:"flex items-center",children:A.jsx("span",{className:ue("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium border",nU(o.type||"Default")),children:o.type||"Tool"})}),A.jsx("div",{className:"text-right text-sm text-gray-900",children:i(o.runs)}),A.jsx("div",{className:"text-right text-sm text-gray-900",children:o.responseTime})]},o.id||s))}),r<e.length&&A.jsx("div",{className:"flex justify-center py-6",children:A.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"})})]})},iU=e=>{const t=e.toLowerCase();return t.includes("gpt")||t.includes("openai")?A.jsx("div",{className:"w-6 h-6 rounded-full bg-gray-900 flex items-center justify-center",children:A.jsx("span",{className:"text-white text-xs font-bold",children:"⚡"})}):t.includes("claude")||t.includes("anthropic")?A.jsx("div",{className:"w-6 h-6 rounded-full bg-orange-500 flex items-center justify-center",children:A.jsx("span",{className:"text-white text-xs font-bold",children:"A"})}):t.includes("gemini")||t.includes("google")?A.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-500 flex items-center justify-center",children:A.jsx("span",{className:"text-white text-xs font-bold",children:"G"})}):t.includes("llama")||t.includes("meta")?A.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-600 flex items-center justify-center",children:A.jsx("span",{className:"text-white text-xs font-bold",children:"M"})}):A.jsx("div",{className:"w-6 h-6 rounded-full bg-gray-500 flex items-center justify-center",children:A.jsx("span",{className:"text-white text-xs font-bold",children:"🤖"})})},yb=({data:e,className:t})=>{const[r,n]=O.useState(5),a=()=>{n(o=>Math.min(o+10,e.length))},i=o=>o>=1e3?`${Math.floor(o/1e3)}k`:o.toString();return A.jsxs("div",{className:ue("w-full",t),children:[A.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:[A.jsx("div",{className:"text-left",children:"Model Name"}),A.jsx("div",{className:"text-right",children:"Runs"}),A.jsx("div",{className:"text-right",children:"Tokens"}),A.jsx("div",{className:"text-right",children:"Response Time"})]}),A.jsx("div",{className:"divide-y divide-gray-100",children:e.slice(0,r).map((o,s)=>A.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-4 hover:bg-gray-50 transition-colors duration-150",children:[A.jsxs("div",{className:"flex items-center space-x-3",children:[A.jsx("div",{className:"flex-shrink-0",children:iU(o.name)}),A.jsx("div",{className:"min-w-0 flex-1",children:A.jsx("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.name})})]}),A.jsx("div",{className:"text-right text-sm text-gray-900",children:i(o.runs)}),A.jsx("div",{className:"text-right text-sm text-gray-900",children:i(o.tokens)}),A.jsx("div",{className:"text-right text-sm text-gray-900",children:o.responseTime})]},o.id||s))}),r<e.length&&A.jsx("div",{className:"flex justify-center py-6",children:A.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"})})]})},mb=({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),A.jsx("div",{className:"flex-1",children:A.jsx(db,{config:i,isLoading:r})})):null,u=()=>o?(n==null?void 0:n.metricType)==="agentRuns"?A.jsx("div",{className:"flex-1",children:A.jsx(pb,{data:o.data})}):(n==null?void 0:n.metricType)==="toolRuns"?A.jsx("div",{className:"flex-1",children:A.jsx(vb,{data:o.data})}):(n==null?void 0:n.metricType)==="modelRuns"?A.jsx("div",{className:"flex-1",children:A.jsx(yb,{data:o.data})}):A.jsx("div",{className:"flex-1",children:A.jsx(hb,{config:o})}):null,c=()=>{switch(a){case"chart":return l();case"table":return u();case"mixed":return A.jsxs("div",{className:ue("flex gap-6",s==="horizontal"?"flex-row":"flex-col"),children:[l(),u()]});default:return A.jsxs("div",{className:"p-4 text-center text-gray-500",children:["Unsupported view type: ",a]})}};return A.jsx("div",{className:ue("w-full",t),children:c()})},Es=({options:e,value:t,placeholder:r="Select an option",onChange:n,className:a,disabled:i=!1})=>{const[o,s]=O.useState(!1),[l,u]=O.useState(t||""),c=O.useRef(null),f=e.find(m=>m.value===l);O.useEffect(()=>{const m=y=>{c.current&&!c.current.contains(y.target)&&s(!1)};return o&&document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}},[o]);const d=m=>{i||(u(m),s(!1),n==null||n(m))},h=()=>{i||s(!o)};return A.jsxs("div",{ref:c,className:ue("relative min-w-[200px]",a),children:[A.jsxs("button",{type:"button",className:ue("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:[A.jsx("span",{className:ue("truncate",!f&&"text-gray-500"),children:f?f.label:r}),A.jsx(_i,{className:ue("h-4 w-4 text-gray-400 transition-transform duration-200",o&&"rotate-180")})]}),o&&!i&&A.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(m=>{const y=l===m.value;return A.jsxs("div",{className:"relative group",children:[A.jsx("button",{className:ue("relative flex w-full cursor-pointer select-none items-center px-3 py-2 text-sm text-left outline-none transition-colors",m.disabled?"opacity-50 cursor-not-allowed text-gray-400":y?"bg-blue-50 text-blue-900 font-medium":"text-gray-900 hover:bg-gray-100"),onClick:()=>!m.disabled&&d(m.value),disabled:m.disabled,children:A.jsx("span",{className:"block whitespace-nowrap",children:m.label})}),m.label.length>25&&A.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:A.jsxs("div",{className:"bg-gray-900 text-white text-xs rounded-md px-3 py-2 whitespace-nowrap shadow-lg",children:[m.label,A.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"})]})})]},m.value)})})]})},oU=({options:e,value:t,defaultValue:r,placeholder:n="Select...",multiSelect:a=!1,searchable:i=!1,onChange:o,className:s})=>{const[l,u]=O.useState(!1),[c,f]=O.useState(""),[d,h]=O.useState(()=>{const p=t||r;return a?Array.isArray(p)?p:p?[p]:[]:p?[Array.isArray(p)?p[0]:p]:[]}),m=O.useRef(null);O.useEffect(()=>{const p=g=>{m.current&&!m.current.contains(g.target)&&u(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]);const y=i?e.filter(p=>p.label.toLowerCase().includes(c.toLowerCase())):e,v=p=>{let g;if(a){if(p==="all"){w();return}if(d.includes(p))g=d.filter(P=>P!==p),g=g.filter(P=>P!=="all");else{g=d.filter(R=>R!=="all"),g=[...g,p];const P=y.filter(R=>R.value!=="all").map(R=>R.value),_=g.filter(R=>R!=="all");_.length===P.length&&(g=["all",..._])}}else g=[p],u(!1);h(g);const S=a?g:g[0]||"";o==null||o(S)},b=()=>{if(!a)return{checked:!1,indeterminate:!1};const p=y.filter(S=>S.value!=="all").map(S=>S.value),g=d.filter(S=>S!=="all"&&p.includes(S));return d.includes("all")&&g.length===0?{checked:!1,indeterminate:!1}:g.length===0?{checked:!1,indeterminate:!1}:g.length===p.length?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}},w=()=>{if(!a)return;const p=b(),g=y.filter(S=>S.value!=="all").map(S=>S.value);if(p.checked)h(["all"]),o==null||o(["all"]);else{const S=["all",...g];h(S),o==null||o(S)}},x=()=>{h(["all"]),o==null||o(a?["all"]:"all")},T=()=>{if(!a){if(d.length===0)return n;const P=e.find(_=>_.value===d[0]);return(P==null?void 0:P.label)||n}const p=d.filter(P=>P!=="all"),g=d.includes("all");if(p.length===0)return n;if(p.length===1){const P=e.find(_=>_.value===p[0]);return(P==null?void 0:P.label)||n}const S=e.filter(P=>P.value!=="all").length;return p.length===S?"All selected":`${p.length} selected`};return A.jsxs("div",{className:ue("relative",s),ref:m,children:[A.jsxs("button",{type:"button",onClick:()=>u(!l),className:ue("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:[A.jsx("span",{className:ue("truncate",d.length===0&&"text-gray-500"),children:T()}),A.jsx(_i,{className:ue("w-4 h-4 text-gray-400 transition-transform duration-150",l&&"transform rotate-180")})]}),l&&A.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&&A.jsx("div",{className:"p-3 border-b border-gray-100",children:A.jsxs("div",{className:"relative",children:[A.jsx(yf,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"}),A.jsx("input",{type:"text",placeholder:`Search ${n.toLowerCase()}...`,value:c,onChange:p=>f(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&&A.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-gray-100 bg-gray-50",children:[A.jsxs("button",{type:"button",onClick:w,className:"flex items-center text-sm font-medium text-gray-700 hover:text-gray-900",children:[A.jsx("div",{className:ue("flex items-center justify-center w-4 h-4 mr-2 border rounded transition-colors duration-150",(()=>{const p=b();return p.indeterminate||p.checked?"bg-blue-600 border-blue-600 text-white":"border-gray-300 bg-white"})()),children:(()=>{const p=b();return p.indeterminate?A.jsx("div",{className:"w-2 h-0.5 bg-white rounded"}):p.checked?A.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:A.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"]}),A.jsx("button",{type:"button",onClick:x,className:"text-sm font-medium text-blue-600 hover:text-blue-800",children:"Clear"})]}),A.jsx("div",{className:"max-h-60 overflow-y-auto",children:y.length===0?A.jsx("div",{className:"px-3 py-4 text-sm text-gray-500 text-center",children:"No options found"}):y.map(p=>{let g;return p.value==="all"?null:(g=d.includes(p.value),A.jsxs("div",{className:"relative group",children:[A.jsxs("div",{onClick:()=>v(p.value),className:ue("flex items-center px-3 py-2 cursor-pointer hover:bg-gray-50","transition-colors duration-150",g&&"bg-blue-50"),children:[a?A.jsx("div",{className:ue("flex items-center justify-center w-4 h-4 mr-3 border rounded","transition-colors duration-150",g?"bg-blue-600 border-blue-600 text-white":"border-gray-300 bg-white"),children:g&&A.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:A.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"})})}):A.jsx("div",{className:ue("w-4 h-4 mr-3 rounded-full border-2 transition-colors duration-150",g?"border-blue-600 bg-blue-600":"border-gray-300"),children:g&&A.jsx("div",{className:"w-full h-full rounded-full bg-white scale-50"})}),p.avatar&&A.jsx("img",{src:p.avatar,alt:p.label,className:"w-6 h-6 rounded-full mr-3"}),p.icon&&!p.avatar&&A.jsx("div",{className:"w-6 h-6 mr-3 flex items-center justify-center text-sm",children:p.icon}),A.jsx("span",{className:ue("flex-1 text-sm whitespace-nowrap",g?"font-medium text-gray-900":"text-gray-700"),children:p.label})]}),p.label.length>25&&A.jsx("div",{className:"absolute left-full top-0 ml-2 z-[80] opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none",children:A.jsxs("div",{className:"bg-gray-900 text-white text-xs rounded-md px-3 py-2 whitespace-nowrap shadow-lg",children:[p.label,A.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))})})]})]})},gb=({config:e,className:t})=>{var i;const{dropdown:r,buttons:n,toggle:a}=e;return A.jsxs("div",{className:ue("flex items-center gap-3",t),children:[r&&A.jsx(A.Fragment,{children:r.multiSelect?A.jsx(oU,{options:r.options,value:r.defaultValue,placeholder:r.label,multiSelect:r.multiSelect,searchable:r.searchable,onChange:r.onChange,className:"w-48"}):A.jsx(Es,{options:r.options,value:Array.isArray(r.defaultValue)?r.defaultValue[0]:r.defaultValue||((i=r.options[0])==null?void 0:i.value),placeholder:r.label,onChange:o=>{var s;return(s=r.onChange)==null?void 0:s.call(r,o)},className:"w-48"})}),n&&n.length>0&&A.jsx("div",{className:"flex items-center border border-gray-200 rounded-lg overflow-hidden",children:n.map((o,s)=>A.jsxs("button",{onClick:()=>{var l;return(l=o.onClick)==null?void 0:l.call(o,o.value)},className:ue("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",o.active?"bg-blue-50 text-blue-700 border-blue-200":"text-gray-700 bg-white",s>0&&"border-l border-gray-200"),children:[o.icon&&A.jsx("span",{className:"mr-2",children:o.icon}),o.label]},o.value))}),a&&A.jsxs("div",{className:"flex items-center border border-gray-200 rounded-lg overflow-hidden",children:[A.jsxs("button",{onClick:()=>{var o;return(o=a.onToggle)==null?void 0:o.call(a,"chart")},className:ue("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:[A.jsx(Yb,{className:"w-4 h-4"}),"Chart"]}),A.jsxs("button",{onClick:()=>{var o;return(o=a.onToggle)==null?void 0:o.call(a,"table")},className:ue("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:[A.jsx(t0,{className:"w-4 h-4"}),"Table"]})]})]})},bb=({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]=O.useState(u.type),[m,y]=O.useState("chart"),v=()=>i==="usage-analytics"?"users":i==="runs"?"agentRuns":"users",[b,w]=O.useState(v()),[x,T]=O.useState("all"),p=$=>{var I,B,z,G,Z;const E=P();(I=E==null?void 0:E.controls)!=null&&I.toggle?(y($),(z=(B=E.controls.toggle).onToggle)==null||z.call(B,$)):(h($),(Z=(G=c==null?void 0:c.toggle)==null?void 0:G.onToggle)==null||Z.call(G,$))},g=$=>{var B,z;const E=$.metricType||$.title.toLowerCase();w(E);const I=l.find(G=>(G.metricType||G.title.toLowerCase())===E);(z=(B=I==null?void 0:I.controls)==null?void 0:B.dropdown)!=null&&z.multiSelect?T(["all"]):T("all"),a==null||a($)},S=$=>{var I,B,z;T($);const E=l.find(G=>(G.metricType||G.title.toLowerCase())===b);(z=(B=(I=E==null?void 0:E.controls)==null?void 0:I.dropdown)==null?void 0:B.onChange)==null||z.call(B,$)},P=()=>l.find($=>($.metricType||$.title.toLowerCase())===b)||null,_=$=>Array.isArray($)?$.filter(I=>I!=="all").length>0:$!=="all",R=$=>Array.isArray($)?$.filter(E=>E!=="all"):$!=="all"?[$]:[],M=$=>{var z,G,Z,Q,ee,te,q,Y,J;const E=((G=(z=$.view)==null?void 0:z.chart)==null?void 0:G.data)||((Z=u.chart)==null?void 0:Z.data)||[];if(!_(x))return E;const I=$.metricType,B=R(x);if(B.length===1){const k=B[0],ie=P(),V=(te=(ee=(Q=ie==null?void 0:ie.controls)==null?void 0:Q.dropdown)==null?void 0:ee.options)==null?void 0:te.find(oe=>oe.value===k),re=V==null?void 0:V.label;return console.log("🔍 Filtering chart data:",{metricType:I,singleFilter:k,selectedLabel:re,baseDataSample:E[0]}),E.map(oe=>{let Ce=0;return oe.listView&&Array.isArray(oe.listView)&&(Ce=oe.listView.filter(et=>I==="agentRuns"&&et.agentName?et.agentName===re||et.agentName.toLowerCase()===(re==null?void 0:re.toLowerCase()):I==="toolRuns"&&et.toolName?et.toolName===re||et.toolName.toLowerCase()===(re==null?void 0:re.toLowerCase()):I==="modelRuns"&&et.modelName?et.modelName===re||et.modelName.toLowerCase()===(re==null?void 0:re.toLowerCase()):!1).reduce((et,Lt)=>et+(Lt.count||0),0)),console.log("📊 Filtered value for",re,":",Ce),{...oe,[I]:Ce}})}if(B.length>1){const k=P(),V=(((J=(Y=(q=k==null?void 0:k.controls)==null?void 0:q.dropdown)==null?void 0:Y.options)==null?void 0:J.filter(re=>B.includes(re.value)))||[]).map(re=>re.label);return E.map(re=>{let oe=0;return re.listView&&Array.isArray(re.listView)&&(oe=re.listView.filter(Te=>I==="agentRuns"&&Te.agentName?V.some(Ee=>Te.agentName===Ee||Te.agentName.toLowerCase()===(Ee==null?void 0:Ee.toLowerCase())):I==="toolRuns"&&Te.toolName?V.some(Ee=>Te.toolName===Ee||Te.toolName.toLowerCase()===(Ee==null?void 0:Ee.toLowerCase())):I==="modelRuns"&&Te.modelName?V.some(Ee=>Te.modelName===Ee||Te.modelName.toLowerCase()===(Ee==null?void 0:Ee.toLowerCase())):!1).reduce((Te,Ee)=>Te+(Ee.count||0),0)),{...re,[I]:oe}})}return E},C=$=>{var z;if(!((z=$.view)!=null&&z.chart))return null;const E=M($),I=()=>{var Z,Q,ee,te,q,Y;if(!_(x)||!((Z=$.controls)!=null&&Z.dropdown))return((ee=(Q=$.view)==null?void 0:Q.chart)==null?void 0:ee.title)||$.title;const G=R(x);if(G.length===1){const J=(te=$.controls.dropdown.options)==null?void 0:te.find(k=>k.value===G[0]);return J?`${J.label}`:((Y=(q=$.view)==null?void 0:q.chart)==null?void 0:Y.title)||$.title}return`${G.length} selected`},B=R(x);return $.metricType==="toolRuns"&&B.length===1?{...$.view.chart,data:E,title:I(),lines:void 0,dataKey:"toolRuns",color:"#f97316",showLegend:!1}:$.metricType==="modelRuns"&&B.length===1?{...$.view.chart,data:E,title:I(),dataKey:"modelRuns",color:"#10b981",showLegend:!1}:{...$.view.chart,data:E,title:I()}},W=($,E)=>{if(!_(x))return $;const I=R(x);if(I.length===1){const B=I[0];if(i==="runs"&&E==="agentRuns")return $.map(z=>({...z,agentRuns:z[B]||0}));if(i==="runs"&&E==="toolRuns")return $.map(z=>({...z,toolRuns:z[B.replace(/[-]/g,"")]||0}));if(i==="runs"&&E==="modelRuns")return $.map(z=>({...z,modelRuns:z[B.replace(/[-\.]/g,"")]||0}))}return $},U=$=>{var z;const E=((z=u.chart)==null?void 0:z.data)||[],I=W(E,$),B=G=>{var Q,ee;if(!_(x))return G;const Z=R(x);if(Z.length===1){const te=(ee=(Q=c==null?void 0:c.dropdown)==null?void 0:Q.options)==null?void 0:ee.find(q=>q.value===Z[0]);return te?`${te.label}`:G}return`${Z.length} selected`};switch($){case"users":return{type:"line",title:"Total Users",data:E,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:E,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:E,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:E,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:B("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:B("Tool Runs"),data:W(E,"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:B("Model Runs"),data:W(E,"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:B("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}},F=(()=>{const $=P();return $!=null&&$.controls?{...$.controls,dropdown:$.controls.dropdown?{...$.controls.dropdown,onChange:S}:void 0,toggle:$.controls.toggle?{...$.controls.toggle,chartView:m==="chart",tableView:m==="table",onToggle:p}:void 0}:c?{...c,dropdown:c.dropdown?{...c.dropdown,onChange:S}:void 0,toggle:c.toggle?{...c.toggle,chartView:d==="chart",tableView:d==="table",onToggle:p}:void 0}:void 0})(),D=(()=>{var I,B,z,G,Z,Q,ee,te,q,Y;const $=P();if($!=null&&$.view){if((I=$.controls)!=null&&I.toggle){if(m==="table"&&$.view.table){let k=$.view.table.data;if($.metricType==="agentRuns"&&_(x)){const ie=R(x);if(ie.length>0){const V=((G=(z=(B=$.controls)==null?void 0:B.dropdown)==null?void 0:z.options)==null?void 0:G.filter(re=>ie.includes(re.value)))||[];V.length>0&&(k=k.filter(re=>V.some(oe=>re.name===oe.label||re.name.toLowerCase().includes(oe.label.toLowerCase()))))}}if($.metricType==="toolRuns"&&_(x)){const ie=R(x);if(ie.length>0){const V=((ee=(Q=(Z=$.controls)==null?void 0:Z.dropdown)==null?void 0:Q.options)==null?void 0:ee.filter(re=>ie.includes(re.value)))||[];V.length>0&&(k=k.filter(re=>V.some(oe=>re.name===oe.label||re.name.toLowerCase().includes(oe.label.toLowerCase()))))}}if($.metricType==="modelRuns"&&_(x)){const ie=R(x);if(ie.length>0){const V=((Y=(q=(te=$.controls)==null?void 0:te.dropdown)==null?void 0:q.options)==null?void 0:Y.filter(re=>ie.includes(re.value)))||[];V.length>0&&(k=k.filter(re=>V.some(oe=>re.name===oe.label||re.name.toLowerCase().includes(oe.label.toLowerCase()))))}}return{type:"table",table:{...$.view.table,data:k}}}else if(m==="chart"&&$.view.chart)return{type:"chart",chart:C($)||$.view.chart}}const J=C($);return J?{...$.view,chart:J}:$.view}const E=U(b);return E?{type:"chart",chart:E}:{...u,type:d}})(),L=()=>l.map($=>{const E=$.metricType||$.title.toLowerCase();return{...$,highlighted:$.highlighted||E===b}});return A.jsxs("div",{className:ue("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:[A.jsxs("div",{className:"mb-6",children:[A.jsxs("div",{className:"flex items-center justify-between mb-4",children:[A.jsxs("div",{children:[A.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:o}),s&&A.jsx("p",{className:"text-sm text-gray-600 mt-1",children:s})]}),F&&A.jsx(gb,{config:F})]}),A.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:r?A.jsxs(A.Fragment,{children:[A.jsx(yi,{}),A.jsx(yi,{}),A.jsx(yi,{}),A.jsx(yi,{})]}):L().map(($,E)=>A.jsx(Tf,{data:$,onClick:g},`${i}-metric-${E}`))})]}),A.jsx(mb,{config:D,className:"mt-6",isLoading:r||n,context:{sectionId:i,metricType:b}})]})},$s=O.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 A.jsx("button",{className:ue(o,s[t],l[r],e),ref:i,...a,children:n})});$s.displayName="Button";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)}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||js(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 sU(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 of(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 lU(e,t){De(2,arguments);var r=Ue(e).getTime(),n=Et(t);return new Date(r+n)}var uU={};function mi(){return uU}function cU(e,t){var r,n,a,i,o,s;De(1,arguments);var l=mi(),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 fU(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 Yr(e){De(1,arguments);var t=Ue(e);return t.setHours(0,0,0,0),t}function gi(e,t){De(2,arguments);var r=Yr(e),n=Yr(t);return r.getTime()===n.getTime()}function dU(e){return De(1,arguments),e instanceof Date||js(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function hU(e){if(De(1,arguments),!dU(e)&&typeof e!="number")return!1;var t=Ue(e);return!isNaN(Number(t))}function pU(e){De(1,arguments);var t=Ue(e);return t.setHours(23,59,59,999),t}function vU(e){De(1,arguments);var t=Ue(e);return t.setDate(1),t.setHours(0,0,0,0),t}function yU(e,t){De(2,arguments);var r=Et(t);return lU(e,-r)}var mU=864e5;function gU(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/mU)+1}function Cs(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 xb(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=Cs(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var o=Cs(i);return t.getTime()>=a.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function bU(e){De(1,arguments);var t=xb(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Cs(r);return n}var xU=6048e5;function wU(e){De(1,arguments);var t=Ue(e),r=Cs(t).getTime()-bU(t).getTime();return Math.round(r/xU)+1}function Ms(e,t){var r,n,a,i,o,s,l,u;De(1,arguments);var c=mi(),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(),m=(h<f?7:0)+h-f;return d.setUTCDate(d.getUTCDate()-m),d.setUTCHours(0,0,0,0),d}function wb(e,t){var r,n,a,i,o,s,l,u;De(1,arguments);var c=Ue(e),f=c.getUTCFullYear(),d=mi(),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 m=new Date(0);m.setUTCFullYear(f+1,0,h),m.setUTCHours(0,0,0,0);var y=Ms(m,t),v=new Date(0);v.setUTCFullYear(f,0,h),v.setUTCHours(0,0,0,0);var b=Ms(v,t);return c.getTime()>=y.getTime()?f+1:c.getTime()>=b.getTime()?f:f-1}function OU(e,t){var r,n,a,i,o,s,l,u;De(1,arguments);var c=mi(),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=wb(e,t),h=new Date(0);h.setUTCFullYear(d,0,f),h.setUTCHours(0,0,0,0);var m=Ms(h,t);return m}var SU=6048e5;function AU(e,t){De(1,arguments);var r=Ue(e),n=Ms(r,t).getTime()-OU(r,t).getTime();return Math.round(n/SU)+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 Pr={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)}},ra={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},TU={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 Pr.y(t,r)},Y:function(t,r,n,a){var i=wb(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=xb(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 Pr.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=AU(t,a);return r==="wo"?n.ordinalNumber(i,{unit:"week"}):_e(i,r.length)},I:function(t,r,n){var a=wU(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"}):Pr.d(t,r)},D:function(t,r,n){var a=gU(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=ra.noon:a===0?i=ra.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=ra.evening:a>=12?i=ra.afternoon:a>=4?i=ra.morning:i=ra.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 Pr.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Pr.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"}):Pr.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Pr.s(t,r)},S:function(t,r){return Pr.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 Sb(o);case"XXXX":case"XX":return Xr(o);case"XXXXX":case"XXX":default:return Xr(o,":")}},x:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(r){case"x":return Sb(o);case"xxxx":case"xx":return Xr(o);case"xxxxx":case"xxx":default:return Xr(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"+Ob(o,":");case"OOOO":default:return"GMT"+Xr(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"+Ob(o,":");case"zzzz":default:return"GMT"+Xr(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 Ob(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 Sb(e,t){if(e%60===0){var r=e>0?"-":"+";return r+_e(Math.abs(e)/60,2)}return Xr(e,t)}function Xr(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 Ab=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"})}},Tb=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"})}},PU=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return Ab(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}}",Ab(a,r)).replace("{{time}}",Tb(i,r))},_U={p:Tb,P:PU},EU=["D","DD"],$U=["YY","YYYY"];function jU(e){return EU.indexOf(e)!==-1}function CU(e){return $U.indexOf(e)!==-1}function Pb(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 MU={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"}},kU=function(t,r,n){var a,i=MU[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 sf(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 NU={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},DU={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},IU={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},RU={date:sf({formats:NU,defaultWidth:"full"}),time:sf({formats:DU,defaultWidth:"full"}),dateTime:sf({formats:IU,defaultWidth:"full"})},LU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},BU=function(t,r,n,a){return LU[t]};function bi(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 FU={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},WU={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},UU={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"]},zU={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"]},KU={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"}},qU={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"}},VU=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"},GU={ordinalNumber:VU,era:bi({values:FU,defaultWidth:"wide"}),quarter:bi({values:WU,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:bi({values:UU,defaultWidth:"wide"}),day:bi({values:zU,defaultWidth:"wide"}),dayPeriod:bi({values:KU,defaultWidth:"wide",formattingValues:qU,defaultFormattingWidth:"wide"})};function xi(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)?YU(s,function(f){return f.test(o)}):HU(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 HU(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function YU(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function XU(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 JU=/^(\d+)(th|st|nd|rd)?/i,ZU=/\d+/i,QU={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},e8={any:[/^b/i,/^(a|c)/i]},t8={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},r8={any:[/1/i,/2/i,/3/i,/4/i]},n8={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},a8={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]},i8={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},o8={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]},s8={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},l8={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}},u8={ordinalNumber:XU({matchPattern:JU,parsePattern:ZU,valueCallback:function(t){return parseInt(t,10)}}),era:xi({matchPatterns:QU,defaultMatchWidth:"wide",parsePatterns:e8,defaultParseWidth:"any"}),quarter:xi({matchPatterns:t8,defaultMatchWidth:"wide",parsePatterns:r8,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:xi({matchPatterns:n8,defaultMatchWidth:"wide",parsePatterns:a8,defaultParseWidth:"any"}),day:xi({matchPatterns:i8,defaultMatchWidth:"wide",parsePatterns:o8,defaultParseWidth:"any"}),dayPeriod:xi({matchPatterns:s8,defaultMatchWidth:"any",parsePatterns:l8,defaultParseWidth:"any"})},c8={code:"en-US",formatDistance:kU,formatLong:RU,formatRelative:BU,localize:GU,match:u8,options:{weekStartsOn:0,firstWeekContainsDate:1}},f8=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d8=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,h8=/^'([^]*?)'?$/,p8=/''/g,v8=/[a-zA-Z]/;function ks(e,t,r){var n,a,i,o,s,l,u,c,f,d,h,m,y,v;De(2,arguments);var b=String(t),w=mi(),x=(n=(a=void 0)!==null&&a!==void 0?a:w.locale)!==null&&n!==void 0?n:c8,T=Et((i=(o=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&o!==void 0?o:(u=w.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=Et((f=(d=(h=(m=void 0)!==null&&m!==void 0?m:void 0)!==null&&h!==void 0?h:w.weekStartsOn)!==null&&d!==void 0?d:(y=w.locale)===null||y===void 0||(v=y.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&f!==void 0?f:0);if(!(p>=0&&p<=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 g=Ue(e);if(!hU(g))throw new RangeError("Invalid time value");var S=fU(g),P=yU(g,S),_={firstWeekContainsDate:T,weekStartsOn:p,locale:x,_originalDate:g},R=b.match(d8).map(function(M){var C=M[0];if(C==="p"||C==="P"){var W=_U[C];return W(M,x.formatLong)}return M}).join("").match(f8).map(function(M){if(M==="''")return"'";var C=M[0];if(C==="'")return y8(M);var W=TU[C];if(W)return CU(M)&&Pb(M,t,String(e)),jU(M)&&Pb(M,t,String(e)),W(P,M,x.localize,_);if(C.match(v8))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return M}).join("");return R}function y8(e){var t=e.match(h8);return t?t[1].replace(p8,"'"):e}function _b(e,t){De(2,arguments);var r=Ue(e),n=Ue(t);return r.getTime()<n.getTime()}function m8(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 Ns(e,t){De(2,arguments);var r=Et(t);return sU(e,-r)}function Eb(e,t){De(2,arguments);var r=Et(t);return of(e,-r)}const $b=({children:e})=>{const[t,r]=O.useState(!1);return O.useEffect(()=>(r(!0),()=>r(!1)),[]),t?Qr.createPortal(e,document.body):null};function jb({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:Yr(new Date),to:new Date}},{label:"Yesterday",value:"yesterday",dateRange:{from:Yr(Ns(new Date,1)),to:pU(Ns(new Date,1))}},{label:"This week",value:"thisWeek",dateRange:{from:cU(new Date),to:new Date}},{label:"Last 7 days",value:"7d",dateRange:{from:Yr(Ns(new Date,6)),to:new Date}},{label:"This month",value:"thisMonth",dateRange:{from:vU(new Date),to:new Date}},{label:"Last 30 days",value:"30d",dateRange:{from:Yr(Ns(new Date,29)),to:new Date}},{label:"Last 3 months",value:"90d",dateRange:{from:Yr(Eb(new Date,3)),to:new Date}}],a=t?n.find(N=>N.value===t):null;console.log("📅 DateRangePicker initialization:",{defaultValue:t,defaultPreset:a==null?void 0:a.label,hasDateRange:!!(a!=null&&a.dateRange),allPresetValues:n.map(N=>N.value),foundPreset:!!a});const[i,o]=O.useState(a==null?void 0:a.dateRange),[s,l]=O.useState(a==null?void 0:a.dateRange),[u,c]=O.useState(!1),[f,d]=O.useState((a==null?void 0:a.label)||null),[h,m]=O.useState((a==null?void 0:a.label)||null),[y,v]=O.useState(new Date),[b,w]=O.useState(null),[x,T]=O.useState({top:0,left:0}),p=O.useRef(null),g=O.useRef(null);O.useEffect(()=>{var N,D;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:(N=a.dateRange.from)==null?void 0:N.toLocaleDateString(),to:(D=a.dateRange.to)==null?void 0:D.toLocaleDateString()}),r(a.dateRange)):console.log("📅 DateRangePicker: NOT setting initial value because:",{hasDefaultPreset:!!a,hasDateRange:!!(a!=null&&a.dateRange),hasCallback:!!r,presetLabelsAvailable:n.map(L=>`${L.value}:${L.label}`)})},[]),O.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),m(a.label))},[t]);const S=()=>{if(!g.current)return;const N=g.current.getBoundingClientRect(),D=window.scrollY,L=window.scrollX,$=window.innerWidth,E=window.innerHeight,I=720,B=450;let z=N.bottom+D+8,G=N.left+L;G+I>$&&(G=N.right+L-I),G+I>$&&(G=$-I-20),z+B>E&&(z=N.top+D-B-8),G<20&&(G=20),z<20&&(z=20),T({top:z,left:G})};O.useEffect(()=>{const N=()=>{u&&S()};return u&&(window.addEventListener("resize",N),window.addEventListener("scroll",N)),()=>{window.removeEventListener("resize",N),window.removeEventListener("scroll",N)}},[u]);const P=(N,D)=>{if(l(N),m(D),w(null),N.from){const L=new Date(N.from.getFullYear(),N.from.getMonth(),1);v(L)}},_=N=>{if(!b)w(N),l({from:N,to:N}),m(null);else{const D=_b(N,b)?N:b,L=_b(N,b)?b:N;l({from:D,to:L}),w(null),m(null)}},R=()=>{o(s),d(h),r==null||r(s),c(!1),w(null)},M=()=>{l(void 0),m(null),o(void 0),d(null),r==null||r(void 0),c(!1),w(null)},C=N=>{N?(l(i),m(f),w(null),setTimeout(S,0)):(l(i),m(f),w(null)),c(N)},W=(N,D)=>(console.log("📅 formatDateRange called with:",{presetLabel:D,hasDateRange:!!(N!=null&&N.from)}),D||(N!=null&&N.from?!N.to||gi(N.from,N.to)?ks(N.from,"MMM dd, yyyy"):`${ks(N.from,"MMM dd, yyyy")} - ${ks(N.to,"MMM dd, yyyy")}`:"Pick a date range")),U=(N=0)=>{const D=of(y,N),L=D.getFullYear(),$=D.getMonth(),E=new Date(L,$,1),B=new Date(L,$+1,0).getDate(),z=E.getDay(),G=["January","February","March","April","May","June","July","August","September","October","November","December"],Z=["Su","Mo","Tu","We","Th","Fr","Sa"],Q=[],te=new Date(L,$-1,0).getDate();for(let J=z-1;J>=0;J--){const k=te-J,ie=new Date(L,$-1,k);Q.push(A.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:k},`prev-${k}`))}for(let J=1;J<=B;J++){const k=new Date(L,$,J),ie=gi(k,new Date),V=(s==null?void 0:s.from)&&(s==null?void 0:s.to)&&m8(k,{start:s.from,end:s.to}),re=(s==null?void 0:s.from)&&gi(k,s.from),oe=(s==null?void 0:s.to)&&gi(k,s.to),Ce=b&&gi(k,b);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||re||oe?Te+="bg-blue-500 text-white hover:bg-blue-600 ":V&&(Te+="bg-blue-100 text-blue-900 "),Q.push(A.jsx("button",{onClick:()=>_(k),className:Te,children:J},`current-${J}`))}const Y=Math.ceil((z+B)/7)*7-z-B;for(let J=1;J<=Y;J++){const k=new Date(L,$+1,J);Q.push(A.jsx("button",{onClick:()=>_(k),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 A.jsxs("div",{className:"p-3",children:[A.jsxs("div",{className:"flex items-center justify-between mb-3",children:[N===0&&A.jsx("button",{onClick:()=>v(Eb(y,1)),className:"p-1 hover:bg-gray-100 rounded",children:A.jsx(Xb,{className:"h-4 w-4"})}),A.jsxs("div",{className:"font-medium text-sm",children:[G[$]," ",L]}),N===1&&A.jsx("button",{onClick:()=>v(of(y,1)),className:"p-1 hover:bg-gray-100 rounded",children:A.jsx(Jb,{className:"h-4 w-4"})})]}),A.jsx("div",{className:"grid grid-cols-7 gap-1 mb-2",children:Z.map(J=>A.jsx("div",{className:"h-8 flex items-center justify-center text-xs font-medium text-gray-500",children:J},J))}),A.jsx("div",{className:"grid grid-cols-7 gap-1",children:Q})]})},F=()=>"fixed bg-white border border-gray-200 rounded-lg shadow-xl z-[99999]";return A.jsxs("div",{className:`relative ${e}`,children:[A.jsxs("button",{ref:g,onClick:()=>C(!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:[A.jsx(pf,{className:"mr-2 h-4 w-4"}),(()=>{const N=W(i,f);return console.log("📅 Button display text:",{displayText:N,date:i,selectedPresetLabel:f}),N})()]}),u&&A.jsxs($b,{children:[A.jsx("div",{className:"fixed inset-0 z-[99998] bg-black bg-opacity-10",onClick:()=>C(!1)}),A.jsxs("div",{ref:p,className:F(),style:{top:x.top,left:x.left,width:"720px",minWidth:"720px",maxHeight:"90vh"},onClick:N=>N.stopPropagation(),children:[A.jsxs("div",{className:"flex",children:[A.jsxs("div",{className:"flex flex-col gap-1 p-3 border-r border-gray-200 w-[160px] flex-shrink-0",children:[A.jsx("div",{className:"text-sm font-medium text-gray-500 mb-2",children:"Presets"}),n.map(N=>A.jsx("button",{onClick:()=>P(N.dateRange,N.label),className:`text-left px-2 py-1.5 text-sm rounded hover:bg-gray-100 transition-colors ${h===N.label?"bg-gray-100":""}`,children:N.label},N.label))]}),A.jsxs("div",{className:"flex flex-1",children:[U(0),U(1)]})]}),A.jsxs("div",{className:"border-t border-gray-200 p-3 flex justify-end gap-2",children:[A.jsx("button",{onClick:M,className:"px-3 py-1.5 text-sm border border-gray-300 rounded hover:bg-gray-50 transition-colors",children:"Clear"}),A.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 Cb{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 Mb{constructor(t){Bt(this,"endpointsService");Bt(this,"defaultHeaders");Bt(this,"timeout");this.endpointsService=new Cb(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 ur{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 Mb(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||ur.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||ur.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||ur.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||ur.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`}}):(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=a=>{const i=a.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"},n=a=>{const i=a.toLowerCase(),o={calculate:"🎯",risk:"⭐",mortgage:"🔵",analyse:"⚡",fetch:"💜",workflow:"🔄",search:"🔍",compute:"⚙️"};for(const[s,l]of Object.entries(o))if(i.includes(s))return l;return"🔧"};return t.map((a,i)=>({id:`tool-${i+1}`,name:a.toolName||`Tool ${i+1}`,type:a.type||r(a.toolName||""),runs:a.count||0,responseTime:a.avgResponseTime?`${Math.round(a.avgResponseTime)}s`:"0s",tokens:a.tokens||Math.floor((a.count||0)*50),successRate:a.successRate?`${Math.round(a.successRate)}%`:"92%",lastRun:a.lastRun||new Date(Date.now()-Math.random()*7*24*60*60*1e3).toLocaleDateString(),icon:n(a.toolName||"")}))}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"}],n=a=>{const i=a.toLowerCase(),o={calculate:"🎯",risk:"⭐",mortgage:"🔵",analyse:"⚡",fetch:"💜",workflow:"🔄",search:"🔍"};for(const[s,l]of Object.entries(o))if(i.includes(s))return l;return"🔧"};return t.forEach(a=>{a.toolName&&r.push({label:a.toolName,value:a.toolName.replace(/[-]/g,""),icon:n(a.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(y=>{const v=y.count||0,b=(y.toolType||"").toLowerCase(),w=(y.toolName||"").toLowerCase();console.log("Processing listView item:",{toolType:b,toolName:w,count:v}),b==="tool"||b==="code"||b==="codetool"?u+=v:b==="workflow"||b==="workflowtool"||w.includes("workflow")?c+=v:b==="knowledge"||b==="knowledgetool"||w.includes("knowledge")||w.includes("search")||w.includes("fetch")?f+=v:b==="mcp"||b==="mcptool"||w.includes("mcp")?d+=v:(console.log(`Unknown tool type '${b}' for tool '${w}', 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 m=u+c+f+d;if(Math.abs(m-l)>1){console.warn(`Breakdown total (${m}) doesn't match expected total (${l}) for point ${a}`);const y=l-m;u+=y,console.log(`Adjusted codeTools by ${y} 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,m=Math.abs(a.getTime()-n.getTime()),y=m<60*1e3;return console.log("🕐 TimeDimension calculation:",{fromTimestamp:t,toTimestamp:r,fromDateStr:u,toDateStr:c,diffInMs:s,diffInDays:l,isSameCalendarDay:f,isTodayPattern:h,timeDiffInMs:m,isVeryClose:y,fromStartOfDay:d.toISOString(),recommended:f||h||y||l<=1?"hour":l<=31?"day":l<=90?"week":"month"}),f||h||y||l<=1?"hour":"day"}getAvailableMetrics(){return{"usage-analytics":["sessions","messages","users","tokens"],runs:["agent-runs","model-runs","tool-runs"]}}}const g8=({config:e,appConfig:t,className:r,onExport:n,onDraftChange:a,onTimeRangeChange:i})=>{var N;const{title:o,subtitle:s,sections:l,globalControls:u,layout:c={columns:12,gap:24,responsive:!0}}=e,[f,d]=O.useState(!1),[h,m]=O.useState({}),[y,v]=O.useState(null),[b,w]=O.useState(l),[x,T]=O.useState([]),[p,g]=O.useState(!1),S=O.useRef(null);O.useEffect(()=>{if(t)try{S.current=new ur(t),P(),_()}catch(D){console.error("Failed to initialize API service:",D),v("Failed to initialize API service")}},[t]);const P=async()=>{if(!(!S.current||!t)){g(!0);try{const D=await S.current.fetchEnvironments();T(D),console.log("🌍 Environments loaded:",D.map(L=>L.envName))}catch(D){console.error("Error loading environments:",D)}finally{g(!1)}}},_=async()=>{if(!(!S.current||!t)){d(!0),v(null);try{const D=S.current.getDefaultTimeRange();console.log("📊 Loading dashboard data with date range:",{fromTimestamp:D.fromTimestamp,toTimestamp:D.toTimestamp,fromDate:new Date(D.fromTimestamp).toLocaleDateString(),toDate:new Date(D.toTimestamp).toLocaleDateString()});const L=await S.current.fetchAllCardsDataWithEnhancedViews(D.fromTimestamp,D.toTimestamp);console.log("✅ Enhanced cards data loaded successfully:",L),console.log("📈 Data covers period:",{from:new Date(D.fromTimestamp).toLocaleDateString(),to:new Date(D.toTimestamp).toLocaleDateString()});const $=l.map(E=>E.id==="usage-analytics"?(console.log("Updating usage-analytics section with enhanced data"),{...E,metrics:L.usageAnalytics}):E.id==="runs"?(console.log("Updating runs section with enhanced data including table and controls"),{...E,metrics:L.runs}):E);w($)}catch(D){console.error("Error loading initial data:",D),v("Failed to load dashboard data"),w(l)}finally{d(!1)}}},R=async(D,L)=>{if(!(!S.current||!t||!L.metricType)){w($=>$.map(E=>E.id===D?{...E,metrics:E.metrics.map(I=>({...I,highlighted:I.metricType===L.metricType}))}:E)),m($=>({...$,[D]:!0}));try{const $=t.defaultTimeRange||ur.getDateRange(30);let E,I;if(["users","sessions","messages","tokens"].includes(L.metricType))E="usage-analytics",I=L.metricType;else if(["agentRuns","toolRuns","modelRuns"].includes(L.metricType))E="runs",I=L.metricType==="agentRuns"?"agent-runs":L.metricType==="toolRuns"?"tool-runs":"model-runs";else return;const B=await S.current.fetchTimeSeriesData(I,E,$.fromTimestamp,$.toTimestamp),z=S.current.transformTimeSeriesDataForMetric(B,L.metricType);console.log("Time series response for",L.title,":",B),console.log("Transformed data for",L.title,":",z),console.log("Metric type used for transformation:",L.metricType);const Z=(Q=>({users:"users",sessions:"sessions",messages:"messages",tokens:"totalTokens",agentRuns:"agentRuns",toolRuns:"toolRuns",modelRuns:"modelRuns"})[Q]||"count")(L.metricType||"count");console.log("Using dataKey for metric",L.metricType,":",Z),w(Q=>Q.map(ee=>{if(ee.id===D){const te={...ee,view:{...ee.view,chart:ee.view.chart?{...ee.view.chart,data:z,dataKey:Z,lines:[{dataKey:Z,color:ee.view.chart.color||"#3b82f6",label:L.title,strokeWidth:2}]}:{type:"line",data:z,dataKey:Z,lines:[{dataKey:Z,color:"#3b82f6",label:L.title,strokeWidth:2}],yAxisLabel:L.title}}};return console.log("Updated section for",D,":",te),console.log("Chart config set:",te.view.chart),te}return ee}))}catch($){console.error("Error loading metric data:",$),v(`Failed to load ${L.title} data`)}finally{m($=>({...$,[D]:!1}))}}},M=D=>{var L,$;if(($=(L=u==null?void 0:u.draft)==null?void 0:L.onChange)==null||$.call(L,D),a==null||a(D),t&&S.current){const E={...t,environment:D};S.current.updateConfig(E),_()}},C=D=>{var L,$;if(console.log("🗓️ Time range change requested:",D),typeof D=="string"&&(($=(L=u==null?void 0:u.timeRange)==null?void 0:L.onChange)==null||$.call(L,D)),i==null||i(D),t&&S.current){let E=null;if(typeof D=="object"&&D.from&&D.to)E={fromTimestamp:D.from.toISOString(),toTimestamp:D.to.toISOString()},console.log("📅 Converting DateRange to API format:",E);else if(typeof D=="string"){const B={"24h":1,"7d":7,"30d":30,"90d":90}[D];B&&(E=ur.getDateRange(B),console.log(`📅 Converting preset "${D}" (${B} days) to API format:`,E))}if(E){const I={...t,defaultTimeRange:E};console.log("🔄 Updating API configuration with new date range:",I.defaultTimeRange),S.current.updateConfig(I),console.log("🚀 Reloading dashboard data with new date range..."),_()}else console.warn("⚠️ Unable to convert time range value to API format:",D)}},W=(D="csv")=>{var L,$;($=(L=u==null?void 0:u.export)==null?void 0:L.onExport)==null||$.call(L,D),n==null||n()},U=()=>{t&&S.current&&_()},F=Object.values(h).some(D=>D);return A.jsxs("div",{className:ue("mx-auto p-6",r),children:[A.jsx("div",{className:"mb-8",children:A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:o}),s&&A.jsx("p",{className:"text-gray-600 mt-2",children:s}),y&&A.jsx("p",{className:"text-red-600 mt-2 text-sm",children:y})]}),A.jsxs("div",{className:"flex items-center gap-3",children:[t&&A.jsxs($s,{variant:"outline",onClick:U,disabled:f||F,className:"gap-2",children:[A.jsx(e0,{className:ue("h-4 w-4",(f||F)&&"animate-spin")}),"Refresh"]}),u&&A.jsxs(A.Fragment,{children:[u.draft&&A.jsx(Es,{options:x.length>0?x.map(D=>({label:D.envName.charAt(0).toUpperCase()+D.envName.slice(1),value:D.envName})):u.draft.options,value:u.draft.defaultValue,placeholder:p?"Loading environments...":u.draft.label,onChange:M,className:"min-w-[200px]",disabled:f||F||p}),u.timeRange&&(u.timeRange.useDatePicker?(console.log("🗓️ Dashboard: Rendering DateRangePicker with defaultValue:",u.timeRange.defaultValue),A.jsx(jb,{defaultValue:u.timeRange.defaultValue,onDateRangeChange:D=>{console.log("🗓️ Dashboard: DateRangePicker callback received:",D),D&&C(D)}})):A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx(pf,{className:"h-4 w-4 text-gray-500"}),A.jsx(Es,{options:u.timeRange.options||[],value:u.timeRange.defaultValue,placeholder:u.timeRange.label,onChange:C,className:"min-w-[200px]",disabled:f||F})]})),((N=u.export)==null?void 0:N.enabled)&&A.jsxs($s,{variant:"outline",onClick:()=>W(),className:"gap-2",disabled:f||F,children:[A.jsx(Zb,{className:"h-4 w-4"}),"Export"]})]})]})]})}),A.jsx("div",{className:ue("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:b.map(D=>{var L,$,E,I;return A.jsx(bb,{section:D,isLoading:f,isChartLoading:h[D.id]||!1,onMetricClick:B=>R(D.id,B),className:ue(c.responsive&&((L=D.layout)==null?void 0:L.span)===12&&"lg:col-span-12",c.responsive&&(($=D.layout)==null?void 0:$.span)===6&&"lg:col-span-6",c.responsive&&((E=D.layout)==null?void 0:E.span)===4&&"lg:col-span-4",c.responsive&&((I=D.layout)==null?void 0:I.span)===3&&"lg:col-span-3")},D.id)})})]})},Ds=["Portfolio Analysis Expert","Mortgage Evaluator","Credit Risk Specialist","Asset Valuation Analyst","Liability Assessment Advisor"],Is=["calculate-creditScore","calculate-risk","calculate-mortgage","analyse-expenses","fetch-statement"],Rs=["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"],b8=(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),m=Math.floor(d*8+Math.random()*300),y=Math.floor(h*.3+Math.random()*100),v=Math.floor(h*.25+Math.random()*80),b=Math.floor(h*.2+Math.random()*60),w=Math.floor(h*.15+Math.random()*50),x={};Ds.forEach(g=>{const S=g.replace(/\s+/g,"").toLowerCase(),P=Math.floor(d/Ds.length);x[S]=Math.floor(P+Math.random()*(P*.5))});const T={};Is.forEach(g=>{const S=g.replace(/[-]/g,""),P=Math.floor(h/Is.length);T[S]=Math.floor(P+Math.random()*(P*.8))});const p={};Rs.forEach(g=>{const S=g.replace(/[-\.]/g,""),P=Math.floor(m/Rs.length);p[S]=Math.floor(P+Math.random()*(P*.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:m,codeTools:y,workflowTools:v,knowledgeTools:b,mcpTools:w,...x,...T,...p,value:o})}return t},x8=()=>{const e=[];return Ds.forEach((t,r)=>{e.push({id:`agent-${r+1}`,name:t,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=${t.replace(/\s+/g,"")}&backgroundColor=b6e3f4,c0aede,d1d4f9&backgroundType=solid`})}),e},w8=()=>{const e=t=>t.includes("calculate-creditscore")?"Code Tool":t.includes("calculate-risk")?"Workflow Tool":t.includes("calculate-mortgage")?"MCP Tool":t.includes("analyse-expenses")?"Workflow Tool":t.includes("fetch-statement")?"Knowledge":"Code Tool";return Is.map((t,r)=>({id:`tool-${r+1}`,name:t,type:e(t),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()}))},O8=()=>Rs.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()})),Jr=b8(),S8=x8(),A8=w8(),T8=O8(),P8={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:Jr,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:Jr,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:Jr,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:Jr,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:Jr,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:S8,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"},...Ds.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:Jr,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:A8,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"},...Is.map(e=>{const t=r=>({"calculate-creditscore":"🎯","calculate-risk":"⭐","calculate-mortgage":"🔵","analyse-expenses":"⚡","fetch-statement":"💜"})[r]||"🔧";return{label:e,value:e.replace(/[-]/g,""),icon:t(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:Jr,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:T8,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"},...Rs.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}}]},Ht={primary:["#8b5cf6","#06b6d4","#f97316","#10b981","#ec4899","#f59e0b","#3b82f6","#ef4444"],secondary:["#a78bfa","#22d3ee","#fb923c","#34d399","#f472b6","#fbbf24","#60a5fa","#f87171"],accent:["#6366f1","#8b5cf6","#d946ef","#06b6d4","#84cc16","#eab308"],semantic:{success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#3b82f6"},gradients:{purple:["#8b5cf6","#a78bfa"],cyan:["#06b6d4","#22d3ee"],orange:["#f97316","#fb923c"],green:["#10b981","#34d399"],sunset:["#f97316","#ec4899"],ocean:["#06b6d4","#3b82f6"],forest:["#10b981","#84cc16"]}},_8={primary:["#7c3aed","#0891b2","#ea580c","#059669","#db2777","#d97706","#2563eb","#dc2626"],secondary:["#8b5cf6","#06b6d4","#f97316","#10b981","#ec4899","#f59e0b","#3b82f6","#ef4444"],accent:["#4f46e5","#7c3aed","#c026d3","#0891b2","#65a30d","#ca8a04"],semantic:{success:"#059669",warning:"#d97706",error:"#dc2626",info:"#2563eb"}},E8={primary:["#a78bfa","#22d3ee","#fb923c","#34d399","#f472b6","#fbbf24","#60a5fa","#f87171"],secondary:["#c4b5fd","#67e8f9","#fdba74","#6ee7b7","#f9a8d4","#fcd34d","#93c5fd","#fca5a5"],accent:["#818cf8","#a78bfa","#e879f9","#22d3ee","#a3e635","#facc15"],semantic:{success:"#34d399",warning:"#fbbf24",error:"#f87171",info:"#60a5fa"}},$8={primary:["#1f2937","#374151","#6b7280","#9ca3af","#3b82f6","#1d4ed8","#10b981","#f59e0b"],secondary:["#4b5563","#6b7280","#9ca3af","#d1d5db","#60a5fa","#3b82f6","#34d399","#fbbf24"],accent:["#2563eb","#1d4ed8","#059669","#0891b2","#d97706","#b45309"],semantic:{success:"#059669",warning:"#d97706",error:"#dc2626",info:"#1d4ed8"}},kb=(e,t)=>e.primary[t%e.primary.length],wi=(e,t)=>e.semantic[t],j8=(e,t)=>{var r;return((r=e.gradients)==null?void 0:r[t])||[e.primary[0],e.primary[1]]},Nb=(e,t=Ht)=>e.map((r,n)=>({...r,color:kb(t,n)})),Ls=((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),m=Math.floor(d*8+Math.random()*300);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:m,value:o})}return t})(),C8={id:"enhanced-dashboard",title:"Enhanced Color Configuration Dashboard",subtitle:"Demonstrating all color configuration options",version:"1.0.0",globalControls:{draft:{label:"Draft",options:[{label:"Current Draft",value:"current"},{label:"Previous Draft",value:"previous"}],defaultValue:"current"},timeRange:{label:"Time Range",options:[{label:"Last 7 days",value:"week"},{label:"Last 30 days",value:"30days"}],defaultValue:"30days"},export:{enabled:!0,formats:["csv","json"]}},layout:{columns:12,gap:24,responsive:!0},sections:[{id:"manual-colors",title:"Manual Color Assignment",description:"Each line has manually assigned colors",metrics:[{title:"Total Users",value:3384,change:{value:6,type:"increase"},info:"Manually colored chart"}],view:{type:"chart",chart:{type:"line",title:"Manual Color Configuration",data:Ls,lines:[{dataKey:"users",color:"#8b5cf6",label:"Users",strokeWidth:3},{dataKey:"sessions",color:"#06b6d4",label:"Sessions",strokeWidth:2},{dataKey:"messages",color:"#f97316",label:"Messages",strokeWidth:2,strokeDasharray:"5 5"}],dateRange:{start:"2025-05-06",end:"2025-06-05"},tooltip:{show:!0,style:"dark"},height:300,showLegend:!1}},layout:{span:6,order:1}},{id:"auto-colors",title:"Auto-Assigned Colors",description:"Colors automatically assigned from palette",metrics:[{title:"Agent Runs",value:3384,change:{value:6,type:"increase"},info:"Auto-colored from palette"}],view:{type:"chart",chart:{type:"line",title:"Auto Color Assignment",data:Ls,lines:Nb([{dataKey:"agentRuns",label:"Agent Runs"},{dataKey:"toolRuns",label:"Tool Runs"},{dataKey:"modelRuns",label:"Model Runs"},{dataKey:"totalTokens",label:"Total Tokens"}],Ht),dateRange:{start:"2025-05-06",end:"2025-06-05"},tooltip:{show:!0,style:"dark"},height:300,showLegend:!1}},layout:{span:6,order:2}},{id:"semantic-colors",title:"Semantic Colors",description:"Using semantic colors for different data types",metrics:[{title:"Success Rate",value:"94.2%",change:{value:2,type:"increase"},info:"Using semantic success color"},{title:"Error Rate",value:"5.8%",change:{value:1,type:"decrease"},info:"Using semantic error color"}],view:{type:"chart",chart:{type:"line",title:"Semantic Color Usage",data:Ls,lines:[{dataKey:"users",color:wi(Ht,"success"),label:"Successful Operations",strokeWidth:3},{dataKey:"sessions",color:wi(Ht,"warning"),label:"Warning Events",strokeWidth:2},{dataKey:"messages",color:wi(Ht,"error"),label:"Error Events",strokeWidth:2},{dataKey:"totalTokens",color:wi(Ht,"info"),label:"Info Events",strokeWidth:2}],dateRange:{start:"2025-05-06",end:"2025-06-05"},tooltip:{show:!0,style:"dark"},height:300,showLegend:!1}},layout:{span:12,order:3}},{id:"single-custom",title:"Single Line Custom Color",description:"Single line chart with custom color and styling",metrics:[{title:"Total Messages",value:34563,change:{value:5,type:"increase"},info:"Custom styled single line"}],view:{type:"chart",chart:{type:"line",title:"Custom Single Line",data:Ls,dataKey:"messages",color:"#ec4899",dateRange:{start:"2025-05-06",end:"2025-06-05"},tooltip:{show:!0,style:"dark"},height:250,showGrid:!0,curve:"monotone"}},layout:{span:12,order:4}}]},M8={manualColors:{line1:"#8b5cf6",line2:"#06b6d4",line3:"#f97316",line4:"#10b981"},paletteColors:Ht.primary,semanticColors:Ht.semantic,gradientColors:Ht.gradients},k8={baseUrl:window.location.protocol+"//"+window.location.hostname,dashboardType:"agenticDashboard",projectId:"aa-bdbfa4eb-c7c4-4350-be96-d778188c2c4b",environment:"draft",headers:{authorization:"Bearer 2amvsUbh87obVLVYjbNnXCbXnOr-plekM7-qjKt2EJIZnZuAV2KT9WSTG0L4U33X",accountId:"6290f982fb880154e99bbede","Content-Type":"application/json"},defaultTimeRange:{fromTimestamp:new Date(Date.now()-30*24*60*60*1e3).toISOString(),toTimestamp:new Date().toISOString()},refreshInterval:3e4},N8={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}},D8=`
201
- // In your Angular component (usage-analytics.component.ts)
202
- import { Dashboard, apiEnabledDashboardConfig, agenticAppConfig } from '@agentic/ui-libs';
203
-
204
- @Component({
205
- selector: 'app-analytics-dashboard',
206
- template: '<div #dashboardContainer></div>',
207
- standalone: true
208
- })
209
- export class AnalyticsDashboardComponent implements OnInit, AfterViewInit, OnDestroy {
210
- @ViewChild('dashboardContainer', { static: true })
211
- dashboardContainer!: ElementRef;
212
-
213
- private root: Root | null = null;
214
-
215
- // Your actual app configuration
216
- private appConfig = {
217
- baseUrl: window.location.protocol + '//' + window.location.hostname,
218
- dashboardType: 'agenticDashboard' as const,
219
- projectId: 'your-project-id',
220
- environment: 'draft',
221
- headers: {
222
- 'authorization': 'Bearer your-token',
223
- 'accountId': 'your-account-id',
224
- 'Content-Type': 'application/json'
225
- }
226
- };
227
-
228
- ngAfterViewInit(): void {
229
- this.renderReactComponent();
230
- }
231
-
232
- private renderReactComponent(): void {
233
- if (this.dashboardContainer) {
234
- const element = React.createElement(Dashboard, {
235
- config: apiEnabledDashboardConfig,
236
- appConfig: this.appConfig,
237
- onExport: () => console.log('Export clicked'),
238
- onDraftChange: (value: string) => {
239
- console.log('Environment changed:', value);
240
- // Update your appConfig.environment and re-render if needed
241
- },
242
- onTimeRangeChange: (value: string) => {
243
- console.log('Time range changed:', value);
244
- // Update date range and re-render if needed
245
- }
246
- });
247
-
248
- this.root = createRoot(this.dashboardContainer.nativeElement);
249
- this.root.render(element);
250
- }
251
- }
252
-
253
- ngOnDestroy(): void {
254
- if (this.root) {
255
- this.root.unmount();
256
- }
257
- }
258
- }
259
- `;le.AgentListView=pb,le.AnalyticsChart=db,le.AnalyticsTable=hb,le.ApiInvokerService=Mb,le.Button=$s,le.ChartSkeleton=fb,le.Dashboard=g8,le.DashboardApiService=ur,le.DashboardSection=bb,le.DateRangePicker=jb,le.EndpointsConfigService=Cb,le.MetricCard=Tf,le.MetricCardSkeleton=yi,le.ModelListView=yb,le.Portal=$b,le.SectionControls=gb,le.Select=Es,le.Skeleton=Rt,le.ToolListView=vb,le.ViewRenderer=mb,le.agenticAppConfig=k8,le.angularIntegrationExample=D8,le.apiEnabledDashboardConfig=N8,le.autoAssignColors=Nb,le.businessPalette=$8,le.cn=ue,le.colorExamples=M8,le.darkPalette=_8,le.defaultPalette=Ht,le.enhancedDashboardConfig=C8,le.getColorFromPalette=kb,le.getGradientColors=j8,le.getSemanticColor=wi,le.lightPalette=E8,le.sampleDashboardConfig=P8,Object.defineProperty(le,Symbol.toStringTag,{value:"Module"})});
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))})})]})]}))};/**
126
+ * @license lucide-react v0.294.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */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"};/**
131
+ * @license lucide-react v0.294.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const 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};/**
136
+ * @license lucide-react v0.294.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const Mc=Cc("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
141
+ * @license lucide-react v0.294.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const km=Cc("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
146
+ * @license lucide-react v0.294.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const 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)">
151
+ <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
+ <defs><clipPath id="clip0_3533_7514"><rect width="12" height="12" fill="white"/></clipPath></defs>
153
+ </svg>`,toolLibrary:`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
154
+ <path d="M6 2V7.6C6 8.44008 6 8.86012 6.16349 9.18099C6.3073 9.46323 6.53677 9.6927 6.81901 9.83651C7.13988 10 7.55992 10 8.4 10H8.5M8.5 10C8.5 10.5523 8.94772 11 9.5 11C10.0523 11 10.5 10.5523 10.5 10C10.5 9.44772 10.0523 9 9.5 9C8.94772 9 8.5 9.44772 8.5 10ZM3.5 2L8.5 2M3.5 2C3.5 2.55228 3.05228 3 2.5 3C1.94772 3 1.5 2.55228 1.5 2C1.5 1.44772 1.94772 1 2.5 1C3.05228 1 3.5 1.44772 3.5 2ZM8.5 2C8.5 2.55228 8.94772 3 9.5 3C10.0523 3 10.5 2.55228 10.5 2C10.5 1.44772 10.0523 1 9.5 1C8.94772 1 8.5 1.44771 8.5 2ZM6 6H8.5M8.5 6C8.5 6.55228 8.94772 7 9.5 7C10.0523 7 10.5 6.55228 10.5 6C10.5 5.44772 10.0523 5 9.5 5C8.94772 5 8.5 5.44772 8.5 6Z" stroke="#155EEF" stroke-width="1.33" stroke-linecap="round" stroke-linejoin="round"/>
155
+ </svg>`,KNOWLEDGE:`<svg width="10" height="12" viewBox="0 0 10 12" fill="none" xmlns="http://www.w3.org/2000/svg">
156
+ <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
+ </svg>`,MCP:`<svg width="14" height="14" viewBox="0 0 22 23" fill="none" xmlns="http://www.w3.org/2000/svg">
158
+ <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"})});