agentic-ui-libs 0.0.1

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.
Files changed (61) hide show
  1. package/README.md +113 -0
  2. package/dist/assets/style.css +1 -0
  3. package/dist/components/AgentListView.d.ts +9 -0
  4. package/dist/components/AgentListView.d.ts.map +1 -0
  5. package/dist/components/AnalyticsChart.d.ts +10 -0
  6. package/dist/components/AnalyticsChart.d.ts.map +1 -0
  7. package/dist/components/AnalyticsTable.d.ts +9 -0
  8. package/dist/components/AnalyticsTable.d.ts.map +1 -0
  9. package/dist/components/Dashboard.d.ts +14 -0
  10. package/dist/components/Dashboard.d.ts.map +1 -0
  11. package/dist/components/DashboardSection.d.ts +12 -0
  12. package/dist/components/DashboardSection.d.ts.map +1 -0
  13. package/dist/components/MetricCard.d.ts +10 -0
  14. package/dist/components/MetricCard.d.ts.map +1 -0
  15. package/dist/components/ModelListView.d.ts +9 -0
  16. package/dist/components/ModelListView.d.ts.map +1 -0
  17. package/dist/components/SectionControls.d.ts +9 -0
  18. package/dist/components/SectionControls.d.ts.map +1 -0
  19. package/dist/components/ToolListView.d.ts +9 -0
  20. package/dist/components/ToolListView.d.ts.map +1 -0
  21. package/dist/components/ViewRenderer.d.ts +14 -0
  22. package/dist/components/ViewRenderer.d.ts.map +1 -0
  23. package/dist/components/ui/Button.d.ts +10 -0
  24. package/dist/components/ui/Button.d.ts.map +1 -0
  25. package/dist/components/ui/Card.d.ts +19 -0
  26. package/dist/components/ui/Card.d.ts.map +1 -0
  27. package/dist/components/ui/MultiSelect.d.ts +15 -0
  28. package/dist/components/ui/MultiSelect.d.ts.map +1 -0
  29. package/dist/components/ui/Portal.d.ts +6 -0
  30. package/dist/components/ui/Portal.d.ts.map +1 -0
  31. package/dist/components/ui/Select.d.ts +13 -0
  32. package/dist/components/ui/Select.d.ts.map +1 -0
  33. package/dist/components/ui/Skeleton.d.ts +16 -0
  34. package/dist/components/ui/Skeleton.d.ts.map +1 -0
  35. package/dist/components/ui/daterangepicker.d.ts +12 -0
  36. package/dist/components/ui/daterangepicker.d.ts.map +1 -0
  37. package/dist/data/apiDashboardConfig.d.ts +5 -0
  38. package/dist/data/apiDashboardConfig.d.ts.map +1 -0
  39. package/dist/data/apisampleData.d.ts +48 -0
  40. package/dist/data/apisampleData.d.ts.map +1 -0
  41. package/dist/data/colorPalettes.d.ts +10 -0
  42. package/dist/data/colorPalettes.d.ts.map +1 -0
  43. package/dist/data/enhancedSampleData.d.ts +21 -0
  44. package/dist/data/enhancedSampleData.d.ts.map +1 -0
  45. package/dist/data/sampleData.d.ts +6 -0
  46. package/dist/data/sampleData.d.ts.map +1 -0
  47. package/dist/index.d.ts +29 -0
  48. package/dist/index.d.ts.map +1 -0
  49. package/dist/index.js +26945 -0
  50. package/dist/lib/api-invoker.service.d.ts +29 -0
  51. package/dist/lib/api-invoker.service.d.ts.map +1 -0
  52. package/dist/lib/dashboard-api.service.d.ts +109 -0
  53. package/dist/lib/dashboard-api.service.d.ts.map +1 -0
  54. package/dist/lib/endpoints.config.d.ts +21 -0
  55. package/dist/lib/endpoints.config.d.ts.map +1 -0
  56. package/dist/lib/utils.d.ts +7 -0
  57. package/dist/lib/utils.d.ts.map +1 -0
  58. package/dist/types/index.d.ts +459 -0
  59. package/dist/types/index.d.ts.map +1 -0
  60. package/dist/ui-libs.umd.js +259 -0
  61. package/package.json +69 -0
@@ -0,0 +1,259 @@
1
+ (function(oe,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):(oe=typeof globalThis<"u"?globalThis:oe||self,O(oe.AgenticUILibs={},oe.React,oe.ReactDOM))})(this,function(oe,O,Xr){"use strict";var Q8=Object.defineProperty;var ez=(oe,O,Xr)=>O in oe?Q8(oe,O,{enumerable:!0,configurable:!0,writable:!0,value:Xr}):oe[O]=Xr;var Rt=(oe,O,Xr)=>ez(oe,typeof O!="symbol"?O+"":O,Xr);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 mt=Kb(O);var Ti=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ls={exports:{}},ia={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var ff;function qb(){if(ff)return ia;ff=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 ia.Fragment=r,ia.jsx=o,ia.jsxs=o,ia}var oa={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var df;function Gb(){return df||(df=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,te=new Array(H>1?H-1:0),ue=1;ue<H;ue++)te[ue-1]=arguments[ue];x("error",j,te)}}function x(j,H,te){{var ue=b.ReactDebugCurrentFrame,Te=ue.getStackAddendum();Te!==""&&(H+="%s",te=te.concat([Te]));var $e=te.map(function(me){return String(me)});$e.unshift("Warning: "+H),Function.prototype.apply.call(console[j],console,$e)}}var A=!1,p=!1,g=!1,S=!1,P=!1,E;E=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||A||p||g||typeof j=="object"&&j!==null&&(j.$$typeof===d||j.$$typeof===f||j.$$typeof===o||j.$$typeof===s||j.$$typeof===l||j.$$typeof===E||j.getModuleId!==void 0))}function k(j,H,te){var ue=j.displayName;if(ue)return ue;var Te=H.displayName||H.name||"";return Te!==""?te+"("+Te+")":te}function M(j){return j.displayName||"Context"}function B(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 M(H)+".Consumer";case o:var te=j;return M(te._context)+".Provider";case l:return k(j,j.render,"ForwardRef");case f:var ue=j.displayName||null;return ue!==null?ue:B(j.type)||"Memo";case d:{var Te=j,$e=Te._payload,me=Te._init;try{return B(me($e))}catch{return null}}}return null}var F=Object.assign,W=0,_,D,U,$,C,I,L;function z(){}z.__reactDisabledLog=!0;function G(){{if(W===0){_=console.log,D=console.info,U=console.warn,$=console.error,C=console.group,I=console.groupCollapsed,L=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})}W++}}function Q(){{if(W--,W===0){var j={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},j,{value:_}),info:F({},j,{value:D}),warn:F({},j,{value:U}),error:F({},j,{value:$}),group:F({},j,{value:C}),groupCollapsed:F({},j,{value:I}),groupEnd:F({},j,{value:L})})}W<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=b.ReactCurrentDispatcher,ee;function ne(j,H,te){{if(ee===void 0)try{throw Error()}catch(Te){var ue=Te.stack.trim().match(/\n( *(at )?)/);ee=ue&&ue[1]||""}return`
18
+ `+ee+j}}var q=!1,Y;{var Z=typeof WeakMap=="function"?WeakMap:Map;Y=new Z}function N(j,H){if(!j||q)return"";{var te=Y.get(j);if(te!==void 0)return te}var ue;q=!0;var Te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $e;$e=J.current,J.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(ct){ue=ct}Reflect.construct(j,[],me)}else{try{me.call()}catch(ct){ue=ct}j.call(me.prototype)}}else{try{throw Error()}catch(ct){ue=ct}j()}}catch(ct){if(ct&&ue&&typeof ct.stack=="string"){for(var ye=ct.stack.split(`
19
+ `),it=ue.stack.split(`
20
+ `),Fe=ye.length-1,Ke=it.length-1;Fe>=1&&Ke>=0&&ye[Fe]!==it[Ke];)Ke--;for(;Fe>=1&&Ke>=0;Fe--,Ke--)if(ye[Fe]!==it[Ke]){if(Fe!==1||Ke!==1)do if(Fe--,Ke--,Ke<0||ye[Fe]!==it[Ke]){var _t=`
21
+ `+ye[Fe].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(Fe>=1&&Ke>=0);break}}}finally{q=!1,J.current=$e,Q(),Error.prepareStackTrace=Te}var aa=j?j.displayName||j.name:"",Yr=aa?ne(aa):"";return typeof j=="function"&&Y.set(j,Yr),Yr}function ie(j,H,te){return N(j,!1)}function V(j){var H=j.prototype;return!!(H&&H.isReactComponent)}function se(j,H,te){if(j==null)return"";if(typeof j=="function")return N(j,V(j));if(typeof j=="string")return ne(j);switch(j){case u:return ne("Suspense");case c:return ne("SuspenseList")}if(typeof j=="object")switch(j.$$typeof){case l:return ie(j.render);case f:return se(j.type,H,te);case d:{var ue=j,Te=ue._payload,$e=ue._init;try{return se($e(Te),H,te)}catch{}}}return""}var pe=Object.prototype.hasOwnProperty,Le={},et=b.ReactDebugCurrentFrame;function It(j){if(j){var H=j._owner,te=se(j.type,j._source,H?H.type:null);et.setExtraStackFrame(te)}else et.setExtraStackFrame(null)}function ta(j,H,te,ue,Te){{var $e=Function.call.bind(pe);for(var me in j)if($e(j,me)){var ye=void 0;try{if(typeof j[me]!="function"){var it=Error((ue||"React class")+": "+te+" 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 it.name="Invariant Violation",it}ye=j[me](H,me,ue,te,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Fe){ye=Fe}ye&&!(ye instanceof Error)&&(It(Te),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).",ue||"React class",te,me,typeof ye),It(null)),ye instanceof Error&&!(ye.message in Le)&&(Le[ye.message]=!0,It(Te),w("Failed %s type: %s",te,ye.message),It(null))}}}var sr=Array.isArray;function yt(j){return sr(j)}function wi(j){{var H=typeof Symbol=="function"&&Symbol.toStringTag,te=H&&j[Symbol.toStringTag]||j.constructor.name||"Object";return te}}function Oi(j){try{return ra(j),!1}catch{return!0}}function ra(j){return""+j}function Si(j){if(Oi(j))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wi(j)),ra(j)}var Ai=b.ReactCurrentOwner,D8={key:!0,ref:!0,__self:!0,__source:!0},Db,Ib;function I8(j){if(pe.call(j,"ref")){var H=Object.getOwnPropertyDescriptor(j,"ref").get;if(H&&H.isReactWarning)return!1}return j.ref!==void 0}function R8(j){if(pe.call(j,"key")){var H=Object.getOwnPropertyDescriptor(j,"key").get;if(H&&H.isReactWarning)return!1}return j.key!==void 0}function L8(j,H){typeof j.ref=="string"&&Ai.current}function B8(j,H){{var te=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))};te.isReactWarning=!0,Object.defineProperty(j,"key",{get:te,configurable:!0})}}function F8(j,H){{var te=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))};te.isReactWarning=!0,Object.defineProperty(j,"ref",{get:te,configurable:!0})}}var W8=function(j,H,te,ue,Te,$e,me){var ye={$$typeof:t,type:j,key:H,ref:te,props:me,_owner:$e};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:ue}),Object.defineProperty(ye,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.freeze&&(Object.freeze(ye.props),Object.freeze(ye)),ye};function U8(j,H,te,ue,Te){{var $e,me={},ye=null,it=null;te!==void 0&&(Si(te),ye=""+te),R8(H)&&(Si(H.key),ye=""+H.key),I8(H)&&(it=H.ref,L8(H,Te));for($e in H)pe.call(H,$e)&&!D8.hasOwnProperty($e)&&(me[$e]=H[$e]);if(j&&j.defaultProps){var Fe=j.defaultProps;for($e in Fe)me[$e]===void 0&&(me[$e]=Fe[$e])}if(ye||it){var Ke=typeof j=="function"?j.displayName||j.name||"Unknown":j;ye&&B8(me,Ke),it&&F8(me,Ke)}return W8(j,ye,it,Te,ue,Ai.current,me)}}var sf=b.ReactCurrentOwner,Rb=b.ReactDebugCurrentFrame;function na(j){if(j){var H=j._owner,te=se(j.type,j._source,H?H.type:null);Rb.setExtraStackFrame(te)}else Rb.setExtraStackFrame(null)}var lf;lf=!1;function uf(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function Lb(){{if(sf.current){var j=B(sf.current.type);if(j)return`
22
+
23
+ Check the render method of \``+j+"`."}return""}}function z8(j){return""}var Bb={};function K8(j){{var H=Lb();if(!H){var te=typeof j=="string"?j:j.displayName||j.name;te&&(H=`
24
+
25
+ Check the top-level render call using <`+te+">.")}return H}}function Fb(j,H){{if(!j._store||j._store.validated||j.key!=null)return;j._store.validated=!0;var te=K8(H);if(Bb[te])return;Bb[te]=!0;var ue="";j&&j._owner&&j._owner!==sf.current&&(ue=" It was passed a child from "+B(j._owner.type)+"."),na(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.',te,ue),na(null)}}function Wb(j,H){{if(typeof j!="object")return;if(yt(j))for(var te=0;te<j.length;te++){var ue=j[te];uf(ue)&&Fb(ue,H)}else if(uf(j))j._store&&(j._store.validated=!0);else if(j){var Te=v(j);if(typeof Te=="function"&&Te!==j.entries)for(var $e=Te.call(j),me;!(me=$e.next()).done;)uf(me.value)&&Fb(me.value,H)}}}function q8(j){{var H=j.type;if(H==null||typeof H=="string")return;var te;if(typeof H=="function")te=H.propTypes;else if(typeof H=="object"&&(H.$$typeof===l||H.$$typeof===f))te=H.propTypes;else return;if(te){var ue=B(H);ta(te,j.props,"prop",ue,j)}else if(H.PropTypes!==void 0&&!lf){lf=!0;var Te=B(H);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Te||"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),te=0;te<H.length;te++){var ue=H[te];if(ue!=="children"&&ue!=="key"){na(j),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ue),na(null);break}}j.ref!==null&&(na(j),w("Invalid attribute `ref` supplied to `React.Fragment`."),na(null))}}var Ub={};function zb(j,H,te,ue,Te,$e){{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 it=z8();it?ye+=it:ye+=Lb();var Fe;j===null?Fe="null":yt(j)?Fe="array":j!==void 0&&j.$$typeof===t?(Fe="<"+(B(j.type)||"Unknown")+" />",ye=" Did you accidentally export a JSX literal instead of a component?"):Fe=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",Fe,ye)}var Ke=U8(j,H,te,Te,$e);if(Ke==null)return Ke;if(me){var _t=H.children;if(_t!==void 0)if(ue)if(yt(_t)){for(var aa=0;aa<_t.length;aa++)Wb(_t[aa],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(pe.call(H,"key")){var Yr=B(j),ct=Object.keys(H).filter(function(Z8){return Z8!=="key"}),cf=ct.length>0?"{key: someKey, "+ct.join(": ..., ")+": ...}":"{key: someKey}";if(!Ub[Yr+cf]){var J8=ct.length>0?"{"+ct.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,cf,Yr,J8,Yr),Ub[Yr+cf]=!0}}return j===n?G8(Ke):q8(Ke),Ke}}function V8(j,H,te){return zb(j,H,te,!0)}function H8(j,H,te){return zb(j,H,te,!1)}var Y8=H8,X8=V8;oa.Fragment=n,oa.jsx=Y8,oa.jsxs=X8}()),oa}process.env.NODE_ENV==="production"?Ls.exports=qb():Ls.exports=Gb();var T=Ls.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 Vb={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(),ft=(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,...Vb,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=ft("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 hf=ft("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 Pi=ft("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=ft("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=ft("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 pf=ft("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=ft("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=ft("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=ft("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 vf=ft("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=ft("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=ft("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=ft("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 yf(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=yf(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=yf(e))&&(n&&(n+=" "),n+=t);return n}const Bs="-",a0=e=>{const t=o0(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(Bs);return s[0]===""&&s.length!==1&&s.shift(),mf(s,t)||i0(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},mf=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?mf(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(Bs);return(o=t.validators.find(({validator:s})=>s(i)))==null?void 0:o.classGroupId},gf=/^\[(.+)\]$/,i0=e=>{if(gf.test(e)){const t=gf.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])=>{Fs(o,n,i,t)}),n},Fs=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:bf(t,a);i.classGroupId=r;return}if(typeof a=="function"){if(s0(a)){Fs(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([i,o])=>{Fs(o,bf(t,i),r,n)})})},bf=(e,t)=>{let r=e;return t.split(Bs).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)}}},xf="!",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(xf),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+xf:v,w=b+y;if(i.includes(w))continue;i.push(w);const x=a(y,m);for(let A=0;A<x.length;++A){const p=x[A];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=wf(t))&&(n&&(n+=" "),n+=r);return n}const wf=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=wf(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 Me=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Of=/^\[(?:([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)\(.+\)$/,Vt=e=>Jr(e)||g0.has(e)||m0.test(e),lr=e=>Zr(e,"length",C0),Jr=e=>!!e&&!Number.isNaN(Number(e)),Ws=e=>Zr(e,"number",Jr),sa=e=>!!e&&Number.isInteger(Number(e)),A0=e=>e.endsWith("%")&&Jr(e.slice(0,-1)),he=e=>Of.test(e),ur=e=>b0.test(e),T0=new Set(["length","size","percentage"]),P0=e=>Zr(e,T0,Sf),_0=e=>Zr(e,"position",Sf),E0=new Set(["image","url"]),$0=e=>Zr(e,E0,k0),j0=e=>Zr(e,"",M0),la=()=>!0,Zr=(e,t,r)=>{const n=Of.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),Sf=()=>!1,M0=e=>O0.test(e),k0=e=>S0.test(e),N0=y0(()=>{const e=Me("colors"),t=Me("spacing"),r=Me("blur"),n=Me("brightness"),a=Me("borderColor"),i=Me("borderRadius"),o=Me("borderSpacing"),s=Me("borderWidth"),l=Me("contrast"),u=Me("grayscale"),c=Me("hueRotate"),f=Me("invert"),d=Me("gap"),h=Me("gradientColorStops"),m=Me("gradientColorStopPositions"),y=Me("inset"),v=Me("margin"),b=Me("opacity"),w=Me("padding"),x=Me("saturate"),A=Me("scale"),p=Me("sepia"),g=Me("skew"),S=Me("space"),P=Me("translate"),E=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto",he,t],M=()=>[he,t],B=()=>["",Vt,lr],F=()=>["auto",Jr,he],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["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"],U=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",he],C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[Jr,he];return{cacheSize:500,separator:":",theme:{colors:[la],spacing:[Vt,lr],blur:["none","",ur,he],brightness:I(),borderColor:[e],borderRadius:["none","","full",ur,he],borderSpacing:M(),borderWidth:B(),contrast:I(),grayscale:$(),hueRotate:I(),invert:$(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[A0,lr],inset:k(),margin:k(),opacity:I(),padding:M(),saturate:I(),scale:I(),sepia:$(),skew:I(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",he]}],container:["container"],columns:[{columns:[ur]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:[...W(),he]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],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",sa,he]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",he]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",sa,he]}],"grid-cols":[{"grid-cols":[la]}],"col-start-end":[{col:["auto",{span:["full",sa,he]},he]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[la]}],"row-start-end":[{row:["auto",{span:[sa,he]},he]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",he]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",he]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[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",he,t]}],"min-w":[{"min-w":[he,t,"min","max","fit"]}],"max-w":[{"max-w":[he,t,"none","full","min","max","fit","prose",{screen:[ur]},ur]}],h:[{h:[he,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[he,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[he,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[he,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ur,lr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ws]}],"font-family":[{font:[la]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",he]}],"line-clamp":[{"line-clamp":["none",Jr,Ws]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Vt,he]}],"list-image":[{"list-image":["none",he]}],"list-style-type":[{list:["none","disc","decimal",he]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[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:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Vt,lr]}],"underline-offset":[{"underline-offset":["auto",Vt,he]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),_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:[..._(),"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:_()}],"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:["",..._()]}],"outline-offset":[{"outline-offset":[Vt,he]}],"outline-w":[{outline:[Vt,lr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Vt,lr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ur,j0]}],"shadow-color":[{shadow:[la]}],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",ur,he]}],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",he]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",he]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",he]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[sa,he]}],"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",he]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",he]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",he]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Vt,lr,Ws]}],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 le(...e){return N0(ve(e))}const Af=({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 T.jsxs("div",{className:le("rounded-lg border p-4 transition-all duration-200 bg-white",!s&&"border-gray-200",s&&["border-[#84adff]","shadow-[0px_1px_4px_0px_rgba(16,24,40,0.08),0px_1px_2px_0px_rgba(16,24,40,0.08),0px_0px_0px_4px_rgba(41,112,255,0.24)]"],r&&"cursor-pointer",t),onClick:c,children:[T.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[T.jsx("span",{className:"text-sm font-medium text-gray-600",children:n}),o&&T.jsxs("div",{className:"relative group",children:[T.jsx(Qb,{className:"h-4 w-4 text-gray-400 cursor-help"}),T.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,T.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"})]})]})]}),T.jsxs("div",{className:"flex items-baseline gap-3",children:[T.jsx("span",{className:"text-2xl font-semibold text-gray-900",children:l(a)}),i&&T.jsxs("div",{className:le("flex items-center gap-1 px-2 py-1 rounded-md text-sm font-medium",i.type==="increase"?"text-green-700 bg-green-100":"text-red-700 bg-red-100"),children:[i.type==="increase"?T.jsx(n0,{className:"h-3 w-3"}):T.jsx(r0,{className:"h-3 w-3"}),T.jsx("span",{children:u(i.value)})]})]})]})};var D0=Array.isArray,ot=D0,I0=typeof Ti=="object"&&Ti&&Ti.Object===Object&&Ti,Tf=I0,R0=Tf,L0=typeof self=="object"&&self&&self.Object===Object&&self,B0=R0||L0||Function("return this")(),Lt=B0,F0=Lt,W0=F0.Symbol,ua=W0,Pf=ua,_f=Object.prototype,U0=_f.hasOwnProperty,z0=_f.toString,ca=Pf?Pf.toStringTag:void 0;function K0(e){var t=U0.call(e,ca),r=e[ca];try{e[ca]=void 0;var n=!0}catch{}var a=z0.call(e);return n&&(t?e[ca]=r:delete e[ca]),a}var q0=K0,G0=Object.prototype,V0=G0.toString;function H0(e){return V0.call(e)}var Y0=H0,Ef=ua,X0=q0,J0=Y0,Z0="[object Null]",Q0="[object Undefined]",$f=Ef?Ef.toStringTag:void 0;function ex(e){return e==null?e===void 0?Q0:Z0:$f&&$f in Object(e)?X0(e):J0(e)}var Ht=ex;function tx(e){return e!=null&&typeof e=="object"}var Yt=tx,rx=Ht,nx=Yt,ax="[object Symbol]";function ix(e){return typeof e=="symbol"||nx(e)&&rx(e)==ax}var Qr=ix,ox=ot,sx=Qr,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 Us=cx;function fx(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var cr=fx;const en=je(cr);var dx=Ht,hx=cr,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 zs=gx;const de=je(zs);var bx=Lt,xx=bx["__core-js_shared__"],wx=xx,Ks=wx,jf=function(){var e=/[^.]+$/.exec(Ks&&Ks.keys&&Ks.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ox(e){return!!jf&&jf 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 Cf=Px,_x=zs,Ex=Sx,$x=cr,jx=Cf,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 Tr=Kx,qx=Tr,Gx=qx(Object,"create"),_i=Gx,Mf=_i;function Vx(){this.__data__=Mf?Mf(null):{},this.size=0}var Hx=Vx;function Yx(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xx=Yx,Jx=_i,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=_i,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=_i,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 tn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}tn.prototype.clear=dw,tn.prototype.delete=hw,tn.prototype.get=pw,tn.prototype.has=vw,tn.prototype.set=yw;var mw=tn;function gw(){this.__data__=[],this.size=0}var bw=gw;function xw(e,t){return e===t||e!==e&&t!==t}var qs=xw,ww=qs;function Ow(e,t){for(var r=e.length;r--;)if(ww(e[r][0],t))return r;return-1}var Ei=Ow,Sw=Ei,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=Ei;function $w(e){var t=this.__data__,r=Ew(t,e);return r<0?void 0:t[r][1]}var jw=$w,Cw=Ei;function Mw(e){return Cw(this.__data__,e)>-1}var kw=Mw,Nw=Ei;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 rn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rn.prototype.clear=Rw,rn.prototype.delete=Lw,rn.prototype.get=Bw,rn.prototype.has=Fw,rn.prototype.set=Ww;var $i=rn,Uw=Tr,zw=Lt,Kw=Uw(zw,"Map"),Gs=Kw,kf=mw,qw=$i,Gw=Gs;function Vw(){this.size=0,this.__data__={hash:new kf,map:new(Gw||qw),string:new kf}}var Hw=Vw;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 ji=Zw,Qw=ji;function e1(e){var t=Qw(this,e).delete(e);return this.size-=t?1:0,t}var t1=e1,r1=ji;function n1(e){return r1(this,e).get(e)}var a1=n1,i1=ji;function o1(e){return i1(this,e).has(e)}var s1=o1,l1=ji;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 nn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}nn.prototype.clear=f1,nn.prototype.delete=d1,nn.prototype.get=h1,nn.prototype.has=p1,nn.prototype.set=v1;var Vs=nn,Nf=Vs,y1="Expected a function";function Hs(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(Hs.Cache||Nf),r}Hs.Cache=Nf;var Df=Hs;const m1=je(Df);var g1=Df,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 Ys=_1,If=ua,E1=Ys,$1=ot,j1=Qr,Rf=If?If.prototype:void 0,Lf=Rf?Rf.toString:void 0;function Bf(e){if(typeof e=="string")return e;if($1(e))return E1(e,Bf)+"";if(j1(e))return Lf?Lf.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var C1=Bf,M1=C1;function k1(e){return e==null?"":M1(e)}var Ff=k1,N1=ot,D1=Us,I1=P1,R1=Ff;function L1(e,t){return N1(e)?e:D1(e,t)?[e]:I1(R1(e))}var Wf=L1,B1=Qr;function F1(e){if(typeof e=="string"||B1(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ci=F1,W1=Wf,U1=Ci;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 Xs=z1,K1=Xs;function q1(e,t,r){var n=e==null?void 0:K1(e,t);return n===void 0?r:n}var Uf=q1;const gt=je(Uf);function G1(e){return e==null}var V1=G1;const ce=je(V1);var H1=Ht,Y1=ot,X1=Yt,J1="[object String]";function Z1(e){return typeof e=="string"||!Y1(e)&&X1(e)&&H1(e)==J1}var Q1=Z1;const Pr=je(Q1);var Js={exports:{}},xe={};/**
106
+ * @license React
107
+ * react-is.production.min.js
108
+ *
109
+ * Copyright (c) Facebook, Inc. and its affiliates.
110
+ *
111
+ * This source code is licensed under the MIT license found in the
112
+ * LICENSE file in the root directory of this source tree.
113
+ */var zf;function eO(){if(zf)return xe;zf=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={};/**
114
+ * @license React
115
+ * react-is.development.js
116
+ *
117
+ * Copyright (c) Facebook, Inc. and its affiliates.
118
+ *
119
+ * This source code is licensed under the MIT license found in the
120
+ * LICENSE file in the root directory of this source tree.
121
+ */var Kf;function tO(){return Kf||(Kf=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=!1,y=!1,v=!1,b=!1,w=!1,x;x=Symbol.for("react.module.reference");function A(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 se=V.$$typeof;switch(se){case e:var pe=V.type;switch(pe){case r:case a:case n:case u:case c:return pe;default:var Le=pe&&pe.$$typeof;switch(Le){case s:case o:case l:case d:case f:case i:return Le;default:return se}}case t:return se}}}var g=o,S=i,P=e,E=l,R=r,k=d,M=f,B=t,F=a,W=n,_=u,D=c,U=!1,$=!1;function C(V){return U||(U=!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 L(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 Q(V){return p(V)===l}function J(V){return p(V)===r}function ee(V){return p(V)===d}function ne(V){return p(V)===f}function q(V){return p(V)===t}function Y(V){return p(V)===a}function Z(V){return p(V)===n}function N(V){return p(V)===u}function ie(V){return p(V)===c}we.ContextConsumer=g,we.ContextProvider=S,we.Element=P,we.ForwardRef=E,we.Fragment=R,we.Lazy=k,we.Memo=M,we.Portal=B,we.Profiler=F,we.StrictMode=W,we.Suspense=_,we.SuspenseList=D,we.isAsyncMode=C,we.isConcurrentMode=I,we.isContextConsumer=L,we.isContextProvider=z,we.isElement=G,we.isForwardRef=Q,we.isFragment=J,we.isLazy=ee,we.isMemo=ne,we.isPortal=q,we.isProfiler=Y,we.isStrictMode=Z,we.isSuspense=N,we.isSuspenseList=ie,we.isValidElementType=A,we.typeOf=p}()),we}process.env.NODE_ENV==="production"?Js.exports=eO():Js.exports=tO();var rO=Js.exports,nO=Ht,aO=Yt,iO="[object Number]";function oO(e){return typeof e=="number"||aO(e)&&nO(e)==iO}var qf=oO;const sO=je(qf);var lO=qf;function uO(e){return lO(e)&&e!=+e}var cO=uO;const an=je(cO);var Et=function(t){return t===0?0:t>0?1:-1},_r=function(t){return Pr(t)&&t.indexOf("%")===t.length-1},X=function(t){return sO(t)&&!an(t)},fO=function(t){return ce(t)},qe=function(t){return X(t)||Pr(t)},dO=0,Er=function(t){var r=++dO;return"".concat(t||"").concat(r)},$r=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!X(t)&&!Pr(t))return n;var i;if(_r(t)){var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return an(i)&&(i=n),a&&i>r&&(i=r),i},fr=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},Be=function(t,r){return X(t)&&X(r)?function(n){return t+n*(r-t)}:function(){return r}};function Mi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):gt(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:Pr(t)&&Pr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function on(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Zs(e){"@babel/helpers - typeof";return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zs(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"],Qs={svg:yO,polygon:Gf,polyline:Gf},el=["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"],ki=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(O.isValidElement(t)&&(n=t.props),!en(n))return null;var a={};return Object.keys(n).forEach(function(i){el.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}},fa=function(t,r,n){if(!en(t)||Zs(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var o=t[i];el.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=gO(o,r,n))}),a},bO=["children"],xO=["children"];function Vf(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 tl(e){"@babel/helpers - typeof";return tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tl(e)}var Hf={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Xt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Yf=null,rl=null,nl=function e(t){if(t===Yf&&Array.isArray(rl))return rl;var r=[];return O.Children.forEach(t,function(n){ce(n)||(rO.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),rl=r,Yf=t,r};function st(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return Xt(a)}):n=[Xt(t)],nl(e).forEach(function(a){var i=gt(a,"type.displayName")||gt(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function dt(e,t){var r=st(e,t);return r&&r[0]}var Xf=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&&Pr(t.type)&&OO.indexOf(t.type)>=0},Jf=function(t){return t&&tl(t)==="object"&&"clipDot"in t},AO=function(t,r,n,a){var i,o=(i=Qs==null?void 0:Qs[a])!==null&&i!==void 0?i:[];return r.startsWith("data-")||!de(t)&&(a&&o.includes(r)||mO.includes(r))||n&&el.includes(r)},fe=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(O.isValidElement(t)&&(a=t.props),!en(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},al=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 Zf(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(!Zf(i,o))return!1}return!0},Zf=function(t,r){if(ce(t)&&ce(r))return!0;if(!ce(t)&&!ce(r)){var n=t.props||{},a=n.children,i=Vf(n,bO),o=r.props||{},s=o.children,l=Vf(o,xO);return a&&s?on(i,l)&&al(a,s):!a&&!s?on(i,l):!1}return!1},Qf=function(t,r){var n=[],a={};return nl(t).forEach(function(i,o){if(SO(i))n.push(i);else if(i){var s=Xt(i.type),l=r[s]||{},u=l.handler,c=l.once;if(u&&(!c||!a[s])){var f=u(i,s,o);n.push(f),a[s]=!0}}}),n},TO=function(t){var r=t&&t.type;return r&&Hf[r]?Hf[r]:null},PO=function(t,r){return nl(r).indexOf(t)},_O=["children","width","height","viewBox","className","style","title","desc"];function il(){return il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},il.apply(this,arguments)}function 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 ol(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",il({},fe(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),O.createElement("title",null,s),O.createElement("desc",null,l),t)}var jO=["children","className"];function sl(){return sl=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},sl.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",sl({className:i},fe(a,!0),{ref:t}),r)}),kO=process.env.NODE_ENV!=="production",Jt=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];if(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",GO=RegExp("["+qO+BO+zO+KO+"]");function VO(e){return GO.test(e)}var ed=VO;function HO(e){return e.split("")}var YO=HO,td="\\ud800-\\udfff",XO="\\u0300-\\u036f",JO="\\ufe20-\\ufe2f",ZO="\\u20d0-\\u20ff",QO=XO+JO+ZO,eS="\\ufe0e\\ufe0f",tS="["+td+"]",ll="["+QO+"]",ul="\\ud83c[\\udffb-\\udfff]",rS="(?:"+ll+"|"+ul+")",rd="[^"+td+"]",nd="(?:\\ud83c[\\udde6-\\uddff]){2}",ad="[\\ud800-\\udbff][\\udc00-\\udfff]",nS="\\u200d",id=rS+"?",od="["+eS+"]?",aS="(?:"+nS+"(?:"+[rd,nd,ad].join("|")+")"+od+id+")*",iS=od+id+aS,oS="(?:"+[rd+ll+"?",ll,nd,ad,tS].join("|")+")",sS=RegExp(ul+"(?="+ul+")|"+oS+iS,"g");function lS(e){return e.match(sS)||[]}var uS=lS,cS=YO,fS=ed,dS=uS;function hS(e){return fS(e)?dS(e):cS(e)}var pS=hS,vS=LO,yS=ed,mS=pS,gS=Ff;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 Ni=je(SS);function Ce(e){return function(){return e}}const sd=Math.cos,Di=Math.sin,$t=Math.sqrt,Ii=Math.PI,Ri=2*Ii,cl=Math.PI,fl=2*cl,jr=1e-6,AS=fl-jr;function ld(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 ld;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?ld: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>jr)if(!(Math.abs(f*l-u*c)>jr)||!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((cl-Math.acos((y+d-v)/(2*b*w)))/2),A=x/w,p=x/b;Math.abs(A-1)>jr&&this._append`L${t+A*c},${r+A*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)>jr||Math.abs(this._y1-c)>jr)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%fl+fl),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>jr&&this._append`A${n},${n},0,${+(d>=cl)},${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 dl(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 hl(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ud(e){this._context=e}ud.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 Li(e){return new ud(e)}function cd(e){return e[0]}function fd(e){return e[1]}function dd(e,t){var r=Ce(!0),n=null,a=Li,i=null,o=dl(s);e=typeof e=="function"?e:e===void 0?cd:Ce(e),t=typeof t=="function"?t:t===void 0?fd:Ce(t);function s(l){var u,c=(l=hl(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:Ce(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ce(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Ce(!!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 Bi(e,t,r){var n=null,a=Ce(!0),i=null,o=Li,s=null,l=dl(u);e=typeof e=="function"?e:e===void 0?cd:Ce(+e),t=typeof t=="function"?t:Ce(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?fd:Ce(+r);function u(f){var d,h,m,y=(f=hl(f)).length,v,b=!1,w,x=new Array(y),A=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],A[m]);s.lineEnd(),s.areaEnd()}b&&(x[d]=+e(v,d,f),A[d]=+t(v,d,f),s.point(n?+n(v,d,f):x[d],r?+r(v,d,f):A[d]))}if(w)return s=null,w+""||null}function c(){return dd().defined(a).curve(o).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Ce(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Ce(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ce(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Ce(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Ce(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ce(+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:Ce(!!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 hd{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 hd(e,!0)}function ES(e){return new hd(e,!1)}const pl={draw(e,t){const r=$t(t/Ii);e.moveTo(r,0),e.arc(0,0,r,0,Ri)}},$S={draw(e,t){const r=$t(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()}},pd=$t(1/3),jS=pd*2,CS={draw(e,t){const r=$t(t/jS),n=r*pd;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},MS={draw(e,t){const r=$t(t),n=-r/2;e.rect(n,n,r,r)}},kS=.8908130915292852,vd=Di(Ii/10)/Di(7*Ii/10),NS=Di(Ri/10)*vd,DS=-sd(Ri/10)*vd,IS={draw(e,t){const r=$t(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=Ri*i/5,s=sd(o),l=Di(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*a,l*n+s*a)}e.closePath()}},vl=$t(3),RS={draw(e,t){const r=-$t(t/(vl*3));e.moveTo(0,r*2),e.lineTo(-vl*r,-r),e.lineTo(vl*r,-r),e.closePath()}},bt=-.5,xt=$t(3)/2,yl=1/$t(12),LS=(yl/2+1)*3,BS={draw(e,t){const r=$t(t/LS),n=r/2,a=r*yl,i=n,o=r*yl+r,s=-i,l=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(s,l),e.lineTo(bt*n-xt*a,xt*n+bt*a),e.lineTo(bt*i-xt*o,xt*i+bt*o),e.lineTo(bt*s-xt*l,xt*s+bt*l),e.lineTo(bt*n+xt*a,bt*a-xt*n),e.lineTo(bt*i+xt*o,bt*o-xt*i),e.lineTo(bt*s+xt*l,bt*l-xt*s),e.closePath()}};function FS(e,t){let r=null,n=dl(a);e=typeof e=="function"?e:Ce(e||pl),t=typeof t=="function"?t:Ce(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:Ce(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Ce(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function Fi(){}function Wi(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 yd(e){this._context=e}yd.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:Wi(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:Wi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function WS(e){return new yd(e)}function md(e){this._context=e}md.prototype={areaStart:Fi,areaEnd:Fi,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:Wi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function US(e){return new md(e)}function gd(e){this._context=e}gd.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:Wi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zS(e){return new gd(e)}function bd(e){this._context=e}bd.prototype={areaStart:Fi,areaEnd:Fi,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 bd(e)}function xd(e){return e<0?-1:1}function wd(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(xd(i)+xd(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function Od(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ml(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 Ui(e){this._context=e}Ui.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:ml(this,this._t0,Od(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,ml(this,Od(this,r=wd(this,e,t)),r);break;default:ml(this,this._t0,r=wd(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Sd(e){this._context=new Ad(e)}(Sd.prototype=Object.create(Ui.prototype)).point=function(e,t){Ui.prototype.point.call(this,t,e)};function Ad(e){this._context=e}Ad.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 Ui(e)}function GS(e){return new Sd(e)}function Td(e){this._context=e}Td.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=Pd(e),a=Pd(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 Pd(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 VS(e){return new Td(e)}function zi(e,t){this._context=e,this._t=t}zi.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 zi(e,.5)}function YS(e){return new zi(e,0)}function XS(e){return new zi(e,1)}function sn(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,s=i.length;r<o;++r)for(a=i,i=e[t[r]],n=0;n<s;++n)i[n][1]+=i[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function gl(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=Ce([]),t=gl,r=sn,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=hl(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:Ce(Array.from(i)),a):e},a.value=function(i){return arguments.length?(n=typeof i=="function"?i:Ce(+i),a):n},a.order=function(i){return arguments.length?(t=i==null?gl:typeof i=="function"?i:Ce(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(r=i??sn,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}sn(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}sn(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,sn(e,t)}}function da(e){"@babel/helpers - typeof";return da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},da(e)}var nA=["type","size","sizeType"];function bl(){return bl=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},bl.apply(this,arguments)}function _d(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 Ed(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_d(Object(r),!0).forEach(function(n){aA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_d(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 da(t)=="symbol"?t:t+""}function oA(e,t){if(da(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(da(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 $d={symbolCircle:pl,symbolCross:$S,symbolDiamond:CS,symbolSquare:MS,symbolStar:IS,symbolTriangle:RS,symbolWye:BS},uA=Math.PI/180,cA=function(t){var r="symbol".concat(Ni(t));return $d[r]||pl},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){$d["symbol".concat(Ni(t))]=r},Ki=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=Ed(Ed({},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=fe(u,!0);return d===+d&&h===+h&&i===+i?O.createElement("path",bl({},m,{className:ve("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:c()})):null};Ki.registerSymbol=dA;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 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 jd(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?jd(Object(r),!0).forEach(function(n){ha(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jd(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,Md(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=qi(t),gA(e,Cd()?Reflect.construct(t,r||[],qi(e).constructor):t.apply(e,r))}function gA(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 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 Cd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cd=function(){return!!e})()}function qi(e){return qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qi(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&&wl(e,t)}function wl(e,t){return wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},wl(e,t)}function ha(e,t,r){return t=Md(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Md(e){var t=wA(e,"string");return ln(t)=="symbol"?t:t+""}function wA(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wt=32,Ol=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=wt/2,o=wt/6,s=wt/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:wt,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(wt,"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(wt/8,"h").concat(wt,"v").concat(wt*3/4,"h").concat(-wt,"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(Ki,{fill:l,cx:i,cy:i,size:wt,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:wt,height:wt},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(ha(ha({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",h.inactive));if(h.type==="none")return null;var b=de(h.value)?null:h.value;Jt(!de(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var w=h.inactive?u:h.color;return O.createElement("li",xl({className:v,style:f,key:"legend-item-".concat(m)},fa(n.props,h,m)),O.createElement(ol,{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);ha(Ol,"displayName","Legend"),ha(Ol,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var OA=$i;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=$i,MA=Gs,kA=Vs,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=$i,LA=AA,BA=PA,FA=EA,WA=jA,UA=IA;function un(e){var t=this.__data__=new RA(e);this.size=t.size}un.prototype.clear=LA,un.prototype.delete=BA,un.prototype.get=FA,un.prototype.has=WA,un.prototype.set=UA;var kd=un,zA="__lodash_hash_undefined__";function KA(e){return this.__data__.set(e,zA),this}var qA=KA;function GA(e){return this.__data__.has(e)}var VA=GA,HA=Vs,YA=qA,XA=VA;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 Nd=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 Dd=JA;function ZA(e,t){return e.has(t)}var Id=ZA,QA=Nd,eT=Dd,tT=Id,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 Rd=aT,iT=Lt,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 Sl=cT,Ld=ua,Bd=sT,fT=qs,dT=Rd,hT=uT,pT=Sl,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]",Fd=Ld?Ld.prototype:void 0,Al=Fd?Fd.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 Bd(e),new Bd(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(Al)return Al.call(e)==Al.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 Wd=jT,CT=Wd,MT=ot;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,Ud=Object.getOwnPropertySymbols,zT=Ud?function(e){return e==null?[]:(e=Object(e),BT(Ud(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 GT=qT,VT=Ht,HT=Yt,YT="[object Arguments]";function XT(e){return HT(e)&&VT(e)==YT}var JT=XT,zd=JT,ZT=Yt,Kd=Object.prototype,QT=Kd.hasOwnProperty,eP=Kd.propertyIsEnumerable,tP=zd(function(){return arguments}())?zd:function(e){return ZT(e)&&QT.call(e,"callee")&&!eP.call(e,"callee")},Tl=tP,Vi={exports:{}};function rP(){return!1}var nP=rP;Vi.exports,function(e,t){var r=Lt,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}(Vi,Vi.exports);var qd=Vi.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 Pl=oP,sP=9007199254740991;function lP(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=sP}var _l=lP,uP=Ht,cP=_l,fP=Yt,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]",ke={};ke[_P]=ke[EP]=ke[$P]=ke[jP]=ke[CP]=ke[MP]=ke[kP]=ke[NP]=ke[DP]=!0,ke[dP]=ke[hP]=ke[TP]=ke[pP]=ke[PP]=ke[vP]=ke[yP]=ke[mP]=ke[gP]=ke[bP]=ke[xP]=ke[wP]=ke[OP]=ke[SP]=ke[AP]=!1;function IP(e){return fP(e)&&cP(e.length)&&!!ke[uP(e)]}var RP=IP;function LP(e){return function(t){return e(t)}}var Gd=LP,Hi={exports:{}};Hi.exports,function(e,t){var r=Tf,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}(Hi,Hi.exports);var BP=Hi.exports,FP=RP,WP=Gd,Vd=BP,Hd=Vd&&Vd.isTypedArray,UP=Hd?WP(Hd):FP,Yd=UP,zP=GT,KP=Tl,qP=ot,GP=qd,VP=Pl,HP=Yd,YP=Object.prototype,XP=YP.hasOwnProperty;function JP(e,t){var r=qP(e),n=!r&&KP(e),a=!r&&!n&&GP(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")||VP(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 Xd=r_,n_=Xd,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_=zs,h_=_l;function p_(e){return e!=null&&h_(e.length)&&!d_(e)}var pa=p_,v_=ZP,y_=f_,m_=pa;function g_(e){return m_(e)?v_(e):y_(e)}var Yi=g_,b_=NT,x_=KT,w_=Yi;function O_(e){return b_(e,w_,x_)}var S_=O_,Jd=S_,A_=1,T_=Object.prototype,P_=T_.hasOwnProperty;function __(e,t,r,n,a,i){var o=r&A_,s=Jd(e),l=s.length,u=Jd(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 A=e.constructor,p=t.constructor;A!=p&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof p=="function"&&p instanceof p)&&(y=!1)}return i.delete(e),i.delete(t),y}var E_=__,$_=Tr,j_=Lt,C_=$_(j_,"DataView"),M_=C_,k_=Tr,N_=Lt,D_=k_(N_,"Promise"),I_=D_,R_=Tr,L_=Lt,B_=R_(L_,"Set"),Zd=B_,F_=Tr,W_=Lt,U_=F_(W_,"WeakMap"),z_=U_,El=M_,$l=Gs,jl=I_,Cl=Zd,Ml=z_,Qd=Ht,cn=Cf,eh="[object Map]",K_="[object Object]",th="[object Promise]",rh="[object Set]",nh="[object WeakMap]",ah="[object DataView]",q_=cn(El),G_=cn($l),V_=cn(jl),H_=cn(Cl),Y_=cn(Ml),Cr=Qd;(El&&Cr(new El(new ArrayBuffer(1)))!=ah||$l&&Cr(new $l)!=eh||jl&&Cr(jl.resolve())!=th||Cl&&Cr(new Cl)!=rh||Ml&&Cr(new Ml)!=nh)&&(Cr=function(e){var t=Qd(e),r=t==K_?e.constructor:void 0,n=r?cn(r):"";if(n)switch(n){case q_:return ah;case G_:return eh;case V_:return th;case H_:return rh;case Y_:return nh}return t});var X_=Cr,kl=kd,J_=Rd,Z_=$T,Q_=E_,ih=X_,oh=ot,sh=qd,eE=Yd,tE=1,lh="[object Arguments]",uh="[object Array]",Xi="[object Object]",rE=Object.prototype,ch=rE.hasOwnProperty;function nE(e,t,r,n,a,i){var o=oh(e),s=oh(t),l=o?uh:ih(e),u=s?uh:ih(t);l=l==lh?Xi:l,u=u==lh?Xi:u;var c=l==Xi,f=u==Xi,d=l==u;if(d&&sh(e)){if(!sh(t))return!1;o=!0,c=!1}if(d&&!c)return i||(i=new kl),o||eE(e)?J_(e,t,r,n,a,i):Z_(e,t,l,r,n,a,i);if(!(r&tE)){var h=c&&ch.call(e,"__wrapped__"),m=f&&ch.call(t,"__wrapped__");if(h||m){var y=h?e.value():e,v=m?t.value():t;return i||(i=new kl),a(y,v,r,n,i)}}return d?(i||(i=new kl),Q_(e,t,r,n,a,i)):!1}var aE=nE,iE=aE,fh=Yt;function dh(e,t,r,n,a){return e===t?!0:e==null||t==null||!fh(e)&&!fh(t)?e!==e&&t!==t:iE(e,t,r,n,dh,a)}var Nl=dh,oE=kd,sE=Nl,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=cr;function hE(e){return e===e&&!dE(e)}var hh=hE,pE=hh,vE=Yi;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 ph=gE,bE=fE,xE=mE,wE=ph;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=Wf,_E=Tl,EE=ot,$E=Pl,jE=_l,CE=Ci;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=Nl,BE=Uf,FE=RE,WE=Us,UE=hh,zE=ph,KE=Ci,qE=1,GE=2;function VE(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|GE)}}var HE=VE;function YE(e){return e}var fn=YE;function XE(e){return function(t){return t==null?void 0:t[e]}}var JE=XE,ZE=Xs;function QE(e){return function(t){return ZE(t,e)}}var e$=QE,t$=JE,r$=e$,n$=Us,a$=Ci;function i$(e){return n$(e)?t$(a$(e)):r$(e)}var o$=i$,s$=SE,l$=HE,u$=fn,c$=ot,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 dr=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 vh=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$=vh,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$,Dl=Zd,j$=$$,C$=Sl,M$=1/0,k$=Dl&&1/C$(new Dl([,-0]))[1]==M$?function(e){return new Dl(e)}:j$,N$=k$,D$=Nd,I$=T$,R$=_$,L$=Id,B$=N$,F$=Sl,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$=dr,q$=z$;function G$(e,t){return e&&e.length?q$(e,K$(t)):[]}var V$=G$;const yh=je(V$);function mh(e,t,r){return t===!0?yh(e,r):de(t)?yh(e,t):e}function dn(e){"@babel/helpers - typeof";return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(e)}var H$=["ref"];function gh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gh(Object(r),!0).forEach(function(n){Zi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gh(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 bh(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 X$(e,t,r){return t&&bh(e.prototype,t),r&&bh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function J$(e,t,r){return t=Ji(t),Z$(e,xh()?Reflect.construct(t,r||[],Ji(e).constructor):t.apply(e,r))}function Z$(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 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 xh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xh=function(){return!!e})()}function Ji(e){return Ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ji(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&&Il(e,t)}function Il(e,t){return Il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Il(e,t)}function Zi(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=tj(e,"string");return dn(t)=="symbol"?t:t+""}function tj(e,t){if(dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function 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(Ol,r)}var Oh=1,hn=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)),Zi(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)>Oh||Math.abs(a.height-this.lastBoundingBox.height)>Oh)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Zt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,i=a.layout,o=a.align,s=a.verticalAlign,l=a.margin,u=a.chartWidth,c=a.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&i==="vertical"){var h=this.getBBoxSnapshot();f={left:((u||0)-h.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var 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 Zt(Zt({},f),d)}},{key:"render",value:function(){var n=this,a=this.props,i=a.content,o=a.width,s=a.height,l=a.wrapperStyle,u=a.payloadUniqBy,c=a.payload,f=Zt(Zt({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return O.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},ij(i,Zt(Zt({},this.props),{},{payload:mh(c,u,aj)})))}}],[{key:"getWithHeight",value:function(n,a){var i=Zt(Zt({},this.defaultProps),n.props),o=i.layout;return o==="vertical"&&X(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||a}:null}}])}(O.PureComponent);Zi(hn,"displayName","Legend"),Zi(hn,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Sh=ua,oj=Tl,sj=ot,Ah=Sh?Sh.isConcatSpreadable:void 0;function lj(e){return sj(e)||oj(e)||!!(Ah&&e&&e[Ah])}var uj=lj,cj=Wd,fj=uj;function Th(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?Th(s,t-1,r,n,a):cj(a,s):n||(a[a.length]=s)}return a}var Ph=Th;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=Yi;function bj(e,t){return e&&mj(e,t,gj)}var _h=bj,xj=pa;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=_h,Aj=Oj,Tj=Aj(Sj),Rl=Tj,Pj=Rl,_j=pa;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 Eh=Ej;function $j(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var jj=$j,$h=Qr;function Cj(e,t){if(e!==t){var r=e!==void 0,n=e===null,a=e===e,i=$h(e),o=t!==void 0,s=t===null,l=t===t,u=$h(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,Ll=Ys,Ij=Xs,Rj=dr,Lj=Eh,Bj=jj,Fj=Gd,Wj=Dj,Uj=fn,zj=ot;function Kj(e,t,r){t.length?t=Ll(t,function(i){return zj(i)?function(o){return Ij(o,i.length===1?i[0]:i)}:i}):t=[Uj];var n=-1;t=Ll(t,Fj(Rj));var a=Lj(e,function(i,o,s){var l=Ll(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 Gj(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 Vj=Gj,Hj=Vj,jh=Math.max;function Yj(e,t,r){return t=jh(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=jh(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=Tr,eC=function(){try{var e=Qj(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ch=eC,tC=Zj,Mh=Ch,rC=fn,nC=Mh?function(e,t){return Mh(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=fn,vC=Xj,yC=hC;function mC(e,t){return yC(vC(e,t,pC),e+"")}var gC=mC,bC=qs,xC=pa,wC=Pl,OC=cr;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 Qi=SC,AC=Ph,TC=qj,PC=gC,kh=Qi,_C=PC(function(e,t){if(e==null)return[];var r=t.length;return r>1&&kh(e,t[0],t[1])?t=[]:r>2&&kh(t[0],t[1],t[2])&&(t=[t[0]]),TC(e,AC(t,1),[])}),EC=_C;const Bl=je(EC);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 Fl(){return Fl=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},Fl.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 Nh(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 Nh(e,t)}}function Nh(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 Dh(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 Wl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dh(Object(r),!0).forEach(function(n){NC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dh(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 va(t)=="symbol"?t:t+""}function IC(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)}function RC(e){return Array.isArray(e)&&qe(e[0])&&qe(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 M={padding:0,margin:0},B=(d?Bl(c,d):c).map(function(F,W){if(F.type==="none")return null;var _=Wl({display:"block",paddingTop:4,paddingBottom:4,color:F.color||"#000"},s),D=F.formatter||f||RC,U=F.value,$=F.name,C=U,I=$;if(D&&C!=null&&I!=null){var L=D(U,$,F,W,c);if(Array.isArray(L)){var z=$C(L,2);C=z[0],I=z[1]}else C=L}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(W),style:_},qe(I)?O.createElement("span",{className:"recharts-tooltip-item-name"},I):null,qe(I)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},C),O.createElement("span",{className:"recharts-tooltip-item-unit"},F.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:M},B)}return null},A=Wl({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),p=Wl({margin:0},u),g=!ce(y),S=g?y:"",P=ve("recharts-default-tooltip",h),E=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",Fl({className:P,style:A},R),O.createElement("p",{className:E,style:p},O.isValidElement(S)?S:"".concat(S)),x())};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 eo(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 ya(t)=="symbol"?t:t+""}function FC(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)}var ma="recharts-tooltip-wrapper",WC={visibility:"hidden"};function UC(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ve(ma,eo(eo(eo(eo({},"".concat(ma,"-right"),X(r)&&t&&X(t.x)&&r>=t.x),"".concat(ma,"-left"),X(r)&&t&&X(t.x)&&r<t.x),"".concat(ma,"-bottom"),X(n)&&t&&X(t.y)&&n>=t.y),"".concat(ma,"-top"),X(n)&&t&&X(t.y)&&n<t.y))}function Ih(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=Ih({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=Ih({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 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 Rh(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 Lh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rh(Object(r),!0).forEach(function(n){zl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rh(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 GC(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,Fh(n.key),n)}}function VC(e,t,r){return t&&GC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HC(e,t,r){return t=to(t),YC(e,Bh()?Reflect.construct(t,r||[],to(e).constructor):t.apply(e,r))}function YC(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 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 Bh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bh=function(){return!!e})()}function to(e){return to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},to(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&&Ul(e,t)}function Ul(e,t){return Ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Ul(e,t)}function zl(e,t,r){return t=Fh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fh(e){var t=ZC(e,"string");return pn(t)=="symbol"?t:t+""}function ZC(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Wh=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)),zl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),zl(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),VC(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Wh||Math.abs(n.height-this.state.lastBoundingBox.height)>Wh)&&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}),A=x.cssClasses,p=x.cssProperties,g=Lh(Lh({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:A,style:g,ref:function(P){n.wrapperNode=P}},u)}}])}(O.PureComponent),eM=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},hr={isSsr:eM()};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 Uh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function zh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uh(Object(r),!0).forEach(function(n){ql(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function 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,qh(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=ro(t),iM(e,Kh()?Reflect.construct(t,r||[],ro(e).constructor):t.apply(e,r))}function iM(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 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 Kh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kh=function(){return!!e})()}function ro(e){return ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ro(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&&Kl(e,t)}function Kl(e,t){return Kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Kl(e,t)}function ql(e,t,r){return t=qh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qh(e){var t=lM(e,"string");return vn(t)=="symbol"?t:t+""}function lM(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 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 Bt=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,A=a.wrapperStyle,p=m??[];f&&p.length&&(p=mh(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:A},cM(u,zh(zh({},this.props),{},{payload:p})))}}])}(O.PureComponent);ql(Bt,"displayName","Tooltip"),ql(Bt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!hr.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=Lt,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=cr,OM=Qr,Vh=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 Vh;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)?Vh:+e}var Hh=_M,EM=cr,Gl=hM,Yh=Hh,$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=Yh(t)||0,EM(r)&&(c=!!r.leading,f="maxWait"in r,i=f?jM(Yh(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,E=t-S;return f?CM(E,i-P):E}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 A(){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=A,p}var kM=MM,NM=kM,DM=cr,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 Xh=je(LM);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 Jh(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 no(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jh(Object(r),!0).forEach(function(n){BM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jh(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 ga(t)=="symbol"?t:t+""}function WM(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)}function UM(e,t){return GM(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 Zh(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 Zh(e,t)}}function Zh(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 GM(e){if(Array.isArray(e))return e}var VM=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,A=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),E=P[0],R=P[1],k=O.useCallback(function(B,F){R(function(W){var _=Math.round(B),D=Math.round(F);return W.containerWidth===_&&W.containerHeight===D?W:{containerWidth:_,containerHeight:D}})},[]);O.useEffect(function(){var B=function($){var C,I=$[0].contentRect,L=I.width,z=I.height;k(L,z),(C=g.current)===null||C===void 0||C.call(g,L,z)};y>0&&(B=Xh(B,y,{trailing:!0,leading:!1}));var F=new ResizeObserver(B),W=p.current.getBoundingClientRect(),_=W.width,D=W.height;return k(_,D),F.observe(p.current),function(){F.disconnect()}},[k,y]);var M=O.useMemo(function(){var B=E.containerWidth,F=E.containerHeight;if(B<0||F<0)return null;Jt(_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),Jt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var W=_r(o)?B:o,_=_r(l)?F:l;r&&r>0&&(W?_=W/r:_&&(W=_*r),d&&_>d&&(_=d)),Jt(W>0||_>0,`The width(%s) and height(%s) of chart should be greater than 0,
128
+ please check the style of container, or the props width(%s) and height(%s),
129
+ or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
130
+ height and width.`,W,_,o,l,c,f,r);var D=!Array.isArray(h)&&Xt(h.type).endsWith("Chart");return O.Children.map(h,function(U){return O.isValidElement(U)?O.cloneElement(U,no({width:W,height:_},D?{style:no({height:"100%",width:"100%",maxHeight:_,maxWidth:W},U.props.style)}:{})):U})},[r,h,l,d,f,c,E,o]);return O.createElement("div",{id:v?"".concat(v):void 0,className:ve("recharts-responsive-container",b),style:no(no({},A),{},{width:o,height:l,minWidth:c,minHeight:f,maxHeight:d}),ref:p},M)}),Vl=function(t){return null};Vl.displayName="Cell";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 Qh(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 Hl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qh(Object(r),!0).forEach(function(n){HM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qh(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 ba(t)=="symbol"?t:t+""}function XM(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 yn={widthCache:{},cacheCount:0},JM=2e3,ZM={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ep="recharts_measurement_span";function QM(e){var t=Hl({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var xa=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||hr.isSsr)return{width:0,height:0};var n=QM(r),a=JSON.stringify({text:t,copyStyle:n});if(yn.widthCache[a])return yn.widthCache[a];try{var i=document.getElementById(ep);i||(i=document.createElement("span"),i.setAttribute("id",ep),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=Hl(Hl({},ZM),n);Object.assign(i.style,o),i.textContent="".concat(t);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return yn.widthCache[a]=l,++yn.cacheCount>JM&&(yn.cacheCount=0,yn.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 wa(e){"@babel/helpers - typeof";return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wa(e)}function ao(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 tp(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 tp(e,t)}}function tp(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 rp(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&&rp(e.prototype,t),r&&rp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function sk(e){var t=lk(e,"string");return wa(t)=="symbol"?t:t+""}function lk(e,t){if(wa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var np=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ap=/(-?\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%]+)?/,ip={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(ip),mn="NaN";function dk(e,t){return e*ip[t]}var io=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=ao(a,3),o=i[1],s=i[2];return new e(parseFloat(o),s??"")}}])}();function op(e){if(e.includes(mn))return mn;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=np.exec(t))!==null&&r!==void 0?r:[],a=ao(n,4),i=a[1],o=a[2],s=a[3],l=io.parse(i??""),u=io.parse(s??""),c=o==="*"?l.multiply(u):l.divide(u);if(c.isNaN())return mn;t=t.replace(np,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=ap.exec(t))!==null&&f!==void 0?f:[],h=ao(d,4),m=h[1],y=h[2],v=h[3],b=io.parse(m??""),w=io.parse(v??""),x=y==="+"?b.add(w):b.subtract(w);if(x.isNaN())return mn;t=t.replace(ap,x.toString())}return t}var sp=/\(([^()]*)\)/;function hk(e){for(var t=e;t.includes("(");){var r=sp.exec(t),n=ao(r,2),a=n[1];t=t.replace(sp,op(a))}return t}function pk(e){var t=e.replace(/\s+/g,"");return t=hk(t),t=op(t),t}function vk(e){try{return pk(e)}catch{return mn}}function Yl(e){var t=vk(e.slice(5,-1));return t===mn?"":t}var yk=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],mk=["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 lp(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 up(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 cp(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 cp(e,t)}}function cp(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 fp=/[ \f\n\r\t\v\u2028\u2029]+/,dp=function(t){var r=t.children,n=t.breakAll,a=t.style;try{var i=[];ce(r)||(n?i=r.toString().split(""):i=r.toString().split(fp));var o=i.map(function(l){return{word:l,width:xa(l,a).width}}),s=n?0:xa(" ",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 W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return W.reduce(function(_,D){var U=D.word,$=D.width,C=_[_.length-1];if(C&&(a==null||i||C.width+$+n<Number(a)))C.words.push(U),C.width+=$+n;else{var I={words:[U],width:$};_.push(I)}return _},[])},h=d(r),m=function(W){return W.reduce(function(_,D){return _.width>D.width?_:D})};if(!c)return h;for(var y="…",v=function(W){var _=f.slice(0,W),D=dp({breakAll:u,style:l,children:_+y}).wordsWithComputedWidth,U=d(D),$=U.length>o||m(U).width>Number(a);return[$,U]},b=0,w=f.length-1,x=0,A;b<=w&&x<=f.length-1;){var p=Math.floor((b+w)/2),g=p-1,S=v(g),P=up(S,2),E=P[0],R=P[1],k=v(p),M=up(k,1),B=M[0];if(!E&&!B&&(b=p+1),E&&B&&(w=p-1),!E&&B){A=R;break}x++}return A||h},hp=function(t){var r=ce(t)?[]:t.toString().split(fp);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)&&!hr.isSsr){var l,u,c=dp({breakAll:o,children:a,style:i});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;l=f,u=d}else return hp(a);return Sk({breakAll:o,children:a,maxLines:s,style:i},l,u,r,n)}return hp(a)},pp="#808080",oo=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?pp:v,w=lp(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]),A=w.dx,p=w.dy,g=w.angle,S=w.className,P=w.breakAll,E=lp(w,mk);if(!qe(n)||!qe(i))return null;var R=n+(X(A)?A:0),k=i+(X(p)?p:0),M;switch(y){case"start":M=Yl("calc(".concat(u,")"));break;case"middle":M=Yl("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:M=Yl("calc(".concat(x.length-1," * -").concat(s,")"));break}var B=[];if(f){var F=x[0].width,W=w.width;B.push("scale(".concat((X(W)?W/F:1)/F,")"))}return g&&B.push("rotate(".concat(g,", ").concat(R,", ").concat(k,")")),B.length&&(E.transform=B.join(" ")),O.createElement("text",Xl({},fe(E,!0),{x:R,y:k,className:ve("recharts-text",S),textAnchor:h,fill:b.includes("url")?pp:b}),x.map(function(_,D){var U=_.words.join(P?"":" ");return O.createElement("tspan",{x:R,dy:D===0?M:s,key:"".concat(U,"-").concat(D)},U)}))};function pr(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 Jl(e){let t,r,n;e.length!==2?(t=pr,r=(s,l)=>pr(e(s),l),n=(s,l)=>e(s)-l):(t=e===pr||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 vp(e){return e===null?NaN:+e}function*_k(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Oa=Jl(pr).right;Jl(vp).center;class yp 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(mp(this,t))}has(t){return super.has(mp(this,t))}set(t,r){return super.set(Ek(this,t),r)}delete(t){return super.delete($k(this,t))}}function mp({_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=pr){if(e===pr)return gp;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 gp(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 so(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?so(e,t,r*2):[s,l,u]}function Zl(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?so(t,e,r):so(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 Ql(e,t,r){return t=+t,e=+e,r=+r,so(e,t,r)[2]}function eu(e,t,r){t=+t,e=+e,r=+r;const n=t<e,a=n?Ql(t,e,r):Ql(e,t,r);return(n?-1:1)*(a<0?1/-a:a)}function bp(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}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,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?gp: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));wp(e,t,h,m,a)}const i=e[t];let o=r,s=n;for(Sa(e,r,t),a(e[n],i)>0&&Sa(e,r,n);o<s;){for(Sa(e,o,s),++o,--s;a(e[o],i)<0;)++o;for(;a(e[s],i)>0;)--s}a(e[r],i)===0?Sa(e,r,s):(++s,Sa(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Sa(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 xp(e);if(t>=1)return bp(e);var n,a=(n-1)*t,i=Math.floor(a),o=bp(wp(e,i).subarray(0,i+1)),s=xp(e.subarray(i+1));return o+(s-o)*(a-i)}}function Ik(e,t,r=vp){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 Ot(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Qt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const tu=Symbol("implicit");function ru(){var e=new yp,t=[],r=[],n=tu;function a(i){let o=e.get(i);if(o===void 0){if(n!==tu)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 yp;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 ru(t,r).unknown(n)},Ot.apply(a,arguments),a}function Aa(){var e=ru().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 Aa(t(),[n,a]).round(s).paddingInner(l).paddingOuter(u).align(c)},Ot.apply(f(),arguments)}function Op(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Op(t())},e}function Ta(){return Op(Aa.apply(null,arguments).paddingInner(1))}function nu(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Sp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Pa(){}var _a=.7,lo=1/_a,gn="\\s*([+-]?\\d+)\\s*",Ea="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ft="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Lk=/^#([0-9a-f]{3,8})$/,Bk=new RegExp(`^rgb\\(${gn},${gn},${gn}\\)$`),Fk=new RegExp(`^rgb\\(${Ft},${Ft},${Ft}\\)$`),Wk=new RegExp(`^rgba\\(${gn},${gn},${gn},${Ea}\\)$`),Uk=new RegExp(`^rgba\\(${Ft},${Ft},${Ft},${Ea}\\)$`),zk=new RegExp(`^hsl\\(${Ea},${Ft},${Ft}\\)$`),Kk=new RegExp(`^hsla\\(${Ea},${Ft},${Ft},${Ea}\\)$`),Ap={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};nu(Pa,$a,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Tp,formatHex:Tp,formatHex8:qk,formatHsl:Gk,formatRgb:Pp,toString:Pp});function Tp(){return this.rgb().formatHex()}function qk(){return this.rgb().formatHex8()}function Gk(){return Cp(this).formatHsl()}function Pp(){return this.rgb().formatRgb()}function $a(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Lk.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?_p(t):r===3?new lt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?uo(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?uo(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 lt(t[1],t[2],t[3],1):(t=Fk.exec(e))?new lt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Wk.exec(e))?uo(t[1],t[2],t[3],t[4]):(t=Uk.exec(e))?uo(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zk.exec(e))?jp(t[1],t[2]/100,t[3]/100,1):(t=Kk.exec(e))?jp(t[1],t[2]/100,t[3]/100,t[4]):Ap.hasOwnProperty(e)?_p(Ap[e]):e==="transparent"?new lt(NaN,NaN,NaN,0):null}function _p(e){return new lt(e>>16&255,e>>8&255,e&255,1)}function uo(e,t,r,n){return n<=0&&(e=t=r=NaN),new lt(e,t,r,n)}function Vk(e){return e instanceof Pa||(e=$a(e)),e?(e=e.rgb(),new lt(e.r,e.g,e.b,e.opacity)):new lt}function au(e,t,r,n){return arguments.length===1?Vk(e):new lt(e,t,r,n??1)}function lt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}nu(lt,au,Sp(Pa,{brighter(e){return e=e==null?lo:Math.pow(lo,e),new lt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_a:Math.pow(_a,e),new lt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new lt(Mr(this.r),Mr(this.g),Mr(this.b),co(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:Ep,formatHex:Ep,formatHex8:Hk,formatRgb:$p,toString:$p}));function Ep(){return`#${kr(this.r)}${kr(this.g)}${kr(this.b)}`}function Hk(){return`#${kr(this.r)}${kr(this.g)}${kr(this.b)}${kr((isNaN(this.opacity)?1:this.opacity)*255)}`}function $p(){const e=co(this.opacity);return`${e===1?"rgb(":"rgba("}${Mr(this.r)}, ${Mr(this.g)}, ${Mr(this.b)}${e===1?")":`, ${e})`}`}function co(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Mr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function kr(e){return e=Mr(e),(e<16?"0":"")+e.toString(16)}function jp(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new jt(e,t,r,n)}function Cp(e){if(e instanceof jt)return new jt(e.h,e.s,e.l,e.opacity);if(e instanceof Pa||(e=$a(e)),!e)return new jt;if(e instanceof jt)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 jt(o,s,l,e.opacity)}function Yk(e,t,r,n){return arguments.length===1?Cp(e):new jt(e,t,r,n??1)}function jt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}nu(jt,Yk,Sp(Pa,{brighter(e){return e=e==null?lo:Math.pow(lo,e),new jt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_a:Math.pow(_a,e),new jt(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 lt(iu(e>=240?e-240:e+120,a,n),iu(e,a,n),iu(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new jt(Mp(this.h),fo(this.s),fo(this.l),co(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=co(this.opacity);return`${e===1?"hsl(":"hsla("}${Mp(this.h)}, ${fo(this.s)*100}%, ${fo(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Mp(e){return e=(e||0)%360,e<0?e+360:e}function fo(e){return Math.max(0,Math.min(1,e||0))}function iu(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 ou=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?kp:function(t,r){return r-t?Jk(t,r,e):ou(isNaN(t)?r:t)}}function kp(e,t){var r=t-e;return r?Xk(e,r):ou(isNaN(e)?t:e)}const Np=function e(t){var r=Zk(t);function n(a,i){var o=r((a=au(a)).r,(i=au(i)).r),s=r(a.g,i.g),l=r(a.b,i.b),u=kp(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]=bn(e[o],t[o]);for(;o<r;++o)i[o]=t[o];return function(s){for(o=0;o<n;++o)i[o]=a[o](s);return i}}function r2(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ho(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]=bn(e[a],t[a]):n[a]=t[a];return function(i){for(a in r)n[a]=r[a](i);return n}}var su=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lu=new RegExp(su.source,"g");function a2(e){return function(){return e}}function i2(e){return function(t){return e(t)+""}}function o2(e,t){var r=su.lastIndex=lu.lastIndex=0,n,a,i,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=su.exec(e))&&(a=lu.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:ho(n,a)})),r=lu.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 bn(e,t){var r=typeof t,n;return t==null||r==="boolean"?ou(t):(r==="number"?ho:r==="string"?(n=$a(t))?(t=n,Np):o2:t instanceof $a?Np:t instanceof Date?r2:e2(t)?Qk:Array.isArray(t)?t2:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?n2:ho)(e,t)}function uu(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=bn);for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[s](o-s)}}function l2(e){return function(){return e}}function po(e){return+e}var Dp=[0,1];function at(e){return e}function cu(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=cu(a,n),i=r(o,i)):(n=cu(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]=cu(e[o],e[o+1]),i[o]=r(t[o],t[o+1]);return function(s){var l=Oa(e,s,1,n)-1;return i[l](a[l](s))}}function ja(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function vo(){var e=Dp,t=Dp,r=bn,n,a,i,o=at,s,l,u;function c(){var d=Math.min(e.length,t.length);return o!==at&&(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),ho)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,po),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=uu,c()},f.clamp=function(d){return arguments.length?(o=d?!0:at,c()):o!==at},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 fu(){return vo()(at,at)}function d2(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function yo(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function xn(e){return e=yo(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 Ca(e){if(!(t=v2.exec(e)))throw new Error("invalid format: "+e);var t;return new du({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]})}Ca.prototype=du.prototype;function du(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+""}du.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 Ip;function m2(e,t){var r=yo(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(Ip=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")+yo(e,Math.max(0,t+i-1))[0]}function Rp(e,t){var r=yo(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 Lp={"%":(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)=>Rp(e*100,t),r:Rp,s:m2,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Bp(e){return e}var Fp=Array.prototype.map,Wp=["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?Bp:h2(Fp.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?Bp:p2(Fp.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=Ca(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,A=f.trim,p=f.type;p==="n"?(w=!0,p="g"):Lp[p]||(x===void 0&&(x=12),A=!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=Lp[p],E=/[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(k){var M=g,B=S,F,W,_;if(p==="c")B=P(k)+B,k="";else{k=+k;var D=k<0||1/k<0;if(k=isNaN(k)?l:P(Math.abs(k),x),A&&(k=y2(k)),D&&+k==0&&m!=="+"&&(D=!1),M=(D?m==="("?m:s:m==="-"||m==="("?"":m)+M,B=(p==="s"?Wp[8+Ip/3]:"")+B+(D&&m==="("?")":""),E){for(F=-1,W=k.length;++F<W;)if(_=k.charCodeAt(F),48>_||_>57){B=(_===46?a+k.slice(F+1):k.slice(F))+B,k=k.slice(0,F);break}}}w&&!v&&(k=t(k,1/0));var U=M.length+k.length+B.length,$=U<b?new Array(b-U+1).join(d):"";switch(w&&v&&(k=t($+k,$.length?b-B.length:1/0),$=""),h){case"<":k=M+k+B+$;break;case"=":k=M+$+k+B;break;case"^":k=$.slice(0,U=$.length>>1)+M+k+B+$.slice(U);break;default:k=$+M+k+B;break}return i(k)}return R.toString=function(){return f+""},R}function c(f,d){var h=u((f=Ca(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(xn(d)/3)))*3,y=Math.pow(10,-m),v=Wp[8+m/3];return function(b){return h(y*b)+v}}return{format:u,formatPrefix:c}}var mo,hu,Up;b2({thousands:",",grouping:[3],currency:["$",""]});function b2(e){return mo=g2(e),hu=mo.format,Up=mo.formatPrefix,mo}function x2(e){return Math.max(0,-xn(Math.abs(e)))}function w2(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xn(t)/3)))*3-xn(Math.abs(e)))}function O2(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xn(t)-xn(e))+1}function zp(e,t,r,n){var a=eu(e,t,r),i;switch(n=Ca(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),Up(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 hu(n)}function vr(e){var t=e.domain;return e.ticks=function(r){var n=t();return Zl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return zp(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=Ql(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 go(){var e=fu();return e.copy=function(){return ja(e,go())},Ot.apply(e,arguments),vr(e)}function Kp(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,po),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Kp(e).unknown(t)},e=arguments.length?Array.from(e,po):[0,1],vr(r)}function qp(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 Vp(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 Hp(e){return(t,r)=>-e(-t,r)}function pu(e){const t=e(Gp,Vp),r=t.domain;let n=10,a,i;function o(){return a=_2(n),i=P2(n),r()[0]<0?(a=Hp(a),i=Hp(i),e(S2,A2)):e(Gp,Vp),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=Zl(u,c,v))}else b=Zl(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=Ca(l)).precision==null&&(l.trim=!0),l=hu(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(qp(r(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function Yp(){const e=pu(vo()).domain([1,10]);return e.copy=()=>ja(e,Yp()).base(e.base()),Ot.apply(e,arguments),e}function Xp(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Jp(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function vu(e){var t=1,r=e(Xp(t),Jp(t));return r.constant=function(n){return arguments.length?e(Xp(t=+n),Jp(t)):t},vr(r)}function Zp(){var e=vu(vo());return e.copy=function(){return ja(e,Zp()).constant(e.constant())},Ot.apply(e,arguments)}function Qp(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 yu(e){var t=e(at,at),r=1;function n(){return r===1?e(at,at):r===.5?e(E2,$2):e(Qp(r),Qp(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},vr(t)}function mu(){var e=yu(vo());return e.copy=function(){return ja(e,mu()).exponent(e.exponent())},Ot.apply(e,arguments),e}function j2(){return mu.apply(null,arguments).exponent(.5)}function ev(e){return Math.sign(e)*e*e}function C2(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function tv(){var e=fu(),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(ev(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,po)).map(ev)),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 tv(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ot.apply(a,arguments),vr(a)}function rv(){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[Oa(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(pr),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 rv().domain(e).range(t).unknown(n)},Ot.apply(i,arguments)}function nv(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function o(l){return l!=null&&l<=l?a[Oa(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 nv().domain([e,t]).range(a).unknown(i)},Ot.apply(vr(o),arguments)}function av(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[Oa(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 av().domain(e).range(t).unknown(r)},Ot.apply(a,arguments)}const gu=new Date,bu=new Date;function Ge(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=>Ge(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)=>(gu.setTime(+i),bu.setTime(+o),e(gu),e(bu),Math.floor(r(gu,bu))),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 bo=Ge(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);bo.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ge(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):bo),bo.range;const er=1e3,St=er*60,tr=St*60,rr=tr*24,xu=rr*7,iv=rr*30,wu=rr*365,Nr=Ge(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*er)},(e,t)=>(t-e)/er,e=>e.getUTCSeconds());Nr.range;const Ou=Ge(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*er)},(e,t)=>{e.setTime(+e+t*St)},(e,t)=>(t-e)/St,e=>e.getMinutes());Ou.range;const Su=Ge(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*St)},(e,t)=>(t-e)/St,e=>e.getUTCMinutes());Su.range;const Au=Ge(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*er-e.getMinutes()*St)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getHours());Au.range;const Tu=Ge(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getUTCHours());Tu.range;const Ma=Ge(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*St)/rr,e=>e.getDate()-1);Ma.range;const xo=Ge(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/rr,e=>e.getUTCDate()-1);xo.range;const ov=Ge(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/rr,e=>Math.floor(e/rr));ov.range;function Dr(e){return Ge(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())*St)/xu)}const wo=Dr(0),Oo=Dr(1),M2=Dr(2),k2=Dr(3),wn=Dr(4),N2=Dr(5),D2=Dr(6);wo.range,Oo.range,M2.range,k2.range,wn.range,N2.range,D2.range;function Ir(e){return Ge(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)/xu)}const So=Ir(0),Ao=Ir(1),I2=Ir(2),R2=Ir(3),On=Ir(4),L2=Ir(5),B2=Ir(6);So.range,Ao.range,I2.range,R2.range,On.range,L2.range,B2.range;const Pu=Ge(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());Pu.range;const _u=Ge(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());_u.range;const nr=Ge(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());nr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ge(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}),nr.range;const ar=Ge(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());ar.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ge(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}),ar.range;function sv(e,t,r,n,a,i){const o=[[Nr,1,er],[Nr,5,5*er],[Nr,15,15*er],[Nr,30,30*er],[i,1,St],[i,5,5*St],[i,15,15*St],[i,30,30*St],[a,1,tr],[a,3,3*tr],[a,6,6*tr],[a,12,12*tr],[n,1,rr],[n,2,2*rr],[r,1,xu],[t,1,iv],[t,3,3*iv],[e,1,wu]];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=Jl(([,,v])=>v).right(o,d);if(h===o.length)return e.every(eu(u/wu,c/wu,f));if(h===0)return bo.every(Math.max(eu(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]=sv(ar,_u,So,ov,Tu,Su),[U2,z2]=sv(nr,Pu,wo,Ma,Au,Ou);function Eu(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 $u(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 ka(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=Na(a),c=Da(a),f=Na(i),d=Da(i),h=Na(o),m=Da(o),y=Na(s),v=Da(s),b=Na(l),w=Da(l),x={a:D,A:U,b:$,B:C,c:null,d:hv,e:hv,f:hN,g:SN,G:TN,H:cN,I:fN,j:dN,L:pv,m:pN,M:vN,p:I,q:L,Q:xv,s:wv,S:yN,u:mN,U:gN,V:bN,w:xN,W:wN,x:null,X:null,y:ON,Y:AN,Z:PN,"%":bv},A={a:z,A:G,b:Q,B:J,c:null,d:yv,e:yv,f:jN,g:FN,G:UN,H:_N,I:EN,j:$N,L:mv,m:CN,M:MN,p:ee,q:ne,Q:xv,s:wv,S:kN,u:NN,U:DN,V:IN,w:RN,W:LN,x:null,X:null,y:BN,Y:WN,Z:zN,"%":bv},p={a:R,A:k,b:M,B,c:F,d:fv,e:fv,f:oN,g:cv,G:uv,H:dv,I:dv,j:rN,L:iN,m:tN,M:nN,p:E,q:eN,Q:lN,s:uN,S:aN,u:Y2,U:X2,V:J2,w:H2,W:Z2,x:W,X:_,y:cv,Y:uv,Z:Q2,"%":sN};x.x=g(r,x),x.X=g(n,x),x.c=g(t,x),A.x=g(r,A),A.X=g(n,A),A.c=g(t,A);function g(q,Y){return function(Z){var N=[],ie=-1,V=0,se=q.length,pe,Le,et;for(Z instanceof Date||(Z=new Date(+Z));++ie<se;)q.charCodeAt(ie)===37&&(N.push(q.slice(V,ie)),(Le=lv[pe=q.charAt(++ie)])!=null?pe=q.charAt(++ie):Le=pe==="e"?" ":"0",(et=Y[pe])&&(pe=et(Z,Le)),N.push(pe),V=ie+1);return N.push(q.slice(V,ie)),N.join("")}}function S(q,Y){return function(Z){var N=ka(1900,void 0,1),ie=P(N,q,Z+="",0),V,se;if(ie!=Z.length)return null;if("Q"in N)return new Date(N.Q);if("s"in N)return new Date(N.s*1e3+("L"in N?N.L:0));if(Y&&!("Z"in N)&&(N.Z=0),"p"in N&&(N.H=N.H%12+N.p*12),N.m===void 0&&(N.m="q"in N?N.q:0),"V"in N){if(N.V<1||N.V>53)return null;"w"in N||(N.w=1),"Z"in N?(V=$u(ka(N.y,0,1)),se=V.getUTCDay(),V=se>4||se===0?Ao.ceil(V):Ao(V),V=xo.offset(V,(N.V-1)*7),N.y=V.getUTCFullYear(),N.m=V.getUTCMonth(),N.d=V.getUTCDate()+(N.w+6)%7):(V=Eu(ka(N.y,0,1)),se=V.getDay(),V=se>4||se===0?Oo.ceil(V):Oo(V),V=Ma.offset(V,(N.V-1)*7),N.y=V.getFullYear(),N.m=V.getMonth(),N.d=V.getDate()+(N.w+6)%7)}else("W"in N||"U"in N)&&("w"in N||(N.w="u"in N?N.u%7:"W"in N?1:0),se="Z"in N?$u(ka(N.y,0,1)).getUTCDay():Eu(ka(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(se+5)%7:N.w+N.U*7-(se+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,$u(N)):Eu(N)}}function P(q,Y,Z,N){for(var ie=0,V=Y.length,se=Z.length,pe,Le;ie<V;){if(N>=se)return-1;if(pe=Y.charCodeAt(ie++),pe===37){if(pe=Y.charAt(ie++),Le=p[pe in lv?Y.charAt(ie++):pe],!Le||(N=Le(q,Z,N))<0)return-1}else if(pe!=Z.charCodeAt(N++))return-1}return N}function E(q,Y,Z){var N=u.exec(Y.slice(Z));return N?(q.p=c.get(N[0].toLowerCase()),Z+N[0].length):-1}function R(q,Y,Z){var N=h.exec(Y.slice(Z));return N?(q.w=m.get(N[0].toLowerCase()),Z+N[0].length):-1}function k(q,Y,Z){var N=f.exec(Y.slice(Z));return N?(q.w=d.get(N[0].toLowerCase()),Z+N[0].length):-1}function M(q,Y,Z){var N=b.exec(Y.slice(Z));return N?(q.m=w.get(N[0].toLowerCase()),Z+N[0].length):-1}function B(q,Y,Z){var N=y.exec(Y.slice(Z));return N?(q.m=v.get(N[0].toLowerCase()),Z+N[0].length):-1}function F(q,Y,Z){return P(q,t,Y,Z)}function W(q,Y,Z){return P(q,r,Y,Z)}function _(q,Y,Z){return P(q,n,Y,Z)}function D(q){return o[q.getDay()]}function U(q){return i[q.getDay()]}function $(q){return l[q.getMonth()]}function C(q){return s[q.getMonth()]}function I(q){return a[+(q.getHours()>=12)]}function L(q){return 1+~~(q.getMonth()/3)}function z(q){return o[q.getUTCDay()]}function G(q){return i[q.getUTCDay()]}function Q(q){return l[q.getUTCMonth()]}function J(q){return s[q.getUTCMonth()]}function ee(q){return a[+(q.getUTCHours()>=12)]}function ne(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+="",A);return Y.toString=function(){return q},Y},utcParse:function(q){var Y=S(q+="",!0);return Y.toString=function(){return q},Y}}}var lv={"-":"",_:" ",0:"0"},Xe=/^\s*\d+/,q2=/^%/,G2=/[\\^$*+?|[\]().{}]/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 V2(e){return e.replace(G2,"\\$&")}function Na(e){return new RegExp("^(?:"+e.map(V2).join("|")+")","i")}function Da(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function H2(e,t,r){var n=Xe.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Y2(e,t,r){var n=Xe.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function X2(e,t,r){var n=Xe.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function J2(e,t,r){var n=Xe.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Z2(e,t,r){var n=Xe.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function uv(e,t,r){var n=Xe.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function cv(e,t,r){var n=Xe.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=Xe.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=Xe.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function fv(e,t,r){var n=Xe.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function rN(e,t,r){var n=Xe.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function dv(e,t,r){var n=Xe.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function nN(e,t,r){var n=Xe.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function aN(e,t,r){var n=Xe.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function iN(e,t,r){var n=Xe.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function oN(e,t,r){var n=Xe.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=Xe.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function uN(e,t,r){var n=Xe.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function hv(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+Ma.count(nr(e),e),t,3)}function pv(e,t){return ge(e.getMilliseconds(),t,3)}function hN(e,t){return pv(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(wo.count(nr(e)-1,e),t,2)}function vv(e){var t=e.getDay();return t>=4||t===0?wn(e):wn.ceil(e)}function bN(e,t){return e=vv(e),ge(wn.count(nr(e),e)+(nr(e).getDay()===4),t,2)}function xN(e){return e.getDay()}function wN(e,t){return ge(Oo.count(nr(e)-1,e),t,2)}function ON(e,t){return ge(e.getFullYear()%100,t,2)}function SN(e,t){return e=vv(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?wn(e):wn.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 yv(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+xo.count(ar(e),e),t,3)}function mv(e,t){return ge(e.getUTCMilliseconds(),t,3)}function jN(e,t){return mv(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(So.count(ar(e)-1,e),t,2)}function gv(e){var t=e.getUTCDay();return t>=4||t===0?On(e):On.ceil(e)}function IN(e,t){return e=gv(e),ge(On.count(ar(e),e)+(ar(e).getUTCDay()===4),t,2)}function RN(e){return e.getUTCDay()}function LN(e,t){return ge(Ao.count(ar(e)-1,e),t,2)}function BN(e,t){return ge(e.getUTCFullYear()%100,t,2)}function FN(e,t){return e=gv(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?On(e):On.ceil(e),ge(e.getUTCFullYear()%1e4,t,4)}function zN(){return"+0000"}function bv(){return"%"}function xv(e){return+e}function wv(e){return Math.floor(+e/1e3)}var Sn,Ov,Sv;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 Sn=K2(e),Ov=Sn.format,Sn.parse,Sv=Sn.utcFormat,Sn.utcParse,Sn}function qN(e){return new Date(e)}function GN(e){return e instanceof Date?+e:+new Date(+e)}function ju(e,t,r,n,a,i,o,s,l,u){var c=fu(),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"),A=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:A)(g)}return c.invert=function(g){return new Date(f(g))},c.domain=function(g){return arguments.length?d(Array.from(g,GN)):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(qp(S,g)):c},c.copy=function(){return ja(c,ju(e,t,r,n,a,i,o,s,l,u))},c}function VN(){return Ot.apply(ju(U2,z2,nr,Pu,wo,Ma,Au,Ou,Nr,Ov).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function HN(){return Ot.apply(ju(F2,W2,ar,_u,So,xo,Tu,Su,Nr,Sv).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function To(){var e=0,t=1,r,n,a,i,o=at,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(bn),u.rangeRound=c(uu),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 yr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Av(){var e=vr(To()(at));return e.copy=function(){return yr(e,Av())},Qt.apply(e,arguments)}function Tv(){var e=pu(To()).domain([1,10]);return e.copy=function(){return yr(e,Tv()).base(e.base())},Qt.apply(e,arguments)}function Pv(){var e=vu(To());return e.copy=function(){return yr(e,Pv()).constant(e.constant())},Qt.apply(e,arguments)}function Cu(){var e=yu(To());return e.copy=function(){return yr(e,Cu()).exponent(e.exponent())},Qt.apply(e,arguments)}function YN(){return Cu.apply(null,arguments).exponent(.5)}function _v(){var e=[],t=at;function r(n){if(n!=null&&!isNaN(n=+n))return t((Oa(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(pr),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 _v(t).domain(e)},Qt.apply(r,arguments)}function Po(){var e=0,t=.5,r=1,n=1,a,i,o,s,l,u=at,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(bn),h.rangeRound=m(uu),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 Ev(){var e=vr(Po()(at));return e.copy=function(){return yr(e,Ev())},Qt.apply(e,arguments)}function $v(){var e=pu(Po()).domain([.1,1,10]);return e.copy=function(){return yr(e,$v()).base(e.base())},Qt.apply(e,arguments)}function jv(){var e=vu(Po());return e.copy=function(){return yr(e,jv()).constant(e.constant())},Qt.apply(e,arguments)}function Mu(){var e=yu(Po());return e.copy=function(){return yr(e,Mu()).exponent(e.exponent())},Qt.apply(e,arguments)}function XN(){return Mu.apply(null,arguments).exponent(.5)}const Cv=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Aa,scaleDiverging:Ev,scaleDivergingLog:$v,scaleDivergingPow:Mu,scaleDivergingSqrt:XN,scaleDivergingSymlog:jv,scaleIdentity:Kp,scaleImplicit:tu,scaleLinear:go,scaleLog:Yp,scaleOrdinal:ru,scalePoint:Ta,scalePow:mu,scaleQuantile:rv,scaleQuantize:nv,scaleRadial:tv,scaleSequential:Av,scaleSequentialLog:Tv,scaleSequentialPow:Cu,scaleSequentialQuantile:_v,scaleSequentialSqrt:YN,scaleSequentialSymlog:Pv,scaleSqrt:j2,scaleSymlog:Zp,scaleThreshold:av,scaleTime:VN,scaleUtc:HN,tickFormat:zp},Symbol.toStringTag,{value:"Module"}));var JN=Qr;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 Mv=ZN;function QN(e,t){return e>t}var eD=QN,tD=Mv,rD=eD,nD=fn;function aD(e){return e&&e.length?tD(e,nD,rD):void 0}var iD=aD;const mr=je(iD);function oD(e,t){return e<t}var sD=oD,lD=Mv,uD=sD,cD=fn;function fD(e){return e&&e.length?lD(e,cD,uD):void 0}var dD=fD;const _o=je(dD);var hD=Ys,pD=dr,vD=Eh,yD=ot;function mD(e,t){var r=yD(e)?hD:vD;return r(e,pD(t))}var gD=mD,bD=Ph,xD=gD;function wD(e,t){return bD(xD(e,t),1)}var OD=wD;const SD=je(OD);var AD=Nl;function TD(e,t){return AD(e,t)}var PD=TD;const Rr=je(PD);var An=1e9,_D={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Du,Ie=!0,At="[DecimalError] ",Lr=At+"Invalid argument: ",ku=At+"Exponent out of range: ",Tn=Math.floor,Br=Math.pow,ED=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ht,Je=1e7,Ne=7,kv=9007199254740991,Eo=Tn(kv/Ne),re={};re.absoluteValue=re.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},re.comparedTo=re.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},re.decimalPlaces=re.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ne;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r},re.dividedBy=re.div=function(e){return ir(this,new this.constructor(e))},re.dividedToIntegerBy=re.idiv=function(e){var t=this,r=t.constructor;return Ee(ir(t,new r(e),0,1),r.precision)},re.equals=re.eq=function(e){return!this.cmp(e)},re.exponent=function(){return We(this)},re.greaterThan=re.gt=function(e){return this.cmp(e)>0},re.greaterThanOrEqualTo=re.gte=function(e){return this.cmp(e)>=0},re.isInteger=re.isint=function(){return this.e>this.d.length-2},re.isNegative=re.isneg=function(){return this.s<0},re.isPositive=re.ispos=function(){return this.s>0},re.isZero=function(){return this.s===0},re.lessThan=re.lt=function(e){return this.cmp(e)<0},re.lessThanOrEqualTo=re.lte=function(e){return this.cmp(e)<1},re.logarithm=re.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(ht))throw Error(At+"NaN");if(r.s<1)throw Error(At+(r.s?"NaN":"-Infinity"));return r.eq(ht)?new n(0):(Ie=!1,t=ir(Ia(r,i),Ia(e,i),i),Ie=!0,Ee(t,a))},re.minus=re.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Rv(t,e):Nv(t,(e.s=-e.s,e))},re.modulo=re.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(At+"NaN");return r.s?(Ie=!1,t=ir(r,e,0,1).times(e),Ie=!0,r.minus(t)):Ee(new n(r),a)},re.naturalExponential=re.exp=function(){return Dv(this)},re.naturalLogarithm=re.ln=function(){return Ia(this)},re.negated=re.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},re.plus=re.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Nv(t,e):Rv(t,(e.s=-e.s,e))},re.precision=re.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Lr+e);if(t=We(a)+1,n=a.d.length-1,r=n*Ne+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},re.squareRoot=re.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(At+"NaN")}for(e=We(s),Ie=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=Ut(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Tn((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(a.toString()),r=l.precision,a=o=r+3;;)if(i=n,n=i.plus(ir(s,i,o+2)).times(.5),Ut(i.d).slice(0,o)===(t=Ut(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(Ee(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;o+=4}return Ie=!0,Ee(n,r)},re.times=re.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%Je|0,t=s/Je|0;i[a]=(i[a]+t)%Je|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,Ie?Ee(e,f.precision):e},re.toDecimalPlaces=re.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Wt(e,0,An),t===void 0?t=n.rounding:Wt(t,0,8),Ee(r,e+We(r)+1,t))},re.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=Fr(n,!0):(Wt(e,0,An),t===void 0?t=a.rounding:Wt(t,0,8),n=Ee(new a(n),e+1,t),r=Fr(n,!0,e+1)),r},re.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?Fr(a):(Wt(e,0,An),t===void 0?t=i.rounding:Wt(t,0,8),n=Ee(new i(a),e+We(a)+1,t),r=Fr(n.abs(),!1,e+We(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)},re.toInteger=re.toint=function(){var e=this,t=e.constructor;return Ee(new t(e),We(e)+1,t.rounding)},re.toNumber=function(){return+this},re.toPower=re.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(ht);if(s=new l(s),!s.s){if(e.s<1)throw Error(At+"Infinity");return s}if(s.eq(ht))return s;if(n=l.precision,e.eq(ht))return Ee(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=s.s,o){if((r=c<0?-c:c)<=kv){for(a=new l(ht),t=Math.ceil(n/Ne+4),Ie=!1;r%2&&(a=a.times(s),Lv(a.d,t)),r=Tn(r/2),r!==0;)s=s.times(s),Lv(s.d,t);return Ie=!0,e.s<0?new l(ht).div(a):Ee(a,n)}}else if(i<0)throw Error(At+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Ie=!1,a=e.times(Ia(s,n+u)),Ie=!0,a=Dv(a),a.s=i,a},re.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=We(a),n=Fr(a,r<=i.toExpNeg||r>=i.toExpPos)):(Wt(e,1,An),t===void 0?t=i.rounding:Wt(t,0,8),a=Ee(new i(a),e,t),r=We(a),n=Fr(a,e<=r||r<=i.toExpNeg,e)),n},re.toSignificantDigits=re.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Wt(e,1,An),t===void 0?t=n.rounding:Wt(t,0,8)),Ee(new n(r),e,t)},re.toString=re.valueOf=re.val=re.toJSON=re[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=We(e),r=e.constructor;return Fr(e,t<=r.toExpNeg||t>=r.toExpPos)};function Nv(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)),Ie?Ee(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/Ne),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)/Je|0,l[i]%=Je;for(r&&(l.unshift(r),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,Ie?Ee(t,f):t}function Wt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Lr+e)}function Ut(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=Ne-n.length,r&&(i+=gr(r)),i+=n;o=e[t],n=o+"",r=Ne-n.length,r&&(i+=gr(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var ir=function(){function e(n,a){var i,o=0,s=n.length;for(n=n.slice();s--;)i=n[s]*a+o,n[s]=i%Je|0,o=i/Je|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*Je+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,A,p,g,S,P,E=n.constructor,R=n.s==a.s?1:-1,k=n.d,M=a.d;if(!n.s)return new E(n);if(!a.s)throw Error(At+"Division by zero");for(l=n.e-a.e,S=M.length,p=k.length,h=new E(R),m=h.d=[],u=0;M[u]==(k[u]||0);)++u;if(M[u]>(k[u]||0)&&--l,i==null?w=i=E.precision:o?w=i+(We(n)-We(a))+1:w=i,w<0)return new E(0);if(w=w/Ne+2|0,u=0,S==1)for(c=0,M=M[0],w++;(u<p||c)&&w--;u++)x=c*Je+(k[u]||0),m[u]=x/M|0,c=x%M|0;else{for(c=Je/(M[0]+1)|0,c>1&&(M=e(M,c),k=e(k,c),S=M.length,p=k.length),A=S,y=k.slice(0,S),v=y.length;v<S;)y[v++]=0;P=M.slice(),P.unshift(0),g=M[0],M[1]>=Je/2&&++g;do c=0,s=t(M,y,S,v),s<0?(b=y[0],S!=v&&(b=b*Je+(y[1]||0)),c=b/g|0,c>1?(c>=Je&&(c=Je-1),f=e(M,c),d=f.length,v=y.length,s=t(f,y,d,v),s==1&&(c--,r(f,S<d?P:M,d))):(c==0&&(s=c=1),f=M.slice()),d=f.length,d<v&&f.unshift(0),r(y,f,v),s==-1&&(v=y.length,s=t(M,y,S,v),s<1&&(c++,r(y,S<v?P:M,v))),v=y.length):s===0&&(c++,y=[0]),m[u++]=c,s&&y[0]?y[v++]=k[A]||0:(y=[k[A]],v=1);while((A++<p||y[0]!==void 0)&&w--)}return m[0]||m.shift(),h.e=l,Ee(h,o?i+We(h)+1:i)}}();function Dv(e,t){var r,n,a,i,o,s,l=0,u=0,c=e.constructor,f=c.precision;if(We(e)>16)throw Error(ku+We(e));if(!e.s)return new c(ht);for(Ie=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Br(2,u))/Math.LN10*2+5|0,s+=n,r=a=i=new c(ht),c.precision=s;;){if(a=Ee(a.times(e),s),r=r.times(++l),o=i.plus(ir(a,r,s)),Ut(o.d).slice(0,s)===Ut(i.d).slice(0,s)){for(;u--;)i=Ee(i.times(i),s);return c.precision=f,t==null?(Ie=!0,Ee(i,f)):i}i=o}}function We(e){for(var t=e.e*Ne,r=e.d[0];r>=10;r/=10)t++;return t}function Nu(e,t,r){if(t>e.LN10.sd())throw Ie=!0,r&&(e.precision=r),Error(At+"LN10 precision limit exceeded");return Ee(new e(e.LN10),t)}function gr(e){for(var t="";e--;)t+="0";return t}function Ia(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(At+(h.s?"NaN":"-Infinity"));if(h.eq(ht))return new y(0);if(t==null?(Ie=!1,u=v):u=t,h.eq(10))return t==null&&(Ie=!0),Nu(y,u);if(u+=d,y.precision=u,r=Ut(m),n=r.charAt(0),i=We(h),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Ut(h.d),n=r.charAt(0),f++;i=We(h),n>1?(h=new y("0."+r),i++):h=new y(n+"."+r.slice(1))}else return l=Nu(y,u+2,v).times(i+""),h=Ia(new y(n+"."+r.slice(1)),u-d).plus(l),y.precision=v,t==null?(Ie=!0,Ee(h,v)):h;for(s=o=h=ir(h.minus(ht),h.plus(ht),u),c=Ee(h.times(h),u),a=3;;){if(o=Ee(o.times(c),u),l=s.plus(ir(o,new y(a),u)),Ut(l.d).slice(0,u)===Ut(s.d).slice(0,u))return s=s.times(2),i!==0&&(s=s.plus(Nu(y,u+2,v).times(i+""))),s=ir(s,new y(f),u),y.precision=v,t==null?(Ie=!0,Ee(s,v)):s;s=l,a+=2}}function Iv(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=Tn(r/Ne),e.d=[],n=(r+1)%Ne,r<0&&(n+=Ne),n<a){for(n&&e.d.push(+t.slice(0,n)),a-=Ne;n<a;)e.d.push(+t.slice(n,n+=Ne));t=t.slice(n),n=Ne-t.length}else n-=a;for(;n--;)t+="0";if(e.d.push(+t),Ie&&(e.e>Eo||e.e<-Eo))throw Error(ku+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ee(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+=Ne,a=t,u=f[c=0];else{if(c=Math.ceil((n+1)/Ne),i=f.length,c>=i)return e;for(u=i=f[c],o=1;i>=10;i/=10)o++;n%=Ne,a=n-Ne+o}if(r!==void 0&&(i=Br(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/Br(10,o-a):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(i=We(e),f.length=1,t=t-i-1,f[0]=Br(10,(Ne-t%Ne)%Ne),e.e=Tn(-t/Ne)||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=Br(10,Ne-n),f[c]=a>0?(u/Br(10,o-a)%Br(10,a)|0)*i:0),l)for(;;)if(c==0){(f[0]+=i)==Je&&(f[0]=1,++e.e);break}else{if(f[c]+=i,f[c]!=Je)break;f[c--]=0,i=1}for(n=f.length;f[--n]===0;)f.pop();if(Ie&&(e.e>Eo||e.e<-Eo))throw Error(ku+We(e));return e}function Rv(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),Ie?Ee(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/Ne),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]=Je-1;--l[i],l[a]+=Je}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,Ie?Ee(t,h):t):new d(0)}function Fr(e,t,r){var n,a=We(e),i=Ut(e.d),o=i.length;return t?(r&&(n=r-o)>0?i=i.charAt(0)+"."+i.slice(1)+gr(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+gr(-a-1)+i,r&&(n=r-o)>0&&(i+=gr(n))):a>=o?(i+=gr(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+gr(n))):((n=a+1)<o&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-o)>0&&(a+1===o&&(i+="."),i+=gr(n))),e.s<0?"-"+i:i}function Lv(e,t){if(e.length>t)return e.length=t,!0}function Bv(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(Lr+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 Iv(o,i.toString())}else if(typeof i!="string")throw Error(Lr+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,ED.test(i))Iv(o,i);else throw Error(Lr+i)}if(a.prototype=re,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=Bv,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(At+"Object expected");var t,r,n,a=["precision",1,An,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((n=e[r=a[t]])!==void 0)if(Tn(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(Lr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Lr+r+": "+n);return this}var Du=Bv(_D);ht=new Du(1);const _e=Du;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 Iu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Iu(e,t)}}function kD(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ND(e){if(Array.isArray(e))return Iu(e)}function Iu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var DD=function(t){return t},Fv={},Wv=function(t){return t===Fv},Uv=function(t){return function r(){return arguments.length===0||arguments.length===1&&Wv(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},ID=function e(t,r){return t===1?r:Uv(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!==Fv}).length;return o>=t?r.apply(void 0,a):e(t-o,Uv(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 Wv(f)?l.shift():f});return r.apply(void 0,jD(c).concat(l))}))})},$o=function(t){return ID(t.length,t)},Ru=function(t,r){for(var n=[],a=t;a<r;++a)n[a-t]=a;return n},RD=$o(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))}},Lu=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},zv=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=$o(function(e,t,r){var n=+e,a=+t;return n+r*(a-n)}),UD=$o(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),zD=$o(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const jo={rangeStep:FD,getDigitCount:BD,interpolateNumber:WD,uninterpolateNumber:UD,uninterpolateTruncation:zD};function Bu(e){return GD(e)||qD(e)||Kv(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 GD(e){if(Array.isArray(e))return Fu(e)}function Ra(e,t){return YD(e)||HD(e,t)||Kv(e,t)||VD()}function VD(){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 Kv(e,t){if(e){if(typeof e=="string")return Fu(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 Fu(e,t)}}function Fu(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 qv(e){var t=Ra(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=jo.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(jo.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()}),Ru);return s(0,t)}function Vv(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?Vv(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=Ra(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=qv([r,n]),l=Ra(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(Bu(Ru(0,a-1).map(function(){return 1/0}))):[].concat(Bu(Ru(0,a-1).map(function(){return-1/0})),[c]);return r>n?Lu(f):f}if(u===c)return XD(u,a,i);var d=Vv(u,c,o,i),h=d.step,m=d.tickMin,y=d.tickMax,v=jo.rangeStep(m,y.add(new _e(.1).mul(h)),h);return r>n?Lu(v):v}function ZD(e,t){var r=Ra(e,2),n=r[0],a=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=qv([n,a]),s=Ra(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(Bu(jo.rangeStep(new _e(l),new _e(u).sub(new _e(.99).mul(f)),f)),[u]);return n>a?Lu(d):d}var QD=zv(JD),eI=zv(ZD),tI=process.env.NODE_ENV==="production",Wu="Invariant failed";function ut(e,t){if(tI)throw new Error(Wu);var r=typeof t=="function"?t():t,n=r?"".concat(Wu,": ").concat(r):Wu;throw new Error(n)}var rI=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Pn(e){"@babel/helpers - typeof";return Pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pn(e)}function Co(){return Co=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},Co.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 Hv(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 Hv(e,t)}}function Hv(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,Jv(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=Mo(t),pI(e,Yv()?Reflect.construct(t,r||[],Mo(e).constructor):t.apply(e,r))}function pI(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 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 Yv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yv=function(){return!!e})()}function Mo(e){return Mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mo(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&&Uu(e,t)}function Uu(e,t){return Uu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Uu(e,t)}function Xv(e,t,r){return t=Jv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jv(e){var t=mI(e,"string");return Pn(t)=="symbol"?t:t+""}function mI(e,t){if(Pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _n=function(e){function t(){return 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=fe(d,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?ut(!1,'ErrorBar requires Axis type property to be "number".'):ut());var m=l.map(function(y){var v=u(y,s),b=v.x,w=v.y,x=v.value,A=v.errorVal;if(!A)return null;var p=[],g,S;if(Array.isArray(A)){var P=nI(A,2);g=P[0],S=P[1]}else g=S=A;if(i==="vertical"){var E=c.scale,R=w+a,k=R+o,M=R-o,B=E(x-g),F=E(x+S);p.push({x1:F,y1:k,x2:F,y2:M}),p.push({x1:B,y1:R,x2:F,y2:R}),p.push({x1:B,y1:k,x2:B,y2:M})}else if(i==="horizontal"){var W=f.scale,_=b+a,D=_-o,U=_+o,$=W(x-g),C=W(x+S);p.push({x1:D,y1:C,x2:U,y2:C}),p.push({x1:_,y1:$,x2:_,y2:C}),p.push({x1:D,y1:$,x2:U,y2:$})}return O.createElement(be,Co({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",Co({},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);Xv(_n,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),Xv(_n,"displayName","ErrorBar");function La(e){"@babel/helpers - typeof";return La=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},La(e)}function Zv(e,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 Wr(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){gI(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 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 La(t)=="symbol"?t:t+""}function xI(e,t){if(La(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(La(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qv=function(t){var r=t.children,n=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,o=dt(r,hn);if(!o)return null;var s=hn.defaultProps,l=s!==void 0?Wr(Wr({},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?Wr(Wr({},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:Ku(f),value:y||m,payload:h}}),Wr(Wr(Wr({},l),hn.getWithHeight(o,a)),{},{payload:u,item:o})};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 ey(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 zu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zu(e,t)}}function 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 zu(e)}function zu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ty(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 Re(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){En(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 En(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 Ba(t)=="symbol"?t:t+""}function PI(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 Ve(e,t,r){return ce(e)||ce(t)?r:qe(t)?gt(e,t,r):de(t)?t(e):r}function Fa(e,t,r,n){var a=SD(e,function(s){return Ve(s,t)});if(r==="number"){var i=a.filter(function(s){return X(s)||parseFloat(s)});return i.length?[_o(i),mr(i)]:[1/0,-1/0]}var o=n?a.filter(function(s){return!ce(s)}):a;return o.map(function(s){return qe(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(Et(f-c)!==Et(d-f)){var m=[];if(Et(d-f)===Et(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 A=0;A<s;A++)if(A===0&&t<=(n[A].coordinate+n[A+1].coordinate)/2||A>0&&A<s-1&&t>(n[A].coordinate+n[A-1].coordinate)/2&&t<=(n[A].coordinate+n[A+1].coordinate)/2||A===s-1&&t>(n[A].coordinate+n[A-1].coordinate)/2){o=n[A].index;break}return o},Ku=function(t){var r,n=t,a=n.type.displayName,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Re(Re({},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 Xt(S.type).indexOf("Bar")>=0});if(b&&b.length){var w=b[0].type.defaultProps,x=w!==void 0?Re(Re({},w),b[0].props):b[0].props,A=x.barSize,p=x[v];o[p]||(o[p]=[]);var g=ce(A)?r:A;o[p].push({item:b[0],stackList:b.slice(1),barSize:ce(g)?void 0:$r(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=$r(r,a,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=a/l,m=o.reduce(function(A,p){return A+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(A,p){var g={item:p.item,position:{offset:v.offset+v.size+u,size:d?h:p.barSize}},S=[].concat(ey(A),[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=$r(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(A,p,g){var S=[].concat(ey(A),[{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=Qv({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 Re(Re({},t),{},En({},h,t[h]+(f||0)));if((y==="horizontal"||y==="vertical"&&h==="center")&&m!=="middle"&&X(t[m]))return Re(Re({},t),{},En({},m,t[m]+(d||0)))}return t},CI=function(t,r,n){return ce(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},ry=function(t,r,n,a,i){var o=r.props.children,s=st(o,_n).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=Ve(c,n);if(ce(f))return u;var d=Array.isArray(f)?[_o(f),mr(f)]:[f,f],h=l.reduce(function(m,y){var v=Ve(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 ry(t,s,n,i,a)}).filter(function(s){return!ce(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},ny=function(t,r,n,a,i){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&ry(t,l,u,a)||Fa(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},[])},ay=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},iy=function(t,r,n,a){if(a)return t.map(function(l){return l.coordinate});var i,o,s=t.map(function(l){return l.coordinate===r&&(i=!0),l.coordinate===n&&(o=!0),l.coordinate});return i||s.push(r),o||s.push(n),s},or=function(t,r,n){if(!t)return null;var a=t.scale,i=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,u=(r||n)&&o==="category"&&a.bandwidth?a.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Et(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=i?i.indexOf(f):f;return{coordinate:a(d)+u,value:f,offset:u}});return c.filter(function(f){return!an(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:a(f)+u,value:f,index:d,offset:u}}):a.ticks&&!n?a.ticks(t.tickCount).map(function(f){return{coordinate:a(f)+u,value:f,offset:u}}):a.domain().map(function(f,d){return{coordinate:a(f)+u,value:i?i[f]:f,index:d,offset:u}})},qu=new WeakMap,ko=function(t,r){if(typeof r!="function")return t;qu.has(t)||qu.set(t,new WeakMap);var n=qu.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:Aa(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:go(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Ta(),realScaleType:"point"}:i==="category"?{scale:Aa(),realScaleType:"band"}:{scale:go(),realScaleType:"linear"};if(Pr(a)){var l="scale".concat(Ni(a));return{scale:(Cv[l]||Ta)(),realScaleType:Cv[l]?l:"point"}}return de(a)?{scale:a}:{scale:Ta(),realScaleType:"point"}},oy=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])-oy,o=Math.max(a[0],a[1])+oy,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=an(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=i,t[s][n][1]=i+l,i=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},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=an(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=i,t[o][n][1]=i+s,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},BI={sign:RI,expand:eA,none:sn,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+Ve(s,l,0)}).order(gl).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?Re(Re({},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(qe(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[Er("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[d]};return Re(Re({},f),{},En({},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 Re(Re({},y),{},En({},v,{numericAxisId:n,cateAxisId:a,items:b.items,stackedData:FI(t,b.items,i)}))},m)}return Re(Re({},f),{},En({},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([_o(c),mr(c)]),{niceTicks:c}}if(i&&a==="number"){var f=t.domain(),d=eI(f,i,s);return{niceTicks:d}}return null};function $n(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&&!ce(a[t.dataKey])){var s=Mi(r,"value",a[t.dataKey]);if(s)return s.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var l=Ve(a,ce(o)?t.dataKey:o);return ce(l)?null:t.scale(l)}var sy=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=Ve(o,r.dataKey,r.domain[s]);return ce(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?Re(Re({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(qe(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[_o(n.concat([r[0]]).filter(X)),mr(n.concat([r[1]]).filter(X))]},[1/0,-1/0])},ly=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})},uy=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cy=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Gu=function(t,r,n){if(de(t))return t(r,n);if(!Array.isArray(t))return r;var a=[];if(X(t[0]))a[0]=n?t[0]:Math.min(t[0],r[0]);else if(uy.test(t[0])){var i=+uy.exec(t[0])[1];a[0]=r[0]-i}else de(t[0])?a[0]=t[0](r[0]):a[0]=r[0];if(X(t[1]))a[1]=n?t[1]:Math.max(t[1],r[1]);else if(cy.test(t[1])){var o=+cy.exec(t[1])[1];a[1]=r[1]+o}else de(t[1])?a[1]=t[1](r[1]):a[1]=r[1];return a},No=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=Bl(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},fy=function(t,r,n){return!t||!t.length||Rr(t,gt(n,"type.defaultProps.domain"))?r:t},dy=function(t,r){var n=t.type.defaultProps?Re(Re({},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 Re(Re({},fe(t,!1)),{},{dataKey:a,unit:o,formatter:s,name:i||a,color:Ku(t),value:Ve(r,a),type:l,payload:r,chartType:u,hide:c})};function Wa(e){"@babel/helpers - typeof";return Wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wa(e)}function hy(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 py(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hy(Object(r),!0).forEach(function(n){GI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GI(e,t,r){return t=VI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VI(e){var t=HI(e,"string");return Wa(t)=="symbol"?t:t+""}function HI(e,t){if(Wa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Do=Math.PI/180,YI=function(t){return t*180/Math.PI},Ze=function(t,r,n,a){return{x:t+Math.cos(-Do*a)*n,y:r+Math.sin(-Do*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},vy=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?py(py({},r),{},{radius:o,angle:QI(h,r)}):null};function Ua(e){"@babel/helpers - typeof";return Ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ua(e)}var 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 Vu(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 Vu(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 Vu(e)}function Vu(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 yy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yy(Object(r),!0).forEach(function(n){lR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function 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 Ua(t)=="symbol"?t:t+""}function cR(e,t){if(Ua(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ua(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function za(){return za=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},za.apply(this,arguments)}var fR=function(t){var r=t.value,n=t.formatter,a=ce(t.children)?r:t.children;return de(n)?n(a):a},dR=function(t,r){var n=Et(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,A;a==="insideStart"?(x=h+w*o,A=y):a==="insideEnd"?(x=m-w*o,A=!y):a==="end"&&(x=m+w*o,A=y),A=b<=0?A:!A;var p=Ze(u,c,v,x),g=Ze(u,c,v,x+(A?1:-1)*359),S="M".concat(p.x,",").concat(p.y,`
139
+ A`).concat(v,",").concat(v,",0,1,").concat(A?0:1,`,
140
+ `).concat(g.x,",").concat(g.y),P=ce(t.id)?Er("recharts-radial-line-"):t.id;return O.createElement("text",za({},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=Ze(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=Ze(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 He(He({},x),n?{height:Math.max(l-n.y,0),width:u}:{})}if(i==="bottom"){var A={x:s+u/2,y:l+c+d,textAnchor:"middle",verticalAnchor:m};return He(He({},A),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 He(He({},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 He(He({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:c}:{})}var S=n?{width:u,height:c}:{};return i==="insideLeft"?He({x:s+v,y:l+c/2,textAnchor:w,verticalAnchor:"middle"},S):i==="insideRight"?He({x:s+u-v,y:l+c/2,textAnchor:b,verticalAnchor:"middle"},S):i==="insideTop"?He({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:m},S):i==="insideBottom"?He({x:s+u/2,y:l+c-d,textAnchor:"middle",verticalAnchor:h},S):i==="insideTopLeft"?He({x:s+v,y:l+d,textAnchor:w,verticalAnchor:m},S):i==="insideTopRight"?He({x:s+u-v,y:l+d,textAnchor:b,verticalAnchor:m},S):i==="insideBottomLeft"?He({x:s+v,y:l+c-d,textAnchor:w,verticalAnchor:h},S):i==="insideBottomRight"?He({x:s+u-v,y:l+c-d,textAnchor:b,verticalAnchor:h},S):en(i)&&(X(i.x)||_r(i.x))&&(X(i.y)||_r(i.y))?He({x:s+$r(i.x,u),y:l+$r(i.y,c),textAnchor:"end",verticalAnchor:"end"},S):He({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},S)},yR=function(t){return"cx"in t&&X(t.cx)};function tt(e){var t=e.offset,r=t===void 0?5:t,n=oR(e,eR),a=He({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||ce(s)&&ce(l)&&!O.isValidElement(u)&&!de(u))return null;if(O.isValidElement(u))return O.cloneElement(u,a);var h;if(de(u)){if(h=O.createElement(u,a),O.isValidElement(h))return h}else h=fR(a);var m=yR(i),y=fe(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(oo,za({className:ve("recharts-label",f)},y,v,{breakAll:d}),h)}tt.displayName="Label";var my=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(tt,{key:"label-implicit",viewBox:r}):qe(t)?O.createElement(tt,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===tt?O.cloneElement(t,{key:"label-implicit",viewBox:r}):O.createElement(tt,{key:"label-implicit",content:t,viewBox:r}):de(t)?O.createElement(tt,{key:"label-implicit",content:t,viewBox:r}):en(t)?O.createElement(tt,za({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=my(t),o=st(a,tt).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))};tt.parseViewBox=my,tt.renderCallByParent=gR;function bR(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var xR=bR;const wR=je(xR);function Ka(e){"@babel/helpers - typeof";return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ka(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 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 _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 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 Io(){return Io=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},Io.apply(this,arguments)}function gy(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 by(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gy(Object(r),!0).forEach(function(n){$R(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gy(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 Ka(t)=="symbol"?t:t+""}function CR(e,t){if(Ka(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ka(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xy(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 zt(e){var t=e.valueAccessor,r=t===void 0?kR:t,n=xy(e,OR),a=n.data,i=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=xy(n,SR);return!a||!a.length?null:O.createElement(be,{className:"recharts-label-list"},a.map(function(c,f){var d=ce(i)?r(c,f):Ve(c&&c.payload,i),h=ce(s)?{}:{id:"".concat(s,"-").concat(f)};return O.createElement(tt,Io({},fe(c,!0),u,h,{parentViewBox:c.parentViewBox,value:d,textBreakAll:l,viewBox:tt.parseViewBox(ce(o)?c:by(by({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}zt.displayName="LabelList";function NR(e,t){return e?e===!0?O.createElement(zt,{key:"labelList-implicit",data:t}):O.isValidElement(e)||de(e)?O.createElement(zt,{key:"labelList-implicit",data:t,content:e}):en(e)?O.createElement(zt,Io({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=st(n,zt).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))}zt.renderCallByParent=DR;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 Yu(){return Yu=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},Yu.apply(this,arguments)}function wy(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 Oy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wy(Object(r),!0).forEach(function(n){IR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wy(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 qa(t)=="symbol"?t:t+""}function LR(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)}var BR=function(t,r){var n=Et(r-t),a=Math.min(Math.abs(r-t),359.999);return n*a},Ro=function(t){var r=t.cx,n=t.cy,a=t.radius,i=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,c=l*(s?1:-1)+a,f=Math.asin(l/c)/Do,d=u?i:i+o*f,h=Ze(r,n,c,d),m=Ze(r,n,a,d),y=u?i-o*f:i,v=Ze(r,n,c*Math.cos(f*Do),y);return{center:h,circleTangency:m,lineTangency:v,theta:f}},Sy=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=Ze(r,n,i,o),f=Ze(r,n,i,u),d="M ".concat(c.x,",").concat(c.y,`
142
+ A `).concat(i,",").concat(i,`,0,
143
+ `).concat(+(Math.abs(l)>180),",").concat(+(o>u),`,
144
+ `).concat(f.x,",").concat(f.y,`
145
+ `);if(a>0){var h=Ze(r,n,a,o),m=Ze(r,n,a,u);d+="L ".concat(m.x,",").concat(m.y,`
146
+ A `).concat(a,",").concat(a,`,0,
147
+ `).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=Et(c-u),d=Ro({cx:r,cy:n,radius:i,angle:u,sign:f,cornerRadius:o,cornerIsExternal:l}),h=d.circleTangency,m=d.lineTangency,y=d.theta,v=Ro({cx:r,cy:n,radius:i,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:l}),b=v.circleTangency,w=v.lineTangency,x=v.theta,A=l?Math.abs(u-c):Math.abs(u-c)-y-x;if(A<0)return s?"M ".concat(m.x,",").concat(m.y,`
149
+ a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
150
+ a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
151
+ `):Sy({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(+(A>180),",").concat(+(f<0),",").concat(b.x,",").concat(b.y,`
154
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(w.x,",").concat(w.y,`
155
+ `);if(a>0){var g=Ro({cx:r,cy:n,radius:a,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),S=g.circleTangency,P=g.lineTangency,E=g.theta,R=Ro({cx:r,cy:n,radius:a,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),k=R.circleTangency,M=R.lineTangency,B=R.theta,F=l?Math.abs(u-c):Math.abs(u-c)-E-B;if(F<0&&o===0)return"".concat(p,"L").concat(r,",").concat(n,"Z");p+="L".concat(M.x,",").concat(M.y,`
156
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,`
157
+ A`).concat(a,",").concat(a,",0,").concat(+(F>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},Ay=function(t){var r=Oy(Oy({},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=$r(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=Sy({cx:n,cy:a,innerRadius:i,outerRadius:o,startAngle:c,endAngle:f}),O.createElement("path",Yu({},fe(r,!0),{className:h,d:v,role:"img"}))};function Ga(e){"@babel/helpers - typeof";return Ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ga(e)}function 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 Ty(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 Py(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){UR(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 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 _y={curveBasisClosed:US,curveBasisOpen:zS,curveBasis:WS,curveBumpX:_S,curveBumpY:ES,curveLinearClosed:KS,curveLinear:Li,curveMonotoneX:qS,curveMonotoneY:GS,curveNatural:VS,curveStep:HS,curveStepAfter:XS,curveStepBefore:YS},Lo=function(t){return t.x===+t.x&&t.y===+t.y},Va=function(t){return t.x},Ha=function(t){return t.y},qR=function(t,r){if(de(t))return t;var n="curve".concat(Ni(t));return(n==="curveMonotone"||n==="curveBump")&&r?_y["".concat(n).concat(r==="vertical"?"Y":"X")]:_y[n]||Li},GR=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 Lo(y)}):i,d;if(Array.isArray(o)){var h=u?o.filter(function(y){return Lo(y)}):o,m=f.map(function(y,v){return Py(Py({},y),{},{base:h[v]})});return s==="vertical"?d=Bi().y(Ha).x1(Va).x0(function(y){return y.base.x}):d=Bi().x(Va).y1(Ha).y0(function(y){return y.base.y}),d.defined(Lo).curve(c),d(m)}return s==="vertical"&&X(o)?d=Bi().y(Ha).x1(Va).x0(o):X(o)?d=Bi().x(Va).y1(Ha).y0(o):d=dd().x(Va).y(Ha),d.defined(Lo).curve(c),d(f)},Ur=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?GR(t):a;return mt.createElement("path",Xu({},fe(t,!1),ki(t),{className:ve("recharts-curve",r),d:o,ref:i}))},Ju={exports:{}},Bo={exports:{}},Oe={};/** @license React v16.13.1
159
+ * react-is.production.min.js
160
+ *
161
+ * Copyright (c) Facebook, Inc. and its affiliates.
162
+ *
163
+ * This source code is licensed under the MIT license found in the
164
+ * LICENSE file in the root directory of this source tree.
165
+ */var Ey;function VR(){if(Ey)return Oe;Ey=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 A(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 A(p)||x(p)===l},Oe.isConcurrentMode=A,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
166
+ * react-is.development.js
167
+ *
168
+ * Copyright (c) Facebook, Inc. and its affiliates.
169
+ *
170
+ * This source code is licensed under the MIT license found in the
171
+ * LICENSE file in the root directory of this source tree.
172
+ */var $y;function HR(){return $y||($y=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(N){return typeof N=="string"||typeof N=="function"||N===n||N===u||N===i||N===a||N===f||N===d||typeof N=="object"&&N!==null&&(N.$$typeof===m||N.$$typeof===h||N.$$typeof===o||N.$$typeof===s||N.$$typeof===c||N.$$typeof===v||N.$$typeof===b||N.$$typeof===w||N.$$typeof===y)}function A(N){if(typeof N=="object"&&N!==null){var ie=N.$$typeof;switch(ie){case t:var V=N.type;switch(V){case l:case u:case n:case i:case a:case f:return V;default:var se=V&&V.$$typeof;switch(se){case s:case c:case m:case h:case o:return se;default:return ie}}case r:return ie}}}var p=l,g=u,S=s,P=o,E=t,R=c,k=n,M=m,B=h,F=r,W=i,_=a,D=f,U=!1;function $(N){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),C(N)||A(N)===l}function C(N){return A(N)===u}function I(N){return A(N)===s}function L(N){return A(N)===o}function z(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function G(N){return A(N)===c}function Q(N){return A(N)===n}function J(N){return A(N)===m}function ee(N){return A(N)===h}function ne(N){return A(N)===r}function q(N){return A(N)===i}function Y(N){return A(N)===a}function Z(N){return A(N)===f}Se.AsyncMode=p,Se.ConcurrentMode=g,Se.ContextConsumer=S,Se.ContextProvider=P,Se.Element=E,Se.ForwardRef=R,Se.Fragment=k,Se.Lazy=M,Se.Memo=B,Se.Portal=F,Se.Profiler=W,Se.StrictMode=_,Se.Suspense=D,Se.isAsyncMode=$,Se.isConcurrentMode=C,Se.isContextConsumer=I,Se.isContextProvider=L,Se.isElement=z,Se.isForwardRef=G,Se.isFragment=Q,Se.isLazy=J,Se.isMemo=ee,Se.isPortal=ne,Se.isProfiler=q,Se.isStrictMode=Y,Se.isSuspense=Z,Se.isValidElementType=x,Se.typeOf=A}()),Se}var jy;function Cy(){return jy||(jy=1,process.env.NODE_ENV==="production"?Bo.exports=VR():Bo.exports=HR()),Bo.exports}/*
173
+ object-assign
174
+ (c) Sindre Sorhus
175
+ @license MIT
176
+ */var Zu,My;function YR(){if(My)return Zu;My=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 Zu=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},Zu}var Qu,ky;function ec(){if(ky)return Qu;ky=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Qu=e,Qu}var tc,Ny;function Dy(){return Ny||(Ny=1,tc=Function.call.bind(Object.prototype.hasOwnProperty)),tc}var rc,Iy;function XR(){if(Iy)return rc;Iy=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ec(),r={},n=Dy();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={})},rc=a,rc}var nc,Ry;function JR(){if(Ry)return nc;Ry=1;var e=Cy(),t=YR(),r=ec(),n=Dy(),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 nc=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(C){var I=C&&(u&&C[u]||C[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:A(),elementType:p(),instanceOf:g,node:R(),objectOf:P,oneOf:S,oneOfType:E,shape:M,exact:B};function m(C,I){return C===I?C!==0||1/C===1/I:C!==C&&I!==I}function y(C,I){this.message=C,this.data=I&&typeof I=="object"?I:{},this.stack=""}y.prototype=Error.prototype;function v(C){if(process.env.NODE_ENV!=="production")var I={},L=0;function z(Q,J,ee,ne,q,Y,Z){if(ne=ne||d,Y=Y||ee,Z!==r){if(l){var N=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 N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ie=ne+":"+ee;!I[ie]&&L<3&&(i("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+ne+"`. 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,L++)}}return J[ee]==null?Q?J[ee]===null?new y("The "+q+" `"+Y+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new y("The "+q+" `"+Y+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:C(J,ee,ne,q,Y)}var G=z.bind(null,!1);return G.isRequired=z.bind(null,!0),G}function b(C){function I(L,z,G,Q,J,ee){var ne=L[z],q=_(ne);if(q!==C){var Y=D(ne);return new y("Invalid "+Q+" `"+J+"` of type "+("`"+Y+"` supplied to `"+G+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return v(I)}function w(){return v(o)}function x(C){function I(L,z,G,Q,J){if(typeof C!="function")return new y("Property `"+J+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var ee=L[z];if(!Array.isArray(ee)){var ne=_(ee);return new y("Invalid "+Q+" `"+J+"` of type "+("`"+ne+"` supplied to `"+G+"`, expected an array."))}for(var q=0;q<ee.length;q++){var Y=C(ee,q,G,Q,J+"["+q+"]",r);if(Y instanceof Error)return Y}return null}return v(I)}function A(){function C(I,L,z,G,Q){var J=I[L];if(!s(J)){var ee=_(J);return new y("Invalid "+G+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+z+"`, expected a single ReactElement."))}return null}return v(C)}function p(){function C(I,L,z,G,Q){var J=I[L];if(!e.isValidElementType(J)){var ee=_(J);return new y("Invalid "+G+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+z+"`, expected a single ReactElement type."))}return null}return v(C)}function g(C){function I(L,z,G,Q,J){if(!(L[z]instanceof C)){var ee=C.name||d,ne=$(L[z]);return new y("Invalid "+Q+" `"+J+"` of type "+("`"+ne+"` supplied to `"+G+"`, expected ")+("instance of `"+ee+"`."))}return null}return v(I)}function S(C){if(!Array.isArray(C))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(L,z,G,Q,J){for(var ee=L[z],ne=0;ne<C.length;ne++)if(m(ee,C[ne]))return null;var q=JSON.stringify(C,function(Z,N){var ie=D(N);return ie==="symbol"?String(N):N});return new y("Invalid "+Q+" `"+J+"` of value `"+String(ee)+"` "+("supplied to `"+G+"`, expected one of "+q+"."))}return v(I)}function P(C){function I(L,z,G,Q,J){if(typeof C!="function")return new y("Property `"+J+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var ee=L[z],ne=_(ee);if(ne!=="object")return new y("Invalid "+Q+" `"+J+"` of type "+("`"+ne+"` supplied to `"+G+"`, expected an object."));for(var q in ee)if(n(ee,q)){var Y=C(ee,q,G,Q,J+"."+q,r);if(Y instanceof Error)return Y}return null}return v(I)}function E(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var I=0;I<C.length;I++){var L=C[I];if(typeof L!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(L)+" at index "+I+"."),o}function z(G,Q,J,ee,ne){for(var q=[],Y=0;Y<C.length;Y++){var Z=C[Y],N=Z(G,Q,J,ee,ne,r);if(N==null)return null;N.data&&n(N.data,"expectedType")&&q.push(N.data.expectedType)}var ie=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new y("Invalid "+ee+" `"+ne+"` supplied to "+("`"+J+"`"+ie+"."))}return v(z)}function R(){function C(I,L,z,G,Q){return F(I[L])?null:new y("Invalid "+G+" `"+Q+"` supplied to "+("`"+z+"`, expected a ReactNode."))}return v(C)}function k(C,I,L,z,G){return new y((C||"React class")+": "+I+" type `"+L+"."+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function M(C){function I(L,z,G,Q,J){var ee=L[z],ne=_(ee);if(ne!=="object")return new y("Invalid "+Q+" `"+J+"` of type `"+ne+"` "+("supplied to `"+G+"`, expected `object`."));for(var q in C){var Y=C[q];if(typeof Y!="function")return k(G,Q,J,q,D(Y));var Z=Y(ee,q,G,Q,J+"."+q,r);if(Z)return Z}return null}return v(I)}function B(C){function I(L,z,G,Q,J){var ee=L[z],ne=_(ee);if(ne!=="object")return new y("Invalid "+Q+" `"+J+"` of type `"+ne+"` "+("supplied to `"+G+"`, expected `object`."));var q=t({},L[z],C);for(var Y in q){var Z=C[Y];if(n(C,Y)&&typeof Z!="function")return k(G,Q,J,Y,D(Z));if(!Z)return new y("Invalid "+Q+" `"+J+"` key `"+Y+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(L[z],null," ")+`
177
+ Valid keys: `+JSON.stringify(Object.keys(C),null," "));var N=Z(ee,Y,G,Q,J+"."+Y,r);if(N)return N}return null}return v(I)}function F(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(F);if(C===null||s(C))return!0;var I=f(C);if(I){var L=I.call(C),z;if(I!==C.entries){for(;!(z=L.next()).done;)if(!F(z.value))return!1}else for(;!(z=L.next()).done;){var G=z.value;if(G&&!F(G[1]))return!1}}else return!1;return!0;default:return!1}}function W(C,I){return C==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function _(C){var I=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":W(I,C)?"symbol":I}function D(C){if(typeof C>"u"||C===null)return""+C;var I=_(C);if(I==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return I}function U(C){var I=D(C);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function $(C){return!C.constructor||!C.constructor.name?d:C.constructor.name}return h.checkPropTypes=a,h.resetWarningCache=a.resetWarningCache,h.PropTypes=h,h},nc}var ac,Ly;function ZR(){if(Ly)return ac;Ly=1;var e=ec();function t(){}function r(){}return r.resetWarningCache=t,ac=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},ac}if(process.env.NODE_ENV!=="production"){var QR=Cy(),eL=!0;Ju.exports=JR()(QR.isElement,eL)}else Ju.exports=ZR()();var tL=Ju.exports;const Ae=je(tL);var rL=Object.getOwnPropertyNames,nL=Object.getOwnPropertySymbols,aL=Object.prototype.hasOwnProperty;function By(e,t){return function(n,a,i){return e(n,a,i)&&t(n,a,i)}}function Fo(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 Fy(e){return rL(e).concat(nL(e))}var iL=Object.hasOwn||function(e,t){return aL.call(e,t)};function zr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var oL="__v",sL="__o",lL="_owner",Wy=Object.getOwnPropertyDescriptor,Uy=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 zr(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 zy(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=zr;function pL(e,t,r){var n=Uy(e),a=n.length;if(Uy(t).length!==a)return!1;for(;a-- >0;)if(!qy(e,t,r,n[a]))return!1;return!0}function Ya(e,t,r){var n=Fy(e),a=n.length;if(Fy(t).length!==a)return!1;for(var i,o,s;a-- >0;)if(i=n[a],!qy(e,t,r,i)||(o=Wy(e,i),s=Wy(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 zr(e.valueOf(),t.valueOf())}function yL(e,t){return e.source===t.source&&e.flags===t.flags}function Ky(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),i=e.values(),o,s;(o=i.next())&&!o.done;){for(var l=t.values(),u=!1,c=0;(s=l.next())&&!s.done;){if(!a[c]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=a[c]=!0;break}c++}if(!u)return!1}return!0}function 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 qy(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,Vy=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?Ya:uL,areDatesEqual:cL,areErrorsEqual:fL,areFunctionsEqual:dL,areMapsEqual:n?By(zy,Ya):zy,areNumbersEqual:hL,areObjectsEqual:n?Ya:pL,arePrimitiveWrappersEqual:vL,areRegExpsEqual:yL,areSetsEqual:n?By(Ky,Ya):Ky,areTypedArraysEqual:n?Ya:mL,areUrlsEqual:gL};if(r&&(a=Vy({},a,r(a))),t){var i=Fo(a.areArraysEqual),o=Fo(a.areMapsEqual),s=Fo(a.areObjectsEqual),l=Fo(a.areSetsEqual);a=Vy({},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=br();br({strict:!0}),br({circular:!0}),br({circular:!0,strict:!0}),br({createInternalComparator:function(){return zr}}),br({strict:!0,createInternalComparator:function(){return zr}}),br({circular:!0,createInternalComparator:function(){return zr}}),br({circular:!0,createInternalComparator:function(){return zr},strict:!0});function br(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 Hy(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 ic(e){"@babel/helpers - typeof";return ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ic(e)}function 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 Yy(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 Yy(e,t)}}function Yy(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"){Hy(a.bind(null,u),l);return}a(l),Hy(a.bind(null,u));return}ic(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 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 Xy(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 Jy(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){Zy(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 Zy(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 Xa(t)==="symbol"?t:String(t)}function qL(e,t){if(Xa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GL=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,a){return n.filter(function(i){return a.includes(i)})})},VL=function(t){return t},HL=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Ja=function(t,r){return Object.keys(r).reduce(function(n,a){return Jy(Jy({},n),{},Zy({},a,t(a,r[a])))},{})},Qy=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",Wo=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)||em(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)||em(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 em(e,t){if(e){if(typeof e=="string")return oc(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 oc(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 oc(e)}function oc(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 Uo=1e-4,tm=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},rm=function(t,r){return t.map(function(n,a){return n*Math.pow(r,a)}).reduce(function(n,a){return n+a})},nm=function(t,r){return function(n){var a=tm(t,r);return rm(a,n)}},a3=function(t,r){return function(n){var a=tm(t,r),i=[].concat(e3(a.map(function(o,s){return o*s}).slice(1)),[0]);return rm(i,n)}},am=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 Wo(!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)}}Wo([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=nm(a,o),d=nm(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,A=0;A<8;++A){var p=f(x)-w,g=h(x);if(Math.abs(p-w)<Uo||g<Uo)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)<Uo&&Math.abs(y)<Uo?[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 am(a);case"spring":return i3();default:if(a.split("(")[0]==="cubic-bezier")return am(a);Wo(!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:(Wo(!1,"[configEasing]: first argument type should be function or string, instead received %s",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)}function im(e){return u3(e)||l3(e)||sm(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 lc(e)}function om(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?om(Object(r),!0).forEach(function(n){sc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):om(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sc(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 Za(t)==="symbol"?t:String(t)}function f3(e,t){if(Za(e)!=="object"||e===null)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 d3(e,t){return v3(e)||p3(e,t)||sm(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 sm(e,t){if(e){if(typeof e=="string")return lc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lc(e,t)}}function lc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function 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 zo=function(t,r,n){return t+(r-t)*n},uc=function(t){var r=t.from,n=t.to;return r!==n},y3=function e(t,r,n){var a=Ja(function(i,o){if(uc(o)){var s=t(o.from,o.to,o.velocity),l=d3(s,2),u=l[0],c=l[1];return Qe(Qe({},o),{},{from:u,velocity:c})}return o},r);return n<1?Ja(function(i,o){return uc(o)?Qe(Qe({},o),{},{velocity:zo(o.velocity,a[i].velocity,n),from:zo(o.from,a[i].from,n)}):o},r):e(t,a,n-1)};const m3=function(e,t,r,n,a){var i=GL(e,t),o=i.reduce(function(v,b){return Qe(Qe({},v),{},sc({},b,[e[b],t[b]]))},{}),s=i.reduce(function(v,b){return Qe(Qe({},v),{},sc({},b,{from:e[b],velocity:0,to:t[b]}))},{}),l=-1,u,c,f=function(){return null},d=function(){return Ja(function(b,w){return w.from},s)},h=function(){return!Object.values(s).filter(uc).length},m=function(b){u||(u=b);var w=b-u,x=w/r.dt;s=y3(r,s,x),a(Qe(Qe(Qe({},e),t),d())),u=b,h()||(l=requestAnimationFrame(f))},y=function(b){c||(c=b);var w=(b-c)/n,x=Ja(function(p,g){return zo.apply(void 0,im(g).concat([r(w)]))},o);if(a(Qe(Qe(Qe({},e),t),x)),w<1)l=requestAnimationFrame(f);else{var A=Ja(function(p,g){return zo.apply(void 0,im(g).concat([r(1)]))},o);a(Qe(Qe(Qe({},e),t),A))}};return f=r.isStepper?m:y,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(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)}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 cc(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 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 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 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 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 Ct(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){Qa(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 Qa(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 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,um(n.key),n)}}function _3(e,t,r){return t&&P3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function um(e){var t=E3(e,"string");return jn(t)==="symbol"?t:String(t)}function E3(e,t){if(jn(e)!=="object"||e===null)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(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&&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 j3(e){var t=C3();return function(){var n=Ko(e),a;if(t){var i=Ko(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return hc(this,a)}}function hc(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 pc(e)}function pc(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 Ko(e){return Ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ko(e)}var Mt=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(pc(i)),i.changeStyle=i.changeStyle.bind(pc(i)),!s||h<=0)return i.state={style:{}},typeof d=="function"&&(i.state={style:c}),hc(i);if(f&&f.length)i.state={style:f[0].style};else if(u){if(typeof d=="function")return i.state={style:u},hc(i);i.state={style:l?Qa({},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?Qa({},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?Qa({},l,y):y};(l&&d[l]!==y||!l&&d!==y)&&this.setState(v)}this.runAnimation(Ct(Ct({},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,A=x===void 0?"ease":x,p=v.style,g=v.properties,S=v.onAnimationEnd,P=b>0?o[b-1]:v,E=g||Object.keys(p);if(typeof A=="function"||A==="spring")return[].concat(cc(y),[i.runJSAnimation.bind(i,{from:P.style,to:p,duration:w,easing:A}),w]);var R=Qy(E,w,A),k=Ct(Ct(Ct({},P.style),p),{},{transition:R});return[].concat(cc(y),[k,w,S]).filter(VL)};return this.manager.start([l].concat(cc(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?Qa({},s,l):l,v=Qy(Object.keys(y),o,u);m.start([c,i,Ct(Ct({},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,Ct(Ct({},l),{},{style:Ct(Ct({},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);Mt.displayName="Animate",Mt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},Mt.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 ei(e){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(e)}function 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 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 cm(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 cm(e,t)}}function cm(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 fm(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 dm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fm(Object(r),!0).forEach(function(n){R3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fm(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 ei(t)=="symbol"?t:t+""}function B3(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hm=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"},vc=function(t){var r=dm(dm({},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 A=n.current.getTotalLength();A&&s(A)}catch{}},[]);var l=r.x,u=r.y,c=r.width,f=r.height,d=r.radius,h=r.className,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(Mt,{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(A){var p=A.width,g=A.height,S=A.x,P=A.y;return O.createElement(Mt,{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",qo({},fe(r,!0),{className:x,d:hm(S,P,p,g,d),ref:n})))}):O.createElement("path",qo({},fe(r,!0),{className:x,d:hm(l,u,c,f,d)}))};function yc(){return yc=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},yc.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?mt.createElement("circle",yc({},fe(t,!1),ki(t),{className:o,cx:r,cy:n,r:a})):null};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)}var U3=["x","y","top","left","width","height","className"];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)}function pm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function z3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pm(Object(r),!0).forEach(function(n){K3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function 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=G3(e,"string");return ti(t)=="symbol"?t:t+""}function G3(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 V3(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=V3(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",mc({},fe(v,!0),{className:ve("recharts-cross",m),d:Y3(n,i,f,h,s,u)}))},J3=Xd,Z3=J3(Object.getPrototypeOf,Object),Q3=Z3,eB=Ht,tB=Q3,rB=Yt,nB="[object Object]",aB=Function.prototype,iB=Object.prototype,vm=aB.toString,oB=iB.hasOwnProperty,sB=vm.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&&vm.call(r)==sB}var uB=lB;const cB=je(uB);var fB=Ht,dB=Yt,hB="[object Boolean]";function pB(e){return e===!0||e===!1||dB(e)&&fB(e)==hB}var vB=pB;const yB=je(vB);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 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 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 ym(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 ym(e,t)}}function ym(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 mm(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 gm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mm(Object(r),!0).forEach(function(n){OB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mm(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 ri(t)=="symbol"?t:t+""}function AB(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)}var bm=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=gm(gm({},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(Mt,{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 A=x.upperWidth,p=x.lowerWidth,g=x.height,S=x.x,P=x.y;return O.createElement(Mt,{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",Vo({},fe(r,!0),{className:w,d:bm(S,P,A,p,g),ref:n})))}):O.createElement("g",null,O.createElement("path",Vo({},fe(r,!0),{className:w,d:bm(l,u,c,f,d)})))},_B=["option","shapeType","propTransformer","activeClassName","isActive"];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 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 xm(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 Ho(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xm(Object(r),!0).forEach(function(n){jB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xm(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 ni(t)=="symbol"?t:t+""}function MB(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 kB(e,t){return Ho(Ho({},t),e)}function NB(e,t){return e==="symbols"}function wm(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return O.createElement(vc,r);case"trapezoid":return O.createElement(PB,r);case"sector":return O.createElement(Ay,r);case"symbols":if(NB(t))return O.createElement(Ki,r);break;default:return null}}function DB(e){return O.isValidElement(e)?e.props:e}function gc(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,Ho(Ho({},l),DB(t)));else if(de(t))u=t(l);else if(cB(t)&&!yB(t)){var c=a(t,l);u=O.createElement(wm,{shapeType:r,elementProps:c})}else{var f=l;u=O.createElement(wm,{shapeType:r,elementProps:f})}return s?O.createElement(be,{className:o},u):u}function Yo(e,t){return t!=null&&"trapezoids"in e.props}function Xo(e,t){return t!=null&&"sectors"in e.props}function ai(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 Yo(e,t)?r=IB:Xo(e,t)?r=RB:ai(e,t)&&(r=LB),r}function FB(e,t){var r;return Yo(e,t)?r="trapezoids":Xo(e,t)?r="sectors":ai(e,t)&&(r="points"),r}function WB(e,t){if(Yo(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(Xo(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 ai(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=Rr(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 GB=qB,VB=Hh,Om=1/0,HB=17976931348623157e292;function YB(e){if(!e)return e===0?e:0;if(e=VB(e),e===Om||e===-Om){var t=e<0?-1:1;return t*HB}return e===e?e:0}var Sm=YB,XB=GB,JB=Qi,bc=Sm;function ZB(e){return function(t,r,n){return n&&typeof n!="number"&&JB(t,r,n)&&(r=n=void 0),t=bc(t),r===void 0?(r=t,t=0):r=bc(r),n=n===void 0?t<r?1:-1:bc(n),XB(t,r,n,e)}}var QB=ZB,e5=QB,t5=e5(),r5=t5;const Jo=je(r5);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 Am(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Tm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Am(Object(r),!0).forEach(function(n){Pm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Am(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pm(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 ii(t)=="symbol"?t:t+""}function a5(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 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 Tm(Tm({},i),{},Pm({},o+n,r))},{});return a[t]=r,a};function Cn(e){"@babel/helpers - typeof";return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cn(e)}function Zo(){return Zo=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},Zo.apply(this,arguments)}function _m(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 xc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_m(Object(r),!0).forEach(function(n){pt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_m(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 Em(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jm(n.key),n)}}function l5(e,t,r){return t&&Em(e.prototype,t),r&&Em(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u5(e,t,r){return t=Qo(t),c5(e,$m()?Reflect.construct(t,r||[],Qo(e).constructor):t.apply(e,r))}function c5(e,t){if(t&&(Cn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return 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 $m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($m=function(){return!!e})()}function Qo(e){return Qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qo(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&&wc(e,t)}function wc(e,t){return wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},wc(e,t)}function pt(e,t,r){return t=jm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jm(e){var t=h5(e,"string");return Cn(t)=="symbol"?t:t+""}function h5(e,t){if(Cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var 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=Ta().domain(Jo(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}},Cm=function(t){return t.changedTouches&&!!t.changedTouches.length},Mn=function(e){function t(r){var n;return s5(this,t),n=u5(this,t,[r]),pt(n,"handleDrag",function(a){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(a):n.state.isSlideMoving&&n.handleSlideDrag(a)}),pt(n,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&n.handleDrag(a.changedTouches[0])}),pt(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()}),pt(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),pt(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),pt(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),pt(n,"handleSlideDragStart",function(a){var i=Cm(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=Ve(i[n],s,n);return de(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var a=this.state,i=a.slideMoveStartX,o=a.startX,s=a.endX,l=this.props,u=l.x,c=l.width,f=l.travellerWidth,d=l.startIndex,h=l.endIndex,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=Cm(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),A=x.startIndex,p=x.endIndex,g=function(){var P=v.length-1;return o==="startX"&&(s>l?A%y===0:p%y===0)||s<l&&p===P||o==="endX"&&(s>l?p%y===0:A%y===0)||s>l&&p===P};this.setState(pt(pt({},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(pt({},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=xc(xc({},fe(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(oo,Zo({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:o+s/2},m),this.getTextOfTick(a)),O.createElement(oo,Zo({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),A=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(),A&&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):de(n)?i=n(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(n,a){var i=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,c=n.startIndex,f=n.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return xc({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);pt(Mn,"displayName","Brush"),pt(Mn,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var v5=Rl;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=Dd,b5=dr,x5=m5,w5=ot,O5=Qi;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=je(A5);var Kt=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r},Mm=Ch;function P5(e,t,r){t=="__proto__"&&Mm?Mm(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var _5=P5,E5=_5,$5=_h,j5=dr;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=je(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=Rl;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=dr,U5=ot,z5=Qi;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 km=je(q5);var G5=["x","y"];function kn(e){"@babel/helpers - typeof";return kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(e)}function Oc(){return Oc=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},Oc.apply(this,arguments)}function Nm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function oi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nm(Object(r),!0).forEach(function(n){V5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V5(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 kn(t)=="symbol"?t:t+""}function Y5(e,t){if(kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function 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,G5),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 oi(oi(oi(oi(oi({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:d,name:t.name,radius:t.radius})}function Dm(e){return O.createElement(gc,Oc({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"?ut(!1,"minPointSize callback function received a value with type of ".concat(kn(n),". Currently only numbers or null/undefined are supported.")):ut()),r)}},e6=["value","background"],Im;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 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 es(){return es=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},es.apply(this,arguments)}function Rm(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 Ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rm(Object(r),!0).forEach(function(n){xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rm(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 Lm(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,Fm(n.key),n)}}function a6(e,t,r){return t&&Lm(e.prototype,t),r&&Lm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i6(e,t,r){return t=ts(t),o6(e,Bm()?Reflect.construct(t,r||[],ts(e).constructor):t.apply(e,r))}function o6(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 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 Bm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bm=function(){return!!e})()}function ts(e){return ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ts(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&&Sc(e,t)}function Sc(e,t){return Sc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Sc(e,t)}function xr(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=u6(e,"string");return Nn(t)=="symbol"?t:t+""}function u6(e,t){if(Nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dn=function(e){function t(){var r;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)),xr(r,"state",{isAnimationFinished:!1}),xr(r,"id",Er("recharts-bar-")),xr(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),xr(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=fe(this.props,!1);return n&&n.map(function(f,d){var h=d===l,m=h?u:o,y=Ue(Ue(Ue({},c),f),{},{isActive:h,option:m,index:d,dataKey:s,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return O.createElement(be,es({className:"recharts-bar-rectangle"},fa(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(Dm,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(Mt,{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=Be(w.x,v.x),A=Be(w.y,v.y),p=Be(w.width,v.width),g=Be(w.height,v.height);return Ue(Ue({},v),{},{x:x(m),y:A(m),width:p(m),height:g(m)})}if(o==="horizontal"){var S=Be(0,v.height),P=S(m);return Ue(Ue({},v),{},{y:v.y+v.height-P,height:P})}var E=Be(0,v.width),R=E(m);return Ue(Ue({},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||!Rr(o,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var n=this,a=this.props,i=a.data,o=a.dataKey,s=a.activeIndex,l=fe(this.props.background,!1);return i.map(function(u,c){u.value;var f=u.background,d=t6(u,e6);if(!f)return null;var h=Ue(Ue(Ue(Ue(Ue({},d),{},{fill:"#eee"},f),l),fa(n.props,u,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return O.createElement(Dm,es({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=st(c,_n);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:Ve(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,A=w||x,p=ce(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:A?"url(#clipPath-".concat(p,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(A,p),(!h||v)&&zt.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);Im=Dn,xr(Dn,"displayName","Bar"),xr(Dn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!hr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),xr(Dn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,a=e.bandSize,i=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,d=e.offset,h=DI(n,r);if(!h)return null;var m=t.layout,y=r.type.defaultProps,v=y!==void 0?Ue(Ue({},y),r.props):r.props,b=v.dataKey,w=v.children,x=v.minPointSize,A=m==="horizontal"?o:i,p=u?A.scale.domain():null,g=zI({numericAxis:A}),S=st(w,Vl),P=f.map(function(E,R){var k,M,B,F,W,_;u?k=II(u[c+R],p):(k=Ve(E,b),Array.isArray(k)||(k=[g,k]));var D=Q5(x,Im.defaultProps.minPointSize)(k[1],R);if(m==="horizontal"){var U,$=[o.scale(k[0]),o.scale(k[1])],C=$[0],I=$[1];M=sy({axis:i,ticks:s,bandSize:a,offset:h.offset,entry:E,index:R}),B=(U=I??C)!==null&&U!==void 0?U:void 0,F=h.size;var L=C-I;if(W=Number.isNaN(L)?0:L,_={x:M,y:o.y,width:F,height:o.height},Math.abs(D)>0&&Math.abs(W)<Math.abs(D)){var z=Et(W||D)*(Math.abs(D)-Math.abs(W));B-=z,W+=z}}else{var G=[i.scale(k[0]),i.scale(k[1])],Q=G[0],J=G[1];if(M=Q,B=sy({axis:o,ticks:l,bandSize:a,offset:h.offset,entry:E,index:R}),F=J-Q,W=h.size,_={x:i.x,y:B,width:i.width,height:W},Math.abs(D)>0&&Math.abs(F)<Math.abs(D)){var ee=Et(F||D)*(Math.abs(D)-Math.abs(F));F+=ee}}return Ue(Ue(Ue({},E),{},{x:M,y:B,width:F,height:W,value:u?k:k[1],payload:E,background:_},S&&S[R]&&S[R].props),{},{tooltipPayload:[dy(r,E)],tooltipPosition:{x:M+F/2,y:B+W/2}})});return Ue({data:P,layout:m},d)});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 c6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zm(n.key),n)}}function f6(e,t,r){return t&&Wm(e.prototype,t),r&&Wm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}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){rs(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 rs(e,t,r){return t=zm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zm(e){var t=d6(e,"string");return si(t)=="symbol"?t:t+""}function d6(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 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=!!dt(u,Dn);return c.reduce(function(h,m){var y=r[m],v=y.orientation,b=y.domain,w=y.padding,x=w===void 0?{}:w,A=y.mirror,p=y.reversed,g="".concat(v).concat(A?"Mirror":""),S,P,E,R,k;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var M=b[1]-b[0],B=1/0,F=y.categoricalDomain.sort(vO);if(F.forEach(function(G,Q){Q>0&&(B=Math.min((G||0)-(F[Q-1]||0),B))}),Number.isFinite(B)){var W=B/M,_=y.layout==="vertical"?n.height:n.width;if(y.padding==="gap"&&(S=W*_/2),y.padding==="no-gap"){var D=$r(t.barCategoryGap,W*_),U=W*_/2;S=U-D-(U-D)/_*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),C=$.scale,I=$.realScaleType;C.domain(b).range(P),NI(C);var L=UI(C,kt(kt({},y),{},{realScaleType:I}));a==="xAxis"?(k=v==="top"&&!A||v==="bottom"&&A,E=n.left,R=f[g]-k*y.height):a==="yAxis"&&(k=v==="left"&&!A||v==="right"&&A,E=f[g]-k*y.width,R=n.top);var z=kt(kt(kt({},y),L),{},{realScaleType:I,x:E,y:R,scale:C,width:a==="xAxis"?n.width:y.width,height:a==="yAxis"?n.height:y.height});return z.bandSize=No(z,L),!y.hide&&a==="xAxis"?f[g]+=(k?-1:1)*z.height:y.hide||(f[g]+=(k?-1:1)*z.width),kt(kt({},h),{},rs({},m,z))},{})},Km=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return{x:Math.min(n,i),y:Math.min(a,o),width:Math.abs(i-n),height:Math.abs(o-a)}},p6=function(t){var r=t.x1,n=t.y1,a=t.x2,i=t.y2;return Km({x:r,y:n},{x:a,y:i})},qm=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)}}])}();rs(qm,"EPS",1e-4);var Ac=function(t){var r=Object.keys(t).reduce(function(n,a){return kt(kt({},n),{},rs({},a,qm.create(t[a])))},{});return kt(kt({},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 km(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=dr,g6=pa,b6=Yi;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=Sm;function S6(e){var t=O6(e),r=t%1;return t===t?r?t-r:t:0}var A6=S6,T6=vh,P6=dr,_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=je(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 ns(e){"@babel/helpers - typeof";return ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ns(e)}var Tc=O.createContext(void 0),Pc=O.createContext(void 0),Gm=O.createContext(void 0),Vm=O.createContext({}),Hm=O.createContext(void 0),Ym=O.createContext(0),Xm=O.createContext(0),Jm=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(Tc.Provider,{value:n},O.createElement(Pc.Provider,{value:a},O.createElement(Vm.Provider,{value:i},O.createElement(Gm.Provider,{value:c},O.createElement(Hm.Provider,{value:o},O.createElement(Ym.Provider,{value:u},O.createElement(Xm.Provider,{value:l},s)))))))},R6=function(){return O.useContext(Hm)};function Zm(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var Qm=function(t){var r=O.useContext(Tc);r==null&&(process.env.NODE_ENV!=="production"?ut(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):ut());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?ut(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(ns(t),"]. ").concat(Zm(r))):ut()),n},L6=function(){var t=O.useContext(Tc);return fr(t)},B6=function(){var t=O.useContext(Pc),r=D6(t,function(n){return km(n.domain,Number.isFinite)});return r||fr(t)},eg=function(t){var r=O.useContext(Pc);r==null&&(process.env.NODE_ENV!=="production"?ut(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):ut());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?ut(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(ns(t),"]. ").concat(Zm(r))):ut()),n},F6=function(){var t=O.useContext(Gm);return t},W6=function(){return O.useContext(Vm)},_c=function(){return O.useContext(Xm)},Ec=function(){return O.useContext(Ym)};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 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,ag(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=as(t),G6(e,tg()?Reflect.construct(t,r||[],as(e).constructor):t.apply(e,r))}function G6(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 V6(e)}function V6(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 as(e){return as=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},as(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&&$c(e,t)}function $c(e,t){return $c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},$c(e,t)}function rg(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 ng(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rg(Object(r),!0).forEach(function(n){jc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jc(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=Y6(e,"string");return In(t)=="symbol"?t:t+""}function Y6(e,t){if(In(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(In(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function 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 ig(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 ig(e,t)}}function ig(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 Cc(){return Cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cc.apply(this,arguments)}var tF=function(t,r){var n;return O.isValidElement(t)?n=O.cloneElement(t,r):de(t)?n=t(r):n=O.createElement("line",Cc({},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(Kt(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(Kt(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 A=u.segment,p=A.map(function(g){return t.apply(g,{position:o})});return Kt(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=Qm(a),f=eg(i),d=F6();if(!u||!d)return null;Jt(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=Ac({x:c.scale,y:f.scale}),m=qe(t),y=qe(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],A=x.x,p=x.y,g=w[1],S=g.x,P=g.y,E=Kt(e,"hidden")?"url(#".concat(u,")"):void 0,R=ng(ng({clipPath:E},fe(e,!0)),{},{x1:A,y1:p,x2:S,y2:P});return O.createElement(be,{className:ve("recharts-reference-line",s)},tF(o,R),tt.renderCallByParent(e,p6({x1:A,y1:p,x2:S,y2:P})))}var Mc=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);jc(Mc,"displayName","ReferenceLine"),jc(Mc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function kc(){return kc=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},kc.apply(this,arguments)}function Rn(e){"@babel/helpers - typeof";return Rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(e)}function og(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 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){os(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 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,ug(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=is(t),lF(e,lg()?Reflect.construct(t,r||[],is(e).constructor):t.apply(e,r))}function lF(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 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 lg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lg=function(){return!!e})()}function is(e){return is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},is(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&&Nc(e,t)}function Nc(e,t){return Nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Nc(e,t)}function os(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=fF(e,"string");return Rn(t)=="symbol"?t:t+""}function fF(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 dF=function(t){var r=t.x,n=t.y,a=t.xAxis,i=t.yAxis,o=Ac({x:a.scale,y:i.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Kt(t,"discard")&&!o.isInRange(s)?null:s},ss=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=qe(a),c=qe(i);if(Jt(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=Kt(this.props,"hidden")?"url(#".concat(l,")"):void 0,w=sg(sg({clipPath:b},fe(this.props,!0)),{},{cx:d,cy:h});return O.createElement(be,{className:ve("recharts-reference-dot",v)},t.renderDot(y,w),tt.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])}(O.Component);os(ss,"displayName","ReferenceDot"),os(ss,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),os(ss,"renderDot",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):de(e)?r=e(t):r=O.createElement(Go,kc({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Dc(){return Dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dc.apply(this,arguments)}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 cg(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 fg(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){us(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 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,hg(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=ls(t),mF(e,dg()?Reflect.construct(t,r||[],ls(e).constructor):t.apply(e,r))}function mF(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 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 dg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dg=function(){return!!e})()}function ls(e){return ls=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ls(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&&Ic(e,t)}function Ic(e,t){return Ic=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Ic(e,t)}function us(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=xF(e,"string");return Ln(t)=="symbol"?t:t+""}function xF(e,t){if(Ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var 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=Ac({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 Kt(i,"discard")&&(!d.isInRange(h)||!d.isInRange(m))?null:Km(h,m)},cs=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;Jt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=qe(a),d=qe(i),h=qe(o),m=qe(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=Kt(this.props,"hidden")?"url(#".concat(c,")"):void 0;return O.createElement(be,{className:ve("recharts-reference-area",l)},t.renderRect(y,fg(fg({clipPath:b},fe(this.props,!0)),v)),tt.renderCallByParent(this.props,v))}}])}(O.Component);us(cs,"displayName","ReferenceArea"),us(cs,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),us(cs,"renderRect",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):de(e)?r=e(t):r=O.createElement(vc,Dc({},t,{className:"recharts-reference-area-rect"})),r});function pg(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 fs(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 pg(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:pg(n,u)};var y=l,v,b=function(){return v===void 0&&(v=r(m,y)),v},w=m.coordinate,x=l===0||fs(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 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 vg(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?vg(Object(r),!0).forEach(function(n){PF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vg(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 li(t)=="symbol"?t:t+""}function EF(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)}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=rt(rt({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else i[d]=h=rt(rt({},h),{},{tickCoord:h.coordinate});var b=fs(e,h.tickCoord,y,s,l);b&&(l=h.tickCoord-e*(y()/2+a),i[d]=rt(rt({},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=rt(rt({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate});var h=fs(e,c.tickCoord,function(){return f},l,u);h&&(u=c.tickCoord-e*(f/2+a),o[s-1]=rt(rt({},c),{},{isShow:!0}))}for(var m=i?s-1:s,y=function(w){var x=o[w],A,p=function(){return A===void 0&&(A=r(x,w)),A};if(w===0){var g=e*(x.coordinate-e*p()/2-l);o[w]=x=rt(rt({},x),{},{tickCoord:g<0?x.coordinate-g*e:x.coordinate})}else o[w]=x=rt(rt({},x),{},{tickCoord:x.coordinate});var S=fs(e,x.tickCoord,p,l,u);S&&(l=x.tickCoord+e*(p()/2+a),o[w]=rt(rt({},x),{},{isShow:!0}))},v=0;v<m;v++)y(v);return o}function Rc(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)||hr.isSsr)return AF(a,typeof l=="number"&&X(l)?l:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",m=c&&h==="width"?xa(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=function(x,A){var p=de(u)?u(x.value,A):x.value;return h==="width"?OF(xa(p,{fontSize:t,letterSpacing:r}),m,f):xa(p,{fontSize:t,letterSpacing:r})[h]},v=a.length>=2?Et(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 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 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 Ye(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){Fc(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 Lc(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 mg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bg(n.key),n)}}function IF(e,t,r){return t&&mg(e.prototype,t),r&&mg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RF(e,t,r){return t=ds(t),LF(e,gg()?Reflect.construct(t,r||[],ds(e).constructor):t.apply(e,r))}function LF(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 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 gg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gg=function(){return!!e})()}function ds(e){return ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ds(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&&Bc(e,t)}function Bc(e,t){return Bc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Bc(e,t)}function Fc(e,t,r){return t=bg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bg(e){var t=WF(e,"string");return Bn(t)=="symbol"?t:t+""}function WF(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Wn=function(e){function t(r){var n;return 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=Lc(n,CF),s=this.props,l=s.viewBox,u=Lc(s,MF);return!on(i,l)||!on(o,u)||!on(a,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var a=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,u=a.orientation,c=a.tickSize,f=a.mirror,d=a.tickMargin,h,m,y,v,b,w,x=f?-1:1,A=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*A,w=y-x*d,b=p;break;case"left":y=v=n.coordinate,m=i+ +!f*s,h=m-x*A,b=h-x*d,w=p;break;case"right":y=v=n.coordinate,m=i+ +f*s,h=m+x*A,b=h+x*d,w=p;break;default:h=m=n.coordinate,v=o+ +f*l,y=v+x*A,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=Ye(Ye(Ye({},fe(this.props,!1)),fe(c,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!u||l==="bottom"&&u);f=Ye(Ye({},f),{},{x1:a,y1:i+d*s,x2:a+o,y2:i+d*s})}else{var h=+(l==="left"&&!u||l==="right"&&u);f=Ye(Ye({},f),{},{x1:a+h*o,y1:i,x2:a+h*o,y2:i+s})}return O.createElement("line",Fn({},f,{className:ve("recharts-cartesian-axis-line",gt(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=Rc(Ye(Ye({},this.props),{},{ticks:n}),a,i),m=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),v=fe(this.props,!1),b=fe(c,!1),w=Ye(Ye({},v),{},{fill:"none"},fe(l,!1)),x=h.map(function(A,p){var g=o.getTickLineCoord(A),S=g.line,P=g.tick,E=Ye(Ye(Ye(Ye({textAnchor:m,verticalAnchor:y},v),{},{stroke:"none",fill:u},b),P),{},{index:p,payload:A,visibleTicksCount:h.length,tickFormatter:f});return O.createElement(be,Fn({className:"recharts-cartesian-axis-tick",key:"tick-".concat(A.value,"-").concat(A.coordinate,"-").concat(A.tickCoord)},fa(o.props,A,p)),l&&O.createElement("line",Fn({},w,S,{className:ve("recharts-cartesian-axis-tick-line",gt(l,"className"))})),c&&t.renderTickItem(c,E,"".concat(de(f)?f(A.value,p):A.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=Lc(f,kF),m=d;return de(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),tt.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,Ye(Ye({},a),{},{className:s})):de(n)?o=n(Ye(Ye({},a),{},{className:s})):o=O.createElement(oo,Fn({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])}(O.Component);Fc(Wn,"displayName","CartesianAxis"),Fc(Wn,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var UF=["x1","y1","x2","y2","key"],zF=["offset"];function Kr(e){"@babel/helpers - typeof";return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kr(e)}function xg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xg(Object(r),!0).forEach(function(n){KF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function 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=GF(e,"string");return Kr(t)=="symbol"?t:t+""}function GF(e,t){if(Kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qr(){return qr=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},qr.apply(this,arguments)}function wg(e,t){if(e==null)return{};var r=VF(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 VF(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 Og(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(de(e))r=e(t);else{var n=t.x1,a=t.y1,i=t.x2,o=t.y2,s=t.key,l=wg(t,UF),u=fe(l,!1);u.offset;var c=wg(u,zF);r=O.createElement("line",qr({},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=nt(nt({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return Og(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=nt(nt({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return Og(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 iy(Rc(nt(nt(nt({},Wn.defaultProps),n),{},{ticks:or(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.left,o.left+o.width,r)},e4=function(t,r){var n=t.yAxis,a=t.width,i=t.height,o=t.offset;return iy(Rc(nt(nt(nt({},Wn.defaultProps),n),{},{ticks:or(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.top,o.top+o.height,r)},Un={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Sg(e){var t,r,n,a,i,o,s=_c(),l=Ec(),u=W6(),c=nt(nt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Un.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Un.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Un.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:Un.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:Un.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Un.verticalFill,x:X(e.x)?e.x:u.left,y:X(e.y)?e.y:u.top,width:X(e.width)?e.width:u.width,height:X(e.height)?e.height:u.height}),f=c.x,d=c.y,h=c.width,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 A=c.verticalCoordinatesGenerator||QF,p=c.horizontalCoordinatesGenerator||e4,g=c.horizontalPoints,S=c.verticalPoints;if((!g||!g.length)&&de(p)){var P=v&&v.length,E=p({yAxis:x?nt(nt({},x),{},{ticks:P?v:x.ticks}):void 0,width:s,height:l,offset:u},P?!0:y);Jt(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Kr(E),"]")),Array.isArray(E)&&(g=E)}if((!S||!S.length)&&de(A)){var R=b&&b.length,k=A({xAxis:w?nt(nt({},w),{},{ticks:R?b:w.ticks}):void 0,width:s,height:l,offset:u},R?!0:y);Jt(Array.isArray(k),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Kr(k),"]")),Array.isArray(k)&&(S=k)}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,qr({},c,{offset:u,horizontalPoints:g,xAxis:w,yAxis:x})),O.createElement(XF,qr({},c,{offset:u,verticalPoints:S,xAxis:w,yAxis:x})),O.createElement(JF,qr({},c,{horizontalPoints:g})),O.createElement(ZF,qr({},c,{verticalPoints:S})))}Sg.displayName="CartesianGrid";var t4=["type","layout","connectNulls","ref"],r4=["key"];function zn(e){"@babel/helpers - typeof";return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn(e)}function Ag(e,t){if(e==null)return{};var r=n4(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 n4(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 ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ui.apply(this,arguments)}function Tg(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 vt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tg(Object(r),!0).forEach(function(n){Nt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kn(e){return s4(e)||o4(e)||i4(e)||a4()}function a4(){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 i4(e,t){if(e){if(typeof e=="string")return Wc(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 Wc(e,t)}}function o4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function s4(e){if(Array.isArray(e))return Wc(e)}function Wc(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 l4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pg(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,Eg(n.key),n)}}function u4(e,t,r){return t&&Pg(e.prototype,t),r&&Pg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c4(e,t,r){return t=hs(t),f4(e,_g()?Reflect.construct(t,r||[],hs(e).constructor):t.apply(e,r))}function f4(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 d4(e)}function d4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_g=function(){return!!e})()}function hs(e){return hs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hs(e)}function h4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uc(e,t)}function Uc(e,t){return Uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Uc(e,t)}function Nt(e,t,r){return t=Eg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Eg(e){var t=p4(e,"string");return zn(t)=="symbol"?t:t+""}function p4(e,t){if(zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ci=function(e){function t(){var r;l4(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=c4(this,t,[].concat(a)),Nt(r,"state",{isAnimationFinished:!0,totalLength:0}),Nt(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),Nt(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(Kn(l.slice(0,m)),[f-y]);break}var v=h.length%2===0?[0,d]:[d];return[].concat(Kn(t.repeat(l,c)),Kn(h),v).map(function(b){return"".concat(b,"px")}).join(", ")}),Nt(r,"id",Er("recharts-line-")),Nt(r,"pathRef",function(o){r.mainCurve=o}),Nt(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Nt(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return h4(t,e),u4(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=st(c,_n);if(!f)return null;var d=function(y,v){return{x:y.x,y:y.y,value:y.value,errorVal:Ve(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=fe(this.props,!1),d=fe(l,!0),h=u.map(function(y,v){var b=vt(vt(vt({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,ui({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=Ag(s,t4),d=vt(vt(vt({},fe(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(i,")"):null,points:n},o),{},{type:l,layout:u,connectNulls:c});return O.createElement(Ur,ui({},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(Mt,{begin:c,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(A){var p=A.t;if(w){var g=w.length/s.length,S=s.map(function(M,B){var F=Math.floor(B*g);if(w[F]){var W=w[F],_=Be(W.x,M.x),D=Be(W.y,M.y);return vt(vt({},M),{},{x:_(p),y:D(p)})}if(m){var U=Be(y*2,M.x),$=Be(v/2,M.y);return vt(vt({},M),{},{x:U(p),y:$(p)})}return vt(vt({},M),{},{x:M.x,y:M.y})});return i.renderCurveStatically(S,n,a)}var P=Be(0,x),E=P(p),R;if(l){var k="".concat(l).split(/[,\s]+/gim).map(function(M){return parseFloat(M)});R=i.getStrokeDasharray(E,x,k)}else R=i.generateSimpleStrokeDasharray(x,E);return i.renderCurveStatically(s,n,a,{strokeDasharray:R})})}},{key:"renderCurve",value:function(n,a){var i=this.props,o=i.points,s=i.isAnimationActive,l=this.state,u=l.prevPoints,c=l.totalLength;return s&&o&&o.length&&(!u&&c>0||!Rr(u,o))?this.renderCurveWithAnimation(n,a):this.renderCurveStatically(o,n,a)}},{key:"render",value:function(){var n,a=this.props,i=a.hide,o=a.dot,s=a.points,l=a.className,u=a.xAxis,c=a.yAxis,f=a.top,d=a.left,h=a.width,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),A=u&&u.allowDataOverflow,p=c&&c.allowDataOverflow,g=A||p,S=ce(v)?this.id:v,P=(n=fe(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},E=P.r,R=E===void 0?3:E,k=P.strokeWidth,M=k===void 0?2:k,B=Jf(o)?o:{},F=B.clipDot,W=F===void 0?!0:F,_=R*2+M;return O.createElement(be,{className:x},A||p?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:A?d:d-h/2,y:p?f:f-m/2,width:A?h:h*2,height:p?m:m*2})),!W&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:d-_/2,y:f-_/2,width:h+_,height:m+_}))):null,!w&&this.renderCurve(g,S),this.renderErrorBar(g,S),(w||o)&&this.renderDots(g,W,S),(!y||b)&&zt.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(Kn(n),[0]):n,o=[],s=0;s<a;++s)o=[].concat(Kn(o),Kn(i));return o}},{key:"renderDotItem",value:function(n,a){var i;if(O.isValidElement(n))i=O.cloneElement(n,a);else if(de(n))i=n(a);else{var o=a.key,s=Ag(a,r4),l=ve("recharts-line-dot",typeof n!="boolean"?n.className:"");i=O.createElement(Go,ui({key:o},s,{className:l}))}return i}}])}(O.PureComponent);Nt(ci,"displayName","Line"),Nt(ci,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!hr.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),Nt(ci,"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=Ve(d,o);return c==="horizontal"?{x:$n({axis:r,ticks:a,bandSize:s,entry:d,index:h}),y:ce(m)?null:n.scale(m),value:m,payload:d}:{x:ce(m)?null:r.scale(m),y:$n({axis:n,ticks:i,bandSize:s,entry:d,index:h}),value:m,payload:d}});return vt({points:f,layout:c},u)});var v4=["layout","type","stroke","connectNulls","isRange","ref"],y4=["key"],$g;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 jg(e,t){if(e==null)return{};var r=m4(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 m4(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 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 Cg(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 wr(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){qt(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 g4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mg(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 b4(e,t,r){return t&&Mg(e.prototype,t),r&&Mg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function x4(e,t,r){return t=ps(t),w4(e,kg()?Reflect.construct(t,r||[],ps(e).constructor):t.apply(e,r))}function w4(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 O4(e)}function O4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kg=function(){return!!e})()}function ps(e){return ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ps(e)}function S4(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 qt(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=A4(e,"string");return qn(t)=="symbol"?t:t+""}function A4(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Or=function(e){function t(){var r;g4(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=x4(this,t,[].concat(a)),qt(r,"state",{isAnimationFinished:!0}),qt(r,"id",Er("recharts-area-")),qt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),de(o)&&o()}),qt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),de(o)&&o()}),r}return S4(t,e),b4(t,[{key:"renderDots",value:function(n,a,i){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,u=l.dot,c=l.points,f=l.dataKey,d=fe(this.props,!1),h=fe(u,!0),m=c.map(function(v,b){var w=wr(wr(wr({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,Gr({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=mr(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(mr(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=mr(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(mr(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=jg(s,v4);return O.createElement(be,{clipPath:i?"url(#clipPath-".concat(o,")"):null},O.createElement(Ur,Gr({},fe(h,!0),{points:n,connectNulls:f,type:u,baseLine:a,layout:l,stroke:"none",className:"recharts-area-area"})),c!=="none"&&O.createElement(Ur,Gr({},fe(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:n})),c!=="none"&&d&&O.createElement(Ur,Gr({},fe(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(n,a){var i=this,o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,m=this.state,y=m.prevPoints,v=m.prevBaseLine;return O.createElement(Mt,{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,A=s.map(function(P,E){var R=Math.floor(E*x);if(y[R]){var k=y[R],M=Be(k.x,P.x),B=Be(k.y,P.y);return wr(wr({},P),{},{x:M(w),y:B(w)})}return P}),p;if(X(l)&&typeof l=="number"){var g=Be(v,l);p=g(w)}else if(ce(l)||an(l)){var S=Be(v,0);p=S(w)}else p=l.map(function(P,E){var R=Math.floor(E*x);if(v[R]){var k=v[R],M=Be(k.x,P.x),B=Be(k.y,P.y);return wr(wr({},P),{},{x:M(w),y:B(w)})}return P});return i.renderAreaStatically(A,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||!Rr(c,o)||!Rr(f,s))?this.renderAreaWithAnimation(n,a):this.renderAreaStatically(o,s,n,a)}},{key:"render",value:function(){var n,a=this.props,i=a.hide,o=a.dot,s=a.points,l=a.className,u=a.top,c=a.left,f=a.xAxis,d=a.yAxis,h=a.width,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),A=f&&f.allowDataOverflow,p=d&&d.allowDataOverflow,g=A||p,S=ce(v)?this.id:v,P=(n=fe(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},E=P.r,R=E===void 0?3:E,k=P.strokeWidth,M=k===void 0?2:k,B=Jf(o)?o:{},F=B.clipDot,W=F===void 0?!0:F,_=R*2+M;return O.createElement(be,{className:x},A||p?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:A?c:c-h/2,y:p?u:u-m/2,width:A?h:h*2,height:p?m:m*2})),!W&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:c-_/2,y:u-_/2,width:h+_,height:m+_}))):null,w?null:this.renderArea(g,S),(o||w)&&this.renderDots(g,W,S),(!y||b)&&zt.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);$g=Or,qt(Or,"displayName","Area"),qt(Or,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!hr.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),qt(Or,"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]}),qt(Or,"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=$g.getBaseValue(t,r,n,a),v=h==="horizontal",b=!1,w=f.map(function(A,p){var g;m?g=u[c+p]:(g=Ve(A,l),Array.isArray(g)?b=!0:g=[y,g]);var S=g[1]==null||m&&Ve(A,l)==null;return v?{x:$n({axis:n,ticks:i,bandSize:s,entry:A,index:p}),y:S?null:a.scale(g[1]),value:g,payload:A}:{x:S?null:n.scale(g[1]),y:$n({axis:a,ticks:o,bandSize:s,entry:A,index:p}),value:g,payload:A}}),x;return m||b?x=w.map(function(A){var p=Array.isArray(A.value)?A.value[0]:null;return v?{x:A.x,y:p!=null&&A.y!=null?a.scale(p):null}:{x:p!=null?n.scale(p):null,y:A.y}}):x=v?a.scale(y):n.scale(y),wr({points:w,baseLine:x,layout:h,isRange:b},d)}),qt(Or,"renderDotItem",function(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(de(e))r=e(t);else{var n=ve("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,i=jg(t,y4);r=O.createElement(Go,Gr({},i,{key:a,className:n}))}return r});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 T4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P4(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 _4(e,t,r){return t&&P4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function E4(e,t,r){return t=vs(t),$4(e,Dg()?Reflect.construct(t,r||[],vs(e).constructor):t.apply(e,r))}function $4(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 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 Dg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dg=function(){return!!e})()}function vs(e){return vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vs(e)}function C4(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 Ig(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=M4(e,"string");return Gn(t)=="symbol"?t:t+""}function M4(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(t==="string"?String:Number)(e)}var ys=function(e){function t(){return T4(this,t),E4(this,t,arguments)}return C4(t,e),_4(t,[{key:"render",value:function(){return null}}])}(mt.Component);Ig(ys,"displayName","ZAxis"),Ig(ys,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var k4=["option","isActive"];function fi(){return fi=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},fi.apply(this,arguments)}function N4(e,t){if(e==null)return{};var r=D4(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 D4(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 I4(e){var t=e.option,r=e.isActive,n=N4(e,k4);return typeof t=="string"?mt.createElement(gc,fi({option:mt.createElement(Ki,fi({type:t},n)),isActive:r,shapeType:"symbols"},n)):mt.createElement(gc,fi({option:t,isActive:r,shapeType:"symbols"},n))}function Vn(e){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(e)}function 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 Lg(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 Tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lg(Object(r),!0).forEach(function(n){Sr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function R4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bg(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,Wg(n.key),n)}}function L4(e,t,r){return t&&Bg(e.prototype,t),r&&Bg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function B4(e,t,r){return t=ms(t),F4(e,Fg()?Reflect.construct(t,r||[],ms(e).constructor):t.apply(e,r))}function F4(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 W4(e)}function W4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fg=function(){return!!e})()}function ms(e){return ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ms(e)}function U4(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 Sr(e,t,r){return t=Wg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wg(e){var t=z4(e,"string");return Vn(t)=="symbol"?t:t+""}function z4(e,t){if(Vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gs=function(e){function t(){var r;R4(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=B4(this,t,[].concat(a)),Sr(r,"state",{isAnimationFinished:!1}),Sr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),Sr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),Sr(r,"id",Er("recharts-scatter-")),r}return U4(t,e),L4(t,[{key:"renderSymbolsStatically",value:function(n){var a=this,i=this.props,o=i.shape,s=i.activeShape,l=i.activeIndex,u=fe(this.props,!1);return n.map(function(c,f){var d=l===f,h=d?s:o,m=Tt(Tt({},u),c);return O.createElement(be,di({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)},fa(a.props,c,f),{role:"img"}),O.createElement(I4,di({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(Mt,{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=Be(b.cx,y.cx),x=Be(b.cy,y.cy),A=Be(b.size,y.size);return Tt(Tt({},y),{},{cx:w(h),cy:x(h),size:A(h)})}var p=Be(0,y.size);return Tt(Tt({},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||!Rr(o,a))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(a)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var a=this.props,i=a.points,o=a.xAxis,s=a.yAxis,l=a.children,u=st(l,_n);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:Ve(v,b)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,a=n.points,i=n.line,o=n.lineType,s=n.lineJointType,l=fe(this.props,!1),u=fe(i,!1),c,f;if(o==="joint")c=a.map(function(x){return{x:x.cx,y:x.cy}});else if(o==="fitting"){var d=pO(a),h=d.xmin,m=d.xmax,y=d.a,v=d.b,b=function(A){return y*A+v};c=[{x:h,y:b(h)},{x:m,y:b(m)}]}var w=Tt(Tt(Tt({},l),{},{fill:"none",stroke:l&&l.fill},u),{},{points:c});return O.isValidElement(i)?f=O.cloneElement(i,w):de(i)?f=i(w):f=O.createElement(Ur,di({},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,A=w||x,p=ce(m)?this.id:m;return O.createElement(be,{className:b,clipPath:A?"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)&&zt.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);Sr(gs,"displayName","Scatter"),Sr(gs,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!hr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),Sr(gs,"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=st(a.props.children,Vl),f=ce(t.dataKey)?a.props.dataKey:t.dataKey,d=ce(r.dataKey)?a.props.dataKey:r.dataKey,h=n&&n.dataKey,m=n?n.range:ys.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,A){var p=Ve(x,f),g=Ve(x,d),S=!ce(h)&&Ve(x,h)||"-",P=[{name:ce(t.dataKey)?a.props.name:t.name||t.dataKey,unit:t.unit||"",value:p,payload:x,dataKey:f,type:u},{name:ce(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 E=$n({axis:t,ticks:o,bandSize:v,entry:x,index:A,dataKey:f}),R=$n({axis:r,ticks:s,bandSize:b,entry:x,index:A,dataKey:d}),k=S!=="-"?n.scale(S):y,M=Math.sqrt(Math.max(k,0)/Math.PI);return Tt(Tt({},x),{},{cx:E,cy:R,x:E-M,y:R-M,xAxis:t,yAxis:r,zAxis:n,width:2*M,height:2*M,size:k,node:{x:p,y:g,z:S},tooltipPayload:P,tooltipPosition:{x:E,y:R},payload:x},c&&c[A]&&c[A].props)});return Tt({points:w},l)});function Hn(e){"@babel/helpers - typeof";return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hn(e)}function K4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Kg(n.key),n)}}function G4(e,t,r){return t&&q4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function V4(e,t,r){return t=bs(t),H4(e,Ug()?Reflect.construct(t,r||[],bs(e).constructor):t.apply(e,r))}function H4(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 Y4(e)}function Y4(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 bs(e){return bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bs(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&&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 zg(e,t,r){return t=Kg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kg(e){var t=J4(e,"string");return Hn(t)=="symbol"?t:t+""}function J4(e,t){if(Hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Vc(){return Vc=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},Vc.apply(this,arguments)}function Z4(e){var t=e.xAxisId,r=_c(),n=Ec(),a=Qm(t);return a==null?null:mt.createElement(Wn,Vc({},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 or(o,!0)}}))}var xs=function(e){function t(){return K4(this,t),V4(this,t,arguments)}return X4(t,e),G4(t,[{key:"render",value:function(){return mt.createElement(Z4,this.props)}}])}(mt.Component);zg(xs,"displayName","XAxis"),zg(xs,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Yn(e){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(e)}function Q4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Vg(n.key),n)}}function tW(e,t,r){return t&&eW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rW(e,t,r){return t=ws(t),nW(e,qg()?Reflect.construct(t,r||[],ws(e).constructor):t.apply(e,r))}function nW(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 aW(e)}function aW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qg=function(){return!!e})()}function ws(e){return ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ws(e)}function iW(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 Gg(e,t,r){return t=Vg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vg(e){var t=oW(e,"string");return Yn(t)=="symbol"?t:t+""}function oW(e,t){if(Yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Yc(){return Yc=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},Yc.apply(this,arguments)}var sW=function(t){var r=t.yAxisId,n=_c(),a=Ec(),i=eg(r);return i==null?null:mt.createElement(Wn,Yc({},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 or(s,!0)}}))},Os=function(e){function t(){return Q4(this,t),rW(this,t,arguments)}return iW(t,e),tW(t,[{key:"render",value:function(){return mt.createElement(sW,this.props)}}])}(mt.Component);Gg(Os,"displayName","YAxis"),Gg(Os,"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 Hg(e){return fW(e)||cW(e)||uW(e)||lW()}function lW(){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 uW(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 cW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fW(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 Jc=function(t,r,n,a,i){var o=st(t,Mc),s=st(t,ss),l=[].concat(Hg(o),Hg(s)),u=st(t,cs),c="".concat(a,"Id"),f=a[0],d=r;if(l.length&&(d=l.reduce(function(y,v){if(v.props[c]===n&&Kt(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&&Kt(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},Yg={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 A=v.length,p;for(x=0;x<A;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})(Yg);var dW=Yg.exports;const hW=je(dW);var Zc=new hW,Qc="recharts.syncMouseEvents";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 pW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vW(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 yW(e,t,r){return t&&vW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ef(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=mW(e,"string");return hi(t)=="symbol"?t:t+""}function mW(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 String(e)}var gW=function(){function e(){pW(this,e),ef(this,"activeIndex",0),ef(this,"coordinateList",[]),ef(this,"layout","horizontal")}return yW(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 bW(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 xW(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 Jg(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,i=e.endAngle,o=Ze(t,r,n,a),s=Ze(t,r,n,i);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:a,endAngle:i}}function wW(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=Ze(s,l,u,f),h=Ze(s,l,c,f);n=d.x,a=d.y,i=h.x,o=h.y}else return Jg(t);return[{x:n,y:a},{x:i,y:o}]}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 Zg(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 Ss(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){OW(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 OW(e,t,r){return t=SW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SW(e){var t=AW(e,"string");return pi(t)=="symbol"?t:t+""}function AW(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(t==="string"?String:Number)(e)}function TW(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=Ur;if(d==="ScatterChart")m=o,y=X3;else if(d==="BarChart")m=xW(f,o,l,c),y=vc;else if(f==="radial"){var v=Jg(o),b=v.cx,w=v.cy,x=v.radius,A=v.startAngle,p=v.endAngle;m={cx:b,cy:w,startAngle:A,endAngle:p,innerRadius:x,outerRadius:x},y=Ay}else m={points:wW(f,o,l)},y=Ur;var g=Ss(Ss(Ss(Ss({stroke:"#ccc",pointerEvents:"none"},l),m),fe(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 PW=["item"],_W=["children","className","width","height","style","compact","title","desc"];function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}function Jn(){return Jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jn.apply(this,arguments)}function Qg(e,t){return jW(e)||$W(e,t)||rb(e,t)||EW()}function EW(){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 $W(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 jW(e){if(Array.isArray(e))return e}function eb(e,t){if(e==null)return{};var r=CW(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 CW(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 MW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kW(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,ab(n.key),n)}}function NW(e,t,r){return t&&kW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function DW(e,t,r){return t=As(t),IW(e,tb()?Reflect.construct(t,r||[],As(e).constructor):t.apply(e,r))}function IW(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 RW(e)}function RW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tb=function(){return!!e})()}function As(e){return As=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},As(e)}function LW(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&&tf(e,t)}function tf(e,t){return tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},tf(e,t)}function Zn(e){return WW(e)||FW(e)||rb(e)||BW()}function BW(){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 rb(e,t){if(e){if(typeof e=="string")return rf(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 rf(e,t)}}function FW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WW(e){if(Array.isArray(e))return rf(e)}function rf(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 nb(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?nb(Object(r),!0).forEach(function(n){ae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ae(e,t,r){return t=ab(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ab(e){var t=UW(e,"string");return Xn(t)=="symbol"?t:t+""}function UW(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 zW={xAxis:["bottom","top"],yAxis:["left","right"]},KW={width:"100%",height:"100%"},ib={x:0,y:0};function Ts(e){return e}var qW=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},GW=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),Ze(a.cx,a.cy,s,o)),{},{angle:o,radius:s})}var l=i.coordinate,u=a.angle;return K(K(K({},a),Ze(a.cx,a.cy,l,u)),{},{angle:u,radius:l})}return ib},Ps=function(t,r){var n=r.graphicalItems,a=r.dataStartIndex,i=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(Zn(s),Zn(u)):s},[]);return o.length>0?o:t&&t.length&&X(a)&&X(i)?t.slice(a,i+1):[]};function ob(e){return e==="number"?[0,"auto"]:void 0}var nf=function(t,r,n,a){var i=t.graphicalItems,o=t.tooltipAxis,s=Ps(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=Mi(h,o.dataKey,a)}else d=f&&f[n]||s[n];return d?[].concat(Zn(l),[dy(u,d)]):l},[])},sb=function(t,r,n,a){var i=a||{x:t.chartX,y:t.chartY},o=qW(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=nf(t,r,c,f),h=GW(n,s,c,i);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},VW=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=ay(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,A=b.allowDataOverflow,p=b.allowDuplicatedCategory,g=b.scale,S=b.ticks,P=b.includeHidden,E=b[o];if(m[E])return m;var R=Ps(t.data,{graphicalItems:a.filter(function(L){var z,G=o in L.props?L.props[o]:(z=L.type.defaultProps)===null||z===void 0?void 0:z[o];return G===E}),dataStartIndex:l,dataEndIndex:u}),k=R.length,M,B,F;bW(b.domain,A,w)&&(M=Gu(b.domain,null,A),h&&(w==="number"||g!=="auto")&&(F=Fa(R,x,"category")));var W=ob(w);if(!M||M.length===0){var _,D=(_=b.domain)!==null&&_!==void 0?_:W;if(x){if(M=Fa(R,x,w),w==="category"&&h){var U=hO(M);p&&U?(B=M,M=Jo(0,k)):p||(M=fy(D,M,y).reduce(function(L,z){return L.indexOf(z)>=0?L:[].concat(Zn(L),[z])},[]))}else if(w==="category")p?M=M.filter(function(L){return L!==""&&!ce(L)}):M=fy(D,M,y).reduce(function(L,z){return L.indexOf(z)>=0||z===""||ce(z)?L:[].concat(Zn(L),[z])},[]);else if(w==="number"){var $=MI(R,a.filter(function(L){var z,G,Q=o in L.props?L.props[o]:(z=L.type.defaultProps)===null||z===void 0?void 0:z[o],J="hide"in L.props?L.props.hide:(G=L.type.defaultProps)===null||G===void 0?void 0:G.hide;return Q===E&&(P||!J)}),x,i,c);$&&(M=$)}h&&(w==="number"||g!=="auto")&&(F=Fa(R,x,"category"))}else h?M=Jo(0,k):s&&s[E]&&s[E].hasStack&&w==="number"?M=d==="expand"?[0,1]:ly(s[E].stackGroups,l,u):M=ny(R,a.filter(function(L){var z=o in L.props?L.props[o]:L.type.defaultProps[o],G="hide"in L.props?L.props.hide:L.type.defaultProps.hide;return z===E&&(P||!G)}),w,c,!0);if(w==="number")M=Jc(f,M,E,i,S),D&&(M=Gu(D,M,A));else if(w==="category"&&D){var C=D,I=M.every(function(L){return C.indexOf(L)>=0});I&&(M=C)}}return K(K({},m),{},ae({},E,K(K({},b),{},{axisType:i,domain:M,categoricalDomain:F,duplicateDomain:B,originalDomain:(v=b.domain)!==null&&v!==void 0?v:W,isCategorical:h,layout:c})))},{})},HW=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=Ps(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),h=d.length,m=ay(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],A=ob("number");if(!v[x]){y++;var p;return m?p=Jo(0,h):s&&s[x]&&s[x].hasStack?(p=ly(s[x].stackGroups,l,u),p=Jc(f,p,x,i)):(p=Gu(A,ny(d,n.filter(function(g){var S,P,E=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 E===x&&!R}),"number",c),a.defaultProps.allowDataOverflow),p=Jc(f,p,x,i)),K(K({},v),{},ae({},x,K(K({axisType:i},a.defaultProps),{},{hide:!0,orientation:gt(zW,"".concat(i,".").concat(y%2),null),domain:p,originalDomain:A,isCategorical:m,layout:c})))}return v},{})},YW=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=st(c,i),h={};return d&&d.length?h=VW(t,{axes:d,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(h=HW(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),h},XW=function(t){var r=fr(t),n=or(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Bl(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:No(r,n)}},lb=function(t){var r=t.children,n=t.defaultShowTooltip,a=dt(r,Mn),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},JW=function(t){return!t||!t.length?!1:t.some(function(r){var n=Xt(r&&r.type);return n&&n.indexOf("Bar")>=0})},ub=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"}},ZW=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=dt(f,Mn),m=dt(f,hn),y=Object.keys(l).reduce(function(p,g){var S=l[g],P=S.orientation;return!S.mirror&&!S.hide?K(K({},p),{},ae({},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),{},ae({},P,gt(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||Mn.defaultProps.height),m&&r&&(b=jI(b,a,n,r));var x=u-b.left-b.right,A=c-b.top-b.bottom;return K(K({brushBottom:w},b),{},{width:Math.max(x,0),height:Math.max(A,0)})},QW=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,A=w.stackGroups,p=w.offset,g=w.updateId,S=w.dataStartIndex,P=w.dataEndIndex,E=b.barSize,R=b.layout,k=b.barGap,M=b.barCategoryGap,B=b.maxBarSize,F=ub(R),W=F.numericAxisName,_=F.cateAxisName,D=JW(x),U=[];return x.forEach(function($,C){var I=Ps(b.data,{graphicalItems:[$],dataStartIndex:S,dataEndIndex:P}),L=$.type.defaultProps!==void 0?K(K({},$.type.defaultProps),$.props):$.props,z=L.dataKey,G=L.maxBarSize,Q=L["".concat(W,"Id")],J=L["".concat(_,"Id")],ee={},ne=l.reduce(function(sr,yt){var wi,Oi,ra=w["".concat(yt.axisType,"Map")],Si=L["".concat(yt.axisType,"Id")];ra&&ra[Si]||yt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?ut(!1,"Specifying a(n) ".concat(yt.axisType,"Id requires a corresponding ").concat(yt.axisType,"Id on the targeted graphical component ").concat((wi=$==null||(Oi=$.type)===null||Oi===void 0?void 0:Oi.displayName)!==null&&wi!==void 0?wi:"")):ut());var Ai=ra[Si];return K(K({},sr),{},ae(ae({},yt.axisType,Ai),"".concat(yt.axisType,"Ticks"),or(Ai)))},ee),q=ne[_],Y=ne["".concat(_,"Ticks")],Z=A&&A[Q]&&A[Q].hasStack&&KI($,A[Q].stackGroups),N=Xt($.type).indexOf("Bar")>=0,ie=No(q,Y),V=[],se=D&&EI({barSize:E,stackGroups:A,totalSize:QW(ne,_)});if(N){var pe,Le,et=ce(G)?B:G,It=(pe=(Le=No(q,Y,!0))!==null&&Le!==void 0?Le:et)!==null&&pe!==void 0?pe:0;V=$I({barGap:k,barCategoryGap:M,bandSize:It!==ie?It:ie,sizeList:se[J],maxBarSize:et}),It!==ie&&(V=V.map(function(sr){return K(K({},sr),{},{position:K(K({},sr.position),{},{offset:sr.position.offset-It/2})})}))}var ta=$&&$.type&&$.type.getComposedData;ta&&U.push({props:K(K({},ta(K(K({},ne),{},{displayedData:I,props:b,dataKey:z,item:$,bandSize:ie,barPosition:V,offset:p,stackedData:Z,layout:R,dataStartIndex:S,dataEndIndex:P}))),{},ae(ae(ae({key:$.key||"item-".concat(C)},W,ne[W]),_,ne[_]),"animationId",g)),childIndex:PO($,b.children),item:$})}),U},h=function(b,w){var x=b.props,A=b.dataStartIndex,p=b.dataEndIndex,g=b.updateId;if(!Xf({props:x}))return null;var S=x.children,P=x.layout,E=x.stackOffset,R=x.data,k=x.reverseStackOrder,M=ub(P),B=M.numericAxisName,F=M.cateAxisName,W=st(S,n),_=WI(R,W,"".concat(B,"Id"),"".concat(F,"Id"),E,k),D=l.reduce(function(L,z){var G="".concat(z.axisType,"Map");return K(K({},L),{},ae({},G,YW(x,K(K({},z),{},{graphicalItems:W,stackGroups:z.axisType===B&&_,dataStartIndex:A,dataEndIndex:p}))))},{}),U=ZW(K(K({},D),{},{props:x,graphicalItems:W}),w==null?void 0:w.legendBBox);Object.keys(D).forEach(function(L){D[L]=c(x,D[L],U,L.replace("Map",""),r)});var $=D["".concat(F,"Map")],C=XW($),I=d(x,K(K({},D),{},{dataStartIndex:A,dataEndIndex:p,updateId:g,graphicalItems:W,stackGroups:_,offset:U}));return K(K({formattedGraphicalItems:I,graphicalItems:W,offset:U,stackGroups:_},C),D)},m=function(v){function b(w){var x,A,p;return MW(this,b),p=DW(this,b,[w]),ae(p,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ae(p,"accessibilityManager",new gW),ae(p,"handleLegendBBoxUpdate",function(g){if(g){var S=p.state,P=S.dataStartIndex,E=S.dataEndIndex,R=S.updateId;p.setState(K({legendBBox:g},h({props:p.props,dataStartIndex:P,dataEndIndex:E,updateId:R},K(K({},p.state),{},{legendBBox:g}))))}}),ae(p,"handleReceiveSyncEvent",function(g,S,P){if(p.props.syncId===g){if(P===p.eventEmitterSymbol&&typeof p.props.syncMethod!="function")return;p.applySyncEvent(S)}}),ae(p,"handleBrushChange",function(g){var S=g.startIndex,P=g.endIndex;if(S!==p.state.dataStartIndex||P!==p.state.dataEndIndex){var E=p.state.updateId;p.setState(function(){return K({dataStartIndex:S,dataEndIndex:P},h({props:p.props,dataStartIndex:S,dataEndIndex:P,updateId:E},p.state))}),p.triggerSyncEvent({dataStartIndex:S,dataEndIndex:P})}}),ae(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 E=p.props.onMouseEnter;de(E)&&E(P,g)}}),ae(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 E=p.props.onMouseMove;de(E)&&E(P,g)}),ae(p,"handleItemMouseEnter",function(g){p.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),ae(p,"handleItemMouseLeave",function(){p.setState(function(){return{isTooltipActive:!1}})}),ae(p,"handleMouseMove",function(g){g.persist(),p.throttleTriggeredAfterMouseMove(g)}),ae(p,"handleMouseLeave",function(g){p.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};p.setState(S),p.triggerSyncEvent(S);var P=p.props.onMouseLeave;de(P)&&P(S,g)}),ae(p,"handleOuterEvent",function(g){var S=TO(g),P=gt(p.props,"".concat(S));if(S&&de(P)){var E,R;/.*touch.*/i.test(S)?R=p.getMouseInfo(g.changedTouches[0]):R=p.getMouseInfo(g),P((E=R)!==null&&E!==void 0?E:{},g)}}),ae(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 E=p.props.onClick;de(E)&&E(P,g)}}),ae(p,"handleMouseDown",function(g){var S=p.props.onMouseDown;if(de(S)){var P=p.getMouseInfo(g);S(P,g)}}),ae(p,"handleMouseUp",function(g){var S=p.props.onMouseUp;if(de(S)){var P=p.getMouseInfo(g);S(P,g)}}),ae(p,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&p.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),ae(p,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&p.handleMouseDown(g.changedTouches[0])}),ae(p,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&p.handleMouseUp(g.changedTouches[0])}),ae(p,"handleDoubleClick",function(g){var S=p.props.onDoubleClick;if(de(S)){var P=p.getMouseInfo(g);S(P,g)}}),ae(p,"handleContextMenu",function(g){var S=p.props.onContextMenu;if(de(S)){var P=p.getMouseInfo(g);S(P,g)}}),ae(p,"triggerSyncEvent",function(g){p.props.syncId!==void 0&&Zc.emit(Qc,p.props.syncId,g,p.eventEmitterSymbol)}),ae(p,"applySyncEvent",function(g){var S=p.props,P=S.layout,E=S.syncMethod,R=p.state.updateId,k=g.dataStartIndex,M=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)p.setState(K({dataStartIndex:k,dataEndIndex:M},h({props:p.props,dataStartIndex:k,dataEndIndex:M,updateId:R},p.state)));else if(g.activeTooltipIndex!==void 0){var B=g.chartX,F=g.chartY,W=g.activeTooltipIndex,_=p.state,D=_.offset,U=_.tooltipTicks;if(!D)return;if(typeof E=="function")W=E(U,g);else if(E==="value"){W=-1;for(var $=0;$<U.length;$++)if(U[$].value===g.activeLabel){W=$;break}}var C=K(K({},D),{},{x:D.left,y:D.top}),I=Math.min(B,C.x+C.width),L=Math.min(F,C.y+C.height),z=U[W]&&U[W].value,G=nf(p.state,p.props.data,W),Q=U[W]?{x:P==="horizontal"?U[W].coordinate:I,y:P==="horizontal"?L:U[W].coordinate}:ib;p.setState(K(K({},g),{},{activeLabel:z,activeCoordinate:Q,activePayload:G,activeTooltipIndex:W}))}else p.setState(g)}),ae(p,"renderCursor",function(g){var S,P=p.state,E=P.isTooltipActive,R=P.activeCoordinate,k=P.activePayload,M=P.offset,B=P.activeTooltipIndex,F=P.tooltipAxisBandSize,W=p.getTooltipEventType(),_=(S=g.props.active)!==null&&S!==void 0?S:E,D=p.props.layout,U=g.key||"_recharts-cursor";return O.createElement(TW,{key:U,activeCoordinate:R,activePayload:k,activeTooltipIndex:B,chartName:r,element:g,isActive:_,layout:D,offset:M,tooltipAxisBandSize:F,tooltipEventType:W})}),ae(p,"renderPolarAxis",function(g,S,P){var E=gt(g,"type.axisType"),R=gt(p.state,"".concat(E,"Map")),k=g.type.defaultProps,M=k!==void 0?K(K({},k),g.props):g.props,B=R&&R[M["".concat(E,"Id")]];return O.cloneElement(g,K(K({},B),{},{className:ve(E,B.className),key:g.key||"".concat(S,"-").concat(P),ticks:or(B,!0)}))}),ae(p,"renderPolarGrid",function(g){var S=g.props,P=S.radialLines,E=S.polarAngles,R=S.polarRadius,k=p.state,M=k.radiusAxisMap,B=k.angleAxisMap,F=fr(M),W=fr(B),_=W.cx,D=W.cy,U=W.innerRadius,$=W.outerRadius;return O.cloneElement(g,{polarAngles:Array.isArray(E)?E:or(W,!0).map(function(C){return C.coordinate}),polarRadius:Array.isArray(R)?R:or(F,!0).map(function(C){return C.coordinate}),cx:_,cy:D,innerRadius:U,outerRadius:$,key:g.key||"polar-grid",radialLines:P})}),ae(p,"renderLegend",function(){var g=p.state.formattedGraphicalItems,S=p.props,P=S.children,E=S.width,R=S.height,k=p.props.margin||{},M=E-(k.left||0)-(k.right||0),B=Qv({children:P,formattedGraphicalItems:g,legendWidth:M,legendContent:u});if(!B)return null;var F=B.item,W=eb(B,PW);return O.cloneElement(F,K(K({},W),{},{chartWidth:E,chartHeight:R,margin:k,onBBoxUpdate:p.handleLegendBBoxUpdate}))}),ae(p,"renderTooltip",function(){var g,S=p.props,P=S.children,E=S.accessibilityLayer,R=dt(P,Bt);if(!R)return null;var k=p.state,M=k.isTooltipActive,B=k.activeCoordinate,F=k.activePayload,W=k.activeLabel,_=k.offset,D=(g=R.props.active)!==null&&g!==void 0?g:M;return O.cloneElement(R,{viewBox:K(K({},_),{},{x:_.left,y:_.top}),active:D,label:W,payload:D?F:[],coordinate:B,accessibilityLayer:E})}),ae(p,"renderBrush",function(g){var S=p.props,P=S.margin,E=S.data,R=p.state,k=R.offset,M=R.dataStartIndex,B=R.dataEndIndex,F=R.updateId;return O.cloneElement(g,{key:g.key||"_recharts-brush",onChange:ko(p.handleBrushChange,g.props.onChange),data:E,x:X(g.props.x)?g.props.x:k.left,y:X(g.props.y)?g.props.y:k.top+k.height+k.brushBottom-(P.bottom||0),width:X(g.props.width)?g.props.width:k.width,startIndex:M,endIndex:B,updateId:"brush-".concat(F)})}),ae(p,"renderReferenceElement",function(g,S,P){if(!g)return null;var E=p,R=E.clipPathId,k=p.state,M=k.xAxisMap,B=k.yAxisMap,F=k.offset,W=g.type.defaultProps||{},_=g.props,D=_.xAxisId,U=D===void 0?W.xAxisId:D,$=_.yAxisId,C=$===void 0?W.yAxisId:$;return O.cloneElement(g,{key:g.key||"".concat(S,"-").concat(P),xAxis:M[U],yAxis:B[C],viewBox:{x:F.left,y:F.top,width:F.width,height:F.height},clipPathId:R})}),ae(p,"renderActivePoints",function(g){var S=g.item,P=g.activePoint,E=g.basePoint,R=g.childIndex,k=g.isRange,M=[],B=S.props.key,F=S.item.type.defaultProps!==void 0?K(K({},S.item.type.defaultProps),S.item.props):S.item.props,W=F.activeDot,_=F.dataKey,D=K(K({index:R,dataKey:_,cx:P.x,cy:P.y,r:4,fill:Ku(S.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},fe(W,!1)),ki(W));return M.push(b.renderActiveDot(W,D,"".concat(B,"-activePoint-").concat(R))),E?M.push(b.renderActiveDot(W,K(K({},D),{},{cx:E.x,cy:E.y}),"".concat(B,"-basePoint-").concat(R))):k&&M.push(null),M}),ae(p,"renderGraphicChild",function(g,S,P){var E=p.filterFormatItem(g,S,P);if(!E)return null;var R=p.getTooltipEventType(),k=p.state,M=k.isTooltipActive,B=k.tooltipAxis,F=k.activeTooltipIndex,W=k.activeLabel,_=p.props.children,D=dt(_,Bt),U=E.props,$=U.points,C=U.isRange,I=U.baseLine,L=E.item.type.defaultProps!==void 0?K(K({},E.item.type.defaultProps),E.item.props):E.item.props,z=L.activeDot,G=L.hide,Q=L.activeBar,J=L.activeShape,ee=!!(!G&&M&&D&&(z||Q||J)),ne={};R!=="axis"&&D&&D.props.trigger==="click"?ne={onClick:ko(p.handleItemMouseEnter,g.props.onClick)}:R!=="axis"&&(ne={onMouseLeave:ko(p.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:ko(p.handleItemMouseEnter,g.props.onMouseEnter)});var q=O.cloneElement(g,K(K({},E.props),ne));function Y(yt){return typeof B.dataKey=="function"?B.dataKey(yt.payload):null}if(ee)if(F>=0){var Z,N;if(B.dataKey&&!B.allowDuplicatedCategory){var ie=typeof B.dataKey=="function"?Y:"payload.".concat(B.dataKey.toString());Z=Mi($,ie,W),N=C&&I&&Mi(I,ie,W)}else Z=$==null?void 0:$[F],N=C&&I&&I[F];if(J||Q){var V=g.props.activeIndex!==void 0?g.props.activeIndex:F;return[O.cloneElement(g,K(K(K({},E.props),ne),{},{activeIndex:V})),null,null]}if(!ce(Z))return[q].concat(Zn(p.renderActivePoints({item:E,activePoint:Z,basePoint:N,childIndex:F,isRange:C})))}else{var se,pe=(se=p.getItemByXY(p.state.activeCoordinate))!==null&&se!==void 0?se:{graphicalItem:q},Le=pe.graphicalItem,et=Le.item,It=et===void 0?g:et,ta=Le.childIndex,sr=K(K(K({},E.props),ne),{},{activeIndex:ta});return[O.cloneElement(It,sr),null,null]}return C?[q,null,null]:[q,null]}),ae(p,"renderCustomized",function(g,S,P){return O.cloneElement(g,K(K({key:"recharts-customized-".concat(P)},p.props),p.state))}),ae(p,"renderMap",{CartesianGrid:{handler:Ts,once:!0},ReferenceArea:{handler:p.renderReferenceElement},ReferenceLine:{handler:Ts},ReferenceDot:{handler:p.renderReferenceElement},XAxis:{handler:Ts},YAxis:{handler:Ts},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:Er("recharts"),"-clip"),p.throttleTriggeredAfterMouseMove=Xh(p.triggeredAfterMouseMove,(A=w.throttleDelay)!==null&&A!==void 0?A:1e3/60),p.state={},p}return LW(b,v),NW(b,[{key:"componentDidMount",value:function(){var x,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,A=x.children,p=x.data,g=x.height,S=x.layout,P=dt(A,Bt);if(P){var E=P.props.defaultIndex;if(!(typeof E!="number"||E<0||E>this.state.tooltipTicks.length-1)){var R=this.state.tooltipTicks[E]&&this.state.tooltipTicks[E].value,k=nf(this.state,p,E,R),M=this.state.tooltipTicks[E].coordinate,B=(this.state.offset.top+g)/2,F=S==="horizontal",W=F?{x:M,y:B}:{y:M,x:B},_=this.state.formattedGraphicalItems.find(function(U){var $=U.item;return $.type.name==="Scatter"});_&&(W=K(K({},W),_.props.points[E].tooltipPosition),k=_.props.points[E].tooltipPayload);var D={activeTooltipIndex:E,isTooltipActive:!0,activeLabel:R,activePayload:k,activeCoordinate:W};this.setState(D),this.renderCursor(P),this.accessibilityManager.setIndex(E)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var 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){al([dt(x.children,Bt)],[dt(this.props.children,Bt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=dt(this.props.children,Bt);if(x&&typeof x.props.shared=="boolean"){var A=x.props.shared?"axis":"item";return s.indexOf(A)>=0?A:i}return i}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var A=this.container,p=A.getBoundingClientRect(),g=ek(p),S={chartX:Math.round(x.pageX-g.left),chartY:Math.round(x.pageY-g.top)},P=p.width/A.offsetWidth||1,E=this.inRange(S.chartX,S.chartY,P);if(!E)return null;var R=this.state,k=R.xAxisMap,M=R.yAxisMap,B=this.getTooltipEventType(),F=sb(this.state,this.props.data,this.props.layout,E);if(B!=="axis"&&k&&M){var W=fr(k).scale,_=fr(M).scale,D=W&&W.invert?W.invert(S.chartX):null,U=_&&_.invert?_.invert(S.chartY):null;return K(K({},S),{},{xValue:D,yValue:U},F)}return F?K(K({},S),F):null}},{key:"inRange",value:function(x,A){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,S=x/p,P=A/p;if(g==="horizontal"||g==="vertical"){var E=this.state.offset,R=S>=E.left&&S<=E.left+E.width&&P>=E.top&&P<=E.top+E.height;return R?{x:S,y:P}:null}var k=this.state,M=k.angleAxisMap,B=k.radiusAxisMap;if(M&&B){var F=fr(M);return vy({x:S,y:P},F)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,A=this.getTooltipEventType(),p=dt(x,Bt),g={};p&&A==="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=ki(this.props,this.handleOuterEvent);return K(K({},S),g)}},{key:"addListener",value:function(){Zc.on(Qc,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Zc.removeListener(Qc,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,A,p){for(var g=this.state.formattedGraphicalItems,S=0,P=g.length;S<P;S++){var E=g[S];if(E.item===x||E.props.key===x.key||A===Xt(E.item.type)&&p===E.childIndex)return E}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,A=this.state.offset,p=A.left,g=A.top,S=A.height,P=A.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(A,p){var g=Qg(p,2),S=g[0],P=g[1];return K(K({},A),{},ae({},S,P.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(A,p){var g=Qg(p,2),S=g[0],P=g[1];return K(K({},A),{},ae({},S,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var A;return(A=this.state.xAxisMap)===null||A===void 0||(A=A[x])===null||A===void 0?void 0:A.scale}},{key:"getYScaleByAxisId",value:function(x){var A;return(A=this.state.yAxisMap)===null||A===void 0||(A=A[x])===null||A===void 0?void 0:A.scale}},{key:"getItemByXY",value:function(x){var A=this.state,p=A.formattedGraphicalItems,g=A.activeItem;if(p&&p.length)for(var S=0,P=p.length;S<P;S++){var E=p[S],R=E.props,k=E.item,M=k.type.defaultProps!==void 0?K(K({},k.type.defaultProps),k.props):k.props,B=Xt(k.type);if(B==="Bar"){var F=(R.data||[]).find(function(U){return F3(x,U)});if(F)return{graphicalItem:E,payload:F}}else if(B==="RadialBar"){var W=(R.data||[]).find(function(U){return vy(x,U)});if(W)return{graphicalItem:E,payload:W}}else if(Yo(E,g)||Xo(E,g)||ai(E,g)){var _=UB({graphicalItem:E,activeTooltipItem:g,itemData:M.data}),D=M.activeIndex===void 0?_:M.activeIndex;return{graphicalItem:K(K({},E),{},{childIndex:D}),payload:ai(E,g)?M.data[_]:E.props.data[_]}}}return null}},{key:"render",value:function(){var x=this;if(!Xf(this))return null;var A=this.props,p=A.children,g=A.className,S=A.width,P=A.height,E=A.style,R=A.compact,k=A.title,M=A.desc,B=eb(A,_W),F=fe(B,!1);if(R)return O.createElement(Jm,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement(ol,Jn({},F,{width:S,height:P,title:k,desc:M}),this.renderClipPath(),Qf(p,this.renderMap)));if(this.props.accessibilityLayer){var W,_;F.tabIndex=(W=this.props.tabIndex)!==null&&W!==void 0?W:0,F.role=(_=this.props.role)!==null&&_!==void 0?_:"application",F.onKeyDown=function(U){x.accessibilityManager.keyboardEvent(U)},F.onFocus=function(){x.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return O.createElement(Jm,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",Jn({className:ve("recharts-wrapper",g),style:K({position:"relative",cursor:"default",width:S,height:P},E)},D,{ref:function($){x.container=$}}),O.createElement(ol,Jn({},F,{width:S,height:P,title:k,desc:M,style:KW}),this.renderClipPath(),Qf(p,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(O.Component);ae(m,"displayName",r),ae(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)),ae(m,"getDerivedStateFromProps",function(v,b){var w=v.dataKey,x=v.data,A=v.children,p=v.width,g=v.height,S=v.layout,P=v.stackOffset,E=v.margin,R=b.dataStartIndex,k=b.dataEndIndex;if(b.updateId===void 0){var M=lb(v);return K(K(K({},M),{},{updateId:0},h(K(K({props:v},M),{},{updateId:0}),b)),{},{prevDataKey:w,prevData:x,prevWidth:p,prevHeight:g,prevLayout:S,prevStackOffset:P,prevMargin:E,prevChildren:A})}if(w!==b.prevDataKey||x!==b.prevData||p!==b.prevWidth||g!==b.prevHeight||S!==b.prevLayout||P!==b.prevStackOffset||!on(E,b.prevMargin)){var B=lb(v),F={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},W=K(K({},sb(b,x,S)),{},{updateId:b.updateId+1}),_=K(K(K({},B),F),W);return K(K(K({},_),h(K({props:v},_),b)),{},{prevDataKey:w,prevData:x,prevWidth:p,prevHeight:g,prevLayout:S,prevStackOffset:P,prevMargin:E,prevChildren:A})}if(!al(A,b.prevChildren)){var D,U,$,C,I=dt(A,Mn),L=I&&(D=(U=I.props)===null||U===void 0?void 0:U.startIndex)!==null&&D!==void 0?D:R,z=I&&($=(C=I.props)===null||C===void 0?void 0:C.endIndex)!==null&&$!==void 0?$:k,G=L!==R||z!==k,Q=!ce(x),J=Q&&!G?b.updateId:b.updateId+1;return K(K({updateId:J},h(K(K({props:v},b),{},{updateId:J,dataStartIndex:L,dataEndIndex:z}),b)),{},{prevChildren:A,dataStartIndex:L,dataEndIndex:z})}return null}),ae(m,"renderActiveDot",function(v,b,w){var x;return O.isValidElement(v)?x=O.cloneElement(v,b):de(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,Jn({},b,{ref:w}))});return y.displayName=m.displayName,y},tU=eU({chartName:"ComposedChart",GraphicalChild:[ci,Or,Dn,gs],axisComponents:[{axisType:"xAxis",AxisComp:xs},{axisType:"yAxis",AxisComp:Os},{axisType:"zAxis",AxisComp:ys}],formatAxisMap:h6});const Dt=({className:e,width:t,height:r,rounded:n=!1})=>T.jsx("div",{className:le("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}}),vi=({className:e})=>T.jsxs("div",{className:le("rounded-lg border border-gray-200 bg-white p-4",e),children:[T.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[T.jsx(Dt,{className:"h-4 w-16"}),T.jsx(Dt,{className:"h-4 w-4",rounded:!0})]}),T.jsxs("div",{className:"flex items-baseline gap-3",children:[T.jsx(Dt,{className:"h-8 w-20"}),T.jsx(Dt,{className:"h-6 w-12 rounded-md"})]})]}),cb=({className:e})=>T.jsx("div",{className:le("w-full",e),children:T.jsxs("div",{className:"relative bg-gray-50/30 p-6",children:[T.jsxs("div",{className:"relative h-[300px] mb-4",children:[T.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)=>T.jsx(Dt,{className:"h-3 w-8"},r))}),T.jsxs("div",{className:"ml-12 h-full relative overflow-hidden px-0 py-2",children:[[...Array(6)].map((t,r)=>T.jsx("div",{className:"absolute w-full border-t border-gray-100",style:{top:`${r*20}%`}},r)),T.jsx("div",{className:"absolute inset-0 flex justify-between items-stretch",children:[...Array(7)].map((t,r)=>T.jsx("div",{className:"w-0 h-full border-l border-gray-100"},r))}),T.jsx("div",{className:"absolute inset-0 flex items-end justify-between px-4 pb-4",children:[...Array(7)].map((t,r)=>T.jsx(Dt,{className:"w-8 bg-blue-100",height:Math.random()*180+40},r))})]}),T.jsx("div",{className:"ml-12 flex justify-between items-center mt-2",children:[...Array(7)].map((t,r)=>T.jsx(Dt,{className:"h-3 w-3"},r))})]}),T.jsxs("div",{className:"flex items-center justify-between px-0 py-1",children:[T.jsx(Dt,{className:"h-3 w-48"}),T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx(Dt,{className:"h-3 w-3",rounded:!0}),T.jsx(Dt,{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 T.jsxs("div",{className:le("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:[T.jsx("div",{className:le("font-medium mb-1",i?"text-gray-300":"text-gray-600"),children:new Date(r||"").toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}),T.jsx("div",{className:"space-y-1",children:a.map((s,l)=>T.jsxs("div",{className:"flex items-center justify-between gap-4",children:[T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:s.color}}),T.jsx("span",{className:le("text-sm",i?"text-gray-300":"text-gray-600"),children:s.name})]}),T.jsx("span",{className:le("font-medium",i?"text-white":"text-gray-900"),children:typeof s.value=="number"?s.value.toLocaleString():s.value})]},l))})]})},fb=({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"),T.jsx(cb,{className:t})):!n||n.length===0?(console.log("AnalyticsChart: No data provided",{data:n,config:e}),T.jsx("div",{className:le("w-full",t),children:T.jsxs("div",{className:"relative bg-gray-50/30 py-6",children:[T.jsxs("div",{className:"relative h-[300px] mb-4",children:[T.jsxs("div",{className:"absolute left-0 top-0 h-full flex flex-col justify-between items-end pr-2",children:[T.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-8"}),T.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-8"}),T.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-8"}),T.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-8"}),T.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-8"}),T.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-8"})]}),T.jsxs("div",{className:"ml-12 h-full relative overflow-hidden px-0 py-2 flex flex-col justify-between",children:[T.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),T.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),T.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),T.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),T.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),T.jsx("div",{className:"h-0 w-full border-t border-gray-100"}),T.jsxs("div",{className:"absolute inset-0 flex justify-between items-stretch",children:[T.jsx("div",{className:"w-0 h-full border-l border-gray-100"}),T.jsx("div",{className:"w-0 h-full border-l border-gray-100"}),T.jsx("div",{className:"w-0 h-full border-l border-gray-100"}),T.jsx("div",{className:"w-0 h-full border-l border-gray-100"}),T.jsx("div",{className:"w-0 h-full border-l border-gray-100"}),T.jsx("div",{className:"w-0 h-full border-l border-gray-100"}),T.jsx("div",{className:"w-0 h-full border-l border-gray-100"})]}),T.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-4",children:[T.jsx("div",{className:"bg-white border border-gray-300 rounded-[10px] w-12 h-12 flex items-center justify-center",children:T.jsx("svg",{className:"w-6 h-6 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.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"})})}),T.jsxs("div",{className:"text-center max-w-[352px]",children:[T.jsx("h3",{className:"font-semibold text-gray-900 text-base mb-1",children:"There is no data to display for this period"}),T.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."})]})]})]}),T.jsxs("div",{className:"ml-12 flex justify-between items-center mt-2",children:[T.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-3.5"}),T.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-3.5"}),T.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-3.5"}),T.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-3.5"}),T.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-3.5"}),T.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-3.5"}),T.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-3.5"})]})]}),T.jsxs("div",{className:"flex items-center justify-between px-0 py-1",children:[T.jsx("div",{className:"flex-1",children:T.jsx("div",{className:"bg-gray-100 h-[10.5px] rounded w-[253px]"})}),T.jsxs("div",{className:"flex items-center gap-2 w-[100px] justify-center",children:[T.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full"}),T.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 ==="),T.jsxs("div",{className:le("w-full",t),children:[T.jsx("div",{className:"relative bg-gray-50/30 p-6",children:T.jsx(VM,{width:"100%",height:u,children:T.jsxs(tU,{data:n,margin:{top:20,right:30,left:20,bottom:20},children:[T.jsx("defs",{children:m.map((y,v)=>T.jsxs("linearGradient",{id:`gradient-${y.dataKey}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[T.jsx("stop",{offset:"5%",stopColor:y.color,stopOpacity:.08}),T.jsx("stop",{offset:"95%",stopColor:y.color,stopOpacity:.01})]},`gradient-${v}`))}),T.jsx(Sg,{strokeDasharray:"2 2",className:"opacity-30",stroke:"#d1d5db",horizontal:!0,vertical:!0}),T.jsx(xs,{dataKey:"date",tickFormatter:f,axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6b7280"},tickMargin:10}),T.jsx(Os,{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&&T.jsx(Bt,{content:y=>T.jsx(rU,{...y,config:e}),cursor:{stroke:"#d1d5db",strokeWidth:1,strokeDasharray:"4 4"},allowEscapeViewBox:{x:!1,y:!1}}),m.map(y=>T.jsx(Or,{type:"monotone",dataKey:y.dataKey,stroke:"none",fill:`url(#gradient-${y.dataKey})`,fillOpacity:1,isAnimationActive:!1,name:""},`area-${y.dataKey}`)),m.map(y=>T.jsx(ci,{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))]})})}),T.jsxs("div",{className:"mt-4 flex items-center justify-between",children:[T.jsx("div",{children:s&&T.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"})]})}),T.jsx("div",{className:"flex items-center gap-4",children:T.jsx("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:m.map(y=>T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:y.color}}),T.jsx("span",{children:y.label})]},y.dataKey))})})]})]}))},db=({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],E=S[l.key];if(typeof P=="number"&&typeof E=="number")return l.order==="asc"?P-E:E-P;const R=(P==null?void 0:P.toString())||"",k=(E==null?void 0:E.toString())||"",M=R.localeCompare(k);return l.order==="asc"?M:-M}),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())||"-",A=p=>!o.enabled||!p.sortable?null:(l==null?void 0:l.key)===p.key?l.order==="asc"?T.jsx(pf,{className:"w-4 h-4"}):T.jsx(Pi,{className:"w-4 h-4"}):T.jsxs("div",{className:"flex flex-col",children:[T.jsx(pf,{className:"w-3 h-3 opacity-30"}),T.jsx(Pi,{className:"w-3 h-3 opacity-30 -mt-1"})]});return T.jsxs("div",{className:le("w-full",t),children:[T.jsxs("div",{className:"flex items-center justify-between mb-4",children:[T.jsx("h3",{className:"text-lg font-semibold",children:r}),s.enabled&&s.searchable&&T.jsxs("div",{className:"relative",children:[T.jsx(vf,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"}),T.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"})]})]}),T.jsx("div",{className:"overflow-x-auto border border-gray-200 rounded-lg",children:T.jsxs("table",{className:"w-full",children:[T.jsx("thead",{className:"bg-gray-50",children:T.jsx("tr",{children:a.map(p=>T.jsx("th",{className:le("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:T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("span",{children:p.title}),A(p)]})},p.key))})}),T.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:v.map((p,g)=>T.jsx("tr",{className:"hover:bg-gray-50 transition-colors",children:a.map(S=>T.jsx("td",{className:le("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&&T.jsxs("div",{className:"flex items-center justify-between mt-4",children:[T.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"]}),T.jsxs("div",{className:"flex items-center gap-2",children:[T.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:T.jsx("button",{onClick:()=>h(S),className:le("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)}),T.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&&T.jsx("div",{className:"text-center py-8 text-gray-500",children:c?"No results found for your search.":"No data available."})]})},hb=({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 T.jsxs("div",{className:le("w-full",t),children:[T.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:[T.jsx("div",{className:"text-left",children:"Name"}),T.jsx("div",{className:"text-right",children:"Runs"}),T.jsx("div",{className:"text-right",children:"Response Time"}),T.jsx("div",{className:"text-right",children:"Tokens"})]}),T.jsx("div",{className:"divide-y divide-gray-100",children:e.slice(0,r).map((o,s)=>T.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-4 hover:bg-gray-50 transition-colors duration-150",children:[T.jsxs("div",{className:"flex items-center space-x-3",children:[T.jsx("div",{className:"flex-shrink-0",children:T.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"})}),T.jsx("div",{className:"min-w-0 flex-1",children:T.jsx("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.name})})]}),T.jsx("div",{className:"text-right text-sm text-gray-900",children:i(o.runs)}),T.jsx("div",{className:"text-right text-sm text-gray-900",children:o.responseTime}),T.jsx("div",{className:"text-right text-sm text-gray-900",children:i(o.tokens)})]},o.id||s))}),r<e.length&&T.jsx("div",{className:"flex justify-center py-6",children:T.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},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 T.jsxs("div",{className:le("w-full",t),children:[T.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:[T.jsx("div",{className:"text-left",children:"Name"}),T.jsx("div",{className:"text-left",children:"Type"}),T.jsx("div",{className:"text-right",children:"Runs"}),T.jsx("div",{className:"text-right",children:"Response Time"})]}),T.jsx("div",{className:"divide-y divide-gray-100",children:e.slice(0,r).map((o,s)=>T.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-4 hover:bg-gray-50 transition-colors duration-150",children:[T.jsxs("div",{className:"flex items-center space-x-3",children:[T.jsx("div",{className:"flex-shrink-0",children:T.jsx("div",{className:"w-8 h-8 rounded-full bg-gray-100 flex items-center justify-center text-lg",children:aU(o.name)})}),T.jsx("div",{className:"min-w-0 flex-1",children:T.jsx("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.name})})]}),T.jsx("div",{className:"flex items-center",children:T.jsx("span",{className:le("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"})}),T.jsx("div",{className:"text-right text-sm text-gray-900",children:i(o.runs)}),T.jsx("div",{className:"text-right text-sm text-gray-900",children:o.responseTime})]},o.id||s))}),r<e.length&&T.jsx("div",{className:"flex justify-center py-6",children:T.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")?T.jsx("div",{className:"w-6 h-6 rounded-full bg-gray-900 flex items-center justify-center",children:T.jsx("span",{className:"text-white text-xs font-bold",children:"⚡"})}):t.includes("claude")||t.includes("anthropic")?T.jsx("div",{className:"w-6 h-6 rounded-full bg-orange-500 flex items-center justify-center",children:T.jsx("span",{className:"text-white text-xs font-bold",children:"A"})}):t.includes("gemini")||t.includes("google")?T.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-500 flex items-center justify-center",children:T.jsx("span",{className:"text-white text-xs font-bold",children:"G"})}):t.includes("llama")||t.includes("meta")?T.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-600 flex items-center justify-center",children:T.jsx("span",{className:"text-white text-xs font-bold",children:"M"})}):T.jsx("div",{className:"w-6 h-6 rounded-full bg-gray-500 flex items-center justify-center",children:T.jsx("span",{className:"text-white text-xs font-bold",children:"🤖"})})},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 T.jsxs("div",{className:le("w-full",t),children:[T.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:[T.jsx("div",{className:"text-left",children:"Model Name"}),T.jsx("div",{className:"text-right",children:"Runs"}),T.jsx("div",{className:"text-right",children:"Tokens"}),T.jsx("div",{className:"text-right",children:"Response Time"})]}),T.jsx("div",{className:"divide-y divide-gray-100",children:e.slice(0,r).map((o,s)=>T.jsxs("div",{className:"grid grid-cols-4 gap-4 px-4 py-4 hover:bg-gray-50 transition-colors duration-150",children:[T.jsxs("div",{className:"flex items-center space-x-3",children:[T.jsx("div",{className:"flex-shrink-0",children:iU(o.name)}),T.jsx("div",{className:"min-w-0 flex-1",children:T.jsx("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.name})})]}),T.jsx("div",{className:"text-right text-sm text-gray-900",children:i(o.runs)}),T.jsx("div",{className:"text-right text-sm text-gray-900",children:i(o.tokens)}),T.jsx("div",{className:"text-right text-sm text-gray-900",children:o.responseTime})]},o.id||s))}),r<e.length&&T.jsx("div",{className:"flex justify-center py-6",children:T.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"})})]})},yb=({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),T.jsx("div",{className:"flex-1",children:T.jsx(fb,{config:i,isLoading:r})})):null,u=()=>o?(n==null?void 0:n.metricType)==="agentRuns"?T.jsx("div",{className:"flex-1",children:T.jsx(hb,{data:o.data})}):(n==null?void 0:n.metricType)==="toolRuns"?T.jsx("div",{className:"flex-1",children:T.jsx(pb,{data:o.data})}):(n==null?void 0:n.metricType)==="modelRuns"?T.jsx("div",{className:"flex-1",children:T.jsx(vb,{data:o.data})}):T.jsx("div",{className:"flex-1",children:T.jsx(db,{config:o})}):null,c=()=>{switch(a){case"chart":return l();case"table":return u();case"mixed":return T.jsxs("div",{className:le("flex gap-6",s==="horizontal"?"flex-row":"flex-col"),children:[l(),u()]});default:return T.jsxs("div",{className:"p-4 text-center text-gray-500",children:["Unsupported view type: ",a]})}};return T.jsx("div",{className:le("w-full",t),children:c()})},_s=({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 T.jsxs("div",{ref:c,className:le("relative min-w-[200px]",a),children:[T.jsxs("button",{type:"button",className:le("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:[T.jsx("span",{className:le("truncate",!f&&"text-gray-500"),children:f?f.label:r}),T.jsx(Pi,{className:le("h-4 w-4 text-gray-400 transition-transform duration-200",o&&"rotate-180")})]}),o&&!i&&T.jsx("div",{className:"absolute top-full left-0 right-0 z-50 mt-1 min-w-[200px] w-full max-w-xs sm:max-w-sm md:max-w-md lg: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 T.jsx("button",{className:le("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:T.jsx("span",{className:"truncate",children:m.label})},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),E=g.filter(R=>R!=="all");E.length===P.length&&(g=["all",...E])}}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")},A=()=>{if(!a){if(d.length===0)return n;const P=e.find(E=>E.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(E=>E.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 T.jsxs("div",{className:le("relative",s),ref:m,children:[T.jsxs("button",{type:"button",onClick:()=>u(!l),className:le("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:[T.jsx("span",{className:le("truncate",d.length===0&&"text-gray-500"),children:A()}),T.jsx(Pi,{className:le("w-4 h-4 text-gray-400 transition-transform duration-150",l&&"transform rotate-180")})]}),l&&T.jsxs("div",{className:"absolute z-50 w-full mt-1 bg-white border border-gray-200 rounded-md shadow-lg max-h-80 overflow-hidden",children:[i&&T.jsx("div",{className:"p-3 border-b border-gray-100",children:T.jsxs("div",{className:"relative",children:[T.jsx(vf,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"}),T.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&&T.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-gray-100 bg-gray-50",children:[T.jsxs("button",{type:"button",onClick:w,className:"flex items-center text-sm font-medium text-gray-700 hover:text-gray-900",children:[T.jsx("div",{className:le("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?T.jsx("div",{className:"w-2 h-0.5 bg-white rounded"}):p.checked?T.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:T.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"]}),T.jsx("button",{type:"button",onClick:x,className:"text-sm font-medium text-blue-600 hover:text-blue-800",children:"Clear"})]}),T.jsx("div",{className:"max-h-60 overflow-y-auto",children:y.length===0?T.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),T.jsxs("div",{onClick:()=>v(p.value),className:le("flex items-center px-3 py-2 cursor-pointer hover:bg-gray-50","transition-colors duration-150",g&&"bg-blue-50"),children:[a?T.jsx("div",{className:le("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&&T.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:T.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"})})}):T.jsx("div",{className:le("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&&T.jsx("div",{className:"w-full h-full rounded-full bg-white scale-50"})}),p.avatar&&T.jsx("img",{src:p.avatar,alt:p.label,className:"w-6 h-6 rounded-full mr-3"}),p.icon&&!p.avatar&&T.jsx("div",{className:"w-6 h-6 mr-3 flex items-center justify-center text-sm",children:p.icon}),T.jsx("span",{className:le("flex-1 text-sm truncate",g?"font-medium text-gray-900":"text-gray-700"),children:p.label})]},p.value))})})]})]})},mb=({config:e,className:t})=>{var i;const{dropdown:r,buttons:n,toggle:a}=e;return T.jsxs("div",{className:le("flex items-center gap-3",t),children:[r&&T.jsx(T.Fragment,{children:r.multiSelect?T.jsx(oU,{options:r.options,value:r.defaultValue,placeholder:r.label,multiSelect:r.multiSelect,searchable:r.searchable,onChange:r.onChange,className:"w-40"}):T.jsx(_s,{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-40"})}),n&&n.length>0&&T.jsx("div",{className:"flex items-center border border-gray-200 rounded-lg overflow-hidden",children:n.map((o,s)=>T.jsxs("button",{onClick:()=>{var l;return(l=o.onClick)==null?void 0:l.call(o,o.value)},className:le("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&&T.jsx("span",{className:"mr-2",children:o.icon}),o.label]},o.value))}),a&&T.jsxs("div",{className:"flex items-center border border-gray-200 rounded-lg overflow-hidden",children:[T.jsxs("button",{onClick:()=>{var o;return(o=a.onToggle)==null?void 0:o.call(a,"chart")},className:le("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:[T.jsx(Yb,{className:"w-4 h-4"}),"Chart"]}),T.jsxs("button",{onClick:()=>{var o;return(o=a.onToggle)==null?void 0:o.call(a,"table")},className:le("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:[T.jsx(t0,{className:"w-4 h-4"}),"Table"]})]})]})},gb=({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,A]=O.useState("all"),p=$=>{var I,L,z,G,Q;const C=P();(I=C==null?void 0:C.controls)!=null&&I.toggle?(y($),(z=(L=C.controls.toggle).onToggle)==null||z.call(L,$)):(h($),(Q=(G=c==null?void 0:c.toggle)==null?void 0:G.onToggle)==null||Q.call(G,$))},g=$=>{var L,z;const C=$.metricType||$.title.toLowerCase();w(C);const I=l.find(G=>(G.metricType||G.title.toLowerCase())===C);(z=(L=I==null?void 0:I.controls)==null?void 0:L.dropdown)!=null&&z.multiSelect?A(["all"]):A("all"),a==null||a($)},S=$=>{var I,L,z;A($);const C=l.find(G=>(G.metricType||G.title.toLowerCase())===b);(z=(L=(I=C==null?void 0:C.controls)==null?void 0:I.dropdown)==null?void 0:L.onChange)==null||z.call(L,$)},P=()=>l.find($=>($.metricType||$.title.toLowerCase())===b)||null,E=$=>Array.isArray($)?$.filter(I=>I!=="all").length>0:$!=="all",R=$=>Array.isArray($)?$.filter(C=>C!=="all"):$!=="all"?[$]:[],k=$=>{var z,G,Q;const C=((G=(z=$.view)==null?void 0:z.chart)==null?void 0:G.data)||((Q=u.chart)==null?void 0:Q.data)||[];if(!E(x))return C;const I=$.metricType,L=R(x);if(L.length===1){const J=L[0];if(I==="agentRuns")return C.map(ee=>({...ee,agentRuns:ee[J]||0}));if(I==="toolRuns")return C.map(ee=>({...ee,toolRuns:ee[J.replace(/[-]/g,"")]||0}));if(I==="modelRuns")return C.map(ee=>({...ee,modelRuns:ee[J.replace(/[-\.]/g,"")]||0}))}return C},M=$=>{var z;if(!((z=$.view)!=null&&z.chart))return null;const C=k($),I=()=>{var Q,J,ee,ne,q,Y;if(!E(x)||!((Q=$.controls)!=null&&Q.dropdown))return((ee=(J=$.view)==null?void 0:J.chart)==null?void 0:ee.title)||$.title;const G=R(x);if(G.length===1){const Z=(ne=$.controls.dropdown.options)==null?void 0:ne.find(N=>N.value===G[0]);return Z?`${Z.label}`:((Y=(q=$.view)==null?void 0:q.chart)==null?void 0:Y.title)||$.title}return`${G.length} selected`},L=R(x);return $.metricType==="toolRuns"&&L.length===1?{...$.view.chart,data:C,title:I(),lines:void 0,dataKey:"toolRuns",color:"#f97316",showLegend:!1}:$.metricType==="modelRuns"&&L.length===1?{...$.view.chart,data:C,title:I(),dataKey:"modelRuns",color:"#10b981",showLegend:!1}:{...$.view.chart,data:C,title:I()}},B=($,C)=>{if(!E(x))return $;const I=R(x);if(I.length===1){const L=I[0];if(i==="runs"&&C==="agentRuns")return $.map(z=>({...z,agentRuns:z[L]||0}));if(i==="runs"&&C==="toolRuns")return $.map(z=>({...z,toolRuns:z[L.replace(/[-]/g,"")]||0}));if(i==="runs"&&C==="modelRuns")return $.map(z=>({...z,modelRuns:z[L.replace(/[-\.]/g,"")]||0}))}return $},F=$=>{var z;const C=((z=u.chart)==null?void 0:z.data)||[],I=B(C,$),L=G=>{var J,ee;if(!E(x))return G;const Q=R(x);if(Q.length===1){const ne=(ee=(J=c==null?void 0:c.dropdown)==null?void 0:J.options)==null?void 0:ee.find(q=>q.value===Q[0]);return ne?`${ne.label}`:G}return`${Q.length} selected`};switch($){case"users":return{type:"line",title:"Total Users",data:C,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:C,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:C,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:C,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:L("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:L("Tool Runs"),data:B(C,"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:L("Model Runs"),data:B(C,"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:L("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}},W=(()=>{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,L,z,G,Q,J,ee,ne,q,Y;const $=P();if($!=null&&$.view){if((I=$.controls)!=null&&I.toggle){if(m==="table"&&$.view.table){let N=$.view.table.data;if($.metricType==="agentRuns"&&E(x)){const ie=R(x);if(ie.length>0){const V=((G=(z=(L=$.controls)==null?void 0:L.dropdown)==null?void 0:z.options)==null?void 0:G.filter(se=>ie.includes(se.value)))||[];V.length>0&&(N=N.filter(se=>V.some(pe=>se.name===pe.label||se.name.toLowerCase().includes(pe.label.toLowerCase()))))}}if($.metricType==="toolRuns"&&E(x)){const ie=R(x);if(ie.length>0){const V=((ee=(J=(Q=$.controls)==null?void 0:Q.dropdown)==null?void 0:J.options)==null?void 0:ee.filter(se=>ie.includes(se.value)))||[];V.length>0&&(N=N.filter(se=>V.some(pe=>se.name===pe.label||se.name.toLowerCase().includes(pe.label.toLowerCase()))))}}if($.metricType==="modelRuns"&&E(x)){const ie=R(x);if(ie.length>0){const V=((Y=(q=(ne=$.controls)==null?void 0:ne.dropdown)==null?void 0:q.options)==null?void 0:Y.filter(se=>ie.includes(se.value)))||[];V.length>0&&(N=N.filter(se=>V.some(pe=>se.name===pe.label||se.name.toLowerCase().includes(pe.label.toLowerCase()))))}}return{type:"table",table:{...$.view.table,data:N}}}else if(m==="chart"&&$.view.chart)return{type:"chart",chart:M($)||$.view.chart}}const Z=M($);return Z?{...$.view,chart:Z}:$.view}const C=F(b);return C?{type:"chart",chart:C}:{...u,type:d}})(),U=()=>l.map($=>{const C=$.metricType||$.title.toLowerCase();return{...$,highlighted:$.highlighted||C===b}});return T.jsxs("div",{className:le("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:[T.jsxs("div",{className:"mb-6",children:[T.jsxs("div",{className:"flex items-center justify-between mb-4",children:[T.jsxs("div",{children:[T.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:o}),s&&T.jsx("p",{className:"text-sm text-gray-600 mt-1",children:s})]}),W&&T.jsx(mb,{config:W})]}),T.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:r?T.jsxs(T.Fragment,{children:[T.jsx(vi,{}),T.jsx(vi,{}),T.jsx(vi,{}),T.jsx(vi,{})]}):U().map(($,C)=>T.jsx(Af,{data:$,onClick:g},`${i}-metric-${C}`))})]}),T.jsx(yb,{config:D,className:"mt-6",isLoading:r||n,context:{sectionId:i,metricType:b}})]})},Es=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 T.jsx("button",{className:le(o,s[t],l[r],e),ref:i,...a,children:n})});Es.displayName="Button";function $s(e){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$s(e)}function Pt(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 ze(e){De(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||$s(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=ze(e),n=Pt(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function af(e,t){De(2,arguments);var r=ze(e),n=Pt(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=ze(e).getTime(),n=Pt(t);return new Date(r+n)}var uU={};function yi(){return uU}function cU(e,t){var r,n,a,i,o,s;De(1,arguments);var l=yi(),u=Pt((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=ze(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 bb(e){De(1,arguments);var t=ze(e);return t.setHours(0,0,0,0),t}function mi(e,t){De(2,arguments);var r=bb(e),n=bb(t);return r.getTime()===n.getTime()}function dU(e){return De(1,arguments),e instanceof Date||$s(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=ze(e);return!isNaN(Number(t))}function pU(e){De(1,arguments);var t=ze(e);return t.setDate(1),t.setHours(0,0,0,0),t}function vU(e,t){De(2,arguments);var r=Pt(t);return lU(e,-r)}var yU=864e5;function mU(e){De(1,arguments);var t=ze(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/yU)+1}function js(e){De(1,arguments);var t=1,r=ze(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=ze(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=js(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var o=js(i);return t.getTime()>=a.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function gU(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=js(r);return n}var bU=6048e5;function xU(e){De(1,arguments);var t=ze(e),r=js(t).getTime()-gU(t).getTime();return Math.round(r/bU)+1}function Cs(e,t){var r,n,a,i,o,s,l,u;De(1,arguments);var c=yi(),f=Pt((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=ze(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=ze(e),f=c.getUTCFullYear(),d=yi(),h=Pt((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=Cs(m,t),v=new Date(0);v.setUTCFullYear(f,0,h),v.setUTCHours(0,0,0,0);var b=Cs(v,t);return c.getTime()>=y.getTime()?f+1:c.getTime()>=b.getTime()?f:f-1}function wU(e,t){var r,n,a,i,o,s,l,u;De(1,arguments);var c=yi(),f=Pt((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=Cs(h,t);return m}var OU=6048e5;function SU(e,t){De(1,arguments);var r=ze(e),n=Cs(r,t).getTime()-wU(r,t).getTime();return Math.round(n/OU)+1}function Pe(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var Ar={y:function(t,r){var n=t.getUTCFullYear(),a=n>0?n:1-n;return Pe(r==="yy"?a%100:a,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):Pe(n+1,2)},d:function(t,r){return Pe(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 Pe(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Pe(t.getUTCHours(),r.length)},m:function(t,r){return Pe(t.getUTCMinutes(),r.length)},s:function(t,r){return Pe(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 Pe(i,r.length)}},Qn={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},AU={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 Ar.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 Pe(s,2)}return r==="Yo"?n.ordinalNumber(o,{unit:"year"}):Pe(o,r.length)},R:function(t,r){var n=xb(t);return Pe(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return Pe(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 Pe(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 Pe(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 Ar.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 Pe(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=SU(t,a);return r==="wo"?n.ordinalNumber(i,{unit:"week"}):Pe(i,r.length)},I:function(t,r,n){var a=xU(t);return r==="Io"?n.ordinalNumber(a,{unit:"week"}):Pe(a,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Ar.d(t,r)},D:function(t,r,n){var a=mU(t);return r==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):Pe(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 Pe(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 Pe(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 Pe(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=Qn.noon:a===0?i=Qn.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=Qn.evening:a>=12?i=Qn.afternoon:a>=4?i=Qn.morning:i=Qn.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 Ar.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Ar.H(t,r)},K:function(t,r,n){var a=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(a,{unit:"hour"}):Pe(a,r.length)},k:function(t,r,n){var a=t.getUTCHours();return a===0&&(a=24),r==="ko"?n.ordinalNumber(a,{unit:"hour"}):Pe(a,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Ar.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Ar.s(t,r)},S:function(t,r){return Ar.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 Vr(o);case"XXXXX":case"XXX":default:return Vr(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 Vr(o);case"xxxxx":case"xxx":default:return Vr(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"+Vr(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"+Vr(o,":")}},t:function(t,r,n,a){var i=a._originalDate||t,o=Math.floor(i.getTime()/1e3);return Pe(o,r.length)},T:function(t,r,n,a){var i=a._originalDate||t,o=i.getTime();return Pe(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+Pe(i,2)}function Sb(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Pe(Math.abs(e)/60,2)}return Vr(e,t)}function Vr(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),i=Pe(Math.floor(a/60),2),o=Pe(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"})}},TU=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))},PU={p:Tb,P:TU},_U=["D","DD"],EU=["YY","YYYY"];function $U(e){return _U.indexOf(e)!==-1}function jU(e){return EU.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 CU={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"}},MU=function(t,r,n){var a,i=CU[t];return typeof i=="string"?a=i:r===1?a=i.one:a=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function of(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var kU={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},NU={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},DU={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},IU={date:of({formats:kU,defaultWidth:"full"}),time:of({formats:NU,defaultWidth:"full"}),dateTime:of({formats:DU,defaultWidth:"full"})},RU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},LU=function(t,r,n,a){return RU[t]};function gi(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return a[u]}}var BU={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},FU={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},WU={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"]},UU={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"]},zU={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"}},KU={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"}},qU=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:qU,era:gi({values:BU,defaultWidth:"wide"}),quarter:gi({values:FU,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:gi({values:WU,defaultWidth:"wide"}),day:gi({values:UU,defaultWidth:"wide"}),dayPeriod:gi({values:zU,defaultWidth:"wide",formattingValues:KU,defaultFormattingWidth:"wide"})};function bi(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?HU(s,function(f){return f.test(o)}):VU(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 VU(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function HU(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function YU(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 XU=/^(\d+)(th|st|nd|rd)?/i,JU=/\d+/i,ZU={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},QU={any:[/^b/i,/^(a|c)/i]},e8={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},t8={any:[/1/i,/2/i,/3/i,/4/i]},r8={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},n8={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]},a8={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},i8={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]},o8={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},s8={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}},l8={ordinalNumber:YU({matchPattern:XU,parsePattern:JU,valueCallback:function(t){return parseInt(t,10)}}),era:bi({matchPatterns:ZU,defaultMatchWidth:"wide",parsePatterns:QU,defaultParseWidth:"any"}),quarter:bi({matchPatterns:e8,defaultMatchWidth:"wide",parsePatterns:t8,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:bi({matchPatterns:r8,defaultMatchWidth:"wide",parsePatterns:n8,defaultParseWidth:"any"}),day:bi({matchPatterns:a8,defaultMatchWidth:"wide",parsePatterns:i8,defaultParseWidth:"any"}),dayPeriod:bi({matchPatterns:o8,defaultMatchWidth:"any",parsePatterns:s8,defaultParseWidth:"any"})},u8={code:"en-US",formatDistance:MU,formatLong:IU,formatRelative:LU,localize:GU,match:l8,options:{weekStartsOn:0,firstWeekContainsDate:1}},c8=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,f8=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,d8=/^'([^]*?)'?$/,h8=/''/g,p8=/[a-zA-Z]/;function Ms(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=yi(),x=(n=(a=void 0)!==null&&a!==void 0?a:w.locale)!==null&&n!==void 0?n:u8,A=Pt((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(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=Pt((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=ze(e);if(!hU(g))throw new RangeError("Invalid time value");var S=fU(g),P=vU(g,S),E={firstWeekContainsDate:A,weekStartsOn:p,locale:x,_originalDate:g},R=b.match(f8).map(function(k){var M=k[0];if(M==="p"||M==="P"){var B=PU[M];return B(k,x.formatLong)}return k}).join("").match(c8).map(function(k){if(k==="''")return"'";var M=k[0];if(M==="'")return v8(k);var B=AU[M];if(B)return jU(k)&&Pb(k,t,String(e)),$U(k)&&Pb(k,t,String(e)),B(P,k,x.localize,E);if(M.match(p8))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return k}).join("");return R}function v8(e){var t=e.match(d8);return t?t[1].replace(h8,"'"):e}function _b(e,t){De(2,arguments);var r=ze(e),n=ze(t);return r.getTime()<n.getTime()}function y8(e,t){De(2,arguments);var r=ze(e).getTime(),n=ze(t.start).getTime(),a=ze(t.end).getTime();if(!(n<=a))throw new RangeError("Invalid interval");return r>=n&&r<=a}function ks(e,t){De(2,arguments);var r=Pt(t);return sU(e,-r)}function Eb(e,t){De(2,arguments);var r=Pt(t);return af(e,-r)}const $b=({children:e})=>{const[t,r]=O.useState(!1);return O.useEffect(()=>(r(!0),()=>r(!1)),[]),t?Xr.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:new Date,to:new Date}},{label:"Yesterday",value:"yesterday",dateRange:{from:ks(new Date,1),to:ks(new Date,1)}},{label:"This week",value:"thisWeek",dateRange:{from:cU(new Date),to:new Date}},{label:"Last 7 days",value:"7d",dateRange:{from:ks(new Date,6),to:new Date}},{label:"This month",value:"thisMonth",dateRange:{from:pU(new Date),to:new Date}},{label:"Last 30 days",value:"30d",dateRange:{from:ks(new Date,29),to:new Date}},{label:"Last 3 months",value:"90d",dateRange:{from:Eb(new Date,3),to:new Date}}],a=t?n.find(_=>_.value===t):null;console.log("📅 DateRangePicker initialization:",{defaultValue:t,defaultPreset:a==null?void 0:a.label,hasDateRange:!!(a!=null&&a.dateRange),allPresetValues:n.map(_=>_.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,A]=O.useState({top:0,left:0}),p=O.useRef(null),g=O.useRef(null);O.useEffect(()=>{var _,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:(_=a.dateRange.from)==null?void 0:_.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(U=>`${U.value}:${U.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 _=g.current.getBoundingClientRect(),D=window.scrollY,U=window.scrollX,$=window.innerWidth,C=window.innerHeight,I=720,L=450;let z=_.bottom+D+8,G=_.left+U;G+I>$&&(G=_.right+U-I),G+I>$&&(G=$-I-20),z+L>C&&(z=_.top+D-L-8),G<20&&(G=20),z<20&&(z=20),A({top:z,left:G})};O.useEffect(()=>{const _=()=>{u&&S()};return u&&(window.addEventListener("resize",_),window.addEventListener("scroll",_)),()=>{window.removeEventListener("resize",_),window.removeEventListener("scroll",_)}},[u]);const P=(_,D)=>{if(l(_),m(D),w(null),_.from){const U=new Date(_.from.getFullYear(),_.from.getMonth(),1);v(U)}},E=_=>{if(!b)w(_),l({from:_,to:_}),m(null);else{const D=_b(_,b)?_:b,U=_b(_,b)?b:_;l({from:D,to:U}),w(null),m(null)}},R=()=>{o(s),d(h),r==null||r(s),c(!1),w(null)},k=()=>{l(void 0),m(null),o(void 0),d(null),r==null||r(void 0),c(!1),w(null)},M=_=>{_?(l(i),m(f),w(null),setTimeout(S,0)):(l(i),m(f),w(null)),c(_)},B=(_,D)=>(console.log("📅 formatDateRange called with:",{presetLabel:D,hasDateRange:!!(_!=null&&_.from)}),D||(_!=null&&_.from?!_.to||mi(_.from,_.to)?Ms(_.from,"MMM dd, yyyy"):`${Ms(_.from,"MMM dd, yyyy")} - ${Ms(_.to,"MMM dd, yyyy")}`:"Pick a date range")),F=(_=0)=>{const D=af(y,_),U=D.getFullYear(),$=D.getMonth(),C=new Date(U,$,1),L=new Date(U,$+1,0).getDate(),z=C.getDay(),G=["January","February","March","April","May","June","July","August","September","October","November","December"],Q=["Su","Mo","Tu","We","Th","Fr","Sa"],J=[],ne=new Date(U,$-1,0).getDate();for(let Z=z-1;Z>=0;Z--){const N=ne-Z,ie=new Date(U,$-1,N);J.push(T.jsx("button",{onClick:()=>E(ie),className:"h-8 w-8 text-xs text-gray-400 hover:bg-gray-100 rounded flex items-center justify-center",children:N},`prev-${N}`))}for(let Z=1;Z<=L;Z++){const N=new Date(U,$,Z),ie=mi(N,new Date),V=(s==null?void 0:s.from)&&(s==null?void 0:s.to)&&y8(N,{start:s.from,end:s.to}),se=(s==null?void 0:s.from)&&mi(N,s.from),pe=(s==null?void 0:s.to)&&mi(N,s.to),Le=b&&mi(N,b);let et="h-8 w-8 text-xs hover:bg-gray-100 rounded flex items-center justify-center transition-colors ";ie&&(et+="font-semibold "),Le||se||pe?et+="bg-blue-500 text-white hover:bg-blue-600 ":V&&(et+="bg-blue-100 text-blue-900 "),J.push(T.jsx("button",{onClick:()=>E(N),className:et,children:Z},`current-${Z}`))}const Y=Math.ceil((z+L)/7)*7-z-L;for(let Z=1;Z<=Y;Z++){const N=new Date(U,$+1,Z);J.push(T.jsx("button",{onClick:()=>E(N),className:"h-8 w-8 text-xs text-gray-400 hover:bg-gray-100 rounded flex items-center justify-center",children:Z},`next-${Z}`))}return T.jsxs("div",{className:"p-3",children:[T.jsxs("div",{className:"flex items-center justify-between mb-3",children:[_===0&&T.jsx("button",{onClick:()=>v(Eb(y,1)),className:"p-1 hover:bg-gray-100 rounded",children:T.jsx(Xb,{className:"h-4 w-4"})}),T.jsxs("div",{className:"font-medium text-sm",children:[G[$]," ",U]}),_===1&&T.jsx("button",{onClick:()=>v(af(y,1)),className:"p-1 hover:bg-gray-100 rounded",children:T.jsx(Jb,{className:"h-4 w-4"})})]}),T.jsx("div",{className:"grid grid-cols-7 gap-1 mb-2",children:Q.map(Z=>T.jsx("div",{className:"h-8 flex items-center justify-center text-xs font-medium text-gray-500",children:Z},Z))}),T.jsx("div",{className:"grid grid-cols-7 gap-1",children:J})]})},W=()=>"fixed bg-white border border-gray-200 rounded-lg shadow-xl z-[99999]";return T.jsxs("div",{className:`relative ${e}`,children:[T.jsxs("button",{ref:g,onClick:()=>M(!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:[T.jsx(hf,{className:"mr-2 h-4 w-4"}),(()=>{const _=B(i,f);return console.log("📅 Button display text:",{displayText:_,date:i,selectedPresetLabel:f}),_})()]}),u&&T.jsxs($b,{children:[T.jsx("div",{className:"fixed inset-0 z-[99998] bg-black bg-opacity-10",onClick:()=>M(!1)}),T.jsxs("div",{ref:p,className:W(),style:{top:x.top,left:x.left,width:"720px",minWidth:"720px",maxHeight:"90vh"},onClick:_=>_.stopPropagation(),children:[T.jsxs("div",{className:"flex",children:[T.jsxs("div",{className:"flex flex-col gap-1 p-3 border-r border-gray-200 w-[160px] flex-shrink-0",children:[T.jsx("div",{className:"text-sm font-medium text-gray-500 mb-2",children:"Presets"}),n.map(_=>T.jsx("button",{onClick:()=>P(_.dateRange,_.label),className:`text-left px-2 py-1.5 text-sm rounded hover:bg-gray-100 transition-colors ${h===_.label?"bg-gray-100":""}`,children:_.label},_.label))]}),T.jsxs("div",{className:"flex flex-1",children:[F(0),F(1)]})]}),T.jsxs("div",{className:"border-t border-gray-200 p-3 flex justify-end gap-2",children:[T.jsx("button",{onClick:k,className:"px-3 py-1.5 text-sm border border-gray-300 rounded hover:bg-gray-50 transition-colors",children:"Clear"}),T.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=""){Rt(this,"API_PATH","/tracing/api/trpc/metrics.getMetrics");Rt(this,"baseUrl","");Rt(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){Rt(this,"endpointsService");Rt(this,"defaultHeaders");Rt(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 ea{constructor(t){Rt(this,"apiInvoker");Rt(this,"projectId");Rt(this,"environment");Rt(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||ea.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=[]){const a={projectId:this.projectId,type:"cards",category:"usage-analytics",envId:this.environment,fromTimestamp:t,toTimestamp:r,filter:n,includeTrends:!0};return(await this.apiInvoker.invoke("usage-analytics.cards",a)).result.data.json}async fetchRunsCards(t,r,n=[]){const a={projectId:this.projectId,type:"cards",category:"runs",envId:this.environment,fromTimestamp:t,toTimestamp:r,filter:n,includeTrends:!0};return(await this.apiInvoker.invoke("runs.cards",a)).result.data.json}async fetchTimeSeriesData(t,r,n,a,i="day",o=[]){const s=`${r}.${t}.timeseries`,l={projectId:this.projectId,type:"time-series",category:r,envId:this.environment,fromTimestamp:n,toTimestamp:a,filter:o,metric:t,timeDimension:i};return(await this.apiInvoker.invoke(s,l)).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="day",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="day",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="day",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:"#06b6d4",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:"#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: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:"#10b981",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="day",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:"#8b5cf6",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:"#06b6d4",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:"#e879f9",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:"#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: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,u=Math.floor(l*.3+Math.random()*(l*.1)),c=Math.floor(l*.25+Math.random()*(l*.1)),f=Math.floor(l*.2+Math.random()*(l*.1)),d=Math.floor(l*.15+Math.random()*(l*.1)),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,n),this.fetchRunsCards(t,r,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="day",a=[]){try{const[i,o]=await Promise.all([this.fetchUsageAnalyticsCards(t,r,a),this.fetchRunsCards(t,r,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="day",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()}}getAvailableMetrics(){return{"usage-analytics":["sessions","messages","users","tokens"],runs:["agent-runs","model-runs","tool-runs"]}}}const m8=({config:e,appConfig:t,className:r,onExport:n,onDraftChange:a,onTimeRangeChange:i})=>{var W;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(!1),[y,v]=O.useState(null),[b,w]=O.useState(l),[x,A]=O.useState([]),[p,g]=O.useState(!1),S=O.useRef(null);O.useEffect(()=>{if(t)try{S.current=new ea(t),P(),E()}catch(_){console.error("Failed to initialize API service:",_),v("Failed to initialize API service")}},[t]);const P=async()=>{if(!(!S.current||!t)){g(!0);try{const _=await S.current.fetchEnvironments();A(_),console.log("🌍 Environments loaded:",_.map(D=>D.envName))}catch(_){console.error("Error loading environments:",_)}finally{g(!1)}}},E=async()=>{if(!(!S.current||!t)){d(!0),v(null);try{const _=S.current.getDefaultTimeRange();console.log("📊 Loading dashboard data with date range:",{fromTimestamp:_.fromTimestamp,toTimestamp:_.toTimestamp,fromDate:new Date(_.fromTimestamp).toLocaleDateString(),toDate:new Date(_.toTimestamp).toLocaleDateString()});const D=await S.current.fetchAllCardsDataWithEnhancedViews(_.fromTimestamp,_.toTimestamp,"day");console.log("✅ Enhanced cards data loaded successfully:",D),console.log("📈 Data covers period:",{from:new Date(_.fromTimestamp).toLocaleDateString(),to:new Date(_.toTimestamp).toLocaleDateString()});const U=l.map($=>$.id==="usage-analytics"?(console.log("Updating usage-analytics section with enhanced data"),{...$,metrics:D.usageAnalytics}):$.id==="runs"?(console.log("Updating runs section with enhanced data including table and controls"),{...$,metrics:D.runs}):$);w(U)}catch(_){console.error("Error loading initial data:",_),v("Failed to load dashboard data"),w(l)}finally{d(!1)}}},R=async(_,D)=>{if(!(!S.current||!t||!D.metricType)){w(U=>U.map($=>$.id===_?{...$,metrics:$.metrics.map(C=>({...C,highlighted:C.metricType===D.metricType}))}:$)),m(!0);try{const U=t.defaultTimeRange||ea.getDateRange(30);let $,C;if(["users","sessions","messages","tokens"].includes(D.metricType))$="usage-analytics",C=D.metricType;else if(["agentRuns","toolRuns","modelRuns"].includes(D.metricType))$="runs",C=D.metricType==="agentRuns"?"agent-runs":D.metricType==="toolRuns"?"tool-runs":"model-runs";else return;const I=await S.current.fetchTimeSeriesData(C,$,U.fromTimestamp,U.toTimestamp),L=S.current.transformTimeSeriesDataForMetric(I,D.metricType);console.log("Time series response for",D.title,":",I),console.log("Transformed data for",D.title,":",L),console.log("Metric type used for transformation:",D.metricType);const G=(Q=>({users:"users",sessions:"sessions",messages:"messages",tokens:"totalTokens",agentRuns:"agentRuns",toolRuns:"toolRuns",modelRuns:"modelRuns"})[Q]||"count")(D.metricType||"count");console.log("Using dataKey for metric",D.metricType,":",G),w(Q=>Q.map(J=>{if(J.id===_){const ee={...J,view:{...J.view,chart:J.view.chart?{...J.view.chart,data:L,dataKey:G,lines:[{dataKey:G,color:J.view.chart.color||"#3b82f6",label:D.title,strokeWidth:2}]}:{type:"line",data:L,dataKey:G,lines:[{dataKey:G,color:"#3b82f6",label:D.title,strokeWidth:2}],yAxisLabel:D.title}}};return console.log("Updated section for",_,":",ee),console.log("Chart config set:",ee.view.chart),ee}return J}))}catch(U){console.error("Error loading metric data:",U),v(`Failed to load ${D.title} data`)}finally{m(!1)}}},k=_=>{var D,U;if((U=(D=u==null?void 0:u.draft)==null?void 0:D.onChange)==null||U.call(D,_),a==null||a(_),t&&S.current){const $={...t,environment:_};S.current.updateConfig($),E()}},M=_=>{var D,U;if(console.log("🗓️ Time range change requested:",_),typeof _=="string"&&((U=(D=u==null?void 0:u.timeRange)==null?void 0:D.onChange)==null||U.call(D,_)),i==null||i(_),t&&S.current){let $=null;if(typeof _=="object"&&_.from&&_.to)$={fromTimestamp:_.from.toISOString(),toTimestamp:_.to.toISOString()},console.log("📅 Converting DateRange to API format:",$);else if(typeof _=="string"){const I={"24h":1,"7d":7,"30d":30,"90d":90}[_];I&&($=ea.getDateRange(I),console.log(`📅 Converting preset "${_}" (${I} days) to API format:`,$))}if($){const C={...t,defaultTimeRange:$};console.log("🔄 Updating API configuration with new date range:",C.defaultTimeRange),S.current.updateConfig(C),console.log("🚀 Reloading dashboard data with new date range..."),E()}else console.warn("⚠️ Unable to convert time range value to API format:",_)}},B=(_="csv")=>{var D,U;(U=(D=u==null?void 0:u.export)==null?void 0:D.onExport)==null||U.call(D,_),n==null||n()},F=()=>{t&&S.current&&E()};return T.jsxs("div",{className:le("mx-auto p-6",r),children:[T.jsx("div",{className:"mb-8",children:T.jsxs("div",{className:"flex items-center justify-between",children:[T.jsxs("div",{children:[T.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:o}),s&&T.jsx("p",{className:"text-gray-600 mt-2",children:s}),y&&T.jsx("p",{className:"text-red-600 mt-2 text-sm",children:y})]}),T.jsxs("div",{className:"flex items-center gap-3",children:[t&&T.jsxs(Es,{variant:"outline",onClick:F,disabled:f||h,className:"gap-2",children:[T.jsx(e0,{className:le("h-4 w-4",(f||h)&&"animate-spin")}),"Refresh"]}),u&&T.jsxs(T.Fragment,{children:[u.draft&&T.jsx(_s,{options:x.length>0?x.map(_=>({label:_.envName.charAt(0).toUpperCase()+_.envName.slice(1),value:_.envName})):u.draft.options,value:u.draft.defaultValue,placeholder:p?"Loading environments...":u.draft.label,onChange:k,className:"min-w-[200px]",disabled:f||h||p}),u.timeRange&&(u.timeRange.useDatePicker?(console.log("🗓️ Dashboard: Rendering DateRangePicker with defaultValue:",u.timeRange.defaultValue),T.jsx(jb,{defaultValue:u.timeRange.defaultValue,onDateRangeChange:_=>{console.log("🗓️ Dashboard: DateRangePicker callback received:",_),_&&M(_)}})):T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx(hf,{className:"h-4 w-4 text-gray-500"}),T.jsx(_s,{options:u.timeRange.options||[],value:u.timeRange.defaultValue,placeholder:u.timeRange.label,onChange:M,className:"min-w-[200px]",disabled:f||h})]})),((W=u.export)==null?void 0:W.enabled)&&T.jsxs(Es,{variant:"outline",onClick:()=>B(),className:"gap-2",disabled:f||h,children:[T.jsx(Zb,{className:"h-4 w-4"}),"Export"]})]})]})]})}),T.jsx("div",{className:le("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(_=>{var D,U,$,C;return T.jsx(gb,{section:_,isLoading:f,isChartLoading:h,onMetricClick:I=>R(_.id,I),className:le(c.responsive&&((D=_.layout)==null?void 0:D.span)===12&&"lg:col-span-12",c.responsive&&((U=_.layout)==null?void 0:U.span)===6&&"lg:col-span-6",c.responsive&&(($=_.layout)==null?void 0:$.span)===4&&"lg:col-span-4",c.responsive&&((C=_.layout)==null?void 0:C.span)===3&&"lg:col-span-3")},_.id)})})]})},Ns=["Portfolio Analysis Expert","Mortgage Evaluator","Credit Risk Specialist","Asset Valuation Analyst","Liability Assessment Advisor"],Ds=["calculate-creditScore","calculate-risk","calculate-mortgage","analyse-expenses","fetch-statement"],Is=["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"],g8=(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={};Ns.forEach(g=>{const S=g.replace(/\s+/g,"").toLowerCase(),P=Math.floor(d/Ns.length);x[S]=Math.floor(P+Math.random()*(P*.5))});const A={};Ds.forEach(g=>{const S=g.replace(/[-]/g,""),P=Math.floor(h/Ds.length);A[S]=Math.floor(P+Math.random()*(P*.8))});const p={};Is.forEach(g=>{const S=g.replace(/[-\.]/g,""),P=Math.floor(m/Is.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,...A,...p,value:o})}return t},b8=()=>{const e=[];return Ns.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},x8=()=>{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 Ds.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()}))},w8=()=>Is.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()})),Hr=g8(),O8=b8(),S8=x8(),A8=w8(),T8={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:Hr,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:Hr,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:Hr,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:Hr,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:Hr,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:O8,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"},...Ns.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:Hr,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:S8,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"},...Ds.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:Hr,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:A8,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"},...Is.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}}]},Gt={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"]}},P8={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"}},_8={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"}},E8={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],xi=(e,t)=>e.semantic[t],$8=(e,t)=>{var r;return((r=e.gradients)==null?void 0:r[t])||[e.primary[0],e.primary[1]]},Nb=(e,t=Gt)=>e.map((r,n)=>({...r,color:kb(t,n)})),Rs=((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})(),j8={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:Rs,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:Rs,lines:Nb([{dataKey:"agentRuns",label:"Agent Runs"},{dataKey:"toolRuns",label:"Tool Runs"},{dataKey:"modelRuns",label:"Model Runs"},{dataKey:"totalTokens",label:"Total Tokens"}],Gt),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:Rs,lines:[{dataKey:"users",color:xi(Gt,"success"),label:"Successful Operations",strokeWidth:3},{dataKey:"sessions",color:xi(Gt,"warning"),label:"Warning Events",strokeWidth:2},{dataKey:"messages",color:xi(Gt,"error"),label:"Error Events",strokeWidth:2},{dataKey:"totalTokens",color:xi(Gt,"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:Rs,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}}]},C8={manualColors:{line1:"#8b5cf6",line2:"#06b6d4",line3:"#f97316",line4:"#10b981"},paletteColors:Gt.primary,semanticColors:Gt.semantic,gradientColors:Gt.gradients},M8={baseUrl:"http://dev.kore.ai",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},k8={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}},N8=`
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: 'http://dev.kore.ai/',
218
+ dashboardType: 'agenticDashboard' as const,
219
+ projectId: 'aa-bdbfa4eb-c7c4-4350-be96-d778188c2c4b',
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
+ `;oe.AgentListView=hb,oe.AnalyticsChart=fb,oe.AnalyticsTable=db,oe.ApiInvokerService=Mb,oe.Button=Es,oe.ChartSkeleton=cb,oe.Dashboard=m8,oe.DashboardApiService=ea,oe.DashboardSection=gb,oe.DateRangePicker=jb,oe.EndpointsConfigService=Cb,oe.MetricCard=Af,oe.MetricCardSkeleton=vi,oe.ModelListView=vb,oe.Portal=$b,oe.SectionControls=mb,oe.Select=_s,oe.Skeleton=Dt,oe.ToolListView=pb,oe.ViewRenderer=yb,oe.agenticAppConfig=M8,oe.angularIntegrationExample=N8,oe.apiEnabledDashboardConfig=k8,oe.autoAssignColors=Nb,oe.businessPalette=E8,oe.cn=le,oe.colorExamples=C8,oe.darkPalette=P8,oe.defaultPalette=Gt,oe.enhancedDashboardConfig=j8,oe.getColorFromPalette=kb,oe.getGradientColors=$8,oe.getSemanticColor=xi,oe.lightPalette=_8,oe.sampleDashboardConfig=T8,Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"})});