@senitix/ui 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avatar-C0aVNCG9.cjs +2 -0
- package/dist/avatar-C0aVNCG9.cjs.map +1 -0
- package/dist/avatar-CN6wcrqY.js +288 -0
- package/dist/avatar-CN6wcrqY.js.map +1 -0
- package/dist/calendar-BFWc4IB7.js +1182 -0
- package/dist/calendar-BFWc4IB7.js.map +1 -0
- package/dist/calendar-BUm7YrNf.cjs +2 -0
- package/dist/calendar-BUm7YrNf.cjs.map +1 -0
- package/dist/calendar-ChJkFXXr.js +11 -0
- package/dist/calendar-ChJkFXXr.js.map +1 -0
- package/dist/calendar-SwL5isYC.cjs +2 -0
- package/dist/calendar-SwL5isYC.cjs.map +1 -0
- package/dist/card-K4fxyYwE.js +51 -0
- package/dist/card-K4fxyYwE.js.map +1 -0
- package/dist/card-tMkUxpmW.cjs +2 -0
- package/dist/card-tMkUxpmW.cjs.map +1 -0
- package/dist/checkbox-CpOq5hkT.js +289 -0
- package/dist/checkbox-CpOq5hkT.js.map +1 -0
- package/dist/checkbox-D7-LQyCl.cjs +2 -0
- package/dist/checkbox-D7-LQyCl.cjs.map +1 -0
- package/dist/chevron-down-DHdXqOqK.cjs +2 -0
- package/dist/chevron-down-DHdXqOqK.cjs.map +1 -0
- package/dist/chevron-down-DJ1_YIFu.js +8 -0
- package/dist/chevron-down-DJ1_YIFu.js.map +1 -0
- package/dist/chevron-right-B3bovvh0.js +8 -0
- package/dist/chevron-right-B3bovvh0.js.map +1 -0
- package/dist/chevron-right-Dvyd11q0.cjs +2 -0
- package/dist/chevron-right-Dvyd11q0.cjs.map +1 -0
- package/dist/chevron-up-B9fuiZhc.cjs +2 -0
- package/dist/chevron-up-B9fuiZhc.cjs.map +1 -0
- package/dist/chevron-up-CGtXOr51.js +6 -0
- package/dist/chevron-up-CGtXOr51.js.map +1 -0
- package/dist/components/charts/index.cjs.js +2 -0
- package/dist/components/charts/index.cjs.js.map +1 -0
- package/dist/components/charts/index.es.js +12 -0
- package/dist/components/charts/index.es.js.map +1 -0
- package/dist/components/data-display/index.cjs.js +2 -0
- package/dist/components/data-display/index.cjs.js.map +1 -0
- package/dist/components/data-display/index.es.js +25 -0
- package/dist/components/data-display/index.es.js.map +1 -0
- package/dist/components/dnd/index.cjs.js +2 -0
- package/dist/components/dnd/index.cjs.js.map +1 -0
- package/dist/components/dnd/index.es.js +9 -0
- package/dist/components/dnd/index.es.js.map +1 -0
- package/dist/components/feedback/index.cjs.js +2 -0
- package/dist/components/feedback/index.cjs.js.map +1 -0
- package/dist/components/feedback/index.es.js +16 -0
- package/dist/components/feedback/index.es.js.map +1 -0
- package/dist/components/forms/index.cjs.js +2 -0
- package/dist/components/forms/index.cjs.js.map +1 -0
- package/dist/components/forms/index.es.js +27 -0
- package/dist/components/forms/index.es.js.map +1 -0
- package/dist/components/layouts/index.cjs.js +2 -0
- package/dist/components/layouts/index.cjs.js.map +1 -0
- package/dist/components/layouts/index.es.js +25 -0
- package/dist/components/layouts/index.es.js.map +1 -0
- package/dist/components/navigation/index.cjs.js +2 -0
- package/dist/components/navigation/index.cjs.js.map +1 -0
- package/dist/components/navigation/index.es.js +42 -0
- package/dist/components/navigation/index.es.js.map +1 -0
- package/dist/components/ui/index.cjs.js +2 -0
- package/dist/components/ui/index.cjs.js.map +1 -0
- package/dist/components/ui/index.es.js +165 -0
- package/dist/components/ui/index.es.js.map +1 -0
- package/dist/createLucideIcon-BbeNo6vq.js +56 -0
- package/dist/createLucideIcon-BbeNo6vq.js.map +1 -0
- package/dist/createLucideIcon-i5GEhNMV.cjs +2 -0
- package/dist/createLucideIcon-i5GEhNMV.cjs.map +1 -0
- package/dist/ellipsis-BW2gWki8.cjs +2 -0
- package/dist/ellipsis-BW2gWki8.cjs.map +1 -0
- package/dist/ellipsis-CiKEaUNP.js +10 -0
- package/dist/ellipsis-CiKEaUNP.js.map +1 -0
- package/dist/file-V_hhCUhr.cjs +2 -0
- package/dist/file-V_hhCUhr.cjs.map +1 -0
- package/dist/file-wzTXnWqz.js +9 -0
- package/dist/file-wzTXnWqz.js.map +1 -0
- package/dist/filter-tags-DjUaNXHR.cjs +5 -0
- package/dist/filter-tags-DjUaNXHR.cjs.map +1 -0
- package/dist/filter-tags-i_I8qV1N.js +2658 -0
- package/dist/filter-tags-i_I8qV1N.js.map +1 -0
- package/dist/full-calendar-7ac2FFU6.js +3518 -0
- package/dist/full-calendar-7ac2FFU6.js.map +1 -0
- package/dist/full-calendar-Cpeh5xMP.cjs +8 -0
- package/dist/full-calendar-Cpeh5xMP.cjs.map +1 -0
- package/dist/global-search-UNXjoFlI.cjs +2 -0
- package/dist/global-search-UNXjoFlI.cjs.map +1 -0
- package/dist/global-search-h1rVbP2q.js +1188 -0
- package/dist/global-search-h1rVbP2q.js.map +1 -0
- package/dist/hooks/index.cjs.js +2 -0
- package/dist/hooks/index.cjs.js.map +1 -0
- package/dist/hooks/index.es.js +13 -0
- package/dist/hooks/index.es.js.map +1 -0
- package/dist/index-Co9o9StL.js +33 -0
- package/dist/index-Co9o9StL.js.map +1 -0
- package/dist/index-CwJPJKOE.js +2278 -0
- package/dist/index-CwJPJKOE.js.map +1 -0
- package/dist/index-CzVK9Zyb.cjs +6 -0
- package/dist/index-CzVK9Zyb.cjs.map +1 -0
- package/dist/index-l828OqQN.js +288 -0
- package/dist/index-l828OqQN.js.map +1 -0
- package/dist/index-lGzB9daF.cjs +2 -0
- package/dist/index-lGzB9daF.cjs.map +1 -0
- package/dist/index-lT9bLt9X.cjs +2 -0
- package/dist/index-lT9bLt9X.cjs.map +1 -0
- package/dist/index.cjs.js +2 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.es.js +332 -0
- package/dist/index.es.js.map +1 -0
- package/dist/input-CZrckPLk.cjs +42 -0
- package/dist/input-CZrckPLk.cjs.map +1 -0
- package/dist/input-D4AoiWxo.js +3629 -0
- package/dist/input-D4AoiWxo.js.map +1 -0
- package/dist/locale-provider-DHMwuneF.cjs +2 -0
- package/dist/locale-provider-DHMwuneF.cjs.map +1 -0
- package/dist/locale-provider-DanG6RRG.js +1012 -0
- package/dist/locale-provider-DanG6RRG.js.map +1 -0
- package/dist/locale-selector-Ppe0KTi-.cjs +2 -0
- package/dist/locale-selector-Ppe0KTi-.cjs.map +1 -0
- package/dist/locale-selector-xn2GpdP9.js +1745 -0
- package/dist/locale-selector-xn2GpdP9.js.map +1 -0
- package/dist/minus-BXBFZSZs.cjs +2 -0
- package/dist/minus-BXBFZSZs.cjs.map +1 -0
- package/dist/minus-DvlYtl96.js +6 -0
- package/dist/minus-DvlYtl96.js.map +1 -0
- package/dist/multi-container-C2UpSw5f.js +731 -0
- package/dist/multi-container-C2UpSw5f.js.map +1 -0
- package/dist/multi-container-DMKL8c9B.cjs +2 -0
- package/dist/multi-container-DMKL8c9B.cjs.map +1 -0
- package/dist/pipeline-By5_8AFg.cjs +2 -0
- package/dist/pipeline-By5_8AFg.cjs.map +1 -0
- package/dist/pipeline-D-QNSU0U.js +1036 -0
- package/dist/pipeline-D-QNSU0U.js.map +1 -0
- package/dist/plus-8wKRkVu-.cjs +2 -0
- package/dist/plus-8wKRkVu-.cjs.map +1 -0
- package/dist/plus-CJD68KQD.js +9 -0
- package/dist/plus-CJD68KQD.js.map +1 -0
- package/dist/popover-4V4sGe1U.js +765 -0
- package/dist/popover-4V4sGe1U.js.map +1 -0
- package/dist/popover-ivh-plLc.cjs +2 -0
- package/dist/popover-ivh-plLc.cjs.map +1 -0
- package/dist/progress-CFnuLqnS.cjs +7 -0
- package/dist/progress-CFnuLqnS.cjs.map +1 -0
- package/dist/progress-D5AsrWa6.js +222 -0
- package/dist/progress-D5AsrWa6.js.map +1 -0
- package/dist/providers/index.cjs.js +2 -0
- package/dist/providers/index.cjs.js.map +1 -0
- package/dist/providers/index.es.js +9 -0
- package/dist/providers/index.es.js.map +1 -0
- package/dist/scroll-area-DQeqDp3Y.js +952 -0
- package/dist/scroll-area-DQeqDp3Y.js.map +1 -0
- package/dist/scroll-area-DYOiJMXh.cjs +2 -0
- package/dist/scroll-area-DYOiJMXh.cjs.map +1 -0
- package/dist/select-C1rNBi6c.js +974 -0
- package/dist/select-C1rNBi6c.js.map +1 -0
- package/dist/select-m-Mqwxu3.cjs +2 -0
- package/dist/select-m-Mqwxu3.cjs.map +1 -0
- package/dist/separator-DBUivkHq.cjs +2 -0
- package/dist/separator-DBUivkHq.cjs.map +1 -0
- package/dist/separator-DsfoJx-2.js +395 -0
- package/dist/separator-DsfoJx-2.js.map +1 -0
- package/dist/sheet-BVWCpq7E.js +84 -0
- package/dist/sheet-BVWCpq7E.js.map +1 -0
- package/dist/sheet-mKiFLVnK.cjs +2 -0
- package/dist/sheet-mKiFLVnK.cjs.map +1 -0
- package/dist/skeleton-BSwwYaQU.cjs +2 -0
- package/dist/skeleton-BSwwYaQU.cjs.map +1 -0
- package/dist/skeleton-BmGbfJw3.js +9 -0
- package/dist/skeleton-BmGbfJw3.js.map +1 -0
- package/dist/sortable.esm-Blhf_jh1.js +3391 -0
- package/dist/sortable.esm-Blhf_jh1.js.map +1 -0
- package/dist/sortable.esm-DcQYlXi3.cjs +6 -0
- package/dist/sortable.esm-DcQYlXi3.cjs.map +1 -0
- package/dist/sparkline-chart-Da-ehDGv.js +21082 -0
- package/dist/sparkline-chart-Da-ehDGv.js.map +1 -0
- package/dist/sparkline-chart-ca3uTzVK.cjs +68 -0
- package/dist/sparkline-chart-ca3uTzVK.cjs.map +1 -0
- package/dist/trending-up-D3Nfrhi3.cjs +2 -0
- package/dist/trending-up-D3Nfrhi3.cjs.map +1 -0
- package/dist/trending-up-DPwlYzQb.js +9 -0
- package/dist/trending-up-DPwlYzQb.js.map +1 -0
- package/dist/ui.css +1 -0
- package/dist/use-formatters-d97RVcmg.cjs +2 -0
- package/dist/use-formatters-d97RVcmg.cjs.map +1 -0
- package/dist/use-formatters-l1_2c8z0.js +6682 -0
- package/dist/use-formatters-l1_2c8z0.js.map +1 -0
- package/dist/use-local-storage-BjlrKzE-.js +42 -0
- package/dist/use-local-storage-BjlrKzE-.js.map +1 -0
- package/dist/use-local-storage-q-1odzIu.cjs +2 -0
- package/dist/use-local-storage-q-1odzIu.cjs.map +1 -0
- package/dist/use-mobile-C-LMK4T8.js +15 -0
- package/dist/use-mobile-C-LMK4T8.js.map +1 -0
- package/dist/use-mobile-DY7TJ5lx.cjs +2 -0
- package/dist/use-mobile-DY7TJ5lx.cjs.map +1 -0
- package/dist/use-toast-DG2qdYhl.js +97 -0
- package/dist/use-toast-DG2qdYhl.js.map +1 -0
- package/dist/use-toast-DxZJ8uUm.cjs +2 -0
- package/dist/use-toast-DxZJ8uUm.cjs.map +1 -0
- package/dist/utils/index.cjs.js +2 -0
- package/dist/utils/index.cjs.js.map +1 -0
- package/dist/utils/index.es.js +5 -0
- package/dist/utils/index.es.js.map +1 -0
- package/dist/welcome-card-CPolYl1D.cjs +2 -0
- package/dist/welcome-card-CPolYl1D.cjs.map +1 -0
- package/dist/welcome-card-CxMJZ8bv.js +963 -0
- package/dist/welcome-card-CxMJZ8bv.js.map +1 -0
- package/package.json +179 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";const H=require("react/jsx-runtime"),A=require("react"),Q=require("./index-lGzB9daF.cjs"),ye=require("./card-tMkUxpmW.cjs");function x1(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 Ue=x1(A);var Zi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uu,Dh;function Ye(){if(Dh)return uu;Dh=1;var e=Array.isArray;return uu=e,uu}var su,Nh;function jw(){if(Nh)return su;Nh=1;var e=typeof Zi=="object"&&Zi&&Zi.Object===Object&&Zi;return su=e,su}var cu,qh;function wt(){if(qh)return cu;qh=1;var e=jw(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return cu=r,cu}var lu,Lh;function Tn(){if(Lh)return lu;Lh=1;var e=wt(),t=e.Symbol;return lu=t,lu}var fu,Bh;function w1(){if(Bh)return fu;Bh=1;var e=Tn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(u?o[i]=s:delete o[i]),f}return fu=a,fu}var du,Fh;function O1(){if(Fh)return du;Fh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return du=r,du}var pu,zh;function Kt(){if(zh)return pu;zh=1;var e=Tn(),t=w1(),r=O1(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return pu=o,pu}var hu,Wh;function Ot(){if(Wh)return hu;Wh=1;function e(t){return t!=null&&typeof t=="object"}return hu=e,hu}var vu,Uh;function En(){if(Uh)return vu;Uh=1;var e=Kt(),t=Ot(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return vu=n,vu}var yu,Kh;function gp(){if(Kh)return yu;Kh=1;var e=Ye(),t=En(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return yu=i,yu}var mu,Hh;function _t(){if(Hh)return mu;Hh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return mu=e,mu}var gu,Gh;function bp(){if(Gh)return gu;Gh=1;var e=Kt(),t=_t(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return gu=o,gu}var bu,Vh;function _1(){if(Vh)return bu;Vh=1;var e=wt(),t=e["__core-js_shared__"];return bu=t,bu}var xu,Yh;function A1(){if(Yh)return xu;Yh=1;var e=_1(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return xu=r,xu}var wu,Xh;function Cw(){if(Xh)return wu;Xh=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return wu=r,wu}var Ou,Zh;function S1(){if(Zh)return Ou;Zh=1;var e=bp(),t=A1(),r=_t(),n=Cw(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(d){if(!r(d)||t(d))return!1;var p=e(d)?f:a;return p.test(n(d))}return Ou=l,Ou}var _u,Jh;function P1(){if(Jh)return _u;Jh=1;function e(t,r){return t?.[r]}return _u=e,_u}var Au,Qh;function Ir(){if(Qh)return Au;Qh=1;var e=S1(),t=P1();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Au=r,Au}var Su,ev;function Oo(){if(ev)return Su;ev=1;var e=Ir(),t=e(Object,"create");return Su=t,Su}var Pu,tv;function T1(){if(tv)return Pu;tv=1;var e=Oo();function t(){this.__data__=e?e(null):{},this.size=0}return Pu=t,Pu}var Tu,rv;function E1(){if(rv)return Tu;rv=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Tu=e,Tu}var Eu,nv;function j1(){if(nv)return Eu;nv=1;var e=Oo(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return Eu=i,Eu}var ju,iv;function C1(){if(iv)return ju;iv=1;var e=Oo(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return ju=n,ju}var Cu,av;function I1(){if(av)return Cu;av=1;var e=Oo(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return Cu=r,Cu}var Iu,ov;function $1(){if(ov)return Iu;ov=1;var e=T1(),t=E1(),r=j1(),n=C1(),i=I1();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Iu=a,Iu}var $u,uv;function M1(){if(uv)return $u;uv=1;function e(){this.__data__=[],this.size=0}return $u=e,$u}var Mu,sv;function _o(){if(sv)return Mu;sv=1;function e(t,r){return t===r||t!==t&&r!==r}return Mu=e,Mu}var Ru,cv;function Ao(){if(cv)return Ru;cv=1;var e=_o();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Ru=t,Ru}var ku,lv;function R1(){if(lv)return ku;lv=1;var e=Ao(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return ku=n,ku}var Du,fv;function k1(){if(fv)return Du;fv=1;var e=Ao();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Du=t,Du}var Nu,dv;function D1(){if(dv)return Nu;dv=1;var e=Ao();function t(r){return e(this.__data__,r)>-1}return Nu=t,Nu}var qu,pv;function N1(){if(pv)return qu;pv=1;var e=Ao();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return qu=t,qu}var Lu,hv;function So(){if(hv)return Lu;hv=1;var e=M1(),t=R1(),r=k1(),n=D1(),i=N1();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Lu=a,Lu}var Bu,vv;function xp(){if(vv)return Bu;vv=1;var e=Ir(),t=wt(),r=e(t,"Map");return Bu=r,Bu}var Fu,yv;function q1(){if(yv)return Fu;yv=1;var e=$1(),t=So(),r=xp();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Fu=n,Fu}var zu,mv;function L1(){if(mv)return zu;mv=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return zu=e,zu}var Wu,gv;function Po(){if(gv)return Wu;gv=1;var e=L1();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Wu=t,Wu}var Uu,bv;function B1(){if(bv)return Uu;bv=1;var e=Po();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Uu=t,Uu}var Ku,xv;function F1(){if(xv)return Ku;xv=1;var e=Po();function t(r){return e(this,r).get(r)}return Ku=t,Ku}var Hu,wv;function z1(){if(wv)return Hu;wv=1;var e=Po();function t(r){return e(this,r).has(r)}return Hu=t,Hu}var Gu,Ov;function W1(){if(Ov)return Gu;Ov=1;var e=Po();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Gu=t,Gu}var Vu,_v;function wp(){if(_v)return Vu;_v=1;var e=q1(),t=B1(),r=F1(),n=z1(),i=W1();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Vu=a,Vu}var Yu,Av;function Iw(){if(Av)return Yu;Av=1;var e=wp(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return a.cache=s.set(u,c)||s,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,Yu=r,Yu}var Xu,Sv;function U1(){if(Sv)return Xu;Sv=1;var e=Iw(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Xu=r,Xu}var Zu,Pv;function K1(){if(Pv)return Zu;Pv=1;var e=U1(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,s,c){a.push(s?c.replace(r,"$1"):u||o)}),a});return Zu=n,Zu}var Ju,Tv;function To(){if(Tv)return Ju;Tv=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Ju=e,Ju}var Qu,Ev;function H1(){if(Ev)return Qu;Ev=1;var e=Tn(),t=To(),r=Ye(),n=En(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return Qu=o,Qu}var es,jv;function $w(){if(jv)return es;jv=1;var e=H1();function t(r){return r==null?"":e(r)}return es=t,es}var ts,Cv;function Eo(){if(Cv)return ts;Cv=1;var e=Ye(),t=gp(),r=K1(),n=$w();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return ts=i,ts}var rs,Iv;function Fi(){if(Iv)return rs;Iv=1;var e=En();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return rs=t,rs}var ns,$v;function jo(){if($v)return ns;$v=1;var e=Eo(),t=Fi();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return ns=r,ns}var is,Mv;function Mw(){if(Mv)return is;Mv=1;var e=jo();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return is=t,is}var G1=Mw();const at=be(G1);var as,Rv;function V1(){if(Rv)return as;Rv=1;function e(t){return t==null}return as=e,as}var Y1=V1();const ue=be(Y1);var os,kv;function X1(){if(kv)return os;kv=1;var e=Kt(),t=Ye(),r=Ot(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return os=i,os}var Z1=X1();const ir=be(Z1);var J1=bp();const re=be(J1);var Q1=_t();const jn=be(Q1);var Ji={exports:{}},fe={};var Dv;function eS(){if(Dv)return fe;Dv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function v(h){if(typeof h=="object"&&h!==null){var g=h.$$typeof;switch(g){case e:switch(h=h.type,h){case r:case i:case n:case c:case f:return h;default:switch(h=h&&h.$$typeof,h){case u:case o:case s:case d:case l:case a:return h;default:return g}}case t:return g}}}return fe.ContextConsumer=o,fe.ContextProvider=a,fe.Element=e,fe.ForwardRef=s,fe.Fragment=r,fe.Lazy=d,fe.Memo=l,fe.Portal=t,fe.Profiler=i,fe.StrictMode=n,fe.Suspense=c,fe.SuspenseList=f,fe.isAsyncMode=function(){return!1},fe.isConcurrentMode=function(){return!1},fe.isContextConsumer=function(h){return v(h)===o},fe.isContextProvider=function(h){return v(h)===a},fe.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},fe.isForwardRef=function(h){return v(h)===s},fe.isFragment=function(h){return v(h)===r},fe.isLazy=function(h){return v(h)===d},fe.isMemo=function(h){return v(h)===l},fe.isPortal=function(h){return v(h)===t},fe.isProfiler=function(h){return v(h)===i},fe.isStrictMode=function(h){return v(h)===n},fe.isSuspense=function(h){return v(h)===c},fe.isSuspenseList=function(h){return v(h)===f},fe.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===i||h===n||h===c||h===f||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===d||h.$$typeof===l||h.$$typeof===a||h.$$typeof===o||h.$$typeof===s||h.$$typeof===m||h.getModuleId!==void 0)},fe.typeOf=v,fe}var de={};var Nv;function tS(){return Nv||(Nv=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=!1,v=!1,h=!1,g=!1,x=!1,w;w=Symbol.for("react.module.reference");function O(W){return!!(typeof W=="string"||typeof W=="function"||W===r||W===i||x||W===n||W===c||W===f||g||W===p||m||v||h||typeof W=="object"&&W!==null&&(W.$$typeof===d||W.$$typeof===l||W.$$typeof===a||W.$$typeof===o||W.$$typeof===s||W.$$typeof===w||W.getModuleId!==void 0))}function y(W){if(typeof W=="object"&&W!==null){var te=W.$$typeof;switch(te){case e:var me=W.type;switch(me){case r:case i:case n:case c:case f:return me;default:var oe=me&&me.$$typeof;switch(oe){case u:case o:case s:case d:case l:case a:return oe;default:return te}}case t:return te}}}var b=o,_=a,S=e,P=s,j=r,E=d,T=l,I=t,M=i,R=n,k=c,N=f,F=!1,K=!1;function $(W){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function q(W){return K||(K=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(W){return y(W)===o}function U(W){return y(W)===a}function V(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function J(W){return y(W)===s}function ee(W){return y(W)===r}function ae(W){return y(W)===d}function ne(W){return y(W)===l}function B(W){return y(W)===t}function G(W){return y(W)===i}function Z(W){return y(W)===n}function C(W){return y(W)===c}function ce(W){return y(W)===f}de.ContextConsumer=b,de.ContextProvider=_,de.Element=S,de.ForwardRef=P,de.Fragment=j,de.Lazy=E,de.Memo=T,de.Portal=I,de.Profiler=M,de.StrictMode=R,de.Suspense=k,de.SuspenseList=N,de.isAsyncMode=$,de.isConcurrentMode=q,de.isContextConsumer=L,de.isContextProvider=U,de.isElement=V,de.isForwardRef=J,de.isFragment=ee,de.isLazy=ae,de.isMemo=ne,de.isPortal=B,de.isProfiler=G,de.isStrictMode=Z,de.isSuspense=C,de.isSuspenseList=ce,de.isValidElementType=O,de.typeOf=y})()),de}var qv;function rS(){return qv||(qv=1,process.env.NODE_ENV==="production"?Ji.exports=eS():Ji.exports=tS()),Ji.exports}var nS=rS(),us,Lv;function Rw(){if(Lv)return us;Lv=1;var e=Kt(),t=Ot(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return us=n,us}var ss,Bv;function iS(){if(Bv)return ss;Bv=1;var e=Rw();function t(r){return e(r)&&r!=+r}return ss=t,ss}var aS=iS();const Cn=be(aS);var oS=Rw();const kw=be(oS);var He=function(t){return t===0?0:t>0?1:-1},br=function(t){return ir(t)&&t.indexOf("%")===t.length-1},z=function(t){return kw(t)&&!Cn(t)},uS=function(t){return ue(t)},Re=function(t){return z(t)||ir(t)},sS=0,$r=function(t){var r=++sS;return"".concat(t||"").concat(r)},Ge=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!z(t)&&!ir(t))return n;var a;if(br(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Cn(a)&&(a=n),i&&a>r&&(a=r),a},er=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},cS=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},ge=function(t,r){return z(t)&&z(r)?function(n){return t+n*(r-t)}:function(){return r}};function ya(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):at(n,t))===r})}var lS=function(t,r){return z(t)&&z(r)?t-r:ir(t)&&ir(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Yr(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 Gf(e){"@babel/helpers - typeof";return Gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gf(e)}var fS=["viewBox","children"],dS=["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"],Fv=["points","pathLength"],cs={svg:fS,polygon:Fv,polyline:Fv},Op=["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"],ma=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(A.isValidElement(t)&&(n=t.props),!jn(n))return null;var i={};return Object.keys(n).forEach(function(a){Op.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},pS=function(t,r,n){return function(i){return t(r,n,i),null}},ar=function(t,r,n){if(!jn(t)||Gf(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Op.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=pS(o,r,n))}),i},hS=["children"],vS=["children"];function zv(e,t){if(e==null)return{};var r=yS(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yS(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 Vf(e){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(e)}var Wv={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"},qt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Uv=null,ls=null,_p=function e(t){if(t===Uv&&Array.isArray(ls))return ls;var r=[];return A.Children.forEach(t,function(n){ue(n)||(nS.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),ls=r,Uv=t,r};function Qe(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return qt(i)}):n=[qt(t)],_p(e).forEach(function(i){var a=at(i,"type.displayName")||at(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function nt(e,t){var r=Qe(e,t);return r&&r[0]}var Kv=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!z(n)||n<=0||!z(i)||i<=0)},mS=["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"],gS=function(t){return t&&t.type&&ir(t.type)&&mS.indexOf(t.type)>=0},Dw=function(t){return t&&Vf(t)==="object"&&"clipDot"in t},bS=function(t,r,n,i){var a,o=(a=cs?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!re(t)&&(i&&o.includes(r)||dS.includes(r))||n&&Op.includes(r)},X=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(A.isValidElement(t)&&(i=t.props),!jn(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;bS((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Yf=function e(t,r){if(t===r)return!0;var n=A.Children.count(t);if(n!==A.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Hv(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Hv(a,o))return!1}return!0},Hv=function(t,r){if(ue(t)&&ue(r))return!0;if(!ue(t)&&!ue(r)){var n=t.props||{},i=n.children,a=zv(n,hS),o=r.props||{},u=o.children,s=zv(o,vS);return i&&u?Yr(a,s)&&Yf(i,u):!i&&!u?Yr(a,s):!1}return!1},Gv=function(t,r){var n=[],i={};return _p(t).forEach(function(a,o){if(gS(a))n.push(a);else if(a){var u=qt(a.type),s=r[u]||{},c=s.handler,f=s.once;if(c&&(!f||!i[u])){var l=c(a,u,o);n.push(l),i[u]=!0}}}),n},xS=function(t){var r=t&&t.type;return r&&Wv[r]?Wv[r]:null},wS=function(t,r){return _p(r).indexOf(t)},OS=["children","width","height","viewBox","className","style","title","desc"];function Xf(){return Xf=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},Xf.apply(this,arguments)}function _S(e,t){if(e==null)return{};var r=AS(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function AS(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Zf(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,s=e.desc,c=_S(e,OS),f=i||{width:r,height:n,x:0,y:0},l=Q.clsx("recharts-surface",a);return A.createElement("svg",Xf({},X(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),A.createElement("title",null,u),A.createElement("desc",null,s),t)}var SS=["children","className"];function Jf(){return Jf=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},Jf.apply(this,arguments)}function PS(e,t){if(e==null)return{};var r=TS(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TS(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 se=A.forwardRef(function(e,t){var r=e.children,n=e.className,i=PS(e,SS),a=Q.clsx("recharts-layer",n);return A.createElement("g",Jf({className:a},X(i,!0),{ref:t}),r)}),ES=process.env.NODE_ENV!=="production",xt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(ES&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},fs,Vv;function Nw(){if(Vv)return fs;Vv=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return fs=e,fs}var ds,Yv;function jS(){if(Yv)return ds;Yv=1;var e=Nw();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return ds=t,ds}var ps,Xv;function qw(){if(Xv)return ps;Xv=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function s(c){return u.test(c)}return ps=s,ps}var hs,Zv;function CS(){if(Zv)return hs;Zv=1;function e(t){return t.split("")}return hs=e,hs}var vs,Jv;function IS(){if(Jv)return vs;Jv=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",m=c+"?",v="["+a+"]?",h="(?:"+p+"(?:"+[f,l,d].join("|")+")"+v+m+")*",g=v+m+h,x="(?:"+[f+u+"?",u,l,d,o].join("|")+")",w=RegExp(s+"(?="+s+")|"+x+g,"g");function O(y){return y.match(w)||[]}return vs=O,vs}var ys,Qv;function $S(){if(Qv)return ys;Qv=1;var e=CS(),t=qw(),r=IS();function n(i){return t(i)?r(i):e(i)}return ys=n,ys}var ms,ey;function MS(){if(ey)return ms;ey=1;var e=jS(),t=qw(),r=$S(),n=$w();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),c=u?e(u,1).join(""):o.slice(1);return s[a]()+c}}return ms=i,ms}var gs,ty;function RS(){if(ty)return gs;ty=1;var e=MS(),t=e("toUpperCase");return gs=t,gs}var kS=RS();const Co=be(kS);function _e(e){return function(){return e}}const Lw=Math.cos,ga=Math.sin,At=Math.sqrt,ba=Math.PI,Io=2*ba,Qf=Math.PI,ed=2*Qf,yr=1e-6,DS=ed-yr;function Bw(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function NS(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Bw;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class qS{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Bw:NS(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,c=i-r,f=o-t,l=u-r,d=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>yr)if(!(Math.abs(l*s-c*f)>yr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,m=i-u,v=s*s+c*c,h=p*p+m*m,g=Math.sqrt(v),x=Math.sqrt(d),w=a*Math.tan((Qf-Math.acos((v+d-h)/(2*g*x)))/2),O=w/x,y=w/g;Math.abs(O-1)>yr&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*p>f*m)},${this._x1=t+y*s},${this._y1=r+y*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),c=t+u,f=r+s,l=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>yr||Math.abs(this._y1-f)>yr)&&this._append`L${c},${f}`,n&&(d<0&&(d=d%ed+ed),d>DS?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:d>yr&&this._append`A${n},${n},0,${+(d>=Qf)},${l},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Ap(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 qS(t)}function Sp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Fw(e){this._context=e}Fw.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 $o(e){return new Fw(e)}function zw(e){return e[0]}function Ww(e){return e[1]}function Uw(e,t){var r=_e(!0),n=null,i=$o,a=null,o=Ap(u);e=typeof e=="function"?e:e===void 0?zw:_e(e),t=typeof t=="function"?t:t===void 0?Ww:_e(t);function u(s){var c,f=(s=Sp(s)).length,l,d=!1,p;for(n==null&&(a=i(p=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(l,c,s),+t(l,c,s));if(p)return a=null,p+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:_e(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:_e(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:_e(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function Qi(e,t,r){var n=null,i=_e(!0),a=null,o=$o,u=null,s=Ap(c);e=typeof e=="function"?e:e===void 0?zw:_e(+e),t=typeof t=="function"?t:_e(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Ww:_e(+r);function c(l){var d,p,m,v=(l=Sp(l)).length,h,g=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=s())),d=0;d<=v;++d){if(!(d<v&&i(h=l[d],d,l))===g)if(g=!g)p=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),m=d-1;m>=p;--m)u.point(w[m],O[m]);u.lineEnd(),u.areaEnd()}g&&(w[d]=+e(h,d,l),O[d]=+t(h,d,l),u.point(n?+n(h,d,l):w[d],r?+r(h,d,l):O[d]))}if(x)return u=null,x+""||null}function f(){return Uw().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:_e(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:_e(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:_e(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:_e(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:_e(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:_e(+l),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(l){return arguments.length?(i=typeof l=="function"?l:_e(!!l),c):i},c.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),c):o},c.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),c):a},c}class Kw{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 LS(e){return new Kw(e,!0)}function BS(e){return new Kw(e,!1)}const Pp={draw(e,t){const r=At(t/ba);e.moveTo(r,0),e.arc(0,0,r,0,Io)}},FS={draw(e,t){const r=At(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()}},Hw=At(1/3),zS=Hw*2,WS={draw(e,t){const r=At(t/zS),n=r*Hw;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},US={draw(e,t){const r=At(t),n=-r/2;e.rect(n,n,r,r)}},KS=.8908130915292852,Gw=ga(ba/10)/ga(7*ba/10),HS=ga(Io/10)*Gw,GS=-Lw(Io/10)*Gw,VS={draw(e,t){const r=At(t*KS),n=HS*r,i=GS*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Io*a/5,u=Lw(o),s=ga(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},bs=At(3),YS={draw(e,t){const r=-At(t/(bs*3));e.moveTo(0,r*2),e.lineTo(-bs*r,-r),e.lineTo(bs*r,-r),e.closePath()}},ut=-.5,st=At(3)/2,td=1/At(12),XS=(td/2+1)*3,ZS={draw(e,t){const r=At(t/XS),n=r/2,i=r*td,a=n,o=r*td+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(ut*n-st*i,st*n+ut*i),e.lineTo(ut*a-st*o,st*a+ut*o),e.lineTo(ut*u-st*s,st*u+ut*s),e.lineTo(ut*n+st*i,ut*i-st*n),e.lineTo(ut*a+st*o,ut*o-st*a),e.lineTo(ut*u+st*s,ut*s-st*u),e.closePath()}};function JS(e,t){let r=null,n=Ap(i);e=typeof e=="function"?e:_e(e||Pp),t=typeof t=="function"?t:_e(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:_e(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:_e(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function xa(){}function wa(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 Vw(e){this._context=e}Vw.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:wa(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:wa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function QS(e){return new Vw(e)}function Yw(e){this._context=e}Yw.prototype={areaStart:xa,areaEnd:xa,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:wa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function eP(e){return new Yw(e)}function Xw(e){this._context=e}Xw.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:wa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tP(e){return new Xw(e)}function Zw(e){this._context=e}Zw.prototype={areaStart:xa,areaEnd:xa,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 rP(e){return new Zw(e)}function ry(e){return e<0?-1:1}function ny(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(ry(a)+ry(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function iy(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function xs(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function Oa(e){this._context=e}Oa.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:xs(this,this._t0,iy(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,xs(this,iy(this,r=ny(this,e,t)),r);break;default:xs(this,this._t0,r=ny(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Jw(e){this._context=new Qw(e)}(Jw.prototype=Object.create(Oa.prototype)).point=function(e,t){Oa.prototype.point.call(this,t,e)};function Qw(e){this._context=e}Qw.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function nP(e){return new Oa(e)}function iP(e){return new Jw(e)}function eO(e){this._context=e}eO.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=ay(e),i=ay(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function ay(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function aP(e){return new eO(e)}function Mo(e,t){this._context=e,this._t=t}Mo.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 oP(e){return new Mo(e,.5)}function uP(e){return new Mo(e,0)}function sP(e){return new Mo(e,1)}function Jr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function rd(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function cP(e,t){return e[t]}function lP(e){const t=[];return t.key=e,t}function fP(){var e=_e([]),t=rd,r=Jr,n=cP;function i(a){var o=Array.from(e.apply(this,arguments),lP),u,s=o.length,c=-1,f;for(const l of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(l,o[u].key,c,a)]).data=l;for(u=0,f=Sp(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:_e(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:_e(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?rd:typeof a=="function"?a:_e(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Jr,i):r},i}function dP(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Jr(e,t)}}function pP(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}Jr(e,t)}}function hP(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,c=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,d=f[n-1][1]||0,p=(l-d)/2,m=0;m<u;++m){var v=e[t[m]],h=v[n][1]||0,g=v[n-1][1]||0;p+=h-g}s+=l,c+=p*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,Jr(e,t)}}function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}var vP=["type","size","sizeType"];function nd(){return nd=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},nd.apply(this,arguments)}function oy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oy(Object(r),!0).forEach(function(n){yP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yP(e,t,r){return t=mP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mP(e){var t=gP(e,"string");return oi(t)=="symbol"?t:t+""}function gP(e,t){if(oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bP(e,t){if(e==null)return{};var r=xP(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xP(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 tO={symbolCircle:Pp,symbolCross:FS,symbolDiamond:WS,symbolSquare:US,symbolStar:VS,symbolTriangle:YS,symbolWye:ZS},wP=Math.PI/180,OP=function(t){var r="symbol".concat(Co(t));return tO[r]||Pp},_P=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*wP;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},AP=function(t,r){tO["symbol".concat(Co(t))]=r},Tp=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,s=bP(t,vP),c=uy(uy({},s),{},{type:n,size:a,sizeType:u}),f=function(){var h=OP(n),g=JS().type(h).size(_P(a,u,n));return g()},l=c.className,d=c.cx,p=c.cy,m=X(c,!0);return d===+d&&p===+p&&a===+a?A.createElement("path",nd({},m,{className:Q.clsx("recharts-symbols",l),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};Tp.registerSymbol=AP;function Qr(e){"@babel/helpers - typeof";return Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qr(e)}function id(){return id=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},id.apply(this,arguments)}function sy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function SP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sy(Object(r),!0).forEach(function(n){ui(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TP(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,nO(n.key),n)}}function EP(e,t,r){return t&&TP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jP(e,t,r){return t=_a(t),CP(e,rO()?Reflect.construct(t,r||[],_a(e).constructor):t.apply(e,r))}function CP(e,t){if(t&&(Qr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IP(e)}function IP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rO=function(){return!!e})()}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_a(e)}function $P(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&&ad(e,t)}function ad(e,t){return ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ad(e,t)}function ui(e,t,r){return t=nO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nO(e){var t=MP(e,"string");return Qr(t)=="symbol"?t:t+""}function MP(e,t){if(Qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ct=32,Ep=(function(e){function t(){return PP(this,t),jP(this,t,arguments)}return $P(t,e),EP(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=ct/2,o=ct/6,u=ct/3,s=n.inactive?i:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:ct,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
|
|
2
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
|
|
3
|
+
H`).concat(ct,"M").concat(2*u,",").concat(a,`
|
|
4
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return A.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(ct/8,"h").concat(ct,"v").concat(ct*3/4,"h").concat(-ct,"z"),className:"recharts-legend-icon"});if(A.isValidElement(n.legendIcon)){var c=SP({},n);return delete c.legendIcon,A.cloneElement(n.legendIcon,c)}return A.createElement(Tp,{fill:s,cx:a,cy:a,size:ct,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,s=i.formatter,c=i.inactiveColor,f={x:0,y:0,width:ct,height:ct},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,m){var v=p.formatter||s,h=Q.clsx(ui(ui({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var g=re(p.value)?null:p.value;xt(!re(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=p.inactive?c:p.color;return A.createElement("li",id({className:h,style:l,key:"legend-item-".concat(m)},ar(n.props,p,m)),A.createElement(Zf,{width:o,height:o,viewBox:f,style:d},n.renderIcon(p)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(g,p,m):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return A.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(A.PureComponent);ui(Ep,"displayName","Legend");ui(Ep,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ws,cy;function RP(){if(cy)return ws;cy=1;var e=So();function t(){this.__data__=new e,this.size=0}return ws=t,ws}var Os,ly;function kP(){if(ly)return Os;ly=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Os=e,Os}var _s,fy;function DP(){if(fy)return _s;fy=1;function e(t){return this.__data__.get(t)}return _s=e,_s}var As,dy;function NP(){if(dy)return As;dy=1;function e(t){return this.__data__.has(t)}return As=e,As}var Ss,py;function qP(){if(py)return Ss;py=1;var e=So(),t=xp(),r=wp(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!t||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(s)}return u.set(a,o),this.size=u.size,this}return Ss=i,Ss}var Ps,hy;function jp(){if(hy)return Ps;hy=1;var e=So(),t=RP(),r=kP(),n=DP(),i=NP(),a=qP();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,Ps=o,Ps}var Ts,vy;function LP(){if(vy)return Ts;vy=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Ts=t,Ts}var Es,yy;function BP(){if(yy)return Es;yy=1;function e(t){return this.__data__.has(t)}return Es=e,Es}var js,my;function iO(){if(my)return js;my=1;var e=wp(),t=LP(),r=BP();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,js=n,js}var Cs,gy;function aO(){if(gy)return Cs;gy=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return Cs=e,Cs}var Is,by;function oO(){if(by)return Is;by=1;function e(t,r){return t.has(r)}return Is=e,Is}var $s,xy;function uO(){if(xy)return $s;xy=1;var e=iO(),t=aO(),r=oO(),n=1,i=2;function a(o,u,s,c,f,l){var d=s&n,p=o.length,m=u.length;if(p!=m&&!(d&&m>p))return!1;var v=l.get(o),h=l.get(u);if(v&&h)return v==u&&h==o;var g=-1,x=!0,w=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++g<p;){var O=o[g],y=u[g];if(c)var b=d?c(y,O,g,u,o,l):c(O,y,g,o,u,l);if(b!==void 0){if(b)continue;x=!1;break}if(w){if(!t(u,function(_,S){if(!r(w,S)&&(O===_||f(O,_,s,c,l)))return w.push(S)})){x=!1;break}}else if(!(O===y||f(O,y,s,c,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return $s=a,$s}var Ms,wy;function sO(){if(wy)return Ms;wy=1;var e=wt(),t=e.Uint8Array;return Ms=t,Ms}var Rs,Oy;function FP(){if(Oy)return Rs;Oy=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Rs=e,Rs}var ks,_y;function Cp(){if(_y)return ks;_y=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return ks=e,ks}var Ds,Ay;function zP(){if(Ay)return Ds;Ay=1;var e=Tn(),t=sO(),r=_o(),n=uO(),i=FP(),a=Cp(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",d="[object Number]",p="[object RegExp]",m="[object Set]",v="[object String]",h="[object Symbol]",g="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function y(b,_,S,P,j,E,T){switch(S){case x:if(b.byteLength!=_.byteLength||b.byteOffset!=_.byteOffset)return!1;b=b.buffer,_=_.buffer;case g:return!(b.byteLength!=_.byteLength||!E(new t(b),new t(_)));case s:case c:case d:return r(+b,+_);case f:return b.name==_.name&&b.message==_.message;case p:case v:return b==_+"";case l:var I=i;case m:var M=P&o;if(I||(I=a),b.size!=_.size&&!M)return!1;var R=T.get(b);if(R)return R==_;P|=u,T.set(b,_);var k=n(I(b),I(_),P,j,E,T);return T.delete(b),k;case h:if(O)return O.call(b)==O.call(_)}return!1}return Ds=y,Ds}var Ns,Sy;function Ip(){if(Sy)return Ns;Sy=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Ns=e,Ns}var qs,Py;function cO(){if(Py)return qs;Py=1;var e=Ip(),t=Ye();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return qs=r,qs}var Ls,Ty;function WP(){if(Ty)return Ls;Ty=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return Ls=e,Ls}var Bs,Ey;function lO(){if(Ey)return Bs;Ey=1;function e(){return[]}return Bs=e,Bs}var Fs,jy;function $p(){if(jy)return Fs;jy=1;var e=WP(),t=lO(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return Fs=a,Fs}var zs,Cy;function UP(){if(Cy)return zs;Cy=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return zs=e,zs}var Ws,Iy;function KP(){if(Iy)return Ws;Iy=1;var e=Kt(),t=Ot(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Ws=n,Ws}var Us,$y;function Mp(){if($y)return Us;$y=1;var e=KP(),t=Ot(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Us=a,Us}var Yn={exports:{}},Ks,My;function HP(){if(My)return Ks;My=1;function e(){return!1}return Ks=e,Ks}Yn.exports;var Ry;function Rp(){return Ry||(Ry=1,(function(e,t){var r=wt(),n=HP(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;e.exports=c})(Yn,Yn.exports)),Yn.exports}var Hs,ky;function kp(){if(ky)return Hs;ky=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Hs=r,Hs}var Gs,Dy;function Dp(){if(Dy)return Gs;Dy=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Gs=t,Gs}var Vs,Ny;function GP(){if(Ny)return Vs;Ny=1;var e=Kt(),t=Dp(),r=Ot(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",d="[object RegExp]",p="[object Set]",m="[object String]",v="[object WeakMap]",h="[object ArrayBuffer]",g="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",y="[object Int16Array]",b="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",P="[object Uint16Array]",j="[object Uint32Array]",E={};E[x]=E[w]=E[O]=E[y]=E[b]=E[_]=E[S]=E[P]=E[j]=!0,E[n]=E[i]=E[h]=E[a]=E[g]=E[o]=E[u]=E[s]=E[c]=E[f]=E[l]=E[d]=E[p]=E[m]=E[v]=!1;function T(I){return r(I)&&t(I.length)&&!!E[e(I)]}return Vs=T,Vs}var Ys,qy;function Ro(){if(qy)return Ys;qy=1;function e(t){return function(r){return t(r)}}return Ys=e,Ys}var Xn={exports:{}};Xn.exports;var Ly;function Np(){return Ly||(Ly=1,(function(e,t){var r=jw(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(Xn,Xn.exports)),Xn.exports}var Xs,By;function fO(){if(By)return Xs;By=1;var e=GP(),t=Ro(),r=Np(),n=r&&r.isTypedArray,i=n?t(n):e;return Xs=i,Xs}var Zs,Fy;function dO(){if(Fy)return Zs;Fy=1;var e=UP(),t=Mp(),r=Ye(),n=Rp(),i=kp(),a=fO(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),d=!l&&t(c),p=!l&&!d&&n(c),m=!l&&!d&&!p&&a(c),v=l||d||p||m,h=v?e(c.length,String):[],g=h.length;for(var x in c)(f||u.call(c,x))&&!(v&&(x=="length"||p&&(x=="offset"||x=="parent")||m&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,g)))&&h.push(x);return h}return Zs=s,Zs}var Js,zy;function qp(){if(zy)return Js;zy=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Js=t,Js}var Qs,Wy;function pO(){if(Wy)return Qs;Wy=1;function e(t,r){return function(n){return t(r(n))}}return Qs=e,Qs}var ec,Uy;function VP(){if(Uy)return ec;Uy=1;var e=pO(),t=e(Object.keys,Object);return ec=t,ec}var tc,Ky;function YP(){if(Ky)return tc;Ky=1;var e=qp(),t=VP(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return tc=i,tc}var rc,Hy;function In(){if(Hy)return rc;Hy=1;var e=bp(),t=Dp();function r(n){return n!=null&&t(n.length)&&!e(n)}return rc=r,rc}var nc,Gy;function $n(){if(Gy)return nc;Gy=1;var e=dO(),t=YP(),r=In();function n(i){return r(i)?e(i):t(i)}return nc=n,nc}var ic,Vy;function hO(){if(Vy)return ic;Vy=1;var e=cO(),t=$p(),r=$n();function n(i){return e(i,r,t)}return ic=n,ic}var ac,Yy;function XP(){if(Yy)return ac;Yy=1;var e=hO(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,f){var l=u&t,d=e(a),p=d.length,m=e(o),v=m.length;if(p!=v&&!l)return!1;for(var h=p;h--;){var g=d[h];if(!(l?g in o:n.call(o,g)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var y=l;++h<p;){g=d[h];var b=a[g],_=o[g];if(s)var S=l?s(_,b,g,o,a,f):s(b,_,g,a,o,f);if(!(S===void 0?b===_||c(b,_,u,s,f):S)){O=!1;break}y||(y=g=="constructor")}if(O&&!y){var P=a.constructor,j=o.constructor;P!=j&&"constructor"in a&&"constructor"in o&&!(typeof P=="function"&&P instanceof P&&typeof j=="function"&&j instanceof j)&&(O=!1)}return f.delete(a),f.delete(o),O}return ac=i,ac}var oc,Xy;function ZP(){if(Xy)return oc;Xy=1;var e=Ir(),t=wt(),r=e(t,"DataView");return oc=r,oc}var uc,Zy;function JP(){if(Zy)return uc;Zy=1;var e=Ir(),t=wt(),r=e(t,"Promise");return uc=r,uc}var sc,Jy;function vO(){if(Jy)return sc;Jy=1;var e=Ir(),t=wt(),r=e(t,"Set");return sc=r,sc}var cc,Qy;function QP(){if(Qy)return cc;Qy=1;var e=Ir(),t=wt(),r=e(t,"WeakMap");return cc=r,cc}var lc,em;function ko(){if(em)return lc;em=1;var e=ZP(),t=xp(),r=JP(),n=vO(),i=QP(),a=Kt(),o=Cw(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",d="[object DataView]",p=o(e),m=o(t),v=o(r),h=o(n),g=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=d||t&&x(new t)!=u||r&&x(r.resolve())!=c||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),y=O==s?w.constructor:void 0,b=y?o(y):"";if(b)switch(b){case p:return d;case m:return u;case v:return c;case h:return f;case g:return l}return O}),lc=x,lc}var fc,tm;function eT(){if(tm)return fc;tm=1;var e=jp(),t=uO(),r=zP(),n=XP(),i=ko(),a=Ye(),o=Rp(),u=fO(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",d=Object.prototype,p=d.hasOwnProperty;function m(v,h,g,x,w,O){var y=a(v),b=a(h),_=y?f:i(v),S=b?f:i(h);_=_==c?l:_,S=S==c?l:S;var P=_==l,j=S==l,E=_==S;if(E&&o(v)){if(!o(h))return!1;y=!0,P=!1}if(E&&!P)return O||(O=new e),y||u(v)?t(v,h,g,x,w,O):r(v,h,_,g,x,w,O);if(!(g&s)){var T=P&&p.call(v,"__wrapped__"),I=j&&p.call(h,"__wrapped__");if(T||I){var M=T?v.value():v,R=I?h.value():h;return O||(O=new e),w(M,R,g,x,O)}}return E?(O||(O=new e),n(v,h,g,x,w,O)):!1}return fc=m,fc}var dc,rm;function Lp(){if(rm)return dc;rm=1;var e=eT(),t=Ot();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return dc=r,dc}var pc,nm;function tT(){if(nm)return pc;nm=1;var e=jp(),t=Lp(),r=1,n=2;function i(a,o,u,s){var c=u.length,f=c,l=!s;if(a==null)return!f;for(a=Object(a);c--;){var d=u[c];if(l&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++c<f;){d=u[c];var p=d[0],m=a[p],v=d[1];if(l&&d[2]){if(m===void 0&&!(p in a))return!1}else{var h=new e;if(s)var g=s(m,v,p,a,o,h);if(!(g===void 0?t(v,m,r|n,s,h):g))return!1}}return!0}return pc=i,pc}var hc,im;function yO(){if(im)return hc;im=1;var e=_t();function t(r){return r===r&&!e(r)}return hc=t,hc}var vc,am;function rT(){if(am)return vc;am=1;var e=yO(),t=$n();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return vc=r,vc}var yc,om;function mO(){if(om)return yc;om=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return yc=e,yc}var mc,um;function nT(){if(um)return mc;um=1;var e=tT(),t=rT(),r=mO();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return mc=n,mc}var gc,sm;function iT(){if(sm)return gc;sm=1;function e(t,r){return t!=null&&r in Object(t)}return gc=e,gc}var bc,cm;function aT(){if(cm)return bc;cm=1;var e=Eo(),t=Mp(),r=Ye(),n=kp(),i=Dp(),a=Fi();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,d=!1;++f<l;){var p=a(s[f]);if(!(d=u!=null&&c(u,p)))break;u=u[p]}return d||++f!=l?d:(l=u==null?0:u.length,!!l&&i(l)&&n(p,l)&&(r(u)||t(u)))}return bc=o,bc}var xc,lm;function oT(){if(lm)return xc;lm=1;var e=iT(),t=aT();function r(n,i){return n!=null&&t(n,i,e)}return xc=r,xc}var wc,fm;function uT(){if(fm)return wc;fm=1;var e=Lp(),t=Mw(),r=oT(),n=gp(),i=yO(),a=mO(),o=Fi(),u=1,s=2;function c(f,l){return n(f)&&i(l)?a(o(f),l):function(d){var p=t(d,f);return p===void 0&&p===l?r(d,f):e(l,p,u|s)}}return wc=c,wc}var Oc,dm;function Mn(){if(dm)return Oc;dm=1;function e(t){return t}return Oc=e,Oc}var _c,pm;function sT(){if(pm)return _c;pm=1;function e(t){return function(r){return r?.[t]}}return _c=e,_c}var Ac,hm;function cT(){if(hm)return Ac;hm=1;var e=jo();function t(r){return function(n){return e(n,r)}}return Ac=t,Ac}var Sc,vm;function lT(){if(vm)return Sc;vm=1;var e=sT(),t=cT(),r=gp(),n=Fi();function i(a){return r(a)?e(n(a)):t(a)}return Sc=i,Sc}var Pc,ym;function $t(){if(ym)return Pc;ym=1;var e=nT(),t=uT(),r=Mn(),n=Ye(),i=lT();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return Pc=a,Pc}var Tc,mm;function gO(){if(mm)return Tc;mm=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return Tc=e,Tc}var Ec,gm;function fT(){if(gm)return Ec;gm=1;function e(t){return t!==t}return Ec=e,Ec}var jc,bm;function dT(){if(bm)return jc;bm=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return jc=e,jc}var Cc,xm;function pT(){if(xm)return Cc;xm=1;var e=gO(),t=fT(),r=dT();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return Cc=n,Cc}var Ic,wm;function hT(){if(wm)return Ic;wm=1;var e=pT();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Ic=t,Ic}var $c,Om;function vT(){if(Om)return $c;Om=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return $c=e,$c}var Mc,_m;function yT(){if(_m)return Mc;_m=1;function e(){}return Mc=e,Mc}var Rc,Am;function mT(){if(Am)return Rc;Am=1;var e=vO(),t=yT(),r=Cp(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Rc=i,Rc}var kc,Sm;function gT(){if(Sm)return kc;Sm=1;var e=iO(),t=hT(),r=vT(),n=oO(),i=mT(),a=Cp(),o=200;function u(s,c,f){var l=-1,d=t,p=s.length,m=!0,v=[],h=v;if(f)m=!1,d=r;else if(p>=o){var g=c?null:i(s);if(g)return a(g);m=!1,d=n,h=new e}else h=c?[]:v;e:for(;++l<p;){var x=s[l],w=c?c(x):x;if(x=f||x!==0?x:0,m&&w===w){for(var O=h.length;O--;)if(h[O]===w)continue e;c&&h.push(w),v.push(x)}else d(h,w,f)||(h!==v&&h.push(w),v.push(x))}return v}return kc=u,kc}var Dc,Pm;function bT(){if(Pm)return Dc;Pm=1;var e=$t(),t=gT();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Dc=r,Dc}var xT=bT();const Tm=be(xT);function bO(e,t,r){return t===!0?Tm(e,r):re(t)?Tm(e,t):e}function en(e){"@babel/helpers - typeof";return en=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},en(e)}var wT=["ref"];function Em(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Em(Object(r),!0).forEach(function(n){Do(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Em(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jm(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,wO(n.key),n)}}function _T(e,t,r){return t&&jm(e.prototype,t),r&&jm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function AT(e,t,r){return t=Aa(t),ST(e,xO()?Reflect.construct(t,r||[],Aa(e).constructor):t.apply(e,r))}function ST(e,t){if(t&&(en(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PT(e)}function PT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xO=function(){return!!e})()}function Aa(e){return Aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Aa(e)}function TT(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&&od(e,t)}function od(e,t){return od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},od(e,t)}function Do(e,t,r){return t=wO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wO(e){var t=ET(e,"string");return en(t)=="symbol"?t:t+""}function ET(e,t){if(en(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(en(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function jT(e,t){if(e==null)return{};var r=CT(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CT(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 IT(e){return e.value}function $T(e,t){if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return A.createElement(e,t);t.ref;var r=jT(t,wT);return A.createElement(Ep,r)}var Cm=1,Tt=(function(e){function t(){var r;OT(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=AT(this,t,[].concat(i)),Do(r,"lastBoundingBox",{width:-1,height:-1}),r}return TT(t,e),_T(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Cm||Math.abs(i.height-this.lastBoundingBox.height)>Cm)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Mt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,c=i.chartWidth,f=i.chartHeight,l,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();l={left:((c||0)-p.width)/2}}else l=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var m=this.getBBoxSnapshot();d={top:((f||0)-m.height)/2}}else d=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Mt(Mt({},l),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,l=Mt(Mt({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return A.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(p){n.wrapperNode=p}},$T(a,Mt(Mt({},this.props),{},{payload:bO(f,c,IT)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Mt(Mt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&z(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(A.PureComponent);Do(Tt,"displayName","Legend");Do(Tt,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Nc,Im;function MT(){if(Im)return Nc;Im=1;var e=Tn(),t=Mp(),r=Ye(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Nc=i,Nc}var qc,$m;function Bp(){if($m)return qc;$m=1;var e=Ip(),t=MT();function r(n,i,a,o,u){var s=-1,c=n.length;for(a||(a=t),u||(u=[]);++s<c;){var f=n[s];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return qc=r,qc}var Lc,Mm;function RT(){if(Mm)return Lc;Mm=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),s=u.length;s--;){var c=u[t?s:++a];if(n(o[c],c,o)===!1)break}return r}}return Lc=e,Lc}var Bc,Rm;function kT(){if(Rm)return Bc;Rm=1;var e=RT(),t=e();return Bc=t,Bc}var Fc,km;function OO(){if(km)return Fc;km=1;var e=kT(),t=$n();function r(n,i){return n&&e(n,i,t)}return Fc=r,Fc}var zc,Dm;function DT(){if(Dm)return zc;Dm=1;var e=In();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return zc=t,zc}var Wc,Nm;function Fp(){if(Nm)return Wc;Nm=1;var e=OO(),t=DT(),r=t(e);return Wc=r,Wc}var Uc,qm;function _O(){if(qm)return Uc;qm=1;var e=Fp(),t=In();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,s,c){o[++a]=i(u,s,c)}),o}return Uc=r,Uc}var Kc,Lm;function NT(){if(Lm)return Kc;Lm=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Kc=e,Kc}var Hc,Bm;function qT(){if(Bm)return Hc;Bm=1;var e=En();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),s=n!==void 0,c=n===null,f=n===n,l=e(n);if(!c&&!l&&!u&&r>n||u&&s&&f&&!c&&!l||a&&s&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||c&&i&&o||!s&&o||!f)return-1}return 0}return Hc=t,Hc}var Gc,Fm;function LT(){if(Fm)return Gc;Fm=1;var e=qT();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=c)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return Gc=t,Gc}var Vc,zm;function BT(){if(zm)return Vc;zm=1;var e=To(),t=jo(),r=$t(),n=_O(),i=NT(),a=Ro(),o=LT(),u=Mn(),s=Ye();function c(f,l,d){l.length?l=e(l,function(v){return s(v)?function(h){return t(h,v.length===1?v[0]:v)}:v}):l=[u];var p=-1;l=e(l,a(r));var m=n(f,function(v,h,g){var x=e(l,function(w){return w(v)});return{criteria:x,index:++p,value:v}});return i(m,function(v,h){return o(v,h,d)})}return Vc=c,Vc}var Yc,Wm;function FT(){if(Wm)return Yc;Wm=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Yc=e,Yc}var Xc,Um;function AO(){if(Um)return Xc;Um=1;var e=FT(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=t(o.length-i,0),c=Array(s);++u<s;)c[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(c),e(n,this,f)}}return Xc=r,Xc}var Zc,Km;function zT(){if(Km)return Zc;Km=1;function e(t){return function(){return t}}return Zc=e,Zc}var Jc,Hm;function SO(){if(Hm)return Jc;Hm=1;var e=Ir(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Jc=t,Jc}var Qc,Gm;function WT(){if(Gm)return Qc;Gm=1;var e=zT(),t=SO(),r=Mn(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Qc=n,Qc}var el,Vm;function UT(){if(Vm)return el;Vm=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),s=t-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return el=n,el}var tl,Ym;function PO(){if(Ym)return tl;Ym=1;var e=WT(),t=UT(),r=t(e);return tl=r,tl}var rl,Xm;function KT(){if(Xm)return rl;Xm=1;var e=Mn(),t=AO(),r=PO();function n(i,a){return r(t(i,a,e),i+"")}return rl=n,rl}var nl,Zm;function No(){if(Zm)return nl;Zm=1;var e=_o(),t=In(),r=kp(),n=_t();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?t(u)&&r(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return nl=i,nl}var il,Jm;function HT(){if(Jm)return il;Jm=1;var e=Bp(),t=BT(),r=KT(),n=No(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return il=i,il}var GT=HT();const zp=be(GT);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 ud(){return ud=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},ud.apply(this,arguments)}function VT(e,t){return JT(e)||ZT(e,t)||XT(e,t)||YT()}function YT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XT(e,t){if(e){if(typeof e=="string")return Qm(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 Qm(e,t)}}function Qm(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 ZT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function JT(e){if(Array.isArray(e))return e}function eg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function al(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eg(Object(r),!0).forEach(function(n){QT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QT(e,t,r){return t=eE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eE(e){var t=tE(e,"string");return si(t)=="symbol"?t:t+""}function tE(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)}function rE(e){return Array.isArray(e)&&Re(e[0])&&Re(e[1])?e.join(" ~ "):e}var nE=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,s=t.labelStyle,c=s===void 0?{}:s,f=t.payload,l=t.formatter,d=t.itemSorter,p=t.wrapperClassName,m=t.labelClassName,v=t.label,h=t.labelFormatter,g=t.accessibilityLayer,x=g===void 0?!1:g,w=function(){if(f&&f.length){var T={padding:0,margin:0},I=(d?zp(f,d):f).map(function(M,R){if(M.type==="none")return null;var k=al({display:"block",paddingTop:4,paddingBottom:4,color:M.color||"#000"},u),N=M.formatter||l||rE,F=M.value,K=M.name,$=F,q=K;if(N&&$!=null&&q!=null){var L=N(F,K,M,R,f);if(Array.isArray(L)){var U=VT(L,2);$=U[0],q=U[1]}else $=L}return A.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(R),style:k},Re(q)?A.createElement("span",{className:"recharts-tooltip-item-name"},q):null,Re(q)?A.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,A.createElement("span",{className:"recharts-tooltip-item-value"},$),A.createElement("span",{className:"recharts-tooltip-item-unit"},M.unit||""))});return A.createElement("ul",{className:"recharts-tooltip-item-list",style:T},I)}return null},O=al({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),y=al({margin:0},c),b=!ue(v),_=b?v:"",S=Q.clsx("recharts-default-tooltip",p),P=Q.clsx("recharts-tooltip-label",m);b&&h&&f!==void 0&&f!==null&&(_=h(v,f));var j=x?{role:"status","aria-live":"assertive"}:{};return A.createElement("div",ud({className:S,style:O},j),A.createElement("p",{className:P,style:y},A.isValidElement(_)?_:"".concat(_)),w())};function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function ea(e,t,r){return t=iE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iE(e){var t=aE(e,"string");return ci(t)=="symbol"?t:t+""}function aE(e,t){if(ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bn="recharts-tooltip-wrapper",oE={visibility:"hidden"};function uE(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Q.clsx(Bn,ea(ea(ea(ea({},"".concat(Bn,"-right"),z(r)&&t&&z(t.x)&&r>=t.x),"".concat(Bn,"-left"),z(r)&&t&&z(t.x)&&r<t.x),"".concat(Bn,"-bottom"),z(n)&&t&&z(t.y)&&n>=t.y),"".concat(Bn,"-top"),z(n)&&t&&z(t.y)&&n<t.y))}function tg(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&z(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var d=f,p=s[n];return d<p?Math.max(l,s[n]):Math.max(f,s[n])}var m=l+u,v=s[n]+c;return m>v?Math.max(f,s[n]):Math.max(l,s[n])}function sE(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 cE(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,c,f,l;return o.height>0&&o.width>0&&r?(f=tg({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=tg({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=sE({translateX:f,translateY:l,useTranslate3d:u})):c=oE,{cssProperties:c,cssClasses:uE({translateX:f,translateY:l,coordinate:r})}}function tn(e){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tn(e)}function rg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function 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){cd(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 lE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fE(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,EO(n.key),n)}}function dE(e,t,r){return t&&fE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pE(e,t,r){return t=Sa(t),hE(e,TO()?Reflect.construct(t,r||[],Sa(e).constructor):t.apply(e,r))}function hE(e,t){if(t&&(tn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vE(e)}function vE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TO=function(){return!!e})()}function Sa(e){return Sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sa(e)}function yE(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&&sd(e,t)}function sd(e,t){return sd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sd(e,t)}function cd(e,t,r){return t=EO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EO(e){var t=mE(e,"string");return tn(t)=="symbol"?t:t+""}function mE(e,t){if(tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ig=1,gE=(function(e){function t(){var r;lE(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=pE(this,t,[].concat(i)),cd(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),cd(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,c,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(c=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),r}return yE(t,e),dE(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>ig||Math.abs(n.height-this.state.lastBoundingBox.height)>ig)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.children,f=i.coordinate,l=i.hasPayload,d=i.isAnimationActive,p=i.offset,m=i.position,v=i.reverseDirection,h=i.useTranslate3d,g=i.viewBox,x=i.wrapperStyle,w=cE({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:m,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:g}),O=w.cssClasses,y=w.cssProperties,b=ng(ng({transition:d&&a?"transform ".concat(u,"ms ").concat(s):void 0},y),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return A.createElement("div",{tabIndex:-1,className:O,style:b,ref:function(S){n.wrapperNode=S}},c)}}])})(A.PureComponent),bE=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ht={isSsr:bE()};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 ag(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function og(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ag(Object(r),!0).forEach(function(n){Wp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ag(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wE(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,CO(n.key),n)}}function OE(e,t,r){return t&&wE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _E(e,t,r){return t=Pa(t),AE(e,jO()?Reflect.construct(t,r||[],Pa(e).constructor):t.apply(e,r))}function AE(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 SE(e)}function SE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jO=function(){return!!e})()}function Pa(e){return Pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pa(e)}function PE(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&&ld(e,t)}function ld(e,t){return ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ld(e,t)}function Wp(e,t,r){return t=CO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CO(e){var t=TE(e,"string");return rn(t)=="symbol"?t:t+""}function TE(e,t){if(rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function EE(e){return e.dataKey}function jE(e,t){return A.isValidElement(e)?A.cloneElement(e,t):typeof e=="function"?A.createElement(e,t):A.createElement(nE,t)}var Xe=(function(e){function t(){return xE(this,t),_E(this,t,arguments)}return PE(t,e),OE(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.content,f=i.coordinate,l=i.filterNull,d=i.isAnimationActive,p=i.offset,m=i.payload,v=i.payloadUniqBy,h=i.position,g=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,y=m??[];l&&y.length&&(y=bO(m.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,EE));var b=y.length>0;return A.createElement(gE,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:d,active:a,coordinate:f,hasPayload:b,offset:p,position:h,reverseDirection:g,useTranslate3d:x,viewBox:w,wrapperStyle:O},jE(c,og(og({},this.props),{},{payload:y})))}}])})(A.PureComponent);Wp(Xe,"displayName","Tooltip");Wp(Xe,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ht.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 ol,ug;function CE(){if(ug)return ol;ug=1;var e=wt(),t=function(){return e.Date.now()};return ol=t,ol}var ul,sg;function IE(){if(sg)return ul;sg=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return ul=t,ul}var sl,cg;function $E(){if(cg)return sl;cg=1;var e=IE(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return sl=r,sl}var cl,lg;function IO(){if(lg)return cl;lg=1;var e=$E(),t=_t(),r=En(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=t(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=e(c);var l=a.test(c);return l||o.test(c)?u(c.slice(2),l?2:8):i.test(c)?n:+c}return cl=s,cl}var ll,fg;function ME(){if(fg)return ll;fg=1;var e=_t(),t=CE(),r=IO(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var f,l,d,p,m,v,h=0,g=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(g=!!c.leading,x="maxWait"in c,d=x?i(r(c.maxWait)||0,s):d,w="trailing"in c?!!c.trailing:w);function O(I){var M=f,R=l;return f=l=void 0,h=I,p=u.apply(R,M),p}function y(I){return h=I,m=setTimeout(S,s),g?O(I):p}function b(I){var M=I-v,R=I-h,k=s-M;return x?a(k,d-R):k}function _(I){var M=I-v,R=I-h;return v===void 0||M>=s||M<0||x&&R>=d}function S(){var I=t();if(_(I))return P(I);m=setTimeout(S,b(I))}function P(I){return m=void 0,w&&f?O(I):(f=l=void 0,p)}function j(){m!==void 0&&clearTimeout(m),h=0,f=v=l=m=void 0}function E(){return m===void 0?p:P(t())}function T(){var I=t(),M=_(I);if(f=arguments,l=this,v=I,M){if(m===void 0)return y(v);if(x)return clearTimeout(m),m=setTimeout(S,s),O(v)}return m===void 0&&(m=setTimeout(S,s)),p}return T.cancel=j,T.flush=E,T}return ll=o,ll}var fl,dg;function RE(){if(dg)return fl;dg=1;var e=ME(),t=_t(),r="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return fl=n,fl}var kE=RE();const $O=be(kE);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 pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ta(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pg(Object(r),!0).forEach(function(n){DE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DE(e,t,r){return t=NE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NE(e){var t=qE(e,"string");return li(t)=="symbol"?t:t+""}function qE(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 LE(e,t){return WE(e)||zE(e,t)||FE(e,t)||BE()}function BE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FE(e,t){if(e){if(typeof e=="string")return hg(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 hg(e,t)}}function hg(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 zE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function WE(e){if(Array.isArray(e))return e}var Mr=A.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,s=u===void 0?"100%":u,c=e.minWidth,f=c===void 0?0:c,l=e.minHeight,d=e.maxHeight,p=e.children,m=e.debounce,v=m===void 0?0:m,h=e.id,g=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,y=A.useRef(null),b=A.useRef();b.current=x,A.useImperativeHandle(t,function(){return Object.defineProperty(y.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),y.current},configurable:!0})});var _=A.useState({containerWidth:i.width,containerHeight:i.height}),S=LE(_,2),P=S[0],j=S[1],E=A.useCallback(function(I,M){j(function(R){var k=Math.round(I),N=Math.round(M);return R.containerWidth===k&&R.containerHeight===N?R:{containerWidth:k,containerHeight:N}})},[]);A.useEffect(function(){var I=function(K){var $,q=K[0].contentRect,L=q.width,U=q.height;E(L,U),($=b.current)===null||$===void 0||$.call(b,L,U)};v>0&&(I=$O(I,v,{trailing:!0,leading:!1}));var M=new ResizeObserver(I),R=y.current.getBoundingClientRect(),k=R.width,N=R.height;return E(k,N),M.observe(y.current),function(){M.disconnect()}},[E,v]);var T=A.useMemo(function(){var I=P.containerWidth,M=P.containerHeight;if(I<0||M<0)return null;xt(br(o)||br(s),`The width(%s) and height(%s) are both fixed numbers,
|
|
7
|
+
maybe you don't need to use a ResponsiveContainer.`,o,s),xt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var R=br(o)?I:o,k=br(s)?M:s;r&&r>0&&(R?k=R/r:k&&(R=k*r),d&&k>d&&(k=d)),xt(R>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
8
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
9
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
10
|
+
height and width.`,R,k,o,s,f,l,r);var N=!Array.isArray(p)&&qt(p.type).endsWith("Chart");return A.Children.map(p,function(F){return A.isValidElement(F)?A.cloneElement(F,ta({width:R,height:k},N?{style:ta({height:"100%",width:"100%",maxHeight:k,maxWidth:R},F.props.style)}:{})):F})},[r,p,s,d,l,f,P,o]);return A.createElement("div",{id:h?"".concat(h):void 0,className:Q.clsx("recharts-responsive-container",g),style:ta(ta({},O),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:d}),ref:y},T)}),Rn=function(t){return null};Rn.displayName="Cell";function fi(e){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(e)}function vg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fd(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){UE(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 UE(e,t,r){return t=KE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KE(e){var t=HE(e,"string");return fi(t)=="symbol"?t:t+""}function HE(e,t){if(fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Br={widthCache:{},cacheCount:0},GE=2e3,VE={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},yg="recharts_measurement_span";function YE(e){var t=fd({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Qn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ht.isSsr)return{width:0,height:0};var n=YE(r),i=JSON.stringify({text:t,copyStyle:n});if(Br.widthCache[i])return Br.widthCache[i];try{var a=document.getElementById(yg);a||(a=document.createElement("span"),a.setAttribute("id",yg),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=fd(fd({},VE),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return Br.widthCache[i]=s,++Br.cacheCount>GE&&(Br.cacheCount=0,Br.widthCache={}),s}catch{return{width:0,height:0}}},XE=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function Ta(e,t){return ej(e)||QE(e,t)||JE(e,t)||ZE()}function ZE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JE(e,t){if(e){if(typeof e=="string")return mg(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 mg(e,t)}}function mg(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 QE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function ej(e){if(Array.isArray(e))return e}function tj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nj(n.key),n)}}function rj(e,t,r){return t&&gg(e.prototype,t),r&&gg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nj(e){var t=ij(e,"string");return di(t)=="symbol"?t:t+""}function ij(e,t){if(di(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(di(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bg=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,xg=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,aj=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,oj=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,MO={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},uj=Object.keys(MO),Ur="NaN";function sj(e,t){return e*MO[t]}var ra=(function(){function e(t,r){tj(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!aj.test(r)&&(this.num=NaN,this.unit=""),uj.includes(r)&&(this.num=sj(t,r),this.unit="px")}return rj(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=oj.exec(r))!==null&&n!==void 0?n:[],a=Ta(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function RO(e){if(e.includes(Ur))return Ur;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=bg.exec(t))!==null&&r!==void 0?r:[],i=Ta(n,4),a=i[1],o=i[2],u=i[3],s=ra.parse(a??""),c=ra.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return Ur;t=t.replace(bg,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,d=(l=xg.exec(t))!==null&&l!==void 0?l:[],p=Ta(d,4),m=p[1],v=p[2],h=p[3],g=ra.parse(m??""),x=ra.parse(h??""),w=v==="+"?g.add(x):g.subtract(x);if(w.isNaN())return Ur;t=t.replace(xg,w.toString())}return t}var wg=/\(([^()]*)\)/;function cj(e){for(var t=e;t.includes("(");){var r=wg.exec(t),n=Ta(r,2),i=n[1];t=t.replace(wg,RO(i))}return t}function lj(e){var t=e.replace(/\s+/g,"");return t=cj(t),t=RO(t),t}function fj(e){try{return lj(e)}catch{return Ur}}function dl(e){var t=fj(e.slice(5,-1));return t===Ur?"":t}var dj=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],pj=["dx","dy","angle","className","breakAll"];function dd(){return dd=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},dd.apply(this,arguments)}function Og(e,t){if(e==null)return{};var r=hj(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hj(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 _g(e,t){return gj(e)||mj(e,t)||yj(e,t)||vj()}function vj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yj(e,t){if(e){if(typeof e=="string")return Ag(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 Ag(e,t)}}function Ag(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 mj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function gj(e){if(Array.isArray(e))return e}var kO=/[ \f\n\r\t\v\u2028\u2029]+/,DO=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];ue(r)||(n?a=r.toString().split(""):a=r.toString().split(kO));var o=a.map(function(s){return{word:s,width:Qn(s,i).width}}),u=n?0:Qn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},bj=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=z(o),l=u,d=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return R.reduce(function(k,N){var F=N.word,K=N.width,$=k[k.length-1];if($&&(i==null||a||$.width+K+n<Number(i)))$.words.push(F),$.width+=K+n;else{var q={words:[F],width:K};k.push(q)}return k},[])},p=d(r),m=function(R){return R.reduce(function(k,N){return k.width>N.width?k:N})};if(!f)return p;for(var v="…",h=function(R){var k=l.slice(0,R),N=DO({breakAll:c,style:s,children:k+v}).wordsWithComputedWidth,F=d(N),K=F.length>o||m(F).width>Number(i);return[K,F]},g=0,x=l.length-1,w=0,O;g<=x&&w<=l.length-1;){var y=Math.floor((g+x)/2),b=y-1,_=h(b),S=_g(_,2),P=S[0],j=S[1],E=h(y),T=_g(E,1),I=T[0];if(!P&&!I&&(g=y+1),P&&I&&(x=y-1),!P&&I){O=j;break}w++}return O||p},Sg=function(t){var r=ue(t)?[]:t.toString().split(kO);return[{words:r}]},xj=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!Ht.isSsr){var s,c,f=DO({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,d=f.spaceWidth;s=l,c=d}else return Sg(i);return bj({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return Sg(i)},Pg="#808080",Tr=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,s=t.capHeight,c=s===void 0?"0.71em":s,f=t.scaleToFit,l=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,m=t.verticalAnchor,v=m===void 0?"end":m,h=t.fill,g=h===void 0?Pg:h,x=Og(t,dj),w=A.useMemo(function(){return xj({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),O=x.dx,y=x.dy,b=x.angle,_=x.className,S=x.breakAll,P=Og(x,pj);if(!Re(n)||!Re(a))return null;var j=n+(z(O)?O:0),E=a+(z(y)?y:0),T;switch(v){case"start":T=dl("calc(".concat(c,")"));break;case"middle":T=dl("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:T=dl("calc(".concat(w.length-1," * -").concat(u,")"));break}var I=[];if(l){var M=w[0].width,R=x.width;I.push("scale(".concat((z(R)?R/M:1)/M,")"))}return b&&I.push("rotate(".concat(b,", ").concat(j,", ").concat(E,")")),I.length&&(P.transform=I.join(" ")),A.createElement("text",dd({},X(P,!0),{x:j,y:E,className:Q.clsx("recharts-text",_),textAnchor:p,fill:g.includes("url")?Pg:g}),w.map(function(k,N){var F=k.words.join(S?"":" ");return A.createElement("tspan",{x:j,dy:N===0?T:u,key:"".concat(F,"-").concat(N)},F)}))};function nr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wj(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Up(e){let t,r,n;e.length!==2?(t=nr,r=(u,s)=>nr(e(u),s),n=(u,s)=>e(u)-s):(t=e===nr||e===wj?e:Oj,r=e,n=e);function i(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<0?c=l+1:f=l}while(c<f)}return c}function a(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<=0?c=l+1:f=l}while(c<f)}return c}function o(u,s,c=0,f=u.length){const l=i(u,s,c,f-1);return l>c&&n(u[l-1],s)>-n(u[l],s)?l-1:l}return{left:i,center:o,right:a}}function Oj(){return 0}function NO(e){return e===null?NaN:+e}function*_j(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Aj=Up(nr),zi=Aj.right;Up(NO).center;class Tg extends Map{constructor(t,r=Tj){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Eg(this,t))}has(t){return super.has(Eg(this,t))}set(t,r){return super.set(Sj(this,t),r)}delete(t){return super.delete(Pj(this,t))}}function Eg({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Sj({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Pj({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Tj(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Ej(e=nr){if(e===nr)return qO;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 qO(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const jj=Math.sqrt(50),Cj=Math.sqrt(10),Ij=Math.sqrt(2);function Ea(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=jj?10:a>=Cj?5:a>=Ij?2:1;let u,s,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),s=Math.round(t*c),u/c<e&&++u,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),s=Math.round(t/c),u*c<e&&++u,s*c>t&&--s),s<u&&.5<=r&&r<2?Ea(e,t,r*2):[u,s,c]}function pd(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Ea(t,e,r):Ea(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)s[c]=(a-c)/-o;else for(let c=0;c<u;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)s[c]=(i+c)/-o;else for(let c=0;c<u;++c)s[c]=(i+c)*o;return s}function hd(e,t,r){return t=+t,e=+e,r=+r,Ea(e,t,r)[2]}function vd(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?hd(t,e,r):hd(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function jg(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Cg(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function LO(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?qO:Ej(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),p=Math.max(r,Math.floor(t-c*l/s+d)),m=Math.min(n,Math.floor(t+(s-c)*l/s+d));LO(e,t,p,m,i)}const a=e[t];let o=r,u=n;for(Fn(e,r,t),i(e[n],a)>0&&Fn(e,r,n);o<u;){for(Fn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Fn(e,r,u):(++u,Fn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Fn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function $j(e,t,r){if(e=Float64Array.from(_j(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Cg(e);if(t>=1)return jg(e);var n,i=(n-1)*t,a=Math.floor(i),o=jg(LO(e,a).subarray(0,a+1)),u=Cg(e.subarray(a+1));return o+(u-o)*(i-a)}}function Mj(e,t,r=NO){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function Rj(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function vt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Gt(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 yd=Symbol("implicit");function Kp(){var e=new Tg,t=[],r=[],n=yd;function i(a){let o=e.get(a);if(o===void 0){if(n!==yd)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Tg;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Kp(t,r).unknown(n)},vt.apply(i,arguments),i}function pi(){var e=Kp().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,f=.5;delete e.unknown;function l(){var d=t().length,p=i<n,m=p?i:n,v=p?n:i;a=(v-m)/Math.max(1,d-s+c*2),u&&(a=Math.floor(a)),m+=(v-m-a*(d-s))*f,o=a*(1-s),u&&(m=Math.round(m),o=Math.round(o));var h=Rj(d).map(function(g){return m+a*g});return r(p?h.reverse():h)}return e.domain=function(d){return arguments.length?(t(d),l()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,l()):u},e.padding=function(d){return arguments.length?(s=Math.min(1,c=+d),l()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),l()):s},e.paddingOuter=function(d){return arguments.length?(c=+d,l()):c},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),l()):f},e.copy=function(){return pi(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},vt.apply(l(),arguments)}function BO(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return BO(t())},e}function ei(){return BO(pi.apply(null,arguments).paddingInner(1))}function Hp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function FO(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Wi(){}var hi=.7,ja=1/hi,Xr="\\s*([+-]?\\d+)\\s*",vi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Et="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kj=/^#([0-9a-f]{3,8})$/,Dj=new RegExp(`^rgb\\(${Xr},${Xr},${Xr}\\)$`),Nj=new RegExp(`^rgb\\(${Et},${Et},${Et}\\)$`),qj=new RegExp(`^rgba\\(${Xr},${Xr},${Xr},${vi}\\)$`),Lj=new RegExp(`^rgba\\(${Et},${Et},${Et},${vi}\\)$`),Bj=new RegExp(`^hsl\\(${vi},${Et},${Et}\\)$`),Fj=new RegExp(`^hsla\\(${vi},${Et},${Et},${vi}\\)$`),Ig={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};Hp(Wi,yi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:$g,formatHex:$g,formatHex8:zj,formatHsl:Wj,formatRgb:Mg,toString:Mg});function $g(){return this.rgb().formatHex()}function zj(){return this.rgb().formatHex8()}function Wj(){return zO(this).formatHsl()}function Mg(){return this.rgb().formatRgb()}function yi(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=kj.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Rg(t):r===3?new Ze(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?na(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?na(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=Dj.exec(e))?new Ze(t[1],t[2],t[3],1):(t=Nj.exec(e))?new Ze(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=qj.exec(e))?na(t[1],t[2],t[3],t[4]):(t=Lj.exec(e))?na(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Bj.exec(e))?Ng(t[1],t[2]/100,t[3]/100,1):(t=Fj.exec(e))?Ng(t[1],t[2]/100,t[3]/100,t[4]):Ig.hasOwnProperty(e)?Rg(Ig[e]):e==="transparent"?new Ze(NaN,NaN,NaN,0):null}function Rg(e){return new Ze(e>>16&255,e>>8&255,e&255,1)}function na(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ze(e,t,r,n)}function Uj(e){return e instanceof Wi||(e=yi(e)),e?(e=e.rgb(),new Ze(e.r,e.g,e.b,e.opacity)):new Ze}function md(e,t,r,n){return arguments.length===1?Uj(e):new Ze(e,t,r,n??1)}function Ze(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Hp(Ze,md,FO(Wi,{brighter(e){return e=e==null?ja:Math.pow(ja,e),new Ze(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?hi:Math.pow(hi,e),new Ze(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ze(Ar(this.r),Ar(this.g),Ar(this.b),Ca(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:kg,formatHex:kg,formatHex8:Kj,formatRgb:Dg,toString:Dg}));function kg(){return`#${xr(this.r)}${xr(this.g)}${xr(this.b)}`}function Kj(){return`#${xr(this.r)}${xr(this.g)}${xr(this.b)}${xr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Dg(){const e=Ca(this.opacity);return`${e===1?"rgb(":"rgba("}${Ar(this.r)}, ${Ar(this.g)}, ${Ar(this.b)}${e===1?")":`, ${e})`}`}function Ca(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ar(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function xr(e){return e=Ar(e),(e<16?"0":"")+e.toString(16)}function Ng(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new bt(e,t,r,n)}function zO(e){if(e instanceof bt)return new bt(e.h,e.s,e.l,e.opacity);if(e instanceof Wi||(e=yi(e)),!e)return new bt;if(e instanceof bt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new bt(o,u,s,e.opacity)}function Hj(e,t,r,n){return arguments.length===1?zO(e):new bt(e,t,r,n??1)}function bt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Hp(bt,Hj,FO(Wi,{brighter(e){return e=e==null?ja:Math.pow(ja,e),new bt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?hi:Math.pow(hi,e),new bt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ze(pl(e>=240?e-240:e+120,i,n),pl(e,i,n),pl(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new bt(qg(this.h),ia(this.s),ia(this.l),Ca(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=Ca(this.opacity);return`${e===1?"hsl(":"hsla("}${qg(this.h)}, ${ia(this.s)*100}%, ${ia(this.l)*100}%${e===1?")":`, ${e})`}`}}));function qg(e){return e=(e||0)%360,e<0?e+360:e}function ia(e){return Math.max(0,Math.min(1,e||0))}function pl(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 Gp=e=>()=>e;function Gj(e,t){return function(r){return e+r*t}}function Vj(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 Yj(e){return(e=+e)==1?WO:function(t,r){return r-t?Vj(t,r,e):Gp(isNaN(t)?r:t)}}function WO(e,t){var r=t-e;return r?Gj(e,r):Gp(isNaN(e)?t:e)}const Lg=(function e(t){var r=Yj(t);function n(i,a){var o=r((i=md(i)).r,(a=md(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=WO(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=c(f),i+""}}return n.gamma=e,n})(1);function Xj(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function Zj(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Jj(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=kn(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function Qj(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ia(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function eC(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=kn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var gd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hl=new RegExp(gd.source,"g");function tC(e){return function(){return e}}function rC(e){return function(t){return e(t)+""}}function nC(e,t){var r=gd.lastIndex=hl.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=gd.exec(e))&&(i=hl.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:Ia(n,i)})),r=hl.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?rC(s[0].x):tC(t):(t=s.length,function(c){for(var f=0,l;f<t;++f)u[(l=s[f]).i]=l.x(c);return u.join("")})}function kn(e,t){var r=typeof t,n;return t==null||r==="boolean"?Gp(t):(r==="number"?Ia:r==="string"?(n=yi(t))?(t=n,Lg):nC:t instanceof yi?Lg:t instanceof Date?Qj:Zj(t)?Xj:Array.isArray(t)?Jj:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?eC:Ia)(e,t)}function Vp(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function iC(e,t){t===void 0&&(t=e,e=kn);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function aC(e){return function(){return e}}function $a(e){return+e}var Bg=[0,1];function Ve(e){return e}function bd(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:aC(isNaN(t)?NaN:.5)}function oC(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function uC(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=bd(i,n),a=r(o,a)):(n=bd(n,i),a=r(a,o)),function(u){return a(n(u))}}function sC(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=bd(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=zi(e,u,1,n)-1;return a[s](i[s](u))}}function Ui(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function qo(){var e=Bg,t=Bg,r=kn,n,i,a,o=Ve,u,s,c;function f(){var d=Math.min(e.length,t.length);return o!==Ve&&(o=oC(e[0],e[d-1])),u=d>2?sC:uC,s=c=null,l}function l(d){return d==null||isNaN(d=+d)?a:(s||(s=u(e.map(n),t,r)))(n(o(d)))}return l.invert=function(d){return o(i((c||(c=u(t,e.map(n),Ia)))(d)))},l.domain=function(d){return arguments.length?(e=Array.from(d,$a),f()):e.slice()},l.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},l.rangeRound=function(d){return t=Array.from(d),r=Vp,f()},l.clamp=function(d){return arguments.length?(o=d?!0:Ve,f()):o!==Ve},l.interpolate=function(d){return arguments.length?(r=d,f()):r},l.unknown=function(d){return arguments.length?(a=d,l):a},function(d,p){return n=d,i=p,f()}}function Yp(){return qo()(Ve,Ve)}function cC(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ma(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function nn(e){return e=Ma(Math.abs(e)),e?e[1]:NaN}function lC(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function fC(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var dC=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function mi(e){if(!(t=dC.exec(e)))throw new Error("invalid format: "+e);var t;return new Xp({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]})}mi.prototype=Xp.prototype;function Xp(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+""}Xp.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 pC(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Ra;function hC(e,t){var r=Ma(e,t);if(!r)return Ra=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Ra=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Ma(e,Math.max(0,t+a-1))[0]}function Fg(e,t){var r=Ma(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const zg={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:cC,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)=>Fg(e*100,t),r:Fg,s:hC,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Wg(e){return e}var Ug=Array.prototype.map,Kg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function vC(e){var t=e.grouping===void 0||e.thousands===void 0?Wg:lC(Ug.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Wg:fC(Ug.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(l,d){l=mi(l);var p=l.fill,m=l.align,v=l.sign,h=l.symbol,g=l.zero,x=l.width,w=l.comma,O=l.precision,y=l.trim,b=l.type;b==="n"?(w=!0,b="g"):zg[b]||(O===void 0&&(O=12),y=!0,b="g"),(g||p==="0"&&m==="=")&&(g=!0,p="0",m="=");var _=(d&&d.prefix!==void 0?d.prefix:"")+(h==="$"?r:h==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),S=(h==="$"?n:/[%p]/.test(b)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),P=zg[b],j=/[defgprs%]/.test(b);O=O===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function E(T){var I=_,M=S,R,k,N;if(b==="c")M=P(T)+M,T="";else{T=+T;var F=T<0||1/T<0;if(T=isNaN(T)?s:P(Math.abs(T),O),y&&(T=pC(T)),F&&+T==0&&v!=="+"&&(F=!1),I=(F?v==="("?v:u:v==="-"||v==="("?"":v)+I,M=(b==="s"&&!isNaN(T)&&Ra!==void 0?Kg[8+Ra/3]:"")+M+(F&&v==="("?")":""),j){for(R=-1,k=T.length;++R<k;)if(N=T.charCodeAt(R),48>N||N>57){M=(N===46?i+T.slice(R+1):T.slice(R))+M,T=T.slice(0,R);break}}}w&&!g&&(T=t(T,1/0));var K=I.length+T.length+M.length,$=K<x?new Array(x-K+1).join(p):"";switch(w&&g&&(T=t($+T,$.length?x-M.length:1/0),$=""),m){case"<":T=I+T+M+$;break;case"=":T=I+$+T+M;break;case"^":T=$.slice(0,K=$.length>>1)+I+T+M+$.slice(K);break;default:T=$+I+T+M;break}return a(T)}return E.toString=function(){return l+""},E}function f(l,d){var p=Math.max(-8,Math.min(8,Math.floor(nn(d)/3)))*3,m=Math.pow(10,-p),v=c((l=mi(l),l.type="f",l),{suffix:Kg[8+p/3]});return function(h){return v(m*h)}}return{format:c,formatPrefix:f}}var aa,Zp,UO;yC({thousands:",",grouping:[3],currency:["$",""]});function yC(e){return aa=vC(e),Zp=aa.format,UO=aa.formatPrefix,aa}function mC(e){return Math.max(0,-nn(Math.abs(e)))}function gC(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(nn(t)/3)))*3-nn(Math.abs(e)))}function bC(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,nn(t)-nn(e))+1}function KO(e,t,r,n){var i=vd(e,t,r),a;switch(n=mi(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=gC(i,o))&&(n.precision=a),UO(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=bC(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=mC(i))&&(n.precision=a-(n.type==="%")*2);break}}return Zp(n)}function ur(e){var t=e.domain;return e.ticks=function(r){var n=t();return pd(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return KO(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],s,c,f=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);f-- >0;){if(c=hd(o,u,r),c===s)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;s=c}return e},e}function ka(){var e=Yp();return e.copy=function(){return Ui(e,ka())},vt.apply(e,arguments),ur(e)}function HO(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,$a),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return HO(e).unknown(t)},e=arguments.length?Array.from(e,$a):[0,1],ur(r)}function GO(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function Hg(e){return Math.log(e)}function Gg(e){return Math.exp(e)}function xC(e){return-Math.log(-e)}function wC(e){return-Math.exp(-e)}function OC(e){return isFinite(e)?+("1e"+e):e<0?0:e}function _C(e){return e===10?OC:e===Math.E?Math.exp:t=>Math.pow(e,t)}function AC(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 Vg(e){return(t,r)=>-e(-t,r)}function Jp(e){const t=e(Hg,Gg),r=t.domain;let n=10,i,a;function o(){return i=AC(n),a=_C(n),r()[0]<0?(i=Vg(i),a=Vg(a),e(xC,wC)):e(Hg,Gg),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const s=r();let c=s[0],f=s[s.length-1];const l=f<c;l&&([c,f]=[f,c]);let d=i(c),p=i(f),m,v;const h=u==null?10:+u;let g=[];if(!(n%1)&&p-d<h){if(d=Math.floor(d),p=Math.ceil(p),c>0){for(;d<=p;++d)for(m=1;m<n;++m)if(v=d<0?m/a(-d):m*a(d),!(v<c)){if(v>f)break;g.push(v)}}else for(;d<=p;++d)for(m=n-1;m>=1;--m)if(v=d>0?m/a(-d):m*a(d),!(v<c)){if(v>f)break;g.push(v)}g.length*2<h&&(g=pd(c,f,h))}else g=pd(d,p,Math.min(p-d,h)).map(a);return l?g.reverse():g},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=mi(s)).precision==null&&(s.trim=!0),s=Zp(s)),u===1/0)return s;const c=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=c?s(f):""}},t.nice=()=>r(GO(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function VO(){const e=Jp(qo()).domain([1,10]);return e.copy=()=>Ui(e,VO()).base(e.base()),vt.apply(e,arguments),e}function Yg(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Xg(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Qp(e){var t=1,r=e(Yg(t),Xg(t));return r.constant=function(n){return arguments.length?e(Yg(t=+n),Xg(t)):t},ur(r)}function YO(){var e=Qp(qo());return e.copy=function(){return Ui(e,YO()).constant(e.constant())},vt.apply(e,arguments)}function Zg(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function SC(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function PC(e){return e<0?-e*e:e*e}function eh(e){var t=e(Ve,Ve),r=1;function n(){return r===1?e(Ve,Ve):r===.5?e(SC,PC):e(Zg(r),Zg(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},ur(t)}function th(){var e=eh(qo());return e.copy=function(){return Ui(e,th()).exponent(e.exponent())},vt.apply(e,arguments),e}function TC(){return th.apply(null,arguments).exponent(.5)}function Jg(e){return Math.sign(e)*e*e}function EC(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function XO(){var e=Yp(),t=[0,1],r=!1,n;function i(a){var o=EC(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Jg(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,$a)).map(Jg)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return XO(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},vt.apply(i,arguments),ur(i)}function ZO(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=Mj(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[zi(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(nr),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return ZO().domain(e).range(t).unknown(n)},vt.apply(a,arguments)}function JO(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[zi(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return JO().domain([e,t]).range(i).unknown(a)},vt.apply(ur(o),arguments)}function QO(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[zi(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return QO().domain(e).range(t).unknown(r)},vt.apply(i,arguments)}const vl=new Date,yl=new Date;function ke(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>ke(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(vl.setTime(+a),yl.setTime(+o),e(vl),e(yl),Math.floor(r(vl,yl))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Da=ke(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Da.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ke(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Da);Da.range;const kt=1e3,ft=kt*60,Dt=ft*60,Ft=Dt*24,rh=Ft*7,Qg=Ft*30,ml=Ft*365,wr=ke(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*kt)},(e,t)=>(t-e)/kt,e=>e.getUTCSeconds());wr.range;const nh=ke(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kt)},(e,t)=>{e.setTime(+e+t*ft)},(e,t)=>(t-e)/ft,e=>e.getMinutes());nh.range;const ih=ke(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ft)},(e,t)=>(t-e)/ft,e=>e.getUTCMinutes());ih.range;const ah=ke(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kt-e.getMinutes()*ft)},(e,t)=>{e.setTime(+e+t*Dt)},(e,t)=>(t-e)/Dt,e=>e.getHours());ah.range;const oh=ke(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Dt)},(e,t)=>(t-e)/Dt,e=>e.getUTCHours());oh.range;const Ki=ke(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ft)/Ft,e=>e.getDate()-1);Ki.range;const Lo=ke(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ft,e=>e.getUTCDate()-1);Lo.range;const e_=ke(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ft,e=>Math.floor(e/Ft));e_.range;function Rr(e){return ke(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())*ft)/rh)}const Bo=Rr(0),Na=Rr(1),jC=Rr(2),CC=Rr(3),an=Rr(4),IC=Rr(5),$C=Rr(6);Bo.range;Na.range;jC.range;CC.range;an.range;IC.range;$C.range;function kr(e){return ke(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)/rh)}const Fo=kr(0),qa=kr(1),MC=kr(2),RC=kr(3),on=kr(4),kC=kr(5),DC=kr(6);Fo.range;qa.range;MC.range;RC.range;on.range;kC.range;DC.range;const uh=ke(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());uh.range;const sh=ke(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());sh.range;const zt=ke(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());zt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ke(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)});zt.range;const Wt=ke(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());Wt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ke(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)});Wt.range;function t_(e,t,r,n,i,a){const o=[[wr,1,kt],[wr,5,5*kt],[wr,15,15*kt],[wr,30,30*kt],[a,1,ft],[a,5,5*ft],[a,15,15*ft],[a,30,30*ft],[i,1,Dt],[i,3,3*Dt],[i,6,6*Dt],[i,12,12*Dt],[n,1,Ft],[n,2,2*Ft],[r,1,rh],[t,1,Qg],[t,3,3*Qg],[e,1,ml]];function u(c,f,l){const d=f<c;d&&([c,f]=[f,c]);const p=l&&typeof l.range=="function"?l:s(c,f,l),m=p?p.range(c,+f+1):[];return d?m.reverse():m}function s(c,f,l){const d=Math.abs(f-c)/l,p=Up(([,,h])=>h).right(o,d);if(p===o.length)return e.every(vd(c/ml,f/ml,l));if(p===0)return Da.every(Math.max(vd(c,f,l),1));const[m,v]=o[d/o[p-1][2]<o[p][2]/d?p-1:p];return m.every(v)}return[u,s]}const[NC,qC]=t_(Wt,sh,Fo,e_,oh,ih),[LC,BC]=t_(zt,uh,Bo,Ki,ah,nh);function gl(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 bl(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 zn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function FC(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=Wn(i),f=Un(i),l=Wn(a),d=Un(a),p=Wn(o),m=Un(o),v=Wn(u),h=Un(u),g=Wn(s),x=Un(s),w={a:N,A:F,b:K,B:$,c:null,d:ab,e:ab,f:lI,g:xI,G:OI,H:uI,I:sI,j:cI,L:r_,m:fI,M:dI,p:q,q:L,Q:sb,s:cb,S:pI,u:hI,U:vI,V:yI,w:mI,W:gI,x:null,X:null,y:bI,Y:wI,Z:_I,"%":ub},O={a:U,A:V,b:J,B:ee,c:null,d:ob,e:ob,f:TI,g:NI,G:LI,H:AI,I:SI,j:PI,L:i_,m:EI,M:jI,p:ae,q:ne,Q:sb,s:cb,S:CI,u:II,U:$I,V:MI,w:RI,W:kI,x:null,X:null,y:DI,Y:qI,Z:BI,"%":ub},y={a:j,A:E,b:T,B:I,c:M,d:nb,e:nb,f:nI,g:rb,G:tb,H:ib,I:ib,j:QC,L:rI,m:JC,M:eI,p:P,q:ZC,Q:aI,s:oI,S:tI,u:HC,U:GC,V:VC,w:KC,W:YC,x:R,X:k,y:rb,Y:tb,Z:XC,"%":iI};w.x=b(r,w),w.X=b(n,w),w.c=b(t,w),O.x=b(r,O),O.X=b(n,O),O.c=b(t,O);function b(B,G){return function(Z){var C=[],ce=-1,W=0,te=B.length,me,oe,Ke;for(Z instanceof Date||(Z=new Date(+Z));++ce<te;)B.charCodeAt(ce)===37&&(C.push(B.slice(W,ce)),(oe=eb[me=B.charAt(++ce)])!=null?me=B.charAt(++ce):oe=me==="e"?" ":"0",(Ke=G[me])&&(me=Ke(Z,oe)),C.push(me),W=ce+1);return C.push(B.slice(W,ce)),C.join("")}}function _(B,G){return function(Z){var C=zn(1900,void 0,1),ce=S(C,B,Z+="",0),W,te;if(ce!=Z.length)return null;if("Q"in C)return new Date(C.Q);if("s"in C)return new Date(C.s*1e3+("L"in C?C.L:0));if(G&&!("Z"in C)&&(C.Z=0),"p"in C&&(C.H=C.H%12+C.p*12),C.m===void 0&&(C.m="q"in C?C.q:0),"V"in C){if(C.V<1||C.V>53)return null;"w"in C||(C.w=1),"Z"in C?(W=bl(zn(C.y,0,1)),te=W.getUTCDay(),W=te>4||te===0?qa.ceil(W):qa(W),W=Lo.offset(W,(C.V-1)*7),C.y=W.getUTCFullYear(),C.m=W.getUTCMonth(),C.d=W.getUTCDate()+(C.w+6)%7):(W=gl(zn(C.y,0,1)),te=W.getDay(),W=te>4||te===0?Na.ceil(W):Na(W),W=Ki.offset(W,(C.V-1)*7),C.y=W.getFullYear(),C.m=W.getMonth(),C.d=W.getDate()+(C.w+6)%7)}else("W"in C||"U"in C)&&("w"in C||(C.w="u"in C?C.u%7:"W"in C?1:0),te="Z"in C?bl(zn(C.y,0,1)).getUTCDay():gl(zn(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(te+5)%7:C.w+C.U*7-(te+6)%7);return"Z"in C?(C.H+=C.Z/100|0,C.M+=C.Z%100,bl(C)):gl(C)}}function S(B,G,Z,C){for(var ce=0,W=G.length,te=Z.length,me,oe;ce<W;){if(C>=te)return-1;if(me=G.charCodeAt(ce++),me===37){if(me=G.charAt(ce++),oe=y[me in eb?G.charAt(ce++):me],!oe||(C=oe(B,Z,C))<0)return-1}else if(me!=Z.charCodeAt(C++))return-1}return C}function P(B,G,Z){var C=c.exec(G.slice(Z));return C?(B.p=f.get(C[0].toLowerCase()),Z+C[0].length):-1}function j(B,G,Z){var C=p.exec(G.slice(Z));return C?(B.w=m.get(C[0].toLowerCase()),Z+C[0].length):-1}function E(B,G,Z){var C=l.exec(G.slice(Z));return C?(B.w=d.get(C[0].toLowerCase()),Z+C[0].length):-1}function T(B,G,Z){var C=g.exec(G.slice(Z));return C?(B.m=x.get(C[0].toLowerCase()),Z+C[0].length):-1}function I(B,G,Z){var C=v.exec(G.slice(Z));return C?(B.m=h.get(C[0].toLowerCase()),Z+C[0].length):-1}function M(B,G,Z){return S(B,t,G,Z)}function R(B,G,Z){return S(B,r,G,Z)}function k(B,G,Z){return S(B,n,G,Z)}function N(B){return o[B.getDay()]}function F(B){return a[B.getDay()]}function K(B){return s[B.getMonth()]}function $(B){return u[B.getMonth()]}function q(B){return i[+(B.getHours()>=12)]}function L(B){return 1+~~(B.getMonth()/3)}function U(B){return o[B.getUTCDay()]}function V(B){return a[B.getUTCDay()]}function J(B){return s[B.getUTCMonth()]}function ee(B){return u[B.getUTCMonth()]}function ae(B){return i[+(B.getUTCHours()>=12)]}function ne(B){return 1+~~(B.getUTCMonth()/3)}return{format:function(B){var G=b(B+="",w);return G.toString=function(){return B},G},parse:function(B){var G=_(B+="",!1);return G.toString=function(){return B},G},utcFormat:function(B){var G=b(B+="",O);return G.toString=function(){return B},G},utcParse:function(B){var G=_(B+="",!0);return G.toString=function(){return B},G}}}var eb={"-":"",_:" ",0:"0"},Be=/^\s*\d+/,zC=/^%/,WC=/[\\^$*+?|[\]().{}]/g;function le(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function UC(e){return e.replace(WC,"\\$&")}function Wn(e){return new RegExp("^(?:"+e.map(UC).join("|")+")","i")}function Un(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function KC(e,t,r){var n=Be.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function HC(e,t,r){var n=Be.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function GC(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function VC(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function YC(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function tb(e,t,r){var n=Be.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function rb(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function XC(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 ZC(e,t,r){var n=Be.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function JC(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function nb(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function QC(e,t,r){var n=Be.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function ib(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function eI(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function tI(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function rI(e,t,r){var n=Be.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function nI(e,t,r){var n=Be.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function iI(e,t,r){var n=zC.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function aI(e,t,r){var n=Be.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function oI(e,t,r){var n=Be.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function ab(e,t){return le(e.getDate(),t,2)}function uI(e,t){return le(e.getHours(),t,2)}function sI(e,t){return le(e.getHours()%12||12,t,2)}function cI(e,t){return le(1+Ki.count(zt(e),e),t,3)}function r_(e,t){return le(e.getMilliseconds(),t,3)}function lI(e,t){return r_(e,t)+"000"}function fI(e,t){return le(e.getMonth()+1,t,2)}function dI(e,t){return le(e.getMinutes(),t,2)}function pI(e,t){return le(e.getSeconds(),t,2)}function hI(e){var t=e.getDay();return t===0?7:t}function vI(e,t){return le(Bo.count(zt(e)-1,e),t,2)}function n_(e){var t=e.getDay();return t>=4||t===0?an(e):an.ceil(e)}function yI(e,t){return e=n_(e),le(an.count(zt(e),e)+(zt(e).getDay()===4),t,2)}function mI(e){return e.getDay()}function gI(e,t){return le(Na.count(zt(e)-1,e),t,2)}function bI(e,t){return le(e.getFullYear()%100,t,2)}function xI(e,t){return e=n_(e),le(e.getFullYear()%100,t,2)}function wI(e,t){return le(e.getFullYear()%1e4,t,4)}function OI(e,t){var r=e.getDay();return e=r>=4||r===0?an(e):an.ceil(e),le(e.getFullYear()%1e4,t,4)}function _I(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+le(t/60|0,"0",2)+le(t%60,"0",2)}function ob(e,t){return le(e.getUTCDate(),t,2)}function AI(e,t){return le(e.getUTCHours(),t,2)}function SI(e,t){return le(e.getUTCHours()%12||12,t,2)}function PI(e,t){return le(1+Lo.count(Wt(e),e),t,3)}function i_(e,t){return le(e.getUTCMilliseconds(),t,3)}function TI(e,t){return i_(e,t)+"000"}function EI(e,t){return le(e.getUTCMonth()+1,t,2)}function jI(e,t){return le(e.getUTCMinutes(),t,2)}function CI(e,t){return le(e.getUTCSeconds(),t,2)}function II(e){var t=e.getUTCDay();return t===0?7:t}function $I(e,t){return le(Fo.count(Wt(e)-1,e),t,2)}function a_(e){var t=e.getUTCDay();return t>=4||t===0?on(e):on.ceil(e)}function MI(e,t){return e=a_(e),le(on.count(Wt(e),e)+(Wt(e).getUTCDay()===4),t,2)}function RI(e){return e.getUTCDay()}function kI(e,t){return le(qa.count(Wt(e)-1,e),t,2)}function DI(e,t){return le(e.getUTCFullYear()%100,t,2)}function NI(e,t){return e=a_(e),le(e.getUTCFullYear()%100,t,2)}function qI(e,t){return le(e.getUTCFullYear()%1e4,t,4)}function LI(e,t){var r=e.getUTCDay();return e=r>=4||r===0?on(e):on.ceil(e),le(e.getUTCFullYear()%1e4,t,4)}function BI(){return"+0000"}function ub(){return"%"}function sb(e){return+e}function cb(e){return Math.floor(+e/1e3)}var Fr,o_,u_;FI({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 FI(e){return Fr=FC(e),o_=Fr.format,Fr.parse,u_=Fr.utcFormat,Fr.utcParse,Fr}function zI(e){return new Date(e)}function WI(e){return e instanceof Date?+e:+new Date(+e)}function ch(e,t,r,n,i,a,o,u,s,c){var f=Yp(),l=f.invert,d=f.domain,p=c(".%L"),m=c(":%S"),v=c("%I:%M"),h=c("%I %p"),g=c("%a %d"),x=c("%b %d"),w=c("%B"),O=c("%Y");function y(b){return(s(b)<b?p:u(b)<b?m:o(b)<b?v:a(b)<b?h:n(b)<b?i(b)<b?g:x:r(b)<b?w:O)(b)}return f.invert=function(b){return new Date(l(b))},f.domain=function(b){return arguments.length?d(Array.from(b,WI)):d().map(zI)},f.ticks=function(b){var _=d();return e(_[0],_[_.length-1],b??10)},f.tickFormat=function(b,_){return _==null?y:c(_)},f.nice=function(b){var _=d();return(!b||typeof b.range!="function")&&(b=t(_[0],_[_.length-1],b??10)),b?d(GO(_,b)):f},f.copy=function(){return Ui(f,ch(e,t,r,n,i,a,o,u,s,c))},f}function UI(){return vt.apply(ch(LC,BC,zt,uh,Bo,Ki,ah,nh,wr,o_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function KI(){return vt.apply(ch(NC,qC,Wt,sh,Fo,Lo,oh,ih,wr,u_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function zo(){var e=0,t=1,r,n,i,a,o=Ve,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(u=!!l,c):u},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(d){var p,m;return arguments.length?([p,m]=d,o=l(p,m),c):[o(0),o(1)]}}return c.range=f(kn),c.rangeRound=f(Vp),c.unknown=function(l){return arguments.length?(s=l,c):s},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),c}}function sr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function s_(){var e=ur(zo()(Ve));return e.copy=function(){return sr(e,s_())},Gt.apply(e,arguments)}function c_(){var e=Jp(zo()).domain([1,10]);return e.copy=function(){return sr(e,c_()).base(e.base())},Gt.apply(e,arguments)}function l_(){var e=Qp(zo());return e.copy=function(){return sr(e,l_()).constant(e.constant())},Gt.apply(e,arguments)}function lh(){var e=eh(zo());return e.copy=function(){return sr(e,lh()).exponent(e.exponent())},Gt.apply(e,arguments)}function HI(){return lh.apply(null,arguments).exponent(.5)}function f_(){var e=[],t=Ve;function r(n){if(n!=null&&!isNaN(n=+n))return t((zi(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(nr),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>$j(e,a/n))},r.copy=function(){return f_(t).domain(e)},Gt.apply(r,arguments)}function Wo(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=Ve,f,l=!1,d;function p(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:s),c(l?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(v){return arguments.length?(l=!!v,p):l},p.interpolator=function(v){return arguments.length?(c=v,p):c};function m(v){return function(h){var g,x,w;return arguments.length?([g,x,w]=h,c=iC(v,[g,x,w]),p):[c(0),c(.5),c(1)]}}return p.range=m(kn),p.rangeRound=m(Vp),p.unknown=function(v){return arguments.length?(d=v,p):d},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function d_(){var e=ur(Wo()(Ve));return e.copy=function(){return sr(e,d_())},Gt.apply(e,arguments)}function p_(){var e=Jp(Wo()).domain([.1,1,10]);return e.copy=function(){return sr(e,p_()).base(e.base())},Gt.apply(e,arguments)}function h_(){var e=Qp(Wo());return e.copy=function(){return sr(e,h_()).constant(e.constant())},Gt.apply(e,arguments)}function fh(){var e=eh(Wo());return e.copy=function(){return sr(e,fh()).exponent(e.exponent())},Gt.apply(e,arguments)}function GI(){return fh.apply(null,arguments).exponent(.5)}const lb=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:pi,scaleDiverging:d_,scaleDivergingLog:p_,scaleDivergingPow:fh,scaleDivergingSqrt:GI,scaleDivergingSymlog:h_,scaleIdentity:HO,scaleImplicit:yd,scaleLinear:ka,scaleLog:VO,scaleOrdinal:Kp,scalePoint:ei,scalePow:th,scaleQuantile:ZO,scaleQuantize:JO,scaleRadial:XO,scaleSequential:s_,scaleSequentialLog:c_,scaleSequentialPow:lh,scaleSequentialQuantile:f_,scaleSequentialSqrt:HI,scaleSequentialSymlog:l_,scaleSqrt:TC,scaleSymlog:YO,scaleThreshold:QO,scaleTime:UI,scaleUtc:KI,tickFormat:KO},Symbol.toStringTag,{value:"Module"}));var xl,fb;function Uo(){if(fb)return xl;fb=1;var e=En();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],s=n(u);if(s!=null&&(c===void 0?s===s&&!e(s):i(s,c)))var c=s,f=u}return f}return xl=t,xl}var wl,db;function v_(){if(db)return wl;db=1;function e(t,r){return t>r}return wl=e,wl}var Ol,pb;function VI(){if(pb)return Ol;pb=1;var e=Uo(),t=v_(),r=Mn();function n(i){return i&&i.length?e(i,r,t):void 0}return Ol=n,Ol}var YI=VI();const tr=be(YI);var _l,hb;function y_(){if(hb)return _l;hb=1;function e(t,r){return t<r}return _l=e,_l}var Al,vb;function XI(){if(vb)return Al;vb=1;var e=Uo(),t=y_(),r=Mn();function n(i){return i&&i.length?e(i,r,t):void 0}return Al=n,Al}var ZI=XI();const Ko=be(ZI);var Sl,yb;function JI(){if(yb)return Sl;yb=1;var e=To(),t=$t(),r=_O(),n=Ye();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return Sl=i,Sl}var Pl,mb;function QI(){if(mb)return Pl;mb=1;var e=Bp(),t=JI();function r(n,i){return e(t(n,i),1)}return Pl=r,Pl}var e$=QI();const t$=be(e$);var Tl,gb;function r$(){if(gb)return Tl;gb=1;var e=Lp();function t(r,n){return e(r,n)}return Tl=t,Tl}var n$=r$();const or=be(n$);var Dn=1e9,i$={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},ph,Te=!0,pt="[DecimalError] ",Sr=pt+"Invalid argument: ",dh=pt+"Exponent out of range: ",Nn=Math.floor,mr=Math.pow,a$=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,it,qe=1e7,Se=7,m_=9007199254740991,La=Nn(m_/Se),Y={};Y.absoluteValue=Y.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Y.comparedTo=Y.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};Y.decimalPlaces=Y.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Se;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Y.dividedBy=Y.div=function(e){return Lt(this,new this.constructor(e))};Y.dividedToIntegerBy=Y.idiv=function(e){var t=this,r=t.constructor;return we(Lt(t,new r(e),0,1),r.precision)};Y.equals=Y.eq=function(e){return!this.cmp(e)};Y.exponent=function(){return Ce(this)};Y.greaterThan=Y.gt=function(e){return this.cmp(e)>0};Y.greaterThanOrEqualTo=Y.gte=function(e){return this.cmp(e)>=0};Y.isInteger=Y.isint=function(){return this.e>this.d.length-2};Y.isNegative=Y.isneg=function(){return this.s<0};Y.isPositive=Y.ispos=function(){return this.s>0};Y.isZero=function(){return this.s===0};Y.lessThan=Y.lt=function(e){return this.cmp(e)<0};Y.lessThanOrEqualTo=Y.lte=function(e){return this.cmp(e)<1};Y.logarithm=Y.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(it))throw Error(pt+"NaN");if(r.s<1)throw Error(pt+(r.s?"NaN":"-Infinity"));return r.eq(it)?new n(0):(Te=!1,t=Lt(gi(r,a),gi(e,a),a),Te=!0,we(t,i))};Y.minus=Y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?x_(t,e):g_(t,(e.s=-e.s,e))};Y.modulo=Y.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(pt+"NaN");return r.s?(Te=!1,t=Lt(r,e,0,1).times(e),Te=!0,r.minus(t)):we(new n(r),i)};Y.naturalExponential=Y.exp=function(){return b_(this)};Y.naturalLogarithm=Y.ln=function(){return gi(this)};Y.negated=Y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Y.plus=Y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?g_(t,e):x_(t,(e.s=-e.s,e))};Y.precision=Y.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Sr+e);if(t=Ce(i)+1,n=i.d.length-1,r=n*Se+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Y.squareRoot=Y.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(pt+"NaN")}for(e=Ce(u),Te=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=St(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Nn((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(Lt(u,a,o+2)).times(.5),St(a.d).slice(0,o)===(t=St(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(we(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return Te=!0,we(n,r)};Y.times=Y.mul=function(e){var t,r,n,i,a,o,u,s,c,f=this,l=f.constructor,d=f.d,p=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,s=d.length,c=p.length,s<c&&(a=d,d=p,p=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+p[n]*d[i-n-1]+t,a[i--]=u%qe|0,t=u/qe|0;a[i]=(a[i]+t)%qe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Te?we(e,l.precision):e};Y.toDecimalPlaces=Y.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Ct(e,0,Dn),t===void 0?t=n.rounding:Ct(t,0,8),we(r,e+Ce(r)+1,t))};Y.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Er(n,!0):(Ct(e,0,Dn),t===void 0?t=i.rounding:Ct(t,0,8),n=we(new i(n),e+1,t),r=Er(n,!0,e+1)),r};Y.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Er(i):(Ct(e,0,Dn),t===void 0?t=a.rounding:Ct(t,0,8),n=we(new a(i),e+Ce(i)+1,t),r=Er(n.abs(),!1,e+Ce(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};Y.toInteger=Y.toint=function(){var e=this,t=e.constructor;return we(new t(e),Ce(e)+1,t.rounding)};Y.toNumber=function(){return+this};Y.toPower=Y.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,c=12,f=+(e=new s(e));if(!e.s)return new s(it);if(u=new s(u),!u.s){if(e.s<1)throw Error(pt+"Infinity");return u}if(u.eq(it))return u;if(n=s.precision,e.eq(it))return we(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=m_){for(i=new s(it),t=Math.ceil(n/Se+4),Te=!1;r%2&&(i=i.times(u),xb(i.d,t)),r=Nn(r/2),r!==0;)u=u.times(u),xb(u.d,t);return Te=!0,e.s<0?new s(it).div(i):we(i,n)}}else if(a<0)throw Error(pt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,Te=!1,i=e.times(gi(u,n+c)),Te=!0,i=b_(i),i.s=a,i};Y.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Ce(i),n=Er(i,r<=a.toExpNeg||r>=a.toExpPos)):(Ct(e,1,Dn),t===void 0?t=a.rounding:Ct(t,0,8),i=we(new a(i),e,t),r=Ce(i),n=Er(i,e<=r||r<=a.toExpNeg,e)),n};Y.toSignificantDigits=Y.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Ct(e,1,Dn),t===void 0?t=n.rounding:Ct(t,0,8)),we(new n(r),e,t)};Y.toString=Y.valueOf=Y.val=Y.toJSON=Y[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ce(e),r=e.constructor;return Er(e,t<=r.toExpNeg||t>=r.toExpPos)};function g_(e,t){var r,n,i,a,o,u,s,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Te?we(t,l):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=c.length):(n=c,i=o,u=s.length),o=Math.ceil(l/Se),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=c.length,u-a<0&&(a=u,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/qe|0,s[a]%=qe;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,Te?we(t,l):t}function Ct(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Sr+e)}function St(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Se-n.length,r&&(a+=Qt(r)),a+=n;o=e[t],n=o+"",r=Se-n.length,r&&(a+=Qt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Lt=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%qe|0,o=a/qe|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*qe+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,f,l,d,p,m,v,h,g,x,w,O,y,b,_,S,P=n.constructor,j=n.s==i.s?1:-1,E=n.d,T=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(pt+"Division by zero");for(s=n.e-i.e,_=T.length,y=E.length,p=new P(j),m=p.d=[],c=0;T[c]==(E[c]||0);)++c;if(T[c]>(E[c]||0)&&--s,a==null?x=a=P.precision:o?x=a+(Ce(n)-Ce(i))+1:x=a,x<0)return new P(0);if(x=x/Se+2|0,c=0,_==1)for(f=0,T=T[0],x++;(c<y||f)&&x--;c++)w=f*qe+(E[c]||0),m[c]=w/T|0,f=w%T|0;else{for(f=qe/(T[0]+1)|0,f>1&&(T=e(T,f),E=e(E,f),_=T.length,y=E.length),O=_,v=E.slice(0,_),h=v.length;h<_;)v[h++]=0;S=T.slice(),S.unshift(0),b=T[0],T[1]>=qe/2&&++b;do f=0,u=t(T,v,_,h),u<0?(g=v[0],_!=h&&(g=g*qe+(v[1]||0)),f=g/b|0,f>1?(f>=qe&&(f=qe-1),l=e(T,f),d=l.length,h=v.length,u=t(l,v,d,h),u==1&&(f--,r(l,_<d?S:T,d))):(f==0&&(u=f=1),l=T.slice()),d=l.length,d<h&&l.unshift(0),r(v,l,h),u==-1&&(h=v.length,u=t(T,v,_,h),u<1&&(f++,r(v,_<h?S:T,h))),h=v.length):u===0&&(f++,v=[0]),m[c++]=f,u&&v[0]?v[h++]=E[O]||0:(v=[E[O]],h=1);while((O++<y||v[0]!==void 0)&&x--)}return m[0]||m.shift(),p.e=s,we(p,o?a+Ce(p)+1:a)}})();function b_(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(Ce(e)>16)throw Error(dh+Ce(e));if(!e.s)return new f(it);for(Te=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(mr(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(it),f.precision=u;;){if(i=we(i.times(e),u),r=r.times(++s),o=a.plus(Lt(i,r,u)),St(o.d).slice(0,u)===St(a.d).slice(0,u)){for(;c--;)a=we(a.times(a),u);return f.precision=l,t==null?(Te=!0,we(a,l)):a}a=o}}function Ce(e){for(var t=e.e*Se,r=e.d[0];r>=10;r/=10)t++;return t}function El(e,t,r){if(t>e.LN10.sd())throw Te=!0,r&&(e.precision=r),Error(pt+"LN10 precision limit exceeded");return we(new e(e.LN10),t)}function Qt(e){for(var t="";e--;)t+="0";return t}function gi(e,t){var r,n,i,a,o,u,s,c,f,l=1,d=10,p=e,m=p.d,v=p.constructor,h=v.precision;if(p.s<1)throw Error(pt+(p.s?"NaN":"-Infinity"));if(p.eq(it))return new v(0);if(t==null?(Te=!1,c=h):c=t,p.eq(10))return t==null&&(Te=!0),El(v,c);if(c+=d,v.precision=c,r=St(m),n=r.charAt(0),a=Ce(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=St(p.d),n=r.charAt(0),l++;a=Ce(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return s=El(v,c+2,h).times(a+""),p=gi(new v(n+"."+r.slice(1)),c-d).plus(s),v.precision=h,t==null?(Te=!0,we(p,h)):p;for(u=o=p=Lt(p.minus(it),p.plus(it),c),f=we(p.times(p),c),i=3;;){if(o=we(o.times(f),c),s=u.plus(Lt(o,new v(i),c)),St(s.d).slice(0,c)===St(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(El(v,c+2,h).times(a+""))),u=Lt(u,new v(l),c),v.precision=h,t==null?(Te=!0,we(u,h)):u;u=s,i+=2}}function bb(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Nn(r/Se),e.d=[],n=(r+1)%Se,r<0&&(n+=Se),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Se;n<i;)e.d.push(+t.slice(n,n+=Se));t=t.slice(n),n=Se-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Te&&(e.e>La||e.e<-La))throw Error(dh+r)}else e.s=0,e.e=0,e.d=[0];return e}function we(e,t,r){var n,i,a,o,u,s,c,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Se,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/Se),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=Se,i=n-Se+o}if(r!==void 0&&(a=mr(10,o-i-1),u=c/a%10|0,s=t<0||l[f+1]!==void 0||c%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?c/mr(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=Ce(e),l.length=1,t=t-a-1,l[0]=mr(10,(Se-t%Se)%Se),e.e=Nn(-t/Se)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=mr(10,Se-n),l[f]=i>0?(c/mr(10,o-i)%mr(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==qe&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=qe)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(Te&&(e.e>La||e.e<-La))throw Error(dh+Ce(e));return e}function x_(e,t){var r,n,i,a,o,u,s,c,f,l,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Te?we(t,p):t;if(s=e.d,l=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(f=o<0,f?(r=s,o=-o,u=l.length):(r=l,n=c,u=s.length),i=Math.max(Math.ceil(p/Se),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(s[i]!=l[i]){f=s[i]<l[i];break}o=0}for(f&&(r=s,s=l,l=r,t.s=-t.s),u=s.length,i=l.length-u;i>0;--i)s[u++]=0;for(i=l.length;i>o;){if(s[--i]<l[i]){for(a=i;a&&s[--a]===0;)s[a]=qe-1;--s[a],s[i]+=qe}s[i]-=l[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,Te?we(t,p):t):new d(0)}function Er(e,t,r){var n,i=Ce(e),a=St(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Qt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Qt(-i-1)+a,r&&(n=r-o)>0&&(a+=Qt(n))):i>=o?(a+=Qt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Qt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Qt(n))),e.s<0?"-"+a:a}function xb(e,t){if(e.length>t)return e.length=t,!0}function w_(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Sr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return bb(o,a.toString())}else if(typeof a!="string")throw Error(Sr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,a$.test(a))bb(o,a);else throw Error(Sr+a)}if(i.prototype=Y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=w_,i.config=i.set=o$,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function o$(e){if(!e||typeof e!="object")throw Error(pt+"Object expected");var t,r,n,i=["precision",1,Dn,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Nn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Sr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Sr+r+": "+n);return this}var ph=w_(i$);it=new ph(1);const xe=ph;function u$(e){return f$(e)||l$(e)||c$(e)||s$()}function s$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c$(e,t){if(e){if(typeof e=="string")return xd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xd(e,t)}}function l$(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function f$(e){if(Array.isArray(e))return xd(e)}function xd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d$=function(t){return t},O_={},__=function(t){return t===O_},wb=function(t){return function r(){return arguments.length===0||arguments.length===1&&__(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},p$=function e(t,r){return t===1?r:wb(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==O_}).length;return o>=t?r.apply(void 0,i):e(t-o,wb(function(){for(var u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var f=i.map(function(l){return __(l)?s.shift():l});return r.apply(void 0,u$(f).concat(s))}))})},Ho=function(t){return p$(t.length,t)},wd=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},h$=Ho(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),v$=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return d$;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,s){return s(u)},a.apply(void 0,arguments))}},Od=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},A_=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,s){return u===r[s]})||(r=a,n=t.apply(void 0,a)),n}};function y$(e){var t;return e===0?t=1:t=Math.floor(new xe(e).abs().log(10).toNumber())+1,t}function m$(e,t,r){for(var n=new xe(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var g$=Ho(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),b$=Ho(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),x$=Ho(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Go={rangeStep:m$,getDigitCount:y$,interpolateNumber:g$,uninterpolateNumber:b$,uninterpolateTruncation:x$};function _d(e){return _$(e)||O$(e)||S_(e)||w$()}function w$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O$(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _$(e){if(Array.isArray(e))return Ad(e)}function bi(e,t){return P$(e)||S$(e,t)||S_(e,t)||A$()}function A$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S_(e,t){if(e){if(typeof e=="string")return Ad(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 Ad(e,t)}}function Ad(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 S$(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function P$(e){if(Array.isArray(e))return e}function P_(e){var t=bi(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function T_(e,t,r){if(e.lte(0))return new xe(0);var n=Go.getDigitCount(e.toNumber()),i=new xe(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new xe(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new xe(Math.ceil(s))}function T$(e,t,r){var n=1,i=new xe(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new xe(10).pow(Go.getDigitCount(e)-1),i=new xe(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new xe(Math.floor(e)))}else e===0?i=new xe(Math.floor((t-1)/2)):r||(i=new xe(Math.floor(e)));var o=Math.floor((t-1)/2),u=v$(h$(function(s){return i.add(new xe(s-o).mul(n)).toNumber()}),wd);return u(0,t)}function E_(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new xe(0),tickMin:new xe(0),tickMax:new xe(0)};var a=T_(new xe(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new xe(0):(o=new xe(e).add(t).div(2),o=o.sub(new xe(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new xe(t).sub(o).div(a).toNumber()),c=u+s+1;return c>r?E_(e,t,r,n,i+1):(c<r&&(s=t>0?s+(r-c):s,u=t>0?u:u+(r-c)),{step:a,tickMin:o.sub(new xe(u).mul(a)),tickMax:o.add(new xe(s).mul(a))})}function E$(e){var t=bi(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=P_([r,n]),s=bi(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat(_d(wd(0,i-1).map(function(){return 1/0}))):[].concat(_d(wd(0,i-1).map(function(){return-1/0})),[f]);return r>n?Od(l):l}if(c===f)return T$(c,i,a);var d=E_(c,f,o,a),p=d.step,m=d.tickMin,v=d.tickMax,h=Go.rangeStep(m,v.add(new xe(.1).mul(p)),p);return r>n?Od(h):h}function j$(e,t){var r=bi(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=P_([n,i]),u=bi(o,2),s=u[0],c=u[1];if(s===-1/0||c===1/0)return[n,i];if(s===c)return[s];var f=Math.max(t,2),l=T_(new xe(c).sub(s).div(f-1),a,0),d=[].concat(_d(Go.rangeStep(new xe(s),new xe(c).sub(new xe(.99).mul(l)),l)),[c]);return n>i?Od(d):d}var C$=A_(E$),I$=A_(j$),$$=process.env.NODE_ENV==="production",jl="Invariant failed";function Je(e,t){if($$)throw new Error(jl);var r=typeof t=="function"?t():t,n=r?"".concat(jl,": ").concat(r):jl;throw new Error(n)}var M$=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(e)}function Ba(){return Ba=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},Ba.apply(this,arguments)}function R$(e,t){return q$(e)||N$(e,t)||D$(e,t)||k$()}function k$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D$(e,t){if(e){if(typeof e=="string")return Ob(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 Ob(e,t)}}function Ob(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 N$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function q$(e){if(Array.isArray(e))return e}function L$(e,t){if(e==null)return{};var r=B$(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function 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 F$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z$(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,I_(n.key),n)}}function W$(e,t,r){return t&&z$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function U$(e,t,r){return t=Fa(t),K$(e,j_()?Reflect.construct(t,r||[],Fa(e).constructor):t.apply(e,r))}function K$(e,t){if(t&&(un(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H$(e)}function H$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j_=function(){return!!e})()}function Fa(e){return Fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fa(e)}function G$(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&&Sd(e,t)}function Sd(e,t){return Sd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sd(e,t)}function C_(e,t,r){return t=I_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I_(e){var t=V$(e,"string");return un(t)=="symbol"?t:t+""}function V$(e,t){if(un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Hi=(function(e){function t(){return F$(this,t),U$(this,t,arguments)}return G$(t,e),W$(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,d=L$(n,M$),p=X(d,!1);this.props.direction==="x"&&f.type!=="number"&&(process.env.NODE_ENV!=="production"?Je(!1,'ErrorBar requires Axis type property to be "number".'):Je());var m=s.map(function(v){var h=c(v,u),g=h.x,x=h.y,w=h.value,O=h.errorVal;if(!O)return null;var y=[],b,_;if(Array.isArray(O)){var S=R$(O,2);b=S[0],_=S[1]}else b=_=O;if(a==="vertical"){var P=f.scale,j=x+i,E=j+o,T=j-o,I=P(w-b),M=P(w+_);y.push({x1:M,y1:E,x2:M,y2:T}),y.push({x1:I,y1:j,x2:M,y2:j}),y.push({x1:I,y1:E,x2:I,y2:T})}else if(a==="horizontal"){var R=l.scale,k=g+i,N=k-o,F=k+o,K=R(w-b),$=R(w+_);y.push({x1:N,y1:$,x2:F,y2:$}),y.push({x1:k,y1:K,x2:k,y2:$}),y.push({x1:N,y1:K,x2:F,y2:K})}return A.createElement(se,Ba({className:"recharts-errorBar",key:"bar-".concat(y.map(function(q){return"".concat(q.x1,"-").concat(q.x2,"-").concat(q.y1,"-").concat(q.y2)}))},p),y.map(function(q){return A.createElement("line",Ba({},q,{key:"line-".concat(q.x1,"-").concat(q.x2,"-").concat(q.y1,"-").concat(q.y2)}))}))});return A.createElement(se,{className:"recharts-errorBars"},m)}}])})(A.Component);C_(Hi,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});C_(Hi,"displayName","ErrorBar");function xi(e){"@babel/helpers - typeof";return xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xi(e)}function _b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_b(Object(r),!0).forEach(function(n){Y$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y$(e,t,r){return t=X$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X$(e){var t=Z$(e,"string");return xi(t)=="symbol"?t:t+""}function Z$(e,t){if(xi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $_=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=nt(r,Tt);if(!o)return null;var u=Tt.defaultProps,s=u!==void 0?pr(pr({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(f,l){var d=l.item,p=l.props,m=p.sectors||p.data||[];return f.concat(m.map(function(v){return{type:o.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):c=(n||[]).map(function(f){var l=f.item,d=l.type.defaultProps,p=d!==void 0?pr(pr({},d),l.props):{},m=p.dataKey,v=p.name,h=p.legendType,g=p.hide;return{inactive:g,dataKey:m,type:s.iconType||h||"square",color:hh(l),value:v||m,payload:p}}),pr(pr(pr({},s),Tt.getWithHeight(o,i)),{},{payload:c,item:o})};function wi(e){"@babel/helpers - typeof";return wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wi(e)}function Ab(e){return tM(e)||eM(e)||Q$(e)||J$()}function J$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q$(e,t){if(e){if(typeof e=="string")return Pd(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 Pd(e,t)}}function eM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tM(e){if(Array.isArray(e))return Pd(e)}function Pd(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 Sb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sb(Object(r),!0).forEach(function(n){Zr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zr(e,t,r){return t=rM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rM(e){var t=nM(e,"string");return wi(t)=="symbol"?t:t+""}function nM(e,t){if(wi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pe(e,t,r){return ue(e)||ue(t)?r:Re(t)?at(e,t,r):re(t)?t(e):r}function ti(e,t,r,n){var i=t$(e,function(u){return Pe(u,t)});if(r==="number"){var a=i.filter(function(u){return z(u)||parseFloat(u)});return a.length?[Ko(a),tr(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!ue(u)}):i;return o.map(function(u){return Re(u)||u instanceof Date?u:""})}var iM=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,c=0;c<u;c++){var f=c>0?i[c-1].coordinate:i[u-1].coordinate,l=i[c].coordinate,d=c>=u-1?i[0].coordinate:i[c+1].coordinate,p=void 0;if(He(l-f)!==He(d-l)){var m=[];if(He(d-l)===He(s[1]-s[0])){p=d;var v=l+s[1]-s[0];m[0]=Math.min(v,(v+f)/2),m[1]=Math.max(v,(v+f)/2)}else{p=f;var h=d+s[1]-s[0];m[0]=Math.min(l,(h+l)/2),m[1]=Math.max(l,(h+l)/2)}var g=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>g[0]&&t<=g[1]||t>=m[0]&&t<=m[1]){o=i[c].index;break}}else{var x=Math.min(f,d),w=Math.max(f,d);if(t>(x+l)/2&&t<=(w+l)/2){o=i[c].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},hh=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ee(Ee({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},aM=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),s=0,c=u.length;s<c;s++)for(var f=a[u[s]].stackGroups,l=Object.keys(f),d=0,p=l.length;d<p;d++){var m=f[l[d]],v=m.items,h=m.cateAxisId,g=v.filter(function(_){return qt(_.type).indexOf("Bar")>=0});if(g&&g.length){var x=g[0].type.defaultProps,w=x!==void 0?Ee(Ee({},x),g[0].props):g[0].props,O=w.barSize,y=w[h];o[y]||(o[y]=[]);var b=ue(O)?r:O;o[y].push({item:g[0],stackList:g.slice(1),barSize:ue(b)?void 0:Ge(b,n,0)})}}return o},oM=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,s=o.length;if(s<1)return null;var c=Ge(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/s,m=o.reduce(function(O,y){return O+y.barSize||0},0);m+=(s-1)*c,m>=i&&(m-=(s-1)*c,c=0),m>=i&&p>0&&(d=!0,p*=.9,m=s*p);var v=(i-m)/2>>0,h={offset:v-c,size:0};f=o.reduce(function(O,y){var b={item:y.item,position:{offset:h.offset+h.size+c,size:d?p:y.barSize}},_=[].concat(Ab(O),[b]);return h=_[_.length-1].position,y.stackList&&y.stackList.length&&y.stackList.forEach(function(S){_.push({item:S,position:h})}),_},l)}else{var g=Ge(n,i,0,!0);i-2*g-(s-1)*c<=0&&(c=0);var x=(i-2*g-(s-1)*c)/s;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,y,b){var _=[].concat(Ab(O),[{item:y.item,position:{offset:g+(x+c)*b+(x-w)/2,size:w}}]);return y.stackList&&y.stackList.length&&y.stackList.forEach(function(S){_.push({item:S,position:_[_.length-1].position})}),_},l)}return f},uM=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=$_({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,d=f.height,p=c.align,m=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&m==="middle")&&p!=="center"&&z(t[p]))return Ee(Ee({},t),{},Zr({},p,t[p]+(l||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&m!=="middle"&&z(t[m]))return Ee(Ee({},t),{},Zr({},m,t[m]+(d||0)))}return t},sM=function(t,r,n){return ue(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},M_=function(t,r,n,i,a){var o=r.props.children,u=Qe(o,Hi).filter(function(c){return sM(i,a,c.props.direction)});if(u&&u.length){var s=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=Pe(f,n);if(ue(l))return c;var d=Array.isArray(l)?[Ko(l),tr(l)]:[l,l],p=s.reduce(function(m,v){var h=Pe(f,v,0),g=d[0]-Math.abs(Array.isArray(h)?h[0]:h),x=d[1]+Math.abs(Array.isArray(h)?h[1]:h);return[Math.min(g,m[0]),Math.max(x,m[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},cM=function(t,r,n,i,a){var o=r.map(function(u){return M_(t,u,n,a,i)}).filter(function(u){return!ue(u)});return o&&o.length?o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]):null},R_=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&M_(t,s,c,i)||ti(t,c,n,a)});if(n==="number")return o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);var u={};return o.reduce(function(s,c){for(var f=0,l=c.length;f<l;f++)u[c[f]]||(u[c[f]]=!0,s.push(c[f]));return s},[])},k_=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},D_=function(t,r,n,i){if(i)return t.map(function(s){return s.coordinate});var a,o,u=t.map(function(s){return s.coordinate===r&&(a=!0),s.coordinate===n&&(o=!0),s.coordinate});return a||u.push(r),o||u.push(n),u},Nt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(c=t.axisType==="angleAxis"&&u?.length>=2?He(u[0]-u[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var d=a?a.indexOf(l):l;return{coordinate:i(d)+c,value:l,offset:c}});return f.filter(function(l){return!Cn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,d){return{coordinate:i(l)+c,value:l,index:d,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+c,value:l,offset:c}}):i.domain().map(function(l,d){return{coordinate:i(l)+c,value:a?a[l]:l,index:d,offset:c}})},Cl=new WeakMap,oa=function(t,r){if(typeof r!="function")return t;Cl.has(t)||Cl.set(t,new WeakMap);var n=Cl.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},N_=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:pi(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:ka(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:ei(),realScaleType:"point"}:a==="category"?{scale:pi(),realScaleType:"band"}:{scale:ka(),realScaleType:"linear"};if(ir(i)){var s="scale".concat(Co(i));return{scale:(lb[s]||ei)(),realScaleType:lb[s]?s:"point"}}return re(i)?{scale:i}:{scale:ei(),realScaleType:"point"}},Pb=1e-4,q_=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-Pb,o=Math.max(i[0],i[1])+Pb,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},lM=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},fM=function(t,r){if(!r||r.length!==2||!z(r[0])||!z(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!z(t[0])||t[0]<n)&&(a[0]=n),(!z(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},dM=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var s=Cn(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=a,t[u][n][1]=a+s,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},pM=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=Cn(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},hM={sign:dM,expand:dP,none:Jr,silhouette:pP,wiggle:hP,positive:pM},vM=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=hM[n],o=fP().keys(i).value(function(u,s){return+Pe(u,s,0)}).order(rd).offset(a);return o(t)},yM=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,d){var p,m=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Ee(Ee({},d.type.defaultProps),d.props):d.props,v=m.stackId,h=m.hide;if(h)return l;var g=m[n],x=l[g]||{hasStack:!1,stackGroups:{}};if(Re(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(d),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[$r("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Ee(Ee({},l),{},Zr({},g,x))},s),f={};return Object.keys(c).reduce(function(l,d){var p=c[d];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,h){var g=p.stackGroups[h];return Ee(Ee({},v),{},Zr({},h,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:vM(t,g.items,a)}))},m)}return Ee(Ee({},l),{},Zr({},d,p))},f)},L_=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=C$(c,a,u);return t.domain([Ko(f),tr(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),d=I$(l,a,u);return{niceTicks:d}}return null};function za(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ue(i[t.dataKey])){var u=ya(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=Pe(i,ue(o)?t.dataKey:o);return ue(s)?null:t.scale(s)}var Tb=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var s=Pe(o,r.dataKey,r.domain[u]);return ue(s)?null:r.scale(s)-a/2+i},mM=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},gM=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ee(Ee({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Re(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},bM=function(t){return t.reduce(function(r,n){return[Ko(n.concat([r[0]]).filter(z)),tr(n.concat([r[1]]).filter(z))]},[1/0,-1/0])},B_=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(c,f){var l=bM(f.slice(r,n+1));return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Eb=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,jb=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Td=function(t,r,n){if(re(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(z(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Eb.test(t[0])){var a=+Eb.exec(t[0])[1];i[0]=r[0]-a}else re(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(z(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(jb.test(t[1])){var o=+jb.exec(t[1])[1];i[1]=r[1]+o}else re(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Wa=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=zp(r,function(l){return l.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var c=a[u],f=a[u-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Cb=function(t,r,n){return!t||!t.length||or(t,at(n,"type.defaultProps.domain"))?r:t},F_=function(t,r){var n=t.type.defaultProps?Ee(Ee({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,c=n.chartType,f=n.hide;return Ee(Ee({},X(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:hh(t),value:Pe(r,i),type:s,payload:r,chartType:c,hide:f})};function Oi(e){"@babel/helpers - typeof";return Oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oi(e)}function Ib(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ib(Object(r),!0).forEach(function(n){z_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ib(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z_(e,t,r){return t=xM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xM(e){var t=wM(e,"string");return Oi(t)=="symbol"?t:t+""}function wM(e,t){if(Oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OM(e,t){return PM(e)||SM(e,t)||AM(e,t)||_M()}function _M(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AM(e,t){if(e){if(typeof e=="string")return $b(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 $b(e,t)}}function $b(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 SM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function PM(e){if(Array.isArray(e))return e}var Ua=Math.PI/180,TM=function(t){return t*180/Math.PI},Ae=function(t,r,n,i){return{x:t+Math.cos(-Ua*i)*n,y:r+Math.sin(-Ua*i)*n}},W_=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},EM=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.startAngle,c=t.endAngle,f=Ge(t.cx,o,o/2),l=Ge(t.cy,u,u/2),d=W_(o,u,n),p=Ge(t.innerRadius,d,0),m=Ge(t.outerRadius,d,d*.8),v=Object.keys(r);return v.reduce(function(h,g){var x=r[g],w=x.domain,O=x.reversed,y;if(ue(x.range))i==="angleAxis"?y=[s,c]:i==="radiusAxis"&&(y=[p,m]),O&&(y=[y[1],y[0]]);else{y=x.range;var b=y,_=OM(b,2);s=_[0],c=_[1]}var S=N_(x,a),P=S.realScaleType,j=S.scale;j.domain(w).range(y),q_(j);var E=L_(j,Rt(Rt({},x),{},{realScaleType:P})),T=Rt(Rt(Rt({},x),E),{},{range:y,radius:m,realScaleType:P,scale:j,cx:f,cy:l,innerRadius:p,outerRadius:m,startAngle:s,endAngle:c});return Rt(Rt({},h),{},z_({},g,T))},{})},jM=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},CM=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=jM({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var s=(n-a)/u,c=Math.acos(s);return i>o&&(c=2*Math.PI-c),{radius:u,angle:TM(c),angleInRadian:c}},IM=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},$M=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},Mb=function(t,r){var n=t.x,i=t.y,a=CM({x:n,y:i},r),o=a.radius,u=a.angle,s=r.innerRadius,c=r.outerRadius;if(o<s||o>c)return!1;if(o===0)return!0;var f=IM(r),l=f.startAngle,d=f.endAngle,p=u,m;if(l<=d){for(;p>d;)p-=360;for(;p<l;)p+=360;m=p>=l&&p<=d}else{for(;p>l;)p-=360;for(;p<d;)p+=360;m=p>=d&&p<=l}return m?Rt(Rt({},r),{},{radius:o,angle:$M(p,r)}):null},U_=function(t){return!A.isValidElement(t)&&!re(t)&&typeof t!="boolean"?t.className:""};function _i(e){"@babel/helpers - typeof";return _i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_i(e)}var MM=["offset"];function RM(e){return qM(e)||NM(e)||DM(e)||kM()}function kM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DM(e,t){if(e){if(typeof e=="string")return Ed(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 Ed(e,t)}}function NM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qM(e){if(Array.isArray(e))return Ed(e)}function Ed(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){if(e==null)return{};var r=BM(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BM(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 Rb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rb(Object(r),!0).forEach(function(n){FM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FM(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=WM(e,"string");return _i(t)=="symbol"?t:t+""}function WM(e,t){if(_i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ai(){return Ai=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},Ai.apply(this,arguments)}var UM=function(t){var r=t.value,n=t.formatter,i=ue(t.children)?r:t.children;return re(n)?n(i):i},KM=function(t,r){var n=He(r-t),i=Math.min(Math.abs(r-t),360);return n*i},HM=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,c=s.cx,f=s.cy,l=s.innerRadius,d=s.outerRadius,p=s.startAngle,m=s.endAngle,v=s.clockWise,h=(l+d)/2,g=KM(p,m),x=g>=0?1:-1,w,O;i==="insideStart"?(w=p+x*o,O=v):i==="insideEnd"?(w=m-x*o,O=!v):i==="end"&&(w=m+x*o,O=v),O=g<=0?O:!O;var y=Ae(c,f,h,w),b=Ae(c,f,h,w+(O?1:-1)*359),_="M".concat(y.x,",").concat(y.y,`
|
|
20
|
+
A`).concat(h,",").concat(h,",0,1,").concat(O?0:1,`,
|
|
21
|
+
`).concat(b.x,",").concat(b.y),S=ue(t.id)?$r("recharts-radial-line-"):t.id;return A.createElement("text",Ai({},n,{dominantBaseline:"central",className:Q.clsx("recharts-radial-bar-label",u)}),A.createElement("defs",null,A.createElement("path",{id:S,d:_})),A.createElement("textPath",{xlinkHref:"#".concat(S)},r))},GM=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,c=a.outerRadius,f=a.startAngle,l=a.endAngle,d=(f+l)/2;if(i==="outside"){var p=Ae(o,u,c+n,d),m=p.x,v=p.y;return{x:m,y:v,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var h=(s+c)/2,g=Ae(o,u,h,d),x=g.x,w=g.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},VM=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,c=o.width,f=o.height,l=f>=0?1:-1,d=l*i,p=l>0?"end":"start",m=l>0?"start":"end",v=c>=0?1:-1,h=v*i,g=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+c/2,y:s-l*i,textAnchor:"middle",verticalAnchor:p};return $e($e({},w),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var O={x:u+c/2,y:s+f+d,textAnchor:"middle",verticalAnchor:m};return $e($e({},O),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(a==="left"){var y={x:u-h,y:s+f/2,textAnchor:g,verticalAnchor:"middle"};return $e($e({},y),n?{width:Math.max(y.x-n.x,0),height:f}:{})}if(a==="right"){var b={x:u+c+h,y:s+f/2,textAnchor:x,verticalAnchor:"middle"};return $e($e({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:f}:{})}var _=n?{width:c,height:f}:{};return a==="insideLeft"?$e({x:u+h,y:s+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?$e({x:u+c-h,y:s+f/2,textAnchor:g,verticalAnchor:"middle"},_):a==="insideTop"?$e({x:u+c/2,y:s+d,textAnchor:"middle",verticalAnchor:m},_):a==="insideBottom"?$e({x:u+c/2,y:s+f-d,textAnchor:"middle",verticalAnchor:p},_):a==="insideTopLeft"?$e({x:u+h,y:s+d,textAnchor:x,verticalAnchor:m},_):a==="insideTopRight"?$e({x:u+c-h,y:s+d,textAnchor:g,verticalAnchor:m},_):a==="insideBottomLeft"?$e({x:u+h,y:s+f-d,textAnchor:x,verticalAnchor:p},_):a==="insideBottomRight"?$e({x:u+c-h,y:s+f-d,textAnchor:g,verticalAnchor:p},_):jn(a)&&(z(a.x)||br(a.x))&&(z(a.y)||br(a.y))?$e({x:u+Ge(a.x,c),y:s+Ge(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):$e({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},YM=function(t){return"cx"in t&&z(t.cx)};function Le(e){var t=e.offset,r=t===void 0?5:t,n=LM(e,MM),i=$e({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,c=i.content,f=i.className,l=f===void 0?"":f,d=i.textBreakAll;if(!a||ue(u)&&ue(s)&&!A.isValidElement(c)&&!re(c))return null;if(A.isValidElement(c))return A.cloneElement(c,i);var p;if(re(c)){if(p=A.createElement(c,i),A.isValidElement(p))return p}else p=UM(i);var m=YM(a),v=X(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return HM(i,p,v);var h=m?GM(i):VM(i);return A.createElement(Tr,Ai({className:Q.clsx("recharts-label",l)},v,h,{breakAll:d}),p)}Le.displayName="Label";var K_=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,d=t.y,p=t.top,m=t.left,v=t.width,h=t.height,g=t.clockWise,x=t.labelViewBox;if(x)return x;if(z(v)&&z(h)){if(z(l)&&z(d))return{x:l,y:d,width:v,height:h};if(z(p)&&z(m))return{x:p,y:m,width:v,height:h}}return z(l)&&z(d)?{x:l,y:d,width:0,height:0}:z(r)&&z(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:f||s||u||0,clockWise:g}:t.viewBox?t.viewBox:{}},XM=function(t,r){return t?t===!0?A.createElement(Le,{key:"label-implicit",viewBox:r}):Re(t)?A.createElement(Le,{key:"label-implicit",viewBox:r,value:t}):A.isValidElement(t)?t.type===Le?A.cloneElement(t,{key:"label-implicit",viewBox:r}):A.createElement(Le,{key:"label-implicit",content:t,viewBox:r}):re(t)?A.createElement(Le,{key:"label-implicit",content:t,viewBox:r}):jn(t)?A.createElement(Le,Ai({viewBox:r},t,{key:"label-implicit"})):null:null},ZM=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=K_(t),o=Qe(i,Le).map(function(s,c){return A.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=XM(t.label,r||a);return[u].concat(RM(o))};Le.parseViewBox=K_;Le.renderCallByParent=ZM;var Il,kb;function H_(){if(kb)return Il;kb=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Il=e,Il}var JM=H_();const QM=be(JM);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)}var eR=["valueAccessor"],tR=["data","dataKey","clockWise","id","textBreakAll"];function rR(e){return oR(e)||aR(e)||iR(e)||nR()}function nR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iR(e,t){if(e){if(typeof e=="string")return jd(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 jd(e,t)}}function aR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oR(e){if(Array.isArray(e))return jd(e)}function jd(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 Ka(){return Ka=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ka.apply(this,arguments)}function Db(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Db(Object(r),!0).forEach(function(n){uR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Db(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uR(e,t,r){return t=sR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sR(e){var t=cR(e,"string");return Si(t)=="symbol"?t:t+""}function cR(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)}function qb(e,t){if(e==null)return{};var r=lR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lR(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 fR=function(t){return Array.isArray(t.value)?QM(t.value):t.value};function dt(e){var t=e.valueAccessor,r=t===void 0?fR:t,n=qb(e,eR),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=qb(n,tR);return!i||!i.length?null:A.createElement(se,{className:"recharts-label-list"},i.map(function(f,l){var d=ue(a)?r(f,l):Pe(f&&f.payload,a),p=ue(u)?{}:{id:"".concat(u,"-").concat(l)};return A.createElement(Le,Ka({},X(f,!0),c,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:s,viewBox:Le.parseViewBox(ue(o)?f:Nb(Nb({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}dt.displayName="LabelList";function dR(e,t){return e?e===!0?A.createElement(dt,{key:"labelList-implicit",data:t}):A.isValidElement(e)||re(e)?A.createElement(dt,{key:"labelList-implicit",data:t,content:e}):jn(e)?A.createElement(dt,Ka({data:t},e,{key:"labelList-implicit"})):null:null}function pR(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Qe(n,dt).map(function(o,u){return A.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=dR(e.label,t);return[a].concat(rR(i))}dt.renderCallByParent=pR;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 Cd(){return Cd=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},Cd.apply(this,arguments)}function Lb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lb(Object(r),!0).forEach(function(n){hR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hR(e,t,r){return t=vR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vR(e){var t=yR(e,"string");return Pi(t)=="symbol"?t:t+""}function yR(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)}var mR=function(t,r){var n=He(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ua=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,s=t.cornerRadius,c=t.cornerIsExternal,f=s*(u?1:-1)+i,l=Math.asin(s/f)/Ua,d=c?a:a+o*l,p=Ae(r,n,f,d),m=Ae(r,n,i,d),v=c?a-o*l:a,h=Ae(r,n,f*Math.cos(l*Ua),v);return{center:p,circleTangency:m,lineTangency:h,theta:l}},G_=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=mR(o,u),c=o+s,f=Ae(r,n,a,o),l=Ae(r,n,a,c),d="M ".concat(f.x,",").concat(f.y,`
|
|
23
|
+
A `).concat(a,",").concat(a,`,0,
|
|
24
|
+
`).concat(+(Math.abs(s)>180),",").concat(+(o>c),`,
|
|
25
|
+
`).concat(l.x,",").concat(l.y,`
|
|
26
|
+
`);if(i>0){var p=Ae(r,n,i,o),m=Ae(r,n,i,c);d+="L ".concat(m.x,",").concat(m.y,`
|
|
27
|
+
A `).concat(i,",").concat(i,`,0,
|
|
28
|
+
`).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`,
|
|
29
|
+
`).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},gR=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,s=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,l=He(f-c),d=ua({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),p=d.circleTangency,m=d.lineTangency,v=d.theta,h=ua({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),g=h.circleTangency,x=h.lineTangency,w=h.theta,O=s?Math.abs(c-f):Math.abs(c-f)-v-w;if(O<0)return u?"M ".concat(m.x,",").concat(m.y,`
|
|
30
|
+
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
|
|
31
|
+
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
|
|
32
|
+
`):G_({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f});var y="M ".concat(m.x,",").concat(m.y,`
|
|
33
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,`
|
|
34
|
+
A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(g.x,",").concat(g.y,`
|
|
35
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
|
|
36
|
+
`);if(i>0){var b=ua({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=b.circleTangency,S=b.lineTangency,P=b.theta,j=ua({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),E=j.circleTangency,T=j.lineTangency,I=j.theta,M=s?Math.abs(c-f):Math.abs(c-f)-P-I;if(M<0&&o===0)return"".concat(y,"L").concat(r,",").concat(n,"Z");y+="L".concat(T.x,",").concat(T.y,`
|
|
37
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(E.x,",").concat(E.y,`
|
|
38
|
+
A`).concat(i,",").concat(i,",0,").concat(+(M>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
|
|
39
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else y+="L".concat(r,",").concat(n,"Z");return y},bR={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},V_=function(t){var r=Bb(Bb({},bR),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,d=r.className;if(o<a||f===l)return null;var p=Q.clsx("recharts-sector",d),m=o-a,v=Ge(u,m,0,!0),h;return v>0&&Math.abs(f-l)<360?h=gR({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,m/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):h=G_({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),A.createElement("path",Cd({},X(r,!0),{className:p,d:h,role:"img"}))};function Ti(e){"@babel/helpers - typeof";return Ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ti(e)}function Id(){return Id=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},Id.apply(this,arguments)}function Fb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fb(Object(r),!0).forEach(function(n){xR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xR(e,t,r){return t=wR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wR(e){var t=OR(e,"string");return Ti(t)=="symbol"?t:t+""}function OR(e,t){if(Ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wb={curveBasisClosed:eP,curveBasisOpen:tP,curveBasis:QS,curveBumpX:LS,curveBumpY:BS,curveLinearClosed:rP,curveLinear:$o,curveMonotoneX:nP,curveMonotoneY:iP,curveNatural:aP,curveStep:oP,curveStepAfter:sP,curveStepBefore:uP},sa=function(t){return t.x===+t.x&&t.y===+t.y},Kn=function(t){return t.x},Hn=function(t){return t.y},_R=function(t,r){if(re(t))return t;var n="curve".concat(Co(t));return(n==="curveMonotone"||n==="curveBump")&&r?Wb["".concat(n).concat(r==="vertical"?"Y":"X")]:Wb[n]||$o},AR=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,s=t.connectNulls,c=s===void 0?!1:s,f=_R(n,u),l=c?a.filter(function(v){return sa(v)}):a,d;if(Array.isArray(o)){var p=c?o.filter(function(v){return sa(v)}):o,m=l.map(function(v,h){return zb(zb({},v),{},{base:p[h]})});return u==="vertical"?d=Qi().y(Hn).x1(Kn).x0(function(v){return v.base.x}):d=Qi().x(Kn).y1(Hn).y0(function(v){return v.base.y}),d.defined(sa).curve(f),d(m)}return u==="vertical"&&z(o)?d=Qi().y(Hn).x1(Kn).x0(o):z(o)?d=Qi().x(Kn).y1(Hn).y0(o):d=Uw().x(Kn).y(Hn),d.defined(sa).curve(f),d(l)},Pr=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?AR(t):i;return Ue.createElement("path",Id({},X(t,!1),ma(t),{className:Q.clsx("recharts-curve",r),d:o,ref:a}))},ca={exports:{}},la={exports:{}},pe={};var Ub;function SR(){if(Ub)return pe;Ub=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function w(y){if(typeof y=="object"&&y!==null){var b=y.$$typeof;switch(b){case t:switch(y=y.type,y){case s:case c:case n:case a:case i:case l:return y;default:switch(y=y&&y.$$typeof,y){case u:case f:case m:case p:case o:return y;default:return b}}case r:return b}}}function O(y){return w(y)===c}return pe.AsyncMode=s,pe.ConcurrentMode=c,pe.ContextConsumer=u,pe.ContextProvider=o,pe.Element=t,pe.ForwardRef=f,pe.Fragment=n,pe.Lazy=m,pe.Memo=p,pe.Portal=r,pe.Profiler=a,pe.StrictMode=i,pe.Suspense=l,pe.isAsyncMode=function(y){return O(y)||w(y)===s},pe.isConcurrentMode=O,pe.isContextConsumer=function(y){return w(y)===u},pe.isContextProvider=function(y){return w(y)===o},pe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},pe.isForwardRef=function(y){return w(y)===f},pe.isFragment=function(y){return w(y)===n},pe.isLazy=function(y){return w(y)===m},pe.isMemo=function(y){return w(y)===p},pe.isPortal=function(y){return w(y)===r},pe.isProfiler=function(y){return w(y)===a},pe.isStrictMode=function(y){return w(y)===i},pe.isSuspense=function(y){return w(y)===l},pe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===c||y===a||y===i||y===l||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===p||y.$$typeof===o||y.$$typeof===u||y.$$typeof===f||y.$$typeof===h||y.$$typeof===g||y.$$typeof===x||y.$$typeof===v)},pe.typeOf=w,pe}var he={};var Kb;function PR(){return Kb||(Kb=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function w(C){return typeof C=="string"||typeof C=="function"||C===n||C===c||C===a||C===i||C===l||C===d||typeof C=="object"&&C!==null&&(C.$$typeof===m||C.$$typeof===p||C.$$typeof===o||C.$$typeof===u||C.$$typeof===f||C.$$typeof===h||C.$$typeof===g||C.$$typeof===x||C.$$typeof===v)}function O(C){if(typeof C=="object"&&C!==null){var ce=C.$$typeof;switch(ce){case t:var W=C.type;switch(W){case s:case c:case n:case a:case i:case l:return W;default:var te=W&&W.$$typeof;switch(te){case u:case f:case m:case p:case o:return te;default:return ce}}case r:return ce}}}var y=s,b=c,_=u,S=o,P=t,j=f,E=n,T=m,I=p,M=r,R=a,k=i,N=l,F=!1;function K(C){return F||(F=!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)||O(C)===s}function $(C){return O(C)===c}function q(C){return O(C)===u}function L(C){return O(C)===o}function U(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function V(C){return O(C)===f}function J(C){return O(C)===n}function ee(C){return O(C)===m}function ae(C){return O(C)===p}function ne(C){return O(C)===r}function B(C){return O(C)===a}function G(C){return O(C)===i}function Z(C){return O(C)===l}he.AsyncMode=y,he.ConcurrentMode=b,he.ContextConsumer=_,he.ContextProvider=S,he.Element=P,he.ForwardRef=j,he.Fragment=E,he.Lazy=T,he.Memo=I,he.Portal=M,he.Profiler=R,he.StrictMode=k,he.Suspense=N,he.isAsyncMode=K,he.isConcurrentMode=$,he.isContextConsumer=q,he.isContextProvider=L,he.isElement=U,he.isForwardRef=V,he.isFragment=J,he.isLazy=ee,he.isMemo=ae,he.isPortal=ne,he.isProfiler=B,he.isStrictMode=G,he.isSuspense=Z,he.isValidElementType=w,he.typeOf=O})()),he}var Hb;function Y_(){return Hb||(Hb=1,process.env.NODE_ENV==="production"?la.exports=SR():la.exports=PR()),la.exports}var $l,Gb;function TR(){if(Gb)return $l;Gb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},u=0;u<10;u++)o["_"+String.fromCharCode(u)]=u;var s=Object.getOwnPropertyNames(o).map(function(f){return o[f]});if(s.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(f){c[f]=f}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $l=i()?Object.assign:function(a,o){for(var u,s=n(a),c,f=1;f<arguments.length;f++){u=Object(arguments[f]);for(var l in u)t.call(u,l)&&(s[l]=u[l]);if(e){c=e(u);for(var d=0;d<c.length;d++)r.call(u,c[d])&&(s[c[d]]=u[c[d]])}}return s},$l}var Ml,Vb;function vh(){if(Vb)return Ml;Vb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ml=e,Ml}var Rl,Yb;function X_(){return Yb||(Yb=1,Rl=Function.call.bind(Object.prototype.hasOwnProperty)),Rl}var kl,Xb;function ER(){if(Xb)return kl;Xb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=vh(),r={},n=X_();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,u,s,c){if(process.env.NODE_ENV!=="production"){for(var f in a)if(n(a,f)){var l;try{if(typeof a[f]!="function"){var d=Error((s||"React class")+": "+u+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}l=a[f](o,f,s,u,null,t)}catch(m){l=m}if(l&&!(l instanceof Error)&&e((s||"React class")+": type specification of "+u+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof l+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),l instanceof Error&&!(l.message in r)){r[l.message]=!0;var p=c?c():"";e("Failed "+u+" type: "+l.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},kl=i,kl}var Dl,Zb;function jR(){if(Zb)return Dl;Zb=1;var e=Y_(),t=TR(),r=vh(),n=X_(),i=ER(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(u){var s="Warning: "+u;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function o(){return null}return Dl=function(u,s){var c=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function l($){var q=$&&(c&&$[c]||$[f]);if(typeof q=="function")return q}var d="<<anonymous>>",p={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:x(),arrayOf:w,element:O(),elementType:y(),instanceOf:b,node:j(),objectOf:S,oneOf:_,oneOfType:P,shape:T,exact:I};function m($,q){return $===q?$!==0||1/$===1/q:$!==$&&q!==q}function v($,q){this.message=$,this.data=q&&typeof q=="object"?q:{},this.stack=""}v.prototype=Error.prototype;function h($){if(process.env.NODE_ENV!=="production")var q={},L=0;function U(J,ee,ae,ne,B,G,Z){if(ne=ne||d,G=G||ae,Z!==r){if(s){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ce=ne+":"+ae;!q[ce]&&L<3&&(a("You are manually calling a React.PropTypes validation function for the `"+G+"` 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."),q[ce]=!0,L++)}}return ee[ae]==null?J?ee[ae]===null?new v("The "+B+" `"+G+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new v("The "+B+" `"+G+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:$(ee,ae,ne,B,G)}var V=U.bind(null,!1);return V.isRequired=U.bind(null,!0),V}function g($){function q(L,U,V,J,ee,ae){var ne=L[U],B=k(ne);if(B!==$){var G=N(ne);return new v("Invalid "+J+" `"+ee+"` of type "+("`"+G+"` supplied to `"+V+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return h(q)}function x(){return h(o)}function w($){function q(L,U,V,J,ee){if(typeof $!="function")return new v("Property `"+ee+"` of component `"+V+"` has invalid PropType notation inside arrayOf.");var ae=L[U];if(!Array.isArray(ae)){var ne=k(ae);return new v("Invalid "+J+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+V+"`, expected an array."))}for(var B=0;B<ae.length;B++){var G=$(ae,B,V,J,ee+"["+B+"]",r);if(G instanceof Error)return G}return null}return h(q)}function O(){function $(q,L,U,V,J){var ee=q[L];if(!u(ee)){var ae=k(ee);return new v("Invalid "+V+" `"+J+"` of type "+("`"+ae+"` supplied to `"+U+"`, expected a single ReactElement."))}return null}return h($)}function y(){function $(q,L,U,V,J){var ee=q[L];if(!e.isValidElementType(ee)){var ae=k(ee);return new v("Invalid "+V+" `"+J+"` of type "+("`"+ae+"` supplied to `"+U+"`, expected a single ReactElement type."))}return null}return h($)}function b($){function q(L,U,V,J,ee){if(!(L[U]instanceof $)){var ae=$.name||d,ne=K(L[U]);return new v("Invalid "+J+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+V+"`, expected ")+("instance of `"+ae+"`."))}return null}return h(q)}function _($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function q(L,U,V,J,ee){for(var ae=L[U],ne=0;ne<$.length;ne++)if(m(ae,$[ne]))return null;var B=JSON.stringify($,function(Z,C){var ce=N(C);return ce==="symbol"?String(C):C});return new v("Invalid "+J+" `"+ee+"` of value `"+String(ae)+"` "+("supplied to `"+V+"`, expected one of "+B+"."))}return h(q)}function S($){function q(L,U,V,J,ee){if(typeof $!="function")return new v("Property `"+ee+"` of component `"+V+"` has invalid PropType notation inside objectOf.");var ae=L[U],ne=k(ae);if(ne!=="object")return new v("Invalid "+J+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+V+"`, expected an object."));for(var B in ae)if(n(ae,B)){var G=$(ae,B,V,J,ee+"."+B,r);if(G instanceof Error)return G}return null}return h(q)}function P($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var q=0;q<$.length;q++){var L=$[q];if(typeof L!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(L)+" at index "+q+"."),o}function U(V,J,ee,ae,ne){for(var B=[],G=0;G<$.length;G++){var Z=$[G],C=Z(V,J,ee,ae,ne,r);if(C==null)return null;C.data&&n(C.data,"expectedType")&&B.push(C.data.expectedType)}var ce=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new v("Invalid "+ae+" `"+ne+"` supplied to "+("`"+ee+"`"+ce+"."))}return h(U)}function j(){function $(q,L,U,V,J){return M(q[L])?null:new v("Invalid "+V+" `"+J+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return h($)}function E($,q,L,U,V){return new v(($||"React class")+": "+q+" type `"+L+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+V+"`.")}function T($){function q(L,U,V,J,ee){var ae=L[U],ne=k(ae);if(ne!=="object")return new v("Invalid "+J+" `"+ee+"` of type `"+ne+"` "+("supplied to `"+V+"`, expected `object`."));for(var B in $){var G=$[B];if(typeof G!="function")return E(V,J,ee,B,N(G));var Z=G(ae,B,V,J,ee+"."+B,r);if(Z)return Z}return null}return h(q)}function I($){function q(L,U,V,J,ee){var ae=L[U],ne=k(ae);if(ne!=="object")return new v("Invalid "+J+" `"+ee+"` of type `"+ne+"` "+("supplied to `"+V+"`, expected `object`."));var B=t({},L[U],$);for(var G in B){var Z=$[G];if(n($,G)&&typeof Z!="function")return E(V,J,ee,G,N(Z));if(!Z)return new v("Invalid "+J+" `"+ee+"` key `"+G+"` supplied to `"+V+"`.\nBad object: "+JSON.stringify(L[U],null," ")+`
|
|
40
|
+
Valid keys: `+JSON.stringify(Object.keys($),null," "));var C=Z(ae,G,V,J,ee+"."+G,r);if(C)return C}return null}return h(q)}function M($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(M);if($===null||u($))return!0;var q=l($);if(q){var L=q.call($),U;if(q!==$.entries){for(;!(U=L.next()).done;)if(!M(U.value))return!1}else for(;!(U=L.next()).done;){var V=U.value;if(V&&!M(V[1]))return!1}}else return!1;return!0;default:return!1}}function R($,q){return $==="symbol"?!0:q?q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&q instanceof Symbol:!1}function k($){var q=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":R(q,$)?"symbol":q}function N($){if(typeof $>"u"||$===null)return""+$;var q=k($);if(q==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return q}function F($){var q=N($);switch(q){case"array":case"object":return"an "+q;case"boolean":case"date":case"regexp":return"a "+q;default:return q}}function K($){return!$.constructor||!$.constructor.name?d:$.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Dl}var Nl,Jb;function CR(){if(Jb)return Nl;Jb=1;var e=vh();function t(){}function r(){}return r.resetWarningCache=t,Nl=function(){function n(o,u,s,c,f,l){if(l!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Nl}var Qb;function IR(){if(Qb)return ca.exports;if(Qb=1,process.env.NODE_ENV!=="production"){var e=Y_(),t=!0;ca.exports=jR()(e.isElement,t)}else ca.exports=CR()();return ca.exports}var $R=IR();const ve=be($R),{getOwnPropertyNames:MR,getOwnPropertySymbols:RR}=Object,{hasOwnProperty:kR}=Object.prototype;function ql(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function fa(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);const s=e(r,n,i);return a.delete(r),a.delete(n),s}}function DR(e){return e?.[Symbol.toStringTag]}function e0(e){return MR(e).concat(RR(e))}const NR=Object.hasOwn||((e,t)=>kR.call(e,t));function Dr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const qR="__v",LR="__o",BR="_owner",{getOwnPropertyDescriptor:t0,keys:r0}=Object;function FR(e,t){return e.byteLength===t.byteLength&&Ha(new Uint8Array(e),new Uint8Array(t))}function zR(e,t,r){let 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 WR(e,t){return e.byteLength===t.byteLength&&Ha(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function UR(e,t){return Dr(e.getTime(),t.getTime())}function KR(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function HR(e,t){return e===t}function n0(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,u,s=0;for(;(o=a.next())&&!o.done;){const c=t.entries();let f=!1,l=0;for(;(u=c.next())&&!u.done;){if(i[l]){l++;continue}const d=o.value,p=u.value;if(r.equals(d[0],p[0],s,l,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;s++}return!0}const GR=Dr;function VR(e,t,r){const n=r0(e);let i=n.length;if(r0(t).length!==i)return!1;for(;i-- >0;)if(!Z_(e,t,r,n[i]))return!1;return!0}function Gn(e,t,r){const n=e0(e);let i=n.length;if(e0(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!Z_(e,t,r,a)||(o=t0(e,a),u=t0(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function YR(e,t){return Dr(e.valueOf(),t.valueOf())}function XR(e,t){return e.source===t.source&&e.flags===t.flags}function i0(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,u;for(;(o=a.next())&&!o.done;){const s=t.values();let c=!1,f=0;for(;(u=s.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1}return!0}function Ha(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function ZR(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 Z_(e,t,r,n){return(n===BR||n===LR||n===qR)&&(e.$$typeof||t.$$typeof)?!0:NR(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const JR="[object ArrayBuffer]",QR="[object Arguments]",ek="[object Boolean]",tk="[object DataView]",rk="[object Date]",nk="[object Error]",ik="[object Map]",ak="[object Number]",ok="[object Object]",uk="[object RegExp]",sk="[object Set]",ck="[object String]",lk={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},fk="[object URL]",dk=Object.prototype.toString;function pk({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:s,arePrimitiveWrappersEqual:c,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:d,areUrlsEqual:p,unknownTagComparators:m}){return function(h,g,x){if(h===g)return!0;if(h==null||g==null)return!1;const w=typeof h;if(w!==typeof g)return!1;if(w!=="object")return w==="number"?u(h,g,x):w==="function"?a(h,g,x):!1;const O=h.constructor;if(O!==g.constructor)return!1;if(O===Object)return s(h,g,x);if(Array.isArray(h))return t(h,g,x);if(O===Date)return n(h,g,x);if(O===RegExp)return f(h,g,x);if(O===Map)return o(h,g,x);if(O===Set)return l(h,g,x);const y=dk.call(h);if(y===rk)return n(h,g,x);if(y===uk)return f(h,g,x);if(y===ik)return o(h,g,x);if(y===sk)return l(h,g,x);if(y===ok)return typeof h.then!="function"&&typeof g.then!="function"&&s(h,g,x);if(y===fk)return p(h,g,x);if(y===nk)return i(h,g,x);if(y===QR)return s(h,g,x);if(lk[y])return d(h,g,x);if(y===JR)return e(h,g,x);if(y===tk)return r(h,g,x);if(y===ek||y===ak||y===ck)return c(h,g,x);if(m){let b=m[y];if(!b){const _=DR(h);_&&(b=m[_])}if(b)return b(h,g,x)}return!1}}function hk({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:FR,areArraysEqual:r?Gn:zR,areDataViewsEqual:WR,areDatesEqual:UR,areErrorsEqual:KR,areFunctionsEqual:HR,areMapsEqual:r?ql(n0,Gn):n0,areNumbersEqual:GR,areObjectsEqual:r?Gn:VR,arePrimitiveWrappersEqual:YR,areRegExpsEqual:XR,areSetsEqual:r?ql(i0,Gn):i0,areTypedArraysEqual:r?ql(Ha,Gn):Ha,areUrlsEqual:ZR,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=fa(n.areArraysEqual),a=fa(n.areMapsEqual),o=fa(n.areObjectsEqual),u=fa(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function vk(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function yk({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,s){const{cache:c=e?new WeakMap:void 0,meta:f}=r();return t(u,s,{cache:c,equals:n,meta:f,strict:i})};if(e)return function(u,s){return t(u,s,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(u,s){return t(u,s,a)}}const mk=cr();cr({strict:!0});cr({circular:!0});cr({circular:!0,strict:!0});cr({createInternalComparator:()=>Dr});cr({strict:!0,createInternalComparator:()=>Dr});cr({circular:!0,createInternalComparator:()=>Dr});cr({circular:!0,createInternalComparator:()=>Dr,strict:!0});function cr(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=hk(e),o=pk(a),u=r?r(o):vk(o);return yk({circular:t,comparator:o,createState:n,equals:u,strict:i})}function gk(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function a0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):gk(i)};requestAnimationFrame(n)}function $d(e){"@babel/helpers - typeof";return $d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$d(e)}function bk(e){return _k(e)||Ok(e)||wk(e)||xk()}function xk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
41
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wk(e,t){if(e){if(typeof e=="string")return o0(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 o0(e,t)}}function o0(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 Ok(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _k(e){if(Array.isArray(e))return e}function Ak(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=bk(o),s=u[0],c=u.slice(1);if(typeof s=="number"){a0(i.bind(null,c),s);return}i(s),a0(i.bind(null,c));return}$d(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function 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 u0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function s0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u0(Object(r),!0).forEach(function(n){J_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J_(e,t,r){return t=Sk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sk(e){var t=Pk(e,"string");return Ei(t)==="symbol"?t:String(t)}function Pk(e,t){if(Ei(e)!=="object"||e===null)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 Tk=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},Ek=function(t){return t},jk=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},ri=function(t,r){return Object.keys(r).reduce(function(n,i){return s0(s0({},n),{},J_({},i,t(i,r[i])))},{})},c0=function(t,r,n){return t.map(function(i){return"".concat(jk(i)," ").concat(r,"ms ").concat(n)}).join(",")},Ck=process.env.NODE_ENV!=="production",Ga=function(t,r,n,i,a,o,u,s){if(Ck&&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 c=[n,i,a,o,u,s],f=0;console.warn(r.replace(/%s/g,function(){return c[f++]}))}};function Ik(e,t){return Rk(e)||Mk(e,t)||Q_(e,t)||$k()}function $k(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
42
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function Rk(e){if(Array.isArray(e))return e}function kk(e){return qk(e)||Nk(e)||Q_(e)||Dk()}function Dk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
43
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q_(e,t){if(e){if(typeof e=="string")return Md(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 Md(e,t)}}function Nk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qk(e){if(Array.isArray(e))return Md(e)}function Md(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 Va=1e-4,eA=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},tA=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},l0=function(t,r){return function(n){var i=eA(t,r);return tA(i,n)}},Lk=function(t,r){return function(n){var i=eA(t,r),a=[].concat(kk(i.map(function(o,u){return o*u}).slice(1)),[0]);return tA(a,n)}},f0=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var s=r[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var c=s[1].split(")")[0].split(",").map(function(h){return parseFloat(h)}),f=Ik(c,4);i=f[0],a=f[1],o=f[2],u=f[3]}else Ga(!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)}}Ga([i,o,a,u].every(function(h){return typeof h=="number"&&h>=0&&h<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var l=l0(i,o),d=l0(a,u),p=Lk(i,o),m=function(g){return g>1?1:g<0?0:g},v=function(g){for(var x=g>1?1:g,w=x,O=0;O<8;++O){var y=l(w)-x,b=p(w);if(Math.abs(y-x)<Va||b<Va)return d(w);w=m(w-y/b)}return d(w)};return v.isStepper=!1,v},Bk=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,s=function(f,l,d){var p=-(f-l)*n,m=d*a,v=d+(p-m)*u/1e3,h=d*u/1e3+f;return Math.abs(h-l)<Va&&Math.abs(v)<Va?[l,0]:[h,v]};return s.isStepper=!0,s.dt=u,s},Fk=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return f0(i);case"spring":return Bk();default:if(i.split("(")[0]==="cubic-bezier")return f0(i);Ga(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(Ga(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function ji(e){"@babel/helpers - typeof";return ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ji(e)}function d0(e){return Uk(e)||Wk(e)||rA(e)||zk()}function zk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
44
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uk(e){if(Array.isArray(e))return kd(e)}function p0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p0(Object(r),!0).forEach(function(n){Rd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rd(e,t,r){return t=Kk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kk(e){var t=Hk(e,"string");return ji(t)==="symbol"?t:String(t)}function Hk(e,t){if(ji(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ji(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gk(e,t){return Xk(e)||Yk(e,t)||rA(e,t)||Vk()}function Vk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
45
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rA(e,t){if(e){if(typeof e=="string")return kd(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 kd(e,t)}}function kd(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 Yk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function Xk(e){if(Array.isArray(e))return e}var Ya=function(t,r,n){return t+(r-t)*n},Dd=function(t){var r=t.from,n=t.to;return r!==n},Zk=function e(t,r,n){var i=ri(function(a,o){if(Dd(o)){var u=t(o.from,o.to,o.velocity),s=Gk(u,2),c=s[0],f=s[1];return Fe(Fe({},o),{},{from:c,velocity:f})}return o},r);return n<1?ri(function(a,o){return Dd(o)?Fe(Fe({},o),{},{velocity:Ya(o.velocity,i[a].velocity,n),from:Ya(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const Jk=(function(e,t,r,n,i){var a=Tk(e,t),o=a.reduce(function(h,g){return Fe(Fe({},h),{},Rd({},g,[e[g],t[g]]))},{}),u=a.reduce(function(h,g){return Fe(Fe({},h),{},Rd({},g,{from:e[g],velocity:0,to:t[g]}))},{}),s=-1,c,f,l=function(){return null},d=function(){return ri(function(g,x){return x.from},u)},p=function(){return!Object.values(u).filter(Dd).length},m=function(g){c||(c=g);var x=g-c,w=x/r.dt;u=Zk(r,u,w),i(Fe(Fe(Fe({},e),t),d())),c=g,p()||(s=requestAnimationFrame(l))},v=function(g){f||(f=g);var x=(g-f)/n,w=ri(function(y,b){return Ya.apply(void 0,d0(b).concat([r(x)]))},o);if(i(Fe(Fe(Fe({},e),t),w)),x<1)s=requestAnimationFrame(l);else{var O=ri(function(y,b){return Ya.apply(void 0,d0(b).concat([r(1)]))},o);i(Fe(Fe(Fe({},e),t),O))}};return l=r.isStepper?m:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}});function sn(e){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(e)}var Qk=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function eD(e,t){if(e==null)return{};var r=tD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tD(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Ll(e){return aD(e)||iD(e)||nD(e)||rD()}function rD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
46
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nD(e,t){if(e){if(typeof e=="string")return Nd(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 Nd(e,t)}}function iD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aD(e){if(Array.isArray(e))return Nd(e)}function Nd(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 h0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?h0(Object(r),!0).forEach(function(n){Zn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zn(e,t,r){return t=nA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uD(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,nA(n.key),n)}}function sD(e,t,r){return t&&uD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nA(e){var t=cD(e,"string");return sn(t)==="symbol"?t:String(t)}function cD(e,t){if(sn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lD(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&&qd(e,t)}function qd(e,t){return qd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qd(e,t)}function fD(e){var t=dD();return function(){var n=Xa(e),i;if(t){var a=Xa(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Ld(this,i)}}function Ld(e,t){if(t&&(sn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bd(e)}function Bd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dD(){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 Xa(e){return Xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xa(e)}var ht=(function(e){lD(r,e);var t=fD(r);function r(n,i){var a;oD(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,c=o.from,f=o.to,l=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Bd(a)),a.changeStyle=a.changeStyle.bind(Bd(a)),!u||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),Ld(a);if(l&&l.length)a.state={style:l[0].style};else if(c){if(typeof d=="function")return a.state={style:c},Ld(a);a.state={style:s?Zn({},s,c):c}}else a.state={style:{}};return a}return sD(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,s=a.attributeName,c=a.shouldReAnimate,f=a.to,l=a.from,d=this.state.style;if(u){if(!o){var p={style:s?Zn({},s,f):f};this.state&&d&&(s&&d[s]!==f||!s&&d!==f)&&this.setState(p);return}if(!(mk(i.to,f)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=m||c?l:i.to;if(this.state&&d){var h={style:s?Zn({},s,v):v};(s&&d[s]!==v||!s&&d!==v)&&this.setState(h)}this.runAnimation(yt(yt({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,s=i.duration,c=i.easing,f=i.begin,l=i.onAnimationEnd,d=i.onAnimationStart,p=Jk(o,u,Fk(c),s,this.changeStyle),m=function(){a.stopJSAnimation=p()};this.manager.start([d,f,m,s,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,s=i.onAnimationStart,c=o[0],f=c.style,l=c.duration,d=l===void 0?0:l,p=function(v,h,g){if(g===0)return v;var x=h.duration,w=h.easing,O=w===void 0?"ease":w,y=h.style,b=h.properties,_=h.onAnimationEnd,S=g>0?o[g-1]:h,P=b||Object.keys(y);if(typeof O=="function"||O==="spring")return[].concat(Ll(v),[a.runJSAnimation.bind(a,{from:S.style,to:y,duration:x,easing:O}),x]);var j=c0(P,x,O),E=yt(yt(yt({},S.style),y),{},{transition:j});return[].concat(Ll(v),[E,x,_]).filter(Ek)};return this.manager.start([s].concat(Ll(o.reduce(p,[f,Math.max(d,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Ak());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,c=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,d=i.steps,p=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=u?Zn({},u,s):s,h=c0(Object.keys(v),o,c);m.start([f,a,yt(yt({},v),{},{transition:h}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=eD(i,Qk),c=A.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||c===0||o<=0)return a;var l=function(p){var m=p.props,v=m.style,h=v===void 0?{}:v,g=m.className,x=A.cloneElement(p,yt(yt({},s),{},{style:yt(yt({},h),f),className:g}));return x};return c===1?l(A.Children.only(a)):A.createElement("div",null,A.Children.map(a,function(d){return l(d)}))}}]),r})(A.PureComponent);ht.displayName="Animate";ht.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ht.propTypes={from:ve.oneOfType([ve.object,ve.string]),to:ve.oneOfType([ve.object,ve.string]),attributeName:ve.string,duration:ve.number,begin:ve.number,easing:ve.oneOfType([ve.string,ve.func]),steps:ve.arrayOf(ve.shape({duration:ve.number.isRequired,style:ve.object.isRequired,easing:ve.oneOfType([ve.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ve.func]),properties:ve.arrayOf("string"),onAnimationEnd:ve.func})),children:ve.oneOfType([ve.node,ve.func]),isActive:ve.bool,canBegin:ve.bool,onAnimationEnd:ve.func,shouldReAnimate:ve.bool,onAnimationStart:ve.func,onAnimationReStart:ve.func};function Ci(e){"@babel/helpers - typeof";return Ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ci(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)}function pD(e,t){return mD(e)||yD(e,t)||vD(e,t)||hD()}function hD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
47
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vD(e,t){if(e){if(typeof e=="string")return v0(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 v0(e,t)}}function v0(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 yD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function mD(e){if(Array.isArray(e))return e}function y0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function m0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y0(Object(r),!0).forEach(function(n){gD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gD(e,t,r){return t=bD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bD(e){var t=xD(e,"string");return Ci(t)=="symbol"?t:t+""}function xD(e,t){if(Ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var g0=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],d=0,p=4;d<p;d++)l[d]=a[d]>o?o:a[d];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+s*l[0],",").concat(r)),f+="L ".concat(t+n-s*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`,
|
|
48
|
+
`).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,`,
|
|
49
|
+
`).concat(t+n-s*l[2],",").concat(r+i)),f+="L ".concat(t+s*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`,
|
|
50
|
+
`).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);f="M ".concat(t,",").concat(r+u*m,`
|
|
51
|
+
A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+s*m,",").concat(r,`
|
|
52
|
+
L `).concat(t+n-s*m,",").concat(r,`
|
|
53
|
+
A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+n,",").concat(r+u*m,`
|
|
54
|
+
L `).concat(t+n,",").concat(r+i-u*m,`
|
|
55
|
+
A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+n-s*m,",").concat(r+i,`
|
|
56
|
+
L `).concat(t+s*m,",").concat(r+i,`
|
|
57
|
+
A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t,",").concat(r+i-u*m," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},wD=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var c=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+s),d=Math.max(o,o+s);return n>=c&&n<=f&&i>=l&&i<=d}return!1},OD={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},yh=function(t){var r=m0(m0({},OD),t),n=A.useRef(),i=A.useState(-1),a=pD(i,2),o=a[0],u=a[1];A.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var s=r.x,c=r.y,f=r.width,l=r.height,d=r.radius,p=r.className,m=r.animationEasing,v=r.animationDuration,h=r.animationBegin,g=r.isAnimationActive,x=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var w=Q.clsx("recharts-rectangle",p);return x?A.createElement(ht,{canBegin:o>0,from:{width:f,height:l,x:s,y:c},to:{width:f,height:l,x:s,y:c},duration:v,animationEasing:m,isActive:x},function(O){var y=O.width,b=O.height,_=O.x,S=O.y;return A.createElement(ht,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:v,isActive:g,easing:m},A.createElement("path",Za({},X(r,!0),{className:w,d:g0(_,S,y,b,d),ref:n})))}):A.createElement("path",Za({},X(r,!0),{className:w,d:g0(s,c,f,l,d)}))},_D=["points","className","baseLinePoints","connectNulls"];function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kr.apply(this,arguments)}function AD(e,t){if(e==null)return{};var r=SD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SD(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 b0(e){return jD(e)||ED(e)||TD(e)||PD()}function PD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TD(e,t){if(e){if(typeof e=="string")return Fd(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 Fd(e,t)}}function ED(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jD(e){if(Array.isArray(e))return Fd(e)}function Fd(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 x0=function(t){return t&&t.x===+t.x&&t.y===+t.y},CD=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){x0(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),x0(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},ni=function(t,r){var n=CD(t);r&&(n=[n.reduce(function(a,o){return[].concat(b0(a),b0(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,s){return"".concat(o).concat(s===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},ID=function(t,r,n){var i=ni(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(ni(r.reverse(),n).slice(1))},$D=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=AD(t,_D);if(!r||!r.length)return null;var u=Q.clsx("recharts-polygon",n);if(i&&i.length){var s=o.stroke&&o.stroke!=="none",c=ID(r,i,a);return A.createElement("g",{className:u},A.createElement("path",Kr({},X(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),s?A.createElement("path",Kr({},X(o,!0),{fill:"none",d:ni(r,a)})):null,s?A.createElement("path",Kr({},X(o,!0),{fill:"none",d:ni(i,a)})):null)}var f=ni(r,a);return A.createElement("path",Kr({},X(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function zd(){return zd=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},zd.apply(this,arguments)}var Gi=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Q.clsx("recharts-dot",a);return r===+r&&n===+n&&i===+i?Ue.createElement("circle",zd({},X(t,!1),ma(t),{className:o,cx:r,cy:n,r:i})):null};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)}var MD=["x","y","top","left","width","height","className"];function Wd(){return Wd=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},Wd.apply(this,arguments)}function w0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function RD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w0(Object(r),!0).forEach(function(n){kD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kD(e,t,r){return t=DD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DD(e){var t=ND(e,"string");return Ii(t)=="symbol"?t:t+""}function ND(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)}function qD(e,t){if(e==null)return{};var r=LD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LD(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 BD=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},FD=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,s=t.left,c=s===void 0?0:s,f=t.width,l=f===void 0?0:f,d=t.height,p=d===void 0?0:d,m=t.className,v=qD(t,MD),h=RD({x:n,y:a,top:u,left:c,width:l,height:p},v);return!z(n)||!z(a)||!z(l)||!z(p)||!z(u)||!z(c)?null:A.createElement("path",Wd({},X(h,!0),{className:Q.clsx("recharts-cross",m),d:BD(n,a,l,p,u,c)}))},Bl,O0;function zD(){if(O0)return Bl;O0=1;var e=Uo(),t=v_(),r=$t();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return Bl=n,Bl}var WD=zD();const UD=be(WD);var Fl,_0;function KD(){if(_0)return Fl;_0=1;var e=Uo(),t=$t(),r=y_();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return Fl=n,Fl}var HD=KD();const GD=be(HD);var VD=["cx","cy","angle","ticks","axisLine"],YD=["ticks","tick","angle","tickFormatter","stroke"];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 ii(){return ii=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},ii.apply(this,arguments)}function A0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A0(Object(r),!0).forEach(function(n){Vo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S0(e,t){if(e==null)return{};var r=XD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XD(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 ZD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P0(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,aA(n.key),n)}}function JD(e,t,r){return t&&P0(e.prototype,t),r&&P0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function QD(e,t,r){return t=Ja(t),eN(e,iA()?Reflect.construct(t,r||[],Ja(e).constructor):t.apply(e,r))}function eN(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 tN(e)}function tN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iA=function(){return!!e})()}function Ja(e){return Ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ja(e)}function rN(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&&Ud(e,t)}function Ud(e,t){return Ud=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ud(e,t)}function Vo(e,t,r){return t=aA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aA(e){var t=nN(e,"string");return cn(t)=="symbol"?t:t+""}function nN(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 Yo=(function(e){function t(){return ZD(this,t),QD(this,t,arguments)}return rN(t,e),JD(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,s=a.cy;return Ae(u,s,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=UD(u,function(f){return f.coordinate||0}),c=GD(u,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=n.axisLine,c=S0(n,VD),f=u.reduce(function(m,v){return[Math.min(m[0],v.coordinate),Math.max(m[1],v.coordinate)]},[1/0,-1/0]),l=Ae(i,a,f[0],o),d=Ae(i,a,f[1],o),p=hr(hr(hr({},X(c,!1)),{},{fill:"none"},X(s,!1)),{},{x1:l.x,y1:l.y,x2:d.x,y2:d.y});return A.createElement("line",ii({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,s=i.tickFormatter,c=i.stroke,f=S0(i,YD),l=this.getTickTextAnchor(),d=X(f,!1),p=X(o,!1),m=a.map(function(v,h){var g=n.getTickValueCoord(v),x=hr(hr(hr(hr({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(g.x,", ").concat(g.y,")")},d),{},{stroke:"none",fill:c},p),{},{index:h},g),{},{payload:v});return A.createElement(se,ii({className:Q.clsx("recharts-polar-radius-axis-tick",U_(o)),key:"tick-".concat(v.coordinate)},ar(n.props,v,h)),t.renderTickItem(o,x,s?s(v.value,h):v.value))});return A.createElement(se,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:A.createElement(se,{className:Q.clsx("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Le.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return A.isValidElement(n)?o=A.cloneElement(n,i):re(n)?o=n(i):o=A.createElement(Tr,ii({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(A.PureComponent);Vo(Yo,"displayName","PolarRadiusAxis");Vo(Yo,"axisType","radiusAxis");Vo(Yo,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function 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 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 T0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T0(Object(r),!0).forEach(function(n){Xo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E0(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,uA(n.key),n)}}function aN(e,t,r){return t&&E0(e.prototype,t),r&&E0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function oN(e,t,r){return t=Qa(t),uN(e,oA()?Reflect.construct(t,r||[],Qa(e).constructor):t.apply(e,r))}function uN(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 sN(e)}function sN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oA=function(){return!!e})()}function Qa(e){return Qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qa(e)}function cN(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&&Kd(e,t)}function Kd(e,t){return Kd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Kd(e,t)}function Xo(e,t,r){return t=uA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uA(e){var t=lN(e,"string");return ln(t)=="symbol"?t:t+""}function lN(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 fN=Math.PI/180,j0=1e-5,Zo=(function(e){function t(){return iN(this,t),oN(this,t,arguments)}return cN(t,e),aN(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,s=i.orientation,c=i.tickSize,f=c||8,l=Ae(a,o,u,n.coordinate),d=Ae(a,o,u+(s==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*fN),o;return a>j0?o=i==="outer"?"start":"end":a<-j0?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,u=n.axisLine,s=n.axisLineType,c=vr(vr({},X(this.props,!1)),{},{fill:"none"},X(u,!1));if(s==="circle")return A.createElement(Gi,gr({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(d){return Ae(i,a,o,d.coordinate)});return A.createElement($D,gr({className:"recharts-polar-angle-axis-line"},c,{points:l}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,s=i.tickFormatter,c=i.stroke,f=X(this.props,!1),l=X(o,!1),d=vr(vr({},f),{},{fill:"none"},X(u,!1)),p=a.map(function(m,v){var h=n.getTickLineCoord(m),g=n.getTickTextAnchor(m),x=vr(vr(vr({textAnchor:g},f),{},{stroke:"none",fill:c},l),{},{index:v,payload:m,x:h.x2,y:h.y2});return A.createElement(se,gr({className:Q.clsx("recharts-polar-angle-axis-tick",U_(o)),key:"tick-".concat(m.coordinate)},ar(n.props,m,v)),u&&A.createElement("line",gr({className:"recharts-polar-angle-axis-tick-line"},d,h)),o&&t.renderTickItem(o,x,s?s(m.value,v):m.value))});return A.createElement(se,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:A.createElement(se,{className:Q.clsx("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return A.isValidElement(n)?o=A.cloneElement(n,i):re(n)?o=n(i):o=A.createElement(Tr,gr({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(A.PureComponent);Xo(Zo,"displayName","PolarAngleAxis");Xo(Zo,"axisType","angleAxis");Xo(Zo,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var zl,C0;function mh(){if(C0)return zl;C0=1;var e=pO(),t=e(Object.getPrototypeOf,Object);return zl=t,zl}var Wl,I0;function sA(){if(I0)return Wl;I0=1;var e=Kt(),t=mh(),r=Ot(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function c(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var d=u.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==s}return Wl=c,Wl}var dN=sA();const pN=be(dN);var Ul,$0;function hN(){if($0)return Ul;$0=1;var e=Kt(),t=Ot(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Ul=n,Ul}var vN=hN();const yN=be(vN);function $i(e){"@babel/helpers - typeof";return $i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$i(e)}function eo(){return eo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eo.apply(this,arguments)}function mN(e,t){return wN(e)||xN(e,t)||bN(e,t)||gN()}function gN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
59
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bN(e,t){if(e){if(typeof e=="string")return M0(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 M0(e,t)}}function M0(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 xN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function wN(e){if(Array.isArray(e))return e}function R0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R0(Object(r),!0).forEach(function(n){ON(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ON(e,t,r){return t=_N(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _N(e){var t=AN(e,"string");return $i(t)=="symbol"?t:t+""}function AN(e,t){if($i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var D0=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},SN={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},PN=function(t){var r=k0(k0({},SN),t),n=A.useRef(),i=A.useState(-1),a=mN(i,2),o=a[0],u=a[1];A.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var s=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,d=r.height,p=r.className,m=r.animationEasing,v=r.animationDuration,h=r.animationBegin,g=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||d!==+d||f===0&&l===0||d===0)return null;var x=Q.clsx("recharts-trapezoid",p);return g?A.createElement(ht,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:d,x:s,y:c},duration:v,animationEasing:m,isActive:g},function(w){var O=w.upperWidth,y=w.lowerWidth,b=w.height,_=w.x,S=w.y;return A.createElement(ht,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:v,easing:m},A.createElement("path",eo({},X(r,!0),{className:x,d:D0(_,S,O,y,b),ref:n})))}):A.createElement("g",null,A.createElement("path",eo({},X(r,!0),{className:x,d:D0(s,c,f,l,d)})))},TN=["option","shapeType","propTransformer","activeClassName","isActive"];function Mi(e){"@babel/helpers - typeof";return Mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mi(e)}function EN(e,t){if(e==null)return{};var r=jN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jN(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 N0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function to(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N0(Object(r),!0).forEach(function(n){CN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CN(e,t,r){return t=IN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IN(e){var t=$N(e,"string");return Mi(t)=="symbol"?t:t+""}function $N(e,t){if(Mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MN(e,t){return to(to({},t),e)}function RN(e,t){return e==="symbols"}function q0(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return A.createElement(yh,r);case"trapezoid":return A.createElement(PN,r);case"sector":return A.createElement(V_,r);case"symbols":if(RN(t))return A.createElement(Tp,r);break;default:return null}}function cA(e){return A.isValidElement(e)?e.props:e}function gh(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?MN:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=EN(e,TN),c;if(A.isValidElement(t))c=A.cloneElement(t,to(to({},s),cA(t)));else if(re(t))c=t(s);else if(pN(t)&&!yN(t)){var f=i(t,s);c=A.createElement(q0,{shapeType:r,elementProps:f})}else{var l=s;c=A.createElement(q0,{shapeType:r,elementProps:l})}return u?A.createElement(se,{className:o},c):c}function Jo(e,t){return t!=null&&"trapezoids"in e.props}function Qo(e,t){return t!=null&&"sectors"in e.props}function Ri(e,t){return t!=null&&"points"in e.props}function kN(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function DN(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function NN(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function qN(e,t){var r;return Jo(e,t)?r=kN:Qo(e,t)?r=DN:Ri(e,t)&&(r=NN),r}function LN(e,t){var r;return Jo(e,t)?r="trapezoids":Qo(e,t)?r="sectors":Ri(e,t)&&(r="points"),r}function BN(e,t){if(Jo(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(Qo(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Ri(e,t)?t.payload:{}}function FN(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=LN(r,t),a=BN(r,t),o=n.filter(function(s,c){var f=or(a,s),l=r.props[i].filter(function(m){var v=qN(r,t);return v(m,t)}),d=r.props[i].indexOf(l[l.length-1]),p=c===d;return f&&p}),u=n.indexOf(o[o.length-1]);return u}var va;function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}function Hr(){return Hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hr.apply(this,arguments)}function L0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L0(Object(r),!0).forEach(function(n){lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B0(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,fA(n.key),n)}}function WN(e,t,r){return t&&B0(e.prototype,t),r&&B0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function UN(e,t,r){return t=ro(t),KN(e,lA()?Reflect.construct(t,r||[],ro(e).constructor):t.apply(e,r))}function KN(e,t){if(t&&(fn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HN(e)}function HN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lA=function(){return!!e})()}function ro(e){return ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ro(e)}function GN(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&&Hd(e,t)}function Hd(e,t){return Hd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hd(e,t)}function lt(e,t,r){return t=fA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fA(e){var t=VN(e,"string");return fn(t)=="symbol"?t:t+""}function VN(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Vt=(function(e){function t(r){var n;return zN(this,t),n=UN(this,t,[r]),lt(n,"pieRef",null),lt(n,"sectorRefs",[]),lt(n,"id",$r("recharts-pie-")),lt(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),re(i)&&i()}),lt(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),re(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return GN(t,e),WN(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,u=a.labelLine,s=a.dataKey,c=a.valueKey,f=X(this.props,!1),l=X(o,!1),d=X(u,!1),p=o&&o.offsetRadius||20,m=n.map(function(v,h){var g=(v.startAngle+v.endAngle)/2,x=Ae(v.cx,v.cy,v.outerRadius+p,g),w=Oe(Oe(Oe(Oe({},f),v),{},{stroke:"none"},l),{},{index:h,textAnchor:t.getTextAnchor(x.x,v.cx)},x),O=Oe(Oe(Oe(Oe({},f),v),{},{fill:"none",stroke:v.fill},d),{},{index:h,points:[Ae(v.cx,v.cy,v.outerRadius,g),x]}),y=s;return ue(s)&&ue(c)?y="value":ue(s)&&(y=c),A.createElement(se,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(h)},u&&t.renderLabelLineItem(u,O,"line"),t.renderLabelItem(o,w,Pe(v,y)))});return A.createElement(se,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,s=a.inactiveShape;return n.map(function(c,f){if(c?.startAngle===0&&c?.endAngle===0&&n.length!==1)return null;var l=i.isActiveIndex(f),d=s&&i.hasActiveIndex()?s:null,p=l?o:d,m=Oe(Oe({},c),{},{stroke:u?c.fill:c.stroke,tabIndex:-1});return A.createElement(se,Hr({ref:function(h){h&&!i.sectorRefs.includes(h)&&i.sectorRefs.push(h)},tabIndex:-1,className:"recharts-pie-sector"},ar(i.props,c,f),{key:"sector-".concat(c?.startAngle,"-").concat(c?.endAngle,"-").concat(c.midAngle,"-").concat(f)}),A.createElement(gh,Hr({option:p,isActive:l,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,s=i.animationDuration,c=i.animationEasing,f=i.animationId,l=this.state,d=l.prevSectors,p=l.prevIsAnimationActive;return A.createElement(ht,{begin:u,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var v=m.t,h=[],g=a&&a[0],x=g.startAngle;return a.forEach(function(w,O){var y=d&&d[O],b=O>0?at(w,"paddingAngle",0):0;if(y){var _=ge(y.endAngle-y.startAngle,w.endAngle-w.startAngle),S=Oe(Oe({},w),{},{startAngle:x+b,endAngle:x+_(v)+b});h.push(S),x=S.endAngle}else{var P=w.endAngle,j=w.startAngle,E=ge(0,P-j),T=E(v),I=Oe(Oe({},w),{},{startAngle:x+b,endAngle:x+T+b});h.push(I),x=I.endAngle}}),A.createElement(se,null,n.renderSectorsStatically(h))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!or(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,u=i.className,s=i.label,c=i.cx,f=i.cy,l=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!z(c)||!z(f)||!z(l)||!z(d))return null;var v=Q.clsx("recharts-pie",u);return A.createElement(se,{tabIndex:this.props.rootTabIndex,className:v,ref:function(g){n.pieRef=g}},this.renderSectors(),s&&this.renderLabels(o),Le.renderCallByParent(this.props,null,!1),(!p||m)&&dt.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(A.isValidElement(n))return A.cloneElement(n,i);if(re(n))return n(i);var o=Q.clsx("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return A.createElement(Pr,Hr({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(A.isValidElement(n))return A.cloneElement(n,i);var o=a;if(re(n)&&(o=n(i),A.isValidElement(o)))return o;var u=Q.clsx("recharts-pie-label-text",typeof n!="boolean"&&!re(n)?n.className:"");return A.createElement(Tr,Hr({},i,{alignmentBaseline:"middle",className:u}),o)}}])})(A.PureComponent);va=Vt;lt(Vt,"displayName","Pie");lt(Vt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Ht.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});lt(Vt,"parseDeltaAngle",function(e,t){var r=He(t-e),n=Math.min(Math.abs(t-e),360);return r*n});lt(Vt,"getRealPieData",function(e){var t=e.data,r=e.children,n=X(e,!1),i=Qe(r,Rn);return t&&t.length?t.map(function(a,o){return Oe(Oe(Oe({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return Oe(Oe({},n),a.props)}):[]});lt(Vt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=W_(i,a),u=n+Ge(e.cx,i,i/2),s=r+Ge(e.cy,a,a/2),c=Ge(e.innerRadius,o,0),f=Ge(e.outerRadius,o,o*.8),l=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:s,innerRadius:c,outerRadius:f,maxRadius:l}});lt(Vt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?Oe(Oe({},t.type.defaultProps),t.props):t.props,i=va.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,s=n.paddingAngle,c=n.dataKey,f=n.nameKey,l=n.valueKey,d=n.tooltipType,p=Math.abs(n.minAngle),m=va.parseCoordinateOfPie(n,r),v=va.parseDeltaAngle(o,u),h=Math.abs(v),g=c;ue(c)&&ue(l)?(xt(!1,`Use "dataKey" to specify the value of pie,
|
|
60
|
+
the props "valueKey" will be deprecated in 1.1.0`),g="value"):ue(c)&&(xt(!1,`Use "dataKey" to specify the value of pie,
|
|
61
|
+
the props "valueKey" will be deprecated in 1.1.0`),g=l);var x=i.filter(function(S){return Pe(S,g,0)!==0}).length,w=(h>=360?x:x-1)*s,O=h-x*p-w,y=i.reduce(function(S,P){var j=Pe(P,g,0);return S+(z(j)?j:0)},0),b;if(y>0){var _;b=i.map(function(S,P){var j=Pe(S,g,0),E=Pe(S,f,P),T=(z(j)?j:0)/y,I;P?I=_.endAngle+He(v)*s*(j!==0?1:0):I=o;var M=I+He(v)*((j!==0?p:0)+T*O),R=(I+M)/2,k=(m.innerRadius+m.outerRadius)/2,N=[{name:E,value:j,payload:S,dataKey:g,type:d}],F=Ae(m.cx,m.cy,k,R);return _=Oe(Oe(Oe({percent:T,cornerRadius:a,name:E,tooltipPayload:N,midAngle:R,middleRadius:k,tooltipPosition:F},S),m),{},{value:Pe(S,g),startAngle:I,endAngle:M,payload:S,paddingAngle:He(v)*s}),_})}return Oe(Oe({},m),{},{sectors:b,data:i})});var Kl,F0;function YN(){if(F0)return Kl;F0=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,s=t(e((i-n)/(a||1)),0),c=Array(s);s--;)c[o?s:++u]=n,n+=a;return c}return Kl=r,Kl}var Hl,z0;function dA(){if(z0)return Hl;z0=1;var e=IO(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return Hl=n,Hl}var Gl,W0;function XN(){if(W0)return Gl;W0=1;var e=YN(),t=No(),r=dA();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return Gl=n,Gl}var Vl,U0;function ZN(){if(U0)return Vl;U0=1;var e=XN(),t=e();return Vl=t,Vl}var JN=ZN();const no=be(JN);function ki(e){"@babel/helpers - typeof";return ki=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ki(e)}function K0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function H0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K0(Object(r),!0).forEach(function(n){pA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pA(e,t,r){return t=QN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QN(e){var t=e2(e,"string");return ki(t)=="symbol"?t:t+""}function e2(e,t){if(ki(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ki(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var t2=["Webkit","Moz","O","ms"],r2=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=t2.reduce(function(a,o){return H0(H0({},a),{},pA({},o+n,r))},{});return i[t]=r,i};function dn(e){"@babel/helpers - typeof";return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(e)}function 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 G0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G0(Object(r),!0).forEach(function(n){rt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V0(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,vA(n.key),n)}}function i2(e,t,r){return t&&V0(e.prototype,t),r&&V0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a2(e,t,r){return t=ao(t),o2(e,hA()?Reflect.construct(t,r||[],ao(e).constructor):t.apply(e,r))}function o2(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 u2(e)}function u2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hA=function(){return!!e})()}function ao(e){return ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ao(e)}function s2(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&&Gd(e,t)}function Gd(e,t){return Gd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gd(e,t)}function rt(e,t,r){return t=vA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vA(e){var t=c2(e,"string");return dn(t)=="symbol"?t:t+""}function c2(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)}var l2=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var s=r.length,c=ei().domain(no(0,s)).range([a,a+o-u]),f=c.domain().map(function(l){return c(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:f}},Y0=function(t){return t.changedTouches&&!!t.changedTouches.length},pn=(function(e){function t(r){var n;return n2(this,t),n=a2(this,t,[r]),rt(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),rt(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),rt(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),rt(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),rt(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),rt(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),rt(n,"handleSlideDragStart",function(i){var a=Y0(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return s2(t,e),i2(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,s=u.gap,c=u.data,f=c.length-1,l=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,l),m=t.getIndexInRange(o,d);return{startIndex:p-p%s,endIndex:m===f?f:m-m%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=Pe(a[n],u,n);return re(o)?o(s,n):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,s=this.props,c=s.x,f=s.width,l=s.travellerWidth,d=s.startIndex,p=s.endIndex,m=s.onChange,v=n.pageX-a;v>0?v=Math.min(v,c+f-l-u,c+f-l-o):v<0&&(v=Math.max(v,c-o,c-u));var h=this.getIndex({startX:o+v,endX:u+v});(h.startIndex!==d||h.endIndex!==p)&&m&&m(h),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Y0(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,s=i.startX,c=this.state[o],f=this.props,l=f.x,d=f.width,p=f.travellerWidth,m=f.onChange,v=f.gap,h=f.data,g={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+d-p-c):x<0&&(x=Math.max(x,l-c)),g[o]=c+x;var w=this.getIndex(g),O=w.startIndex,y=w.endIndex,b=function(){var S=h.length-1;return o==="startX"&&(u>s?O%v===0:y%v===0)||u<s&&y===S||o==="endX"&&(u>s?y%v===0:O%v===0)||u>s&&y===S};this.setState(rt(rt({},o,c+x),"brushMoveStartX",n.pageX),function(){m&&b()&&m(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,c=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var d=l+n;if(!(d===-1||d>=u.length)){var p=u[d];i==="startX"&&p>=c||i==="endX"&&p<=s||this.setState(rt({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.fill,c=n.stroke;return A.createElement("rect",{stroke:c,fill:s,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.data,c=n.children,f=n.padding,l=A.Children.only(c);return l?A.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,d=s.traveller,p=s.ariaLabel,m=s.data,v=s.startIndex,h=s.endIndex,g=Math.max(n,this.props.x),x=Yl(Yl({},X(this.props,!1)),{},{x:g,y:c,width:f,height:l}),w=p||"Min value: ".concat((a=m[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[h])===null||o===void 0?void 0:o.name);return A.createElement(se,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(y){["ArrowLeft","ArrowRight"].includes(y.key)&&(y.preventDefault(),y.stopPropagation(),u.handleTravellerMoveKeyboard(y.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,0);return A.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,d=f.endX,p=5,m={pointerEvents:"none",fill:c};return A.createElement(se,{className:"recharts-brush-texts"},A.createElement(Tr,io({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,d)-p,y:o+u/2},m),this.getTextOfTick(i)),A.createElement(Tr,io({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,d)+s+p,y:o+u/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,s=n.y,c=n.width,f=n.height,l=n.alwaysShowText,d=this.state,p=d.startX,m=d.endX,v=d.isTextActive,h=d.isSlideMoving,g=d.isTravellerMoving,x=d.isTravellerFocused;if(!i||!i.length||!z(u)||!z(s)||!z(c)||!z(f)||c<=0||f<=0)return null;var w=Q.clsx("recharts-brush",a),O=A.Children.count(o)===1,y=r2("userSelect","none");return A.createElement(se,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:y},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(v||h||g||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(a+u/2)-1;return A.createElement(A.Fragment,null,A.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),A.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),A.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return A.isValidElement(n)?a=A.cloneElement(n,i):re(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,s=n.travellerWidth,c=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return Yl({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?l2({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(A.PureComponent);rt(pn,"displayName","Brush");rt(pn,"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 Xl,X0;function f2(){if(X0)return Xl;X0=1;var e=Fp();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Xl=t,Xl}var Zl,Z0;function d2(){if(Z0)return Zl;Z0=1;var e=aO(),t=$t(),r=f2(),n=Ye(),i=No();function a(o,u,s){var c=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),c(o,t(u,3))}return Zl=a,Zl}var p2=d2();const h2=be(p2);var jt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Jl,J0;function bh(){if(J0)return Jl;J0=1;var e=SO();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Jl=t,Jl}var Ql,Q0;function v2(){if(Q0)return Ql;Q0=1;var e=bh(),t=OO(),r=$t();function n(i,a){var o={};return a=r(a,3),t(i,function(u,s,c){e(o,s,a(u,s,c))}),o}return Ql=n,Ql}var y2=v2();const m2=be(y2);var ef,ex;function g2(){if(ex)return ef;ex=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return ef=e,ef}var tf,tx;function b2(){if(tx)return tf;tx=1;var e=Fp();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return tf=t,tf}var rf,rx;function x2(){if(rx)return rf;rx=1;var e=g2(),t=b2(),r=$t(),n=Ye(),i=No();function a(o,u,s){var c=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),c(o,r(u,3))}return rf=a,rf}var w2=x2();const yA=be(w2);var O2=["x","y"];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 Vd(){return Vd=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},Vd.apply(this,arguments)}function nx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nx(Object(r),!0).forEach(function(n){_2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _2(e,t,r){return t=A2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A2(e){var t=S2(e,"string");return hn(t)=="symbol"?t:t+""}function S2(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(t==="string"?String:Number)(e)}function P2(e,t){if(e==null)return{};var r=T2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function T2(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 E2(e,t){var r=e.x,n=e.y,i=P2(e,O2),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),d=parseInt(l,10);return Vn(Vn(Vn(Vn(Vn({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function ix(e){return A.createElement(gh,Vd({shapeType:"rectangle",propTransformer:E2,activeClassName:"recharts-active-bar"},e))}var j2=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=z(n)||uS(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?Je(!1,"minPointSize callback function received a value with type of ".concat(hn(n),". Currently only numbers or null/undefined are supported.")):Je()),r)}},C2=["value","background"],mA;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 I2(e,t){if(e==null)return{};var r=$2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $2(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 oo(){return oo=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},oo.apply(this,arguments)}function ax(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ax(Object(r),!0).forEach(function(n){rr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ax(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function M2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ox(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,bA(n.key),n)}}function R2(e,t,r){return t&&ox(e.prototype,t),r&&ox(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function k2(e,t,r){return t=uo(t),D2(e,gA()?Reflect.construct(t,r||[],uo(e).constructor):t.apply(e,r))}function D2(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 N2(e)}function N2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gA=function(){return!!e})()}function uo(e){return uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},uo(e)}function q2(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&&Yd(e,t)}function Yd(e,t){return Yd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yd(e,t)}function rr(e,t,r){return t=bA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bA(e){var t=L2(e,"string");return vn(t)=="symbol"?t:t+""}function L2(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Nr=(function(e){function t(){var r;M2(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=k2(this,t,[].concat(i)),rr(r,"state",{isAnimationFinished:!1}),rr(r,"id",$r("recharts-bar-")),rr(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),rr(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return q2(t,e),R2(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,c=a.activeBar,f=X(this.props,!1);return n&&n.map(function(l,d){var p=d===s,m=p?c:o,v=je(je(je({},f),l),{},{isActive:p,option:m,index:d,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return A.createElement(se,oo({className:"recharts-bar-rectangle"},ar(i.props,l,d),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(d)}),A.createElement(ix,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,f=i.animationEasing,l=i.animationId,d=this.state.prevData;return A.createElement(ht,{begin:s,duration:c,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var m=p.t,v=a.map(function(h,g){var x=d&&d[g];if(x){var w=ge(x.x,h.x),O=ge(x.y,h.y),y=ge(x.width,h.width),b=ge(x.height,h.height);return je(je({},h),{},{x:w(m),y:O(m),width:y(m),height:b(m)})}if(o==="horizontal"){var _=ge(0,h.height),S=_(m);return je(je({},h),{},{y:h.y+h.height-S,height:S})}var P=ge(0,h.width),j=P(m);return je(je({},h),{},{width:j})});return A.createElement(se,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!or(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,s=X(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,d=I2(c,C2);if(!l)return null;var p=je(je(je(je(je({},d),{},{fill:"#eee"},l),s),ar(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return A.createElement(ix,oo({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,s=a.yAxis,c=a.layout,f=a.children,l=Qe(f,Hi);if(!l)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,p=function(h,g){var x=Array.isArray(h.value)?h.value[1]:h.value;return{x:h.x,y:h.y,value:x,errorVal:Pe(h,g)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return A.createElement(se,m,l.map(function(v){return A.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:d,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,c=n.left,f=n.top,l=n.width,d=n.height,p=n.isAnimationActive,m=n.background,v=n.id;if(i||!a||!a.length)return null;var h=this.state.isAnimationFinished,g=Q.clsx("recharts-bar",o),x=u&&u.allowDataOverflow,w=s&&s.allowDataOverflow,O=x||w,y=ue(v)?this.id:v;return A.createElement(se,{className:g},x||w?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(y)},A.createElement("rect",{x:x?c:c-l/2,y:w?f:f-d/2,width:x?l:l*2,height:w?d:d*2}))):null,A.createElement(se,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(y,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,y),(!p||h)&&dt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(A.PureComponent);mA=Nr;rr(Nr,"displayName","Bar");rr(Nr,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ht.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});rr(Nr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,s=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,p=lM(n,r);if(!p)return null;var m=t.layout,v=r.type.defaultProps,h=v!==void 0?je(je({},v),r.props):r.props,g=h.dataKey,x=h.children,w=h.minPointSize,O=m==="horizontal"?o:a,y=c?O.scale.domain():null,b=mM({numericAxis:O}),_=Qe(x,Rn),S=l.map(function(P,j){var E,T,I,M,R,k;c?E=fM(c[f+j],y):(E=Pe(P,g),Array.isArray(E)||(E=[b,E]));var N=j2(w,mA.defaultProps.minPointSize)(E[1],j);if(m==="horizontal"){var F,K=[o.scale(E[0]),o.scale(E[1])],$=K[0],q=K[1];T=Tb({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:P,index:j}),I=(F=q??$)!==null&&F!==void 0?F:void 0,M=p.size;var L=$-q;if(R=Number.isNaN(L)?0:L,k={x:T,y:o.y,width:M,height:o.height},Math.abs(N)>0&&Math.abs(R)<Math.abs(N)){var U=He(R||N)*(Math.abs(N)-Math.abs(R));I-=U,R+=U}}else{var V=[a.scale(E[0]),a.scale(E[1])],J=V[0],ee=V[1];if(T=J,I=Tb({axis:o,ticks:s,bandSize:i,offset:p.offset,entry:P,index:j}),M=ee-J,R=p.size,k={x:a.x,y:I,width:a.width,height:R},Math.abs(N)>0&&Math.abs(M)<Math.abs(N)){var ae=He(M||N)*(Math.abs(N)-Math.abs(M));M+=ae}}return je(je(je({},P),{},{x:T,y:I,width:M,height:R,value:c?E:E[1],payload:P,background:k},_&&_[j]&&_[j].props),{},{tooltipPayload:[F_(r,P)],tooltipPosition:{x:T+M/2,y:I+R/2}})});return je({data:S,layout:m},d)});function Di(e){"@babel/helpers - typeof";return Di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Di(e)}function B2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ux(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,xA(n.key),n)}}function F2(e,t,r){return t&&ux(e.prototype,t),r&&ux(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function sx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sx(Object(r),!0).forEach(function(n){eu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eu(e,t,r){return t=xA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xA(e){var t=z2(e,"string");return Di(t)=="symbol"?t:t+""}function z2(e,t){if(Di(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Di(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xh=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},d=!!nt(c,Nr);return f.reduce(function(p,m){var v=r[m],h=v.orientation,g=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,y=v.reversed,b="".concat(h).concat(O?"Mirror":""),_,S,P,j,E;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var T=g[1]-g[0],I=1/0,M=v.categoricalDomain.sort(lS);if(M.forEach(function(V,J){J>0&&(I=Math.min((V||0)-(M[J-1]||0),I))}),Number.isFinite(I)){var R=I/T,k=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=R*k/2),v.padding==="no-gap"){var N=Ge(t.barCategoryGap,R*k),F=R*k/2;_=F-N-(F-N)/k*N}}}i==="xAxis"?S=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?S=s==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:S=v.range,y&&(S=[S[1],S[0]]);var K=N_(v,a,d),$=K.scale,q=K.realScaleType;$.domain(g).range(S),q_($);var L=L_($,mt(mt({},v),{},{realScaleType:q}));i==="xAxis"?(E=h==="top"&&!O||h==="bottom"&&O,P=n.left,j=l[b]-E*v.height):i==="yAxis"&&(E=h==="left"&&!O||h==="right"&&O,P=l[b]-E*v.width,j=n.top);var U=mt(mt(mt({},v),L),{},{realScaleType:q,x:P,y:j,scale:$,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return U.bandSize=Wa(U,L),!v.hide&&i==="xAxis"?l[b]+=(E?-1:1)*U.height:v.hide||(l[b]+=(E?-1:1)*U.width),mt(mt({},p),{},eu({},m,U))},{})},wA=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},W2=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return wA({x:r,y:n},{x:i,y:a})},OA=(function(){function e(t){B2(this,e),this.scale=t}return F2(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();eu(OA,"EPS",1e-4);var wh=function(t){var r=Object.keys(t).reduce(function(n,i){return mt(mt({},n),{},eu({},i,OA.create(t[i])))},{});return mt(mt({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return m2(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return yA(i,function(a,o){return r[o].isInRange(a)})}})};function U2(e){return(e%180+180)%180}var K2=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=U2(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},nf,cx;function H2(){if(cx)return nf;cx=1;var e=$t(),t=In(),r=$n();function n(i){return function(a,o,u){var s=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(l){return c(s[l],l,s)}}var f=i(a,o,u);return f>-1?s[c?a[f]:f]:void 0}}return nf=n,nf}var af,lx;function G2(){if(lx)return af;lx=1;var e=dA();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return af=t,af}var of,fx;function V2(){if(fx)return of;fx=1;var e=gO(),t=$t(),r=G2(),n=Math.max;function i(a,o,u){var s=a==null?0:a.length;if(!s)return-1;var c=u==null?0:r(u);return c<0&&(c=n(s+c,0)),e(a,t(o,3),c)}return of=i,of}var uf,dx;function Y2(){if(dx)return uf;dx=1;var e=H2(),t=V2(),r=e(t);return uf=r,uf}var X2=Y2();const Z2=be(X2);var J2=Iw();const Q2=be(J2);var eq=Q2(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 so(e){"@babel/helpers - typeof";return so=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},so(e)}var Oh=A.createContext(void 0),_h=A.createContext(void 0),_A=A.createContext(void 0),AA=A.createContext({}),SA=A.createContext(void 0),PA=A.createContext(0),TA=A.createContext(0),px=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,s=t.width,c=t.height,f=eq(a);return A.createElement(Oh.Provider,{value:n},A.createElement(_h.Provider,{value:i},A.createElement(AA.Provider,{value:a},A.createElement(_A.Provider,{value:f},A.createElement(SA.Provider,{value:o},A.createElement(PA.Provider,{value:c},A.createElement(TA.Provider,{value:s},u)))))))},tq=function(){return A.useContext(SA)};function EA(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var jA=function(t){var r=A.useContext(Oh);r==null&&(process.env.NODE_ENV!=="production"?Je(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Je());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?Je(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(so(t),"]. ").concat(EA(r))):Je()),n},rq=function(){var t=A.useContext(Oh);return er(t)},nq=function(){var t=A.useContext(_h),r=Z2(t,function(n){return yA(n.domain,Number.isFinite)});return r||er(t)},CA=function(t){var r=A.useContext(_h);r==null&&(process.env.NODE_ENV!=="production"?Je(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Je());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?Je(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(so(t),"]. ").concat(EA(r))):Je()),n},iq=function(){var t=A.useContext(_A);return t},aq=function(){return A.useContext(AA)},Ah=function(){return A.useContext(TA)},Sh=function(){return A.useContext(PA)};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 oq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uq(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,$A(n.key),n)}}function sq(e,t,r){return t&&uq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cq(e,t,r){return t=co(t),lq(e,IA()?Reflect.construct(t,r||[],co(e).constructor):t.apply(e,r))}function lq(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 fq(e)}function fq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IA=function(){return!!e})()}function co(e){return co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},co(e)}function dq(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&&Xd(e,t)}function Xd(e,t){return Xd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xd(e,t)}function hx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hx(Object(r),!0).forEach(function(n){Ph(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ph(e,t,r){return t=$A(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $A(e){var t=pq(e,"string");return yn(t)=="symbol"?t:t+""}function pq(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 hq(e,t){return gq(e)||mq(e,t)||yq(e,t)||vq()}function vq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
62
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yq(e,t){if(e){if(typeof e=="string")return yx(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 yx(e,t)}}function yx(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 mq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function gq(e){if(Array.isArray(e))return e}function Zd(){return Zd=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},Zd.apply(this,arguments)}var bq=function(t,r){var n;return A.isValidElement(t)?n=A.cloneElement(t,r):re(t)?n=t(r):n=A.createElement("line",Zd({},r,{className:"recharts-reference-line-line"})),n},xq=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,d=a.width,p=a.height;if(n){var m=c.y,v=t.y.apply(m,{position:o});if(jt(c,"discard")&&!t.y.isInRange(v))return null;var h=[{x:f+d,y:v},{x:f,y:v}];return s==="left"?h.reverse():h}if(r){var g=c.x,x=t.x.apply(g,{position:o});if(jt(c,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+p},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=c.segment,y=O.map(function(b){return t.apply(b,{position:o})});return jt(c,"discard")&&h2(y,function(b){return!t.isInRange(b)})?null:y}return null};function wq(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,c=tq(),f=jA(i),l=CA(a),d=iq();if(!c||!d)return null;xt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=wh({x:f.scale,y:l.scale}),m=Re(t),v=Re(r),h=n&&n.length===2,g=xq(p,m,v,h,d,e.position,f.orientation,l.orientation,e);if(!g)return null;var x=hq(g,2),w=x[0],O=w.x,y=w.y,b=x[1],_=b.x,S=b.y,P=jt(e,"hidden")?"url(#".concat(c,")"):void 0,j=vx(vx({clipPath:P},X(e,!0)),{},{x1:O,y1:y,x2:_,y2:S});return A.createElement(se,{className:Q.clsx("recharts-reference-line",u)},bq(o,j),Le.renderCallByParent(e,W2({x1:O,y1:y,x2:_,y2:S})))}var Th=(function(e){function t(){return oq(this,t),cq(this,t,arguments)}return dq(t,e),sq(t,[{key:"render",value:function(){return A.createElement(wq,this.props)}}])})(A.Component);Ph(Th,"displayName","ReferenceLine");Ph(Th,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Jd(){return Jd=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},Jd.apply(this,arguments)}function mn(e){"@babel/helpers - typeof";return mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mn(e)}function mx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mx(Object(r),!0).forEach(function(n){tu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Oq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _q(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,RA(n.key),n)}}function Aq(e,t,r){return t&&_q(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sq(e,t,r){return t=lo(t),Pq(e,MA()?Reflect.construct(t,r||[],lo(e).constructor):t.apply(e,r))}function Pq(e,t){if(t&&(mn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tq(e)}function Tq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MA=function(){return!!e})()}function lo(e){return lo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lo(e)}function Eq(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&&Qd(e,t)}function Qd(e,t){return Qd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qd(e,t)}function tu(e,t,r){return t=RA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RA(e){var t=jq(e,"string");return mn(t)=="symbol"?t:t+""}function jq(e,t){if(mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Cq=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=wh({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return jt(t,"discard")&&!o.isInRange(u)?null:u},ru=(function(e){function t(){return Oq(this,t),Sq(this,t,arguments)}return Eq(t,e),Aq(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,c=Re(i),f=Re(a);if(xt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=Cq(this.props);if(!l)return null;var d=l.x,p=l.y,m=this.props,v=m.shape,h=m.className,g=jt(this.props,"hidden")?"url(#".concat(s,")"):void 0,x=gx(gx({clipPath:g},X(this.props,!0)),{},{cx:d,cy:p});return A.createElement(se,{className:Q.clsx("recharts-reference-dot",h)},t.renderDot(v,x),Le.renderCallByParent(this.props,{x:d-o,y:p-o,width:2*o,height:2*o}))}}])})(A.Component);tu(ru,"displayName","ReferenceDot");tu(ru,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});tu(ru,"renderDot",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):re(e)?r=e(t):r=A.createElement(Gi,Jd({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function ep(){return ep=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},ep.apply(this,arguments)}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 bx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bx(Object(r),!0).forEach(function(n){nu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Iq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $q(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,DA(n.key),n)}}function Mq(e,t,r){return t&&$q(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rq(e,t,r){return t=fo(t),kq(e,kA()?Reflect.construct(t,r||[],fo(e).constructor):t.apply(e,r))}function kq(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 Dq(e)}function Dq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kA=function(){return!!e})()}function fo(e){return fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fo(e)}function Nq(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&&tp(e,t)}function tp(e,t){return tp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tp(e,t)}function nu(e,t,r){return t=DA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DA(e){var t=qq(e,"string");return gn(t)=="symbol"?t:t+""}function qq(e,t){if(gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Lq=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var d=wh({x:f.scale,y:l.scale}),p={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},m={x:r?d.x.apply(u,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(c,{position:"end"}):d.y.rangeMax};return jt(a,"discard")&&(!d.isInRange(p)||!d.isInRange(m))?null:wA(p,m)},iu=(function(e){function t(){return Iq(this,t),Rq(this,t,arguments)}return Nq(t,e),Mq(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.className,c=n.alwaysShow,f=n.clipPathId;xt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Re(i),d=Re(a),p=Re(o),m=Re(u),v=this.props.shape;if(!l&&!d&&!p&&!m&&!v)return null;var h=Lq(l,d,p,m,this.props);if(!h&&!v)return null;var g=jt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return A.createElement(se,{className:Q.clsx("recharts-reference-area",s)},t.renderRect(v,xx(xx({clipPath:g},X(this.props,!0)),h)),Le.renderCallByParent(this.props,h))}}])})(A.Component);nu(iu,"displayName","ReferenceArea");nu(iu,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});nu(iu,"renderRect",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):re(e)?r=e(t):r=A.createElement(yh,ep({},t,{className:"recharts-reference-area-rect"})),r});function NA(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function Bq(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return K2(n,r)}function Fq(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function po(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function zq(e,t){return NA(e,t+1)}function Wq(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,c=1,f=o,l=function(){var m=n?.[s];if(m===void 0)return{v:NA(n,c)};var v=s,h,g=function(){return h===void 0&&(h=r(m,v)),h},x=m.coordinate,w=s===0||po(e,x,g,f,u);w||(s=0,f=o,c+=1),w&&(f=x+e*(g()/2+i),s+=c)},d;c<=a.length;)if(d=l(),d)return d.v;return[]}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 wx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wx(Object(r),!0).forEach(function(n){Uq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uq(e,t,r){return t=Kq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kq(e){var t=Hq(e,"string");return Ni(t)=="symbol"?t:t+""}function Hq(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 Gq(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=function(d){var p=a[d],m,v=function(){return m===void 0&&(m=r(p,d)),m};if(d===o-1){var h=e*(p.coordinate+e*v()/2-s);a[d]=p=ze(ze({},p),{},{tickCoord:h>0?p.coordinate-h*e:p.coordinate})}else a[d]=p=ze(ze({},p),{},{tickCoord:p.coordinate});var g=po(e,p.tickCoord,v,u,s);g&&(s=p.tickCoord-e*(v()/2+i),a[d]=ze(ze({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function Vq(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var f=n[u-1],l=r(f,u-1),d=e*(f.coordinate+e*l/2-c);o[u-1]=f=ze(ze({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=po(e,f.tickCoord,function(){return l},s,c);p&&(c=f.tickCoord-e*(l/2+i),o[u-1]=ze(ze({},f),{},{isShow:!0}))}for(var m=a?u-1:u,v=function(x){var w=o[x],O,y=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var b=e*(w.coordinate-e*y()/2-s);o[x]=w=ze(ze({},w),{},{tickCoord:b<0?w.coordinate-b*e:w.coordinate})}else o[x]=w=ze(ze({},w),{},{tickCoord:w.coordinate});var _=po(e,w.tickCoord,y,s,c);_&&(s=w.tickCoord+e*(y()/2+i),o[x]=ze(ze({},w),{},{isShow:!0}))},h=0;h<m;h++)v(h);return o}function Eh(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,c=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(z(s)||Ht.isSsr)return zq(i,typeof s=="number"&&z(s)?s:0);var d=[],p=u==="top"||u==="bottom"?"width":"height",m=f&&p==="width"?Qn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var y=re(c)?c(w.value,O):w.value;return p==="width"?Bq(Qn(y,{fontSize:t,letterSpacing:r}),m,l):Qn(y,{fontSize:t,letterSpacing:r})[p]},h=i.length>=2?He(i[1].coordinate-i[0].coordinate):1,g=Fq(a,h,p);return s==="equidistantPreserveStart"?Wq(h,g,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?d=Vq(h,g,v,i,o,s==="preserveStartEnd"):d=Gq(h,g,v,i,o),d.filter(function(x){return x.isShow}))}var Yq=["viewBox"],Xq=["viewBox"],Zq=["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 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 Ox(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ox(Object(r),!0).forEach(function(n){jh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ox(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sf(e,t){if(e==null)return{};var r=Jq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Jq(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 Qq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _x(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,LA(n.key),n)}}function eL(e,t,r){return t&&_x(e.prototype,t),r&&_x(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tL(e,t,r){return t=ho(t),rL(e,qA()?Reflect.construct(t,r||[],ho(e).constructor):t.apply(e,r))}function rL(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 nL(e)}function nL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qA=function(){return!!e})()}function ho(e){return ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ho(e)}function iL(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&&rp(e,t)}function rp(e,t){return rp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rp(e,t)}function jh(e,t,r){return t=LA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LA(e){var t=aL(e,"string");return bn(t)=="symbol"?t:t+""}function aL(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 qn=(function(e){function t(r){var n;return Qq(this,t),n=tL(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return iL(t,e),eL(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=sf(n,Yq),u=this.props,s=u.viewBox,c=sf(u,Xq);return!Yr(a,s)||!Yr(o,c)||!Yr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,s=i.height,c=i.orientation,f=i.tickSize,l=i.mirror,d=i.tickMargin,p,m,v,h,g,x,w=l?-1:1,O=n.tickSize||f,y=z(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":p=m=n.coordinate,h=o+ +!l*s,v=h-w*O,x=v-w*d,g=y;break;case"left":v=h=n.coordinate,m=a+ +!l*u,p=m-w*O,g=p-w*d,x=y;break;case"right":v=h=n.coordinate,m=a+ +l*u,p=m+w*O,g=p+w*d,x=y;break;default:p=m=n.coordinate,h=o+ +l*s,v=h+w*O,x=v+w*d,g=y;break}return{line:{x1:p,y1:v,x2:m,y2:h},tick:{x:g,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.orientation,c=n.mirror,f=n.axisLine,l=Ie(Ie(Ie({},X(this.props,!1)),X(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var d=+(s==="top"&&!c||s==="bottom"&&c);l=Ie(Ie({},l),{},{x1:i,y1:a+d*u,x2:i+o,y2:a+d*u})}else{var p=+(s==="left"&&!c||s==="right"&&c);l=Ie(Ie({},l),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+u})}return A.createElement("line",Gr({},l,{className:Q.clsx("recharts-cartesian-axis-line",at(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,f=u.tick,l=u.tickFormatter,d=u.unit,p=Eh(Ie(Ie({},this.props),{},{ticks:n}),i,a),m=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),h=X(this.props,!1),g=X(f,!1),x=Ie(Ie({},h),{},{fill:"none"},X(s,!1)),w=p.map(function(O,y){var b=o.getTickLineCoord(O),_=b.line,S=b.tick,P=Ie(Ie(Ie(Ie({textAnchor:m,verticalAnchor:v},h),{},{stroke:"none",fill:c},g),S),{},{index:y,payload:O,visibleTicksCount:p.length,tickFormatter:l});return A.createElement(se,Gr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},ar(o.props,O,y)),s&&A.createElement("line",Gr({},x,_,{className:Q.clsx("recharts-cartesian-axis-tick-line",at(s,"className"))})),f&&t.renderTickItem(f,P,"".concat(re(l)?l(O.value,y):O.value).concat(d||"")))});return A.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,s=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var l=this.props,d=l.ticks,p=sf(l,Zq),m=d;return re(s)&&(m=d&&d.length>0?s(this.props):s(p)),o<=0||u<=0||!m||!m.length?null:A.createElement(se,{className:Q.clsx("recharts-cartesian-axis",c),ref:function(h){n.layerReference=h}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),Le.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=Q.clsx(i.className,"recharts-cartesian-axis-tick-value");return A.isValidElement(n)?o=A.cloneElement(n,Ie(Ie({},i),{},{className:u})):re(n)?o=n(Ie(Ie({},i),{},{className:u})):o=A.createElement(Tr,Gr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(A.Component);jh(qn,"displayName","CartesianAxis");jh(qn,"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 oL=["x1","y1","x2","y2","key"],uL=["offset"];function jr(e){"@babel/helpers - typeof";return jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jr(e)}function Ax(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function We(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ax(Object(r),!0).forEach(function(n){sL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ax(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sL(e,t,r){return t=cL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cL(e){var t=lL(e,"string");return jr(t)=="symbol"?t:t+""}function lL(e,t){if(jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Or(){return Or=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},Or.apply(this,arguments)}function Sx(e,t){if(e==null)return{};var r=fL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fL(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 dL=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,s=t.ry;return A.createElement("rect",{x:i,y:a,ry:s,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function BA(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(re(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,s=Sx(t,oL),c=X(s,!1);c.offset;var f=Sx(c,uL);r=A.createElement("line",Or({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function pL(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=We(We({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(s),index:s});return BA(i,c)});return A.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function hL(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=We(We({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(s),index:s});return BA(i,c)});return A.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function vL(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,s=e.horizontal,c=s===void 0?!0:s;if(!c||!t||!t.length)return null;var f=u.map(function(d){return Math.round(d+i-i)}).sort(function(d,p){return d-p});i!==f[0]&&f.unshift(0);var l=f.map(function(d,p){var m=!f[p+1],v=m?i+o-d:f[p+1]-d;if(v<=0)return null;var h=p%t.length;return A.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:v,width:a,stroke:"none",fill:t[h],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function yL(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,s=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var f=c.map(function(d){return Math.round(d+a-a)}).sort(function(d,p){return d-p});a!==f[0]&&f.unshift(0);var l=f.map(function(d,p){var m=!f[p+1],v=m?a+u-d:f[p+1]-d;if(v<=0)return null;var h=p%n.length;return A.createElement("rect",{key:"react-".concat(p),x:d,y:o,width:v,height:s,stroke:"none",fill:n[h],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var mL=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return D_(Eh(We(We(We({},qn.defaultProps),n),{},{ticks:Nt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},gL=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return D_(Eh(We(We(We({},qn.defaultProps),n),{},{ticks:Nt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},zr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function au(e){var t,r,n,i,a,o,u=Ah(),s=Sh(),c=aq(),f=We(We({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:zr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:zr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:zr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:zr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:zr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:zr.verticalFill,x:z(e.x)?e.x:c.left,y:z(e.y)?e.y:c.top,width:z(e.width)?e.width:c.width,height:z(e.height)?e.height:c.height}),l=f.x,d=f.y,p=f.width,m=f.height,v=f.syncWithTicks,h=f.horizontalValues,g=f.verticalValues,x=rq(),w=nq();if(!z(p)||p<=0||!z(m)||m<=0||!z(l)||l!==+l||!z(d)||d!==+d)return null;var O=f.verticalCoordinatesGenerator||mL,y=f.horizontalCoordinatesGenerator||gL,b=f.horizontalPoints,_=f.verticalPoints;if((!b||!b.length)&&re(y)){var S=h&&h.length,P=y({yAxis:w?We(We({},w),{},{ticks:S?h:w.ticks}):void 0,width:u,height:s,offset:c},S?!0:v);xt(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(jr(P),"]")),Array.isArray(P)&&(b=P)}if((!_||!_.length)&&re(O)){var j=g&&g.length,E=O({xAxis:x?We(We({},x),{},{ticks:j?g:x.ticks}):void 0,width:u,height:s,offset:c},j?!0:v);xt(Array.isArray(E),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(jr(E),"]")),Array.isArray(E)&&(_=E)}return A.createElement("g",{className:"recharts-cartesian-grid"},A.createElement(dL,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),A.createElement(pL,Or({},f,{offset:c,horizontalPoints:b,xAxis:x,yAxis:w})),A.createElement(hL,Or({},f,{offset:c,verticalPoints:_,xAxis:x,yAxis:w})),A.createElement(vL,Or({},f,{horizontalPoints:b})),A.createElement(yL,Or({},f,{verticalPoints:_})))}au.displayName="CartesianGrid";var bL=["type","layout","connectNulls","ref"],xL=["key"];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 Px(e,t){if(e==null)return{};var r=wL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wL(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 ai(){return ai=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},ai.apply(this,arguments)}function Tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tx(Object(r),!0).forEach(function(n){gt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wr(e){return SL(e)||AL(e)||_L(e)||OL()}function OL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
63
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _L(e,t){if(e){if(typeof e=="string")return np(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 np(e,t)}}function AL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SL(e){if(Array.isArray(e))return np(e)}function np(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 PL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ex(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,zA(n.key),n)}}function TL(e,t,r){return t&&Ex(e.prototype,t),r&&Ex(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function EL(e,t,r){return t=vo(t),jL(e,FA()?Reflect.construct(t,r||[],vo(e).constructor):t.apply(e,r))}function jL(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 CL(e)}function CL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FA=function(){return!!e})()}function vo(e){return vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vo(e)}function IL(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&&ip(e,t)}function ip(e,t){return ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ip(e,t)}function gt(e,t,r){return t=zA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zA(e){var t=$L(e,"string");return xn(t)=="symbol"?t:t+""}function $L(e,t){if(xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Cr=(function(e){function t(){var r;PL(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=EL(this,t,[].concat(i)),gt(r,"state",{isAnimationFinished:!0,totalLength:0}),gt(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),gt(r,"getStrokeDasharray",function(o,u,s){var c=s.reduce(function(g,x){return g+x});if(!c)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/c),l=o%c,d=u-o,p=[],m=0,v=0;m<s.length;v+=s[m],++m)if(v+s[m]>l){p=[].concat(Wr(s.slice(0,m)),[l-v]);break}var h=p.length%2===0?[0,d]:[d];return[].concat(Wr(t.repeat(s,f)),Wr(p),h).map(function(g){return"".concat(g,"px")}).join(", ")}),gt(r,"id",$r("recharts-line-")),gt(r,"pathRef",function(o){r.mainCurve=o}),gt(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),gt(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return IL(t,e),TL(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,s=a.yAxis,c=a.layout,f=a.children,l=Qe(f,Hi);if(!l)return null;var d=function(v,h){return{x:v.x,y:v.y,value:v.value,errorVal:Pe(v.payload,h)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return A.createElement(se,p,l.map(function(m){return A.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,s=u.dot,c=u.points,f=u.dataKey,l=X(this.props,!1),d=X(s,!0),p=c.map(function(v,h){var g=tt(tt(tt({key:"dot-".concat(h),r:3},l),d),{},{index:h,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:c});return t.renderDotItem(s,g)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return A.createElement(se,ai({className:"recharts-line-dots",key:"dots"},m),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,s=u.type,c=u.layout,f=u.connectNulls;u.ref;var l=Px(u,bL),d=tt(tt(tt({},X(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:s,layout:c,connectNulls:f});return A.createElement(Pr,ai({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.strokeDasharray,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,d=o.animationEasing,p=o.animationId,m=o.animateNewValues,v=o.width,h=o.height,g=this.state,x=g.prevPoints,w=g.totalLength;return A.createElement(ht,{begin:f,duration:l,isActive:c,easing:d,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var y=O.t;if(x){var b=x.length/u.length,_=u.map(function(T,I){var M=Math.floor(I*b);if(x[M]){var R=x[M],k=ge(R.x,T.x),N=ge(R.y,T.y);return tt(tt({},T),{},{x:k(y),y:N(y)})}if(m){var F=ge(v*2,T.x),K=ge(h/2,T.y);return tt(tt({},T),{},{x:F(y),y:K(y)})}return tt(tt({},T),{},{x:T.x,y:T.y})});return a.renderCurveStatically(_,n,i)}var S=ge(0,w),P=S(y),j;if(s){var E="".concat(s).split(/[,\s]+/gim).map(function(T){return parseFloat(T)});j=a.getStrokeDasharray(P,w,E)}else j=a.generateSimpleStrokeDasharray(w,P);return a.renderCurveStatically(u,n,i,{strokeDasharray:j})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,s=this.state,c=s.prevPoints,f=s.totalLength;return u&&o&&o.length&&(!c&&f>0||!or(c,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.xAxis,f=i.yAxis,l=i.top,d=i.left,p=i.width,m=i.height,v=i.isAnimationActive,h=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,x=u.length===1,w=Q.clsx("recharts-line",s),O=c&&c.allowDataOverflow,y=f&&f.allowDataOverflow,b=O||y,_=ue(h)?this.id:h,S=(n=X(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=S.r,j=P===void 0?3:P,E=S.strokeWidth,T=E===void 0?2:E,I=Dw(o)?o:{},M=I.clipDot,R=M===void 0?!0:M,k=j*2+T;return A.createElement(se,{className:w},O||y?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(_)},A.createElement("rect",{x:O?d:d-p/2,y:y?l:l-m/2,width:O?p:p*2,height:y?m:m*2})),!R&&A.createElement("clipPath",{id:"clipPath-dots-".concat(_)},A.createElement("rect",{x:d-k/2,y:l-k/2,width:p+k,height:m+k}))):null,!x&&this.renderCurve(b,_),this.renderErrorBar(b,_),(x||o)&&this.renderDots(b,R,_),(!v||g)&&dt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Wr(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(Wr(o),Wr(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(A.isValidElement(n))a=A.cloneElement(n,i);else if(re(n))a=n(i);else{var o=i.key,u=Px(i,xL),s=Q.clsx("recharts-line-dot",typeof n!="boolean"?n.className:"");a=A.createElement(Gi,ai({key:o},u,{className:s}))}return a}}])})(A.PureComponent);gt(Cr,"displayName","Line");gt(Cr,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ht.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});gt(Cr,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,u=e.bandSize,s=e.displayedData,c=e.offset,f=t.layout,l=s.map(function(d,p){var m=Pe(d,o);return f==="horizontal"?{x:za({axis:r,ticks:i,bandSize:u,entry:d,index:p}),y:ue(m)?null:n.scale(m),value:m,payload:d}:{x:ue(m)?null:r.scale(m),y:za({axis:n,ticks:a,bandSize:u,entry:d,index:p}),value:m,payload:d}});return tt({points:l,layout:f},c)});var ML=["layout","type","stroke","connectNulls","isRange","ref"],RL=["key"],WA;function wn(e){"@babel/helpers - typeof";return wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wn(e)}function UA(e,t){if(e==null)return{};var r=kL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kL(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 _r(){return _r=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},_r.apply(this,arguments)}function jx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jx(Object(r),!0).forEach(function(n){Pt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cx(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,HA(n.key),n)}}function NL(e,t,r){return t&&Cx(e.prototype,t),r&&Cx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qL(e,t,r){return t=yo(t),LL(e,KA()?Reflect.construct(t,r||[],yo(e).constructor):t.apply(e,r))}function LL(e,t){if(t&&(wn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BL(e)}function BL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KA=function(){return!!e})()}function yo(e){return yo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yo(e)}function FL(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&&ap(e,t)}function ap(e,t){return ap=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ap(e,t)}function Pt(e,t,r){return t=HA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HA(e){var t=zL(e,"string");return wn(t)=="symbol"?t:t+""}function zL(e,t){if(wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lr=(function(e){function t(){var r;DL(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=qL(this,t,[].concat(i)),Pt(r,"state",{isAnimationFinished:!0}),Pt(r,"id",$r("recharts-area-")),Pt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),re(o)&&o()}),Pt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),re(o)&&o()}),r}return FL(t,e),NL(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var s=this.props,c=s.dot,f=s.points,l=s.dataKey,d=X(this.props,!1),p=X(c,!0),m=f.map(function(h,g){var x=Jt(Jt(Jt({key:"dot-".concat(g),r:3},d),p),{},{index:g,cx:h.x,cy:h.y,dataKey:l,value:h.value,payload:h.payload,points:f});return t.renderDotItem(c,x)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return A.createElement(se,_r({className:"recharts-area-dots"},v),m)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].x,c=o[o.length-1].x,f=n*Math.abs(s-c),l=tr(o.map(function(d){return d.y||0}));return z(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(tr(a.map(function(d){return d.y||0})),l)),z(l)?A.createElement("rect",{x:s<c?s:s-f,y:0,width:f,height:Math.floor(l+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].y,c=o[o.length-1].y,f=n*Math.abs(s-c),l=tr(o.map(function(d){return d.x||0}));return z(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(tr(a.map(function(d){return d.x||0})),l)),z(l)?A.createElement("rect",{x:0,y:s<c?s:s-f,width:l+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,s=u.layout,c=u.type,f=u.stroke,l=u.connectNulls,d=u.isRange;u.ref;var p=UA(u,ML);return A.createElement(se,{clipPath:a?"url(#clipPath-".concat(o,")"):null},A.createElement(Pr,_r({},X(p,!0),{points:n,connectNulls:l,type:c,baseLine:i,layout:s,stroke:"none",className:"recharts-area-area"})),f!=="none"&&A.createElement(Pr,_r({},X(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:n})),f!=="none"&&d&&A.createElement(Pr,_r({},X(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.baseLine,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,d=o.animationEasing,p=o.animationId,m=this.state,v=m.prevPoints,h=m.prevBaseLine;return A.createElement(ht,{begin:f,duration:l,isActive:c,easing:d,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var x=g.t;if(v){var w=v.length/u.length,O=u.map(function(S,P){var j=Math.floor(P*w);if(v[j]){var E=v[j],T=ge(E.x,S.x),I=ge(E.y,S.y);return Jt(Jt({},S),{},{x:T(x),y:I(x)})}return S}),y;if(z(s)&&typeof s=="number"){var b=ge(h,s);y=b(x)}else if(ue(s)||Cn(s)){var _=ge(h,0);y=_(x)}else y=s.map(function(S,P){var j=Math.floor(P*w);if(h[j]){var E=h[j],T=ge(E.x,S.x),I=ge(E.y,S.y);return Jt(Jt({},S),{},{x:T(x),y:I(x)})}return S});return a.renderAreaStatically(O,y,n,i)}return A.createElement(se,null,A.createElement("defs",null,A.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),A.createElement(se,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,s,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,s=a.isAnimationActive,c=this.state,f=c.prevPoints,l=c.prevBaseLine,d=c.totalLength;return s&&o&&o.length&&(!f&&d>0||!or(f,o)||!or(l,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.top,f=i.left,l=i.xAxis,d=i.yAxis,p=i.width,m=i.height,v=i.isAnimationActive,h=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,x=u.length===1,w=Q.clsx("recharts-area",s),O=l&&l.allowDataOverflow,y=d&&d.allowDataOverflow,b=O||y,_=ue(h)?this.id:h,S=(n=X(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=S.r,j=P===void 0?3:P,E=S.strokeWidth,T=E===void 0?2:E,I=Dw(o)?o:{},M=I.clipDot,R=M===void 0?!0:M,k=j*2+T;return A.createElement(se,{className:w},O||y?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(_)},A.createElement("rect",{x:O?f:f-p/2,y:y?c:c-m/2,width:O?p:p*2,height:y?m:m*2})),!R&&A.createElement("clipPath",{id:"clipPath-dots-".concat(_)},A.createElement("rect",{x:f-k/2,y:c-k/2,width:p+k,height:m+k}))):null,x?null:this.renderArea(b,_),(o||x)&&this.renderDots(b,R,_),(!v||g)&&dt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(A.PureComponent);WA=lr;Pt(lr,"displayName","Area");Pt(lr,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ht.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Pt(lr,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(z(u)&&typeof u=="number")return u;var s=i==="horizontal"?n:r,c=s.scale.domain();if(s.type==="number"){var f=Math.max(c[0],c[1]),l=Math.min(c[0],c[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return u==="dataMin"?c[0]:u==="dataMax"?c[1]:c[0]});Pt(lr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,s=e.dataKey,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,p=t.layout,m=c&&c.length,v=WA.getBaseValue(t,r,n,i),h=p==="horizontal",g=!1,x=l.map(function(O,y){var b;m?b=c[f+y]:(b=Pe(O,s),Array.isArray(b)?g=!0:b=[v,b]);var _=b[1]==null||m&&Pe(O,s)==null;return h?{x:za({axis:n,ticks:a,bandSize:u,entry:O,index:y}),y:_?null:i.scale(b[1]),value:b,payload:O}:{x:_?null:n.scale(b[1]),y:za({axis:i,ticks:o,bandSize:u,entry:O,index:y}),value:b,payload:O}}),w;return m||g?w=x.map(function(O){var y=Array.isArray(O.value)?O.value[0]:null;return h?{x:O.x,y:y!=null&&O.y!=null?i.scale(y):null}:{x:y!=null?n.scale(y):null,y:O.y}}):w=h?i.scale(v):n.scale(v),Jt({points:x,baseLine:w,layout:p,isRange:g},d)});Pt(lr,"renderDotItem",function(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(re(e))r=e(t);else{var n=Q.clsx("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=UA(t,RL);r=A.createElement(Gi,_r({},a,{key:i,className:n}))}return r});function On(e){"@babel/helpers - typeof";return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}function WL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UL(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,YA(n.key),n)}}function KL(e,t,r){return t&&UL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HL(e,t,r){return t=mo(t),GL(e,GA()?Reflect.construct(t,r||[],mo(e).constructor):t.apply(e,r))}function GL(e,t){if(t&&(On(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VL(e)}function VL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GA=function(){return!!e})()}function mo(e){return mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mo(e)}function YL(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&&op(e,t)}function op(e,t){return op=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},op(e,t)}function VA(e,t,r){return t=YA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YA(e){var t=XL(e,"string");return On(t)=="symbol"?t:t+""}function XL(e,t){if(On(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(On(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function up(){return up=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},up.apply(this,arguments)}function ZL(e){var t=e.xAxisId,r=Ah(),n=Sh(),i=jA(t);return i==null?null:Ue.createElement(qn,up({},i,{className:Q.clsx("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Nt(o,!0)}}))}var Ut=(function(e){function t(){return WL(this,t),HL(this,t,arguments)}return YL(t,e),KL(t,[{key:"render",value:function(){return Ue.createElement(ZL,this.props)}}])})(Ue.Component);VA(Ut,"displayName","XAxis");VA(Ut,"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 _n(e){"@babel/helpers - typeof";return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(e)}function JL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QL(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,JA(n.key),n)}}function eB(e,t,r){return t&&QL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tB(e,t,r){return t=go(t),rB(e,XA()?Reflect.construct(t,r||[],go(e).constructor):t.apply(e,r))}function rB(e,t){if(t&&(_n(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nB(e)}function nB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XA=function(){return!!e})()}function go(e){return go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},go(e)}function iB(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&&sp(e,t)}function sp(e,t){return sp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sp(e,t)}function ZA(e,t,r){return t=JA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JA(e){var t=aB(e,"string");return _n(t)=="symbol"?t:t+""}function aB(e,t){if(_n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function cp(){return cp=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},cp.apply(this,arguments)}var oB=function(t){var r=t.yAxisId,n=Ah(),i=Sh(),a=CA(r);return a==null?null:Ue.createElement(qn,cp({},a,{className:Q.clsx("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return Nt(u,!0)}}))},It=(function(e){function t(){return JL(this,t),tB(this,t,arguments)}return iB(t,e),eB(t,[{key:"render",value:function(){return Ue.createElement(oB,this.props)}}])})(Ue.Component);ZA(It,"displayName","YAxis");ZA(It,"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 Ix(e){return lB(e)||cB(e)||sB(e)||uB()}function uB(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
64
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sB(e,t){if(e){if(typeof e=="string")return lp(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 lp(e,t)}}function cB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lB(e){if(Array.isArray(e))return lp(e)}function lp(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 fp=function(t,r,n,i,a){var o=Qe(t,Th),u=Qe(t,ru),s=[].concat(Ix(o),Ix(u)),c=Qe(t,iu),f="".concat(i,"Id"),l=i[0],d=r;if(s.length&&(d=s.reduce(function(v,h){if(h.props[f]===n&&jt(h.props,"extendDomain")&&z(h.props[l])){var g=h.props[l];return[Math.min(v[0],g),Math.max(v[1],g)]}return v},d)),c.length){var p="".concat(l,"1"),m="".concat(l,"2");d=c.reduce(function(v,h){if(h.props[f]===n&&jt(h.props,"extendDomain")&&z(h.props[p])&&z(h.props[m])){var g=h.props[p],x=h.props[m];return[Math.min(v[0],g,x),Math.max(v[1],g,x)]}return v},d)}return a&&a.length&&(d=a.reduce(function(v,h){return z(h)?[Math.min(v[0],h),Math.max(v[1],h)]:v},d)),d},cf={exports:{}},$x;function fB(){return $x||($x=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function a(s,c,f,l,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,l||s,d),m=r?r+c:c;return s._events[m]?s._events[m].fn?s._events[m]=[s._events[m],p]:s._events[m].push(p):(s._events[m]=p,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],f,l;if(this._eventsCount===0)return c;for(l in f=this._events)t.call(f,l)&&c.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},u.prototype.listeners=function(c){var f=r?r+c:c,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var d=0,p=l.length,m=new Array(p);d<p;d++)m[d]=l[d].fn;return m},u.prototype.listenerCount=function(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(c,f,l,d,p,m){var v=r?r+c:c;if(!this._events[v])return!1;var h=this._events[v],g=arguments.length,x,w;if(h.fn){switch(h.once&&this.removeListener(c,h.fn,void 0,!0),g){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,f),!0;case 3:return h.fn.call(h.context,f,l),!0;case 4:return h.fn.call(h.context,f,l,d),!0;case 5:return h.fn.call(h.context,f,l,d,p),!0;case 6:return h.fn.call(h.context,f,l,d,p,m),!0}for(w=1,x=new Array(g-1);w<g;w++)x[w-1]=arguments[w];h.fn.apply(h.context,x)}else{var O=h.length,y;for(w=0;w<O;w++)switch(h[w].once&&this.removeListener(c,h[w].fn,void 0,!0),g){case 1:h[w].fn.call(h[w].context);break;case 2:h[w].fn.call(h[w].context,f);break;case 3:h[w].fn.call(h[w].context,f,l);break;case 4:h[w].fn.call(h[w].context,f,l,d);break;default:if(!x)for(y=1,x=new Array(g-1);y<g;y++)x[y-1]=arguments[y];h[w].fn.apply(h[w].context,x)}}return!0},u.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,d){var p=r?r+c:c;if(!this._events[p])return this;if(!f)return o(this,p),this;var m=this._events[p];if(m.fn)m.fn===f&&(!d||m.once)&&(!l||m.context===l)&&o(this,p);else{for(var v=0,h=[],g=m.length;v<g;v++)(m[v].fn!==f||d&&!m[v].once||l&&m[v].context!==l)&&h.push(m[v]);h.length?this._events[p]=h.length===1?h[0]:h:o(this,p)}return this},u.prototype.removeAllListeners=function(c){var f;return c?(f=r?r+c:c,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(cf)),cf.exports}var dB=fB();const pB=be(dB);var lf=new pB,ff="recharts.syncMouseEvents";function qi(e){"@babel/helpers - typeof";return qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qi(e)}function hB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vB(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,QA(n.key),n)}}function yB(e,t,r){return t&&vB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function df(e,t,r){return t=QA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QA(e){var t=mB(e,"string");return qi(t)=="symbol"?t:t+""}function mB(e,t){if(qi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gB=(function(){function e(){hB(this,e),df(this,"activeIndex",0),df(this,"coordinateList",[]),df(this,"layout","horizontal")}return yB(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,s=r.layout,c=s===void 0?null:s,f=r.offset,l=f===void 0?null:f,d=r.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,s=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+s+c,d=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:d})}}}])})();function bB(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&z(n)&&z(i))return!0}return!1}function xB(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function e1(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Ae(t,r,n,i),u=Ae(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function wB(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,s=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,d=Ae(u,s,c,l),p=Ae(u,s,f,l);n=d.x,i=d.y,a=p.x,o=p.y}else return e1(t);return[{x:n,y:i},{x:a,y:o}]}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 Mx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function da(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mx(Object(r),!0).forEach(function(n){OB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OB(e,t,r){return t=_B(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _B(e){var t=AB(e,"string");return Li(t)=="symbol"?t:t+""}function AB(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 SB(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,d=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var m,v=Pr;if(d==="ScatterChart")m=o,v=FD;else if(d==="BarChart")m=xB(l,o,s,f),v=yh;else if(l==="radial"){var h=e1(o),g=h.cx,x=h.cy,w=h.radius,O=h.startAngle,y=h.endAngle;m={cx:g,cy:x,startAngle:O,endAngle:y,innerRadius:w,outerRadius:w},v=V_}else m={points:wB(l,o,s)},v=Pr;var b=da(da(da(da({stroke:"#ccc",pointerEvents:"none"},s),m),X(p,!1)),{},{payload:u,payloadIndex:c,className:Q.clsx("recharts-tooltip-cursor",p.className)});return A.isValidElement(p)?A.cloneElement(p,b):A.createElement(v,b)}var PB=["item"],TB=["children","className","width","height","style","compact","title","desc"];function An(e){"@babel/helpers - typeof";return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},An(e)}function Vr(){return Vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vr.apply(this,arguments)}function Rx(e,t){return CB(e)||jB(e,t)||r1(e,t)||EB()}function EB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
65
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jB(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function CB(e){if(Array.isArray(e))return e}function kx(e,t){if(e==null)return{};var r=IB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function IB(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 $B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MB(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,n1(n.key),n)}}function RB(e,t,r){return t&&MB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kB(e,t,r){return t=bo(t),DB(e,t1()?Reflect.construct(t,r||[],bo(e).constructor):t.apply(e,r))}function DB(e,t){if(t&&(An(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NB(e)}function NB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t1=function(){return!!e})()}function bo(e){return bo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bo(e)}function qB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dp(e,t)}function dp(e,t){return dp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dp(e,t)}function Sn(e){return FB(e)||BB(e)||r1(e)||LB()}function LB(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
66
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r1(e,t){if(e){if(typeof e=="string")return pp(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 pp(e,t)}}function BB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function FB(e){if(Array.isArray(e))return pp(e)}function pp(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 Dx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dx(Object(r),!0).forEach(function(n){ie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ie(e,t,r){return t=n1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n1(e){var t=zB(e,"string");return An(t)=="symbol"?t:t+""}function zB(e,t){if(An(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(An(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WB={xAxis:["bottom","top"],yAxis:["left","right"]},UB={width:"100%",height:"100%"},i1={x:0,y:0};function pa(e){return e}var KB=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},HB=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return D(D(D({},i),Ae(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return D(D(D({},i),Ae(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return i1},ou=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var c=s.props.data;return c&&c.length?[].concat(Sn(u),Sn(c)):u},[]);return o.length>0?o:t&&t.length&&z(i)&&z(a)?t.slice(i,a+1):[]};function a1(e){return e==="number"?[0,"auto"]:void 0}var hp=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=ou(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var f,l=(f=c.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=l===void 0?u:l;d=ya(p,o.dataKey,i)}else d=l&&l[n]||u[n];return d?[].concat(Sn(s),[F_(c,d)]):s},[])},Nx=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=KB(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=iM(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,d=hp(t,r,f,l),p=HB(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:d,activeCoordinate:p}}return null},GB=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=t.stackOffset,p=k_(f,a);return n.reduce(function(m,v){var h,g=v.type.defaultProps!==void 0?D(D({},v.type.defaultProps),v.props):v.props,x=g.type,w=g.dataKey,O=g.allowDataOverflow,y=g.allowDuplicatedCategory,b=g.scale,_=g.ticks,S=g.includeHidden,P=g[o];if(m[P])return m;var j=ou(t.data,{graphicalItems:i.filter(function(L){var U,V=o in L.props?L.props[o]:(U=L.type.defaultProps)===null||U===void 0?void 0:U[o];return V===P}),dataStartIndex:s,dataEndIndex:c}),E=j.length,T,I,M;bB(g.domain,O,x)&&(T=Td(g.domain,null,O),p&&(x==="number"||b!=="auto")&&(M=ti(j,w,"category")));var R=a1(x);if(!T||T.length===0){var k,N=(k=g.domain)!==null&&k!==void 0?k:R;if(w){if(T=ti(j,w,x),x==="category"&&p){var F=cS(T);y&&F?(I=T,T=no(0,E)):y||(T=Cb(N,T,v).reduce(function(L,U){return L.indexOf(U)>=0?L:[].concat(Sn(L),[U])},[]))}else if(x==="category")y?T=T.filter(function(L){return L!==""&&!ue(L)}):T=Cb(N,T,v).reduce(function(L,U){return L.indexOf(U)>=0||U===""||ue(U)?L:[].concat(Sn(L),[U])},[]);else if(x==="number"){var K=cM(j,i.filter(function(L){var U,V,J=o in L.props?L.props[o]:(U=L.type.defaultProps)===null||U===void 0?void 0:U[o],ee="hide"in L.props?L.props.hide:(V=L.type.defaultProps)===null||V===void 0?void 0:V.hide;return J===P&&(S||!ee)}),w,a,f);K&&(T=K)}p&&(x==="number"||b!=="auto")&&(M=ti(j,w,"category"))}else p?T=no(0,E):u&&u[P]&&u[P].hasStack&&x==="number"?T=d==="expand"?[0,1]:B_(u[P].stackGroups,s,c):T=R_(j,i.filter(function(L){var U=o in L.props?L.props[o]:L.type.defaultProps[o],V="hide"in L.props?L.props.hide:L.type.defaultProps.hide;return U===P&&(S||!V)}),x,f,!0);if(x==="number")T=fp(l,T,P,a,_),N&&(T=Td(N,T,O));else if(x==="category"&&N){var $=N,q=T.every(function(L){return $.indexOf(L)>=0});q&&(T=$)}}return D(D({},m),{},ie({},P,D(D({},g),{},{axisType:a,domain:T,categoricalDomain:M,duplicateDomain:I,originalDomain:(h=g.domain)!==null&&h!==void 0?h:R,isCategorical:p,layout:f})))},{})},VB=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=ou(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=d.length,m=k_(f,a),v=-1;return n.reduce(function(h,g){var x=g.type.defaultProps!==void 0?D(D({},g.type.defaultProps),g.props):g.props,w=x[o],O=a1("number");if(!h[w]){v++;var y;return m?y=no(0,p):u&&u[w]&&u[w].hasStack?(y=B_(u[w].stackGroups,s,c),y=fp(l,y,w,a)):(y=Td(O,R_(d,n.filter(function(b){var _,S,P=o in b.props?b.props[o]:(_=b.type.defaultProps)===null||_===void 0?void 0:_[o],j="hide"in b.props?b.props.hide:(S=b.type.defaultProps)===null||S===void 0?void 0:S.hide;return P===w&&!j}),"number",f),i.defaultProps.allowDataOverflow),y=fp(l,y,w,a)),D(D({},h),{},ie({},w,D(D({axisType:a},i.defaultProps),{},{hide:!0,orientation:at(WB,"".concat(a,".").concat(v%2),null),domain:y,originalDomain:O,isCategorical:m,layout:f})))}return h},{})},YB=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),d=Qe(f,a),p={};return d&&d.length?p=GB(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=VB(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),p},XB=function(t){var r=er(t),n=Nt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:zp(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Wa(r,n)}},qx=function(t){var r=t.children,n=t.defaultShowTooltip,i=nt(r,pn),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},ZB=function(t){return!t||!t.length?!1:t.some(function(r){var n=qt(r&&r.type);return n&&n.indexOf("Bar")>=0})},Lx=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"}},JB=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,f=n.height,l=n.children,d=n.margin||{},p=nt(l,pn),m=nt(l,Tt),v=Object.keys(s).reduce(function(y,b){var _=s[b],S=_.orientation;return!_.mirror&&!_.hide?D(D({},y),{},ie({},S,y[S]+_.width)):y},{left:d.left||0,right:d.right||0}),h=Object.keys(o).reduce(function(y,b){var _=o[b],S=_.orientation;return!_.mirror&&!_.hide?D(D({},y),{},ie({},S,at(y,"".concat(S))+_.height)):y},{top:d.top||0,bottom:d.bottom||0}),g=D(D({},h),v),x=g.bottom;p&&(g.bottom+=p.props.height||pn.defaultProps.height),m&&r&&(g=uM(g,i,n,r));var w=c-g.left-g.right,O=f-g.top-g.bottom;return D(D({brushBottom:x},g),{},{width:Math.max(w,0),height:Math.max(O,0)})},QB=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Vi=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,s=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,d=function(g,x){var w=x.graphicalItems,O=x.stackGroups,y=x.offset,b=x.updateId,_=x.dataStartIndex,S=x.dataEndIndex,P=g.barSize,j=g.layout,E=g.barGap,T=g.barCategoryGap,I=g.maxBarSize,M=Lx(j),R=M.numericAxisName,k=M.cateAxisName,N=ZB(w),F=[];return w.forEach(function(K,$){var q=ou(g.data,{graphicalItems:[K],dataStartIndex:_,dataEndIndex:S}),L=K.type.defaultProps!==void 0?D(D({},K.type.defaultProps),K.props):K.props,U=L.dataKey,V=L.maxBarSize,J=L["".concat(R,"Id")],ee=L["".concat(k,"Id")],ae={},ne=s.reduce(function(ot,De){var Ne,Yt,Xt=x["".concat(De.axisType,"Map")],Xi=L["".concat(De.axisType,"Id")];Xt&&Xt[Xi]||De.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?Je(!1,"Specifying a(n) ".concat(De.axisType,"Id requires a corresponding ").concat(De.axisType,"Id on the targeted graphical component ").concat((Ne=K==null||(Yt=K.type)===null||Yt===void 0?void 0:Yt.displayName)!==null&&Ne!==void 0?Ne:"")):Je());var Ln=Xt[Xi];return D(D({},ot),{},ie(ie({},De.axisType,Ln),"".concat(De.axisType,"Ticks"),Nt(Ln)))},ae),B=ne[k],G=ne["".concat(k,"Ticks")],Z=O&&O[J]&&O[J].hasStack&&gM(K,O[J].stackGroups),C=qt(K.type).indexOf("Bar")>=0,ce=Wa(B,G),W=[],te=N&&aM({barSize:P,stackGroups:O,totalSize:QB(ne,k)});if(C){var me,oe,Ke=ue(V)?I:V,et=(me=(oe=Wa(B,G,!0))!==null&&oe!==void 0?oe:Ke)!==null&&me!==void 0?me:0;W=oM({barGap:E,barCategoryGap:T,bandSize:et!==ce?et:ce,sizeList:te[ee],maxBarSize:Ke}),et!==ce&&(W=W.map(function(ot){return D(D({},ot),{},{position:D(D({},ot.position),{},{offset:ot.position.offset-et/2})})}))}var qr=K&&K.type&&K.type.getComposedData;qr&&F.push({props:D(D({},qr(D(D({},ne),{},{displayedData:q,props:g,dataKey:U,item:K,bandSize:ce,barPosition:W,offset:y,stackedData:Z,layout:j,dataStartIndex:_,dataEndIndex:S}))),{},ie(ie(ie({key:K.key||"item-".concat($)},R,ne[R]),k,ne[k]),"animationId",b)),childIndex:wS(K,g.children),item:K})}),F},p=function(g,x){var w=g.props,O=g.dataStartIndex,y=g.dataEndIndex,b=g.updateId;if(!Kv({props:w}))return null;var _=w.children,S=w.layout,P=w.stackOffset,j=w.data,E=w.reverseStackOrder,T=Lx(S),I=T.numericAxisName,M=T.cateAxisName,R=Qe(_,n),k=yM(j,R,"".concat(I,"Id"),"".concat(M,"Id"),P,E),N=s.reduce(function(L,U){var V="".concat(U.axisType,"Map");return D(D({},L),{},ie({},V,YB(w,D(D({},U),{},{graphicalItems:R,stackGroups:U.axisType===I&&k,dataStartIndex:O,dataEndIndex:y}))))},{}),F=JB(D(D({},N),{},{props:w,graphicalItems:R}),x?.legendBBox);Object.keys(N).forEach(function(L){N[L]=f(w,N[L],F,L.replace("Map",""),r)});var K=N["".concat(M,"Map")],$=XB(K),q=d(w,D(D({},N),{},{dataStartIndex:O,dataEndIndex:y,updateId:b,graphicalItems:R,stackGroups:k,offset:F}));return D(D({formattedGraphicalItems:q,graphicalItems:R,offset:F,stackGroups:k},$),N)},m=(function(h){function g(x){var w,O,y;return $B(this,g),y=kB(this,g,[x]),ie(y,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ie(y,"accessibilityManager",new gB),ie(y,"handleLegendBBoxUpdate",function(b){if(b){var _=y.state,S=_.dataStartIndex,P=_.dataEndIndex,j=_.updateId;y.setState(D({legendBBox:b},p({props:y.props,dataStartIndex:S,dataEndIndex:P,updateId:j},D(D({},y.state),{},{legendBBox:b}))))}}),ie(y,"handleReceiveSyncEvent",function(b,_,S){if(y.props.syncId===b){if(S===y.eventEmitterSymbol&&typeof y.props.syncMethod!="function")return;y.applySyncEvent(_)}}),ie(y,"handleBrushChange",function(b){var _=b.startIndex,S=b.endIndex;if(_!==y.state.dataStartIndex||S!==y.state.dataEndIndex){var P=y.state.updateId;y.setState(function(){return D({dataStartIndex:_,dataEndIndex:S},p({props:y.props,dataStartIndex:_,dataEndIndex:S,updateId:P},y.state))}),y.triggerSyncEvent({dataStartIndex:_,dataEndIndex:S})}}),ie(y,"handleMouseEnter",function(b){var _=y.getMouseInfo(b);if(_){var S=D(D({},_),{},{isTooltipActive:!0});y.setState(S),y.triggerSyncEvent(S);var P=y.props.onMouseEnter;re(P)&&P(S,b)}}),ie(y,"triggeredAfterMouseMove",function(b){var _=y.getMouseInfo(b),S=_?D(D({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};y.setState(S),y.triggerSyncEvent(S);var P=y.props.onMouseMove;re(P)&&P(S,b)}),ie(y,"handleItemMouseEnter",function(b){y.setState(function(){return{isTooltipActive:!0,activeItem:b,activePayload:b.tooltipPayload,activeCoordinate:b.tooltipPosition||{x:b.cx,y:b.cy}}})}),ie(y,"handleItemMouseLeave",function(){y.setState(function(){return{isTooltipActive:!1}})}),ie(y,"handleMouseMove",function(b){b.persist(),y.throttleTriggeredAfterMouseMove(b)}),ie(y,"handleMouseLeave",function(b){y.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};y.setState(_),y.triggerSyncEvent(_);var S=y.props.onMouseLeave;re(S)&&S(_,b)}),ie(y,"handleOuterEvent",function(b){var _=xS(b),S=at(y.props,"".concat(_));if(_&&re(S)){var P,j;/.*touch.*/i.test(_)?j=y.getMouseInfo(b.changedTouches[0]):j=y.getMouseInfo(b),S((P=j)!==null&&P!==void 0?P:{},b)}}),ie(y,"handleClick",function(b){var _=y.getMouseInfo(b);if(_){var S=D(D({},_),{},{isTooltipActive:!0});y.setState(S),y.triggerSyncEvent(S);var P=y.props.onClick;re(P)&&P(S,b)}}),ie(y,"handleMouseDown",function(b){var _=y.props.onMouseDown;if(re(_)){var S=y.getMouseInfo(b);_(S,b)}}),ie(y,"handleMouseUp",function(b){var _=y.props.onMouseUp;if(re(_)){var S=y.getMouseInfo(b);_(S,b)}}),ie(y,"handleTouchMove",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&y.throttleTriggeredAfterMouseMove(b.changedTouches[0])}),ie(y,"handleTouchStart",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&y.handleMouseDown(b.changedTouches[0])}),ie(y,"handleTouchEnd",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&y.handleMouseUp(b.changedTouches[0])}),ie(y,"handleDoubleClick",function(b){var _=y.props.onDoubleClick;if(re(_)){var S=y.getMouseInfo(b);_(S,b)}}),ie(y,"handleContextMenu",function(b){var _=y.props.onContextMenu;if(re(_)){var S=y.getMouseInfo(b);_(S,b)}}),ie(y,"triggerSyncEvent",function(b){y.props.syncId!==void 0&&lf.emit(ff,y.props.syncId,b,y.eventEmitterSymbol)}),ie(y,"applySyncEvent",function(b){var _=y.props,S=_.layout,P=_.syncMethod,j=y.state.updateId,E=b.dataStartIndex,T=b.dataEndIndex;if(b.dataStartIndex!==void 0||b.dataEndIndex!==void 0)y.setState(D({dataStartIndex:E,dataEndIndex:T},p({props:y.props,dataStartIndex:E,dataEndIndex:T,updateId:j},y.state)));else if(b.activeTooltipIndex!==void 0){var I=b.chartX,M=b.chartY,R=b.activeTooltipIndex,k=y.state,N=k.offset,F=k.tooltipTicks;if(!N)return;if(typeof P=="function")R=P(F,b);else if(P==="value"){R=-1;for(var K=0;K<F.length;K++)if(F[K].value===b.activeLabel){R=K;break}}var $=D(D({},N),{},{x:N.left,y:N.top}),q=Math.min(I,$.x+$.width),L=Math.min(M,$.y+$.height),U=F[R]&&F[R].value,V=hp(y.state,y.props.data,R),J=F[R]?{x:S==="horizontal"?F[R].coordinate:q,y:S==="horizontal"?L:F[R].coordinate}:i1;y.setState(D(D({},b),{},{activeLabel:U,activeCoordinate:J,activePayload:V,activeTooltipIndex:R}))}else y.setState(b)}),ie(y,"renderCursor",function(b){var _,S=y.state,P=S.isTooltipActive,j=S.activeCoordinate,E=S.activePayload,T=S.offset,I=S.activeTooltipIndex,M=S.tooltipAxisBandSize,R=y.getTooltipEventType(),k=(_=b.props.active)!==null&&_!==void 0?_:P,N=y.props.layout,F=b.key||"_recharts-cursor";return A.createElement(SB,{key:F,activeCoordinate:j,activePayload:E,activeTooltipIndex:I,chartName:r,element:b,isActive:k,layout:N,offset:T,tooltipAxisBandSize:M,tooltipEventType:R})}),ie(y,"renderPolarAxis",function(b,_,S){var P=at(b,"type.axisType"),j=at(y.state,"".concat(P,"Map")),E=b.type.defaultProps,T=E!==void 0?D(D({},E),b.props):b.props,I=j&&j[T["".concat(P,"Id")]];return A.cloneElement(b,D(D({},I),{},{className:Q.clsx(P,I.className),key:b.key||"".concat(_,"-").concat(S),ticks:Nt(I,!0)}))}),ie(y,"renderPolarGrid",function(b){var _=b.props,S=_.radialLines,P=_.polarAngles,j=_.polarRadius,E=y.state,T=E.radiusAxisMap,I=E.angleAxisMap,M=er(T),R=er(I),k=R.cx,N=R.cy,F=R.innerRadius,K=R.outerRadius;return A.cloneElement(b,{polarAngles:Array.isArray(P)?P:Nt(R,!0).map(function($){return $.coordinate}),polarRadius:Array.isArray(j)?j:Nt(M,!0).map(function($){return $.coordinate}),cx:k,cy:N,innerRadius:F,outerRadius:K,key:b.key||"polar-grid",radialLines:S})}),ie(y,"renderLegend",function(){var b=y.state.formattedGraphicalItems,_=y.props,S=_.children,P=_.width,j=_.height,E=y.props.margin||{},T=P-(E.left||0)-(E.right||0),I=$_({children:S,formattedGraphicalItems:b,legendWidth:T,legendContent:c});if(!I)return null;var M=I.item,R=kx(I,PB);return A.cloneElement(M,D(D({},R),{},{chartWidth:P,chartHeight:j,margin:E,onBBoxUpdate:y.handleLegendBBoxUpdate}))}),ie(y,"renderTooltip",function(){var b,_=y.props,S=_.children,P=_.accessibilityLayer,j=nt(S,Xe);if(!j)return null;var E=y.state,T=E.isTooltipActive,I=E.activeCoordinate,M=E.activePayload,R=E.activeLabel,k=E.offset,N=(b=j.props.active)!==null&&b!==void 0?b:T;return A.cloneElement(j,{viewBox:D(D({},k),{},{x:k.left,y:k.top}),active:N,label:R,payload:N?M:[],coordinate:I,accessibilityLayer:P})}),ie(y,"renderBrush",function(b){var _=y.props,S=_.margin,P=_.data,j=y.state,E=j.offset,T=j.dataStartIndex,I=j.dataEndIndex,M=j.updateId;return A.cloneElement(b,{key:b.key||"_recharts-brush",onChange:oa(y.handleBrushChange,b.props.onChange),data:P,x:z(b.props.x)?b.props.x:E.left,y:z(b.props.y)?b.props.y:E.top+E.height+E.brushBottom-(S.bottom||0),width:z(b.props.width)?b.props.width:E.width,startIndex:T,endIndex:I,updateId:"brush-".concat(M)})}),ie(y,"renderReferenceElement",function(b,_,S){if(!b)return null;var P=y,j=P.clipPathId,E=y.state,T=E.xAxisMap,I=E.yAxisMap,M=E.offset,R=b.type.defaultProps||{},k=b.props,N=k.xAxisId,F=N===void 0?R.xAxisId:N,K=k.yAxisId,$=K===void 0?R.yAxisId:K;return A.cloneElement(b,{key:b.key||"".concat(_,"-").concat(S),xAxis:T[F],yAxis:I[$],viewBox:{x:M.left,y:M.top,width:M.width,height:M.height},clipPathId:j})}),ie(y,"renderActivePoints",function(b){var _=b.item,S=b.activePoint,P=b.basePoint,j=b.childIndex,E=b.isRange,T=[],I=_.props.key,M=_.item.type.defaultProps!==void 0?D(D({},_.item.type.defaultProps),_.item.props):_.item.props,R=M.activeDot,k=M.dataKey,N=D(D({index:j,dataKey:k,cx:S.x,cy:S.y,r:4,fill:hh(_.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},X(R,!1)),ma(R));return T.push(g.renderActiveDot(R,N,"".concat(I,"-activePoint-").concat(j))),P?T.push(g.renderActiveDot(R,D(D({},N),{},{cx:P.x,cy:P.y}),"".concat(I,"-basePoint-").concat(j))):E&&T.push(null),T}),ie(y,"renderGraphicChild",function(b,_,S){var P=y.filterFormatItem(b,_,S);if(!P)return null;var j=y.getTooltipEventType(),E=y.state,T=E.isTooltipActive,I=E.tooltipAxis,M=E.activeTooltipIndex,R=E.activeLabel,k=y.props.children,N=nt(k,Xe),F=P.props,K=F.points,$=F.isRange,q=F.baseLine,L=P.item.type.defaultProps!==void 0?D(D({},P.item.type.defaultProps),P.item.props):P.item.props,U=L.activeDot,V=L.hide,J=L.activeBar,ee=L.activeShape,ae=!!(!V&&T&&N&&(U||J||ee)),ne={};j!=="axis"&&N&&N.props.trigger==="click"?ne={onClick:oa(y.handleItemMouseEnter,b.props.onClick)}:j!=="axis"&&(ne={onMouseLeave:oa(y.handleItemMouseLeave,b.props.onMouseLeave),onMouseEnter:oa(y.handleItemMouseEnter,b.props.onMouseEnter)});var B=A.cloneElement(b,D(D({},P.props),ne));function G(De){return typeof I.dataKey=="function"?I.dataKey(De.payload):null}if(ae)if(M>=0){var Z,C;if(I.dataKey&&!I.allowDuplicatedCategory){var ce=typeof I.dataKey=="function"?G:"payload.".concat(I.dataKey.toString());Z=ya(K,ce,R),C=$&&q&&ya(q,ce,R)}else Z=K?.[M],C=$&&q&&q[M];if(ee||J){var W=b.props.activeIndex!==void 0?b.props.activeIndex:M;return[A.cloneElement(b,D(D(D({},P.props),ne),{},{activeIndex:W})),null,null]}if(!ue(Z))return[B].concat(Sn(y.renderActivePoints({item:P,activePoint:Z,basePoint:C,childIndex:M,isRange:$})))}else{var te,me=(te=y.getItemByXY(y.state.activeCoordinate))!==null&&te!==void 0?te:{graphicalItem:B},oe=me.graphicalItem,Ke=oe.item,et=Ke===void 0?b:Ke,qr=oe.childIndex,ot=D(D(D({},P.props),ne),{},{activeIndex:qr});return[A.cloneElement(et,ot),null,null]}return $?[B,null,null]:[B,null]}),ie(y,"renderCustomized",function(b,_,S){return A.cloneElement(b,D(D({key:"recharts-customized-".concat(S)},y.props),y.state))}),ie(y,"renderMap",{CartesianGrid:{handler:pa,once:!0},ReferenceArea:{handler:y.renderReferenceElement},ReferenceLine:{handler:pa},ReferenceDot:{handler:y.renderReferenceElement},XAxis:{handler:pa},YAxis:{handler:pa},Brush:{handler:y.renderBrush,once:!0},Bar:{handler:y.renderGraphicChild},Line:{handler:y.renderGraphicChild},Area:{handler:y.renderGraphicChild},Radar:{handler:y.renderGraphicChild},RadialBar:{handler:y.renderGraphicChild},Scatter:{handler:y.renderGraphicChild},Pie:{handler:y.renderGraphicChild},Funnel:{handler:y.renderGraphicChild},Tooltip:{handler:y.renderCursor,once:!0},PolarGrid:{handler:y.renderPolarGrid,once:!0},PolarAngleAxis:{handler:y.renderPolarAxis},PolarRadiusAxis:{handler:y.renderPolarAxis},Customized:{handler:y.renderCustomized}}),y.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:$r("recharts"),"-clip"),y.throttleTriggeredAfterMouseMove=$O(y.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),y.state={},y}return qB(g,h),RB(g,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,y=w.data,b=w.height,_=w.layout,S=nt(O,Xe);if(S){var P=S.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var j=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,E=hp(this.state,y,P,j),T=this.state.tooltipTicks[P].coordinate,I=(this.state.offset.top+b)/2,M=_==="horizontal",R=M?{x:T,y:I}:{y:T,x:I},k=this.state.formattedGraphicalItems.find(function(F){var K=F.item;return K.type.name==="Scatter"});k&&(R=D(D({},R),k.props.points[P].tooltipPosition),E=k.props.points[P].tooltipPayload);var N={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:j,activePayload:E,activeCoordinate:R};this.setState(N),this.renderCursor(S),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var y,b;this.accessibilityManager.setDetails({offset:{left:(y=this.props.margin.left)!==null&&y!==void 0?y:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0}})}return null}},{key:"componentDidUpdate",value:function(w){Yf([nt(w.children,Xe)],[nt(this.props.children,Xe)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=nt(this.props.children,Xe);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,y=O.getBoundingClientRect(),b=XE(y),_={chartX:Math.round(w.pageX-b.left),chartY:Math.round(w.pageY-b.top)},S=y.width/O.offsetWidth||1,P=this.inRange(_.chartX,_.chartY,S);if(!P)return null;var j=this.state,E=j.xAxisMap,T=j.yAxisMap,I=this.getTooltipEventType(),M=Nx(this.state,this.props.data,this.props.layout,P);if(I!=="axis"&&E&&T){var R=er(E).scale,k=er(T).scale,N=R&&R.invert?R.invert(_.chartX):null,F=k&&k.invert?k.invert(_.chartY):null;return D(D({},_),{},{xValue:N,yValue:F},M)}return M?D(D({},_),M):null}},{key:"inRange",value:function(w,O){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,b=this.props.layout,_=w/y,S=O/y;if(b==="horizontal"||b==="vertical"){var P=this.state.offset,j=_>=P.left&&_<=P.left+P.width&&S>=P.top&&S<=P.top+P.height;return j?{x:_,y:S}:null}var E=this.state,T=E.angleAxisMap,I=E.radiusAxisMap;if(T&&I){var M=er(T);return Mb({x:_,y:S},M)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),y=nt(w,Xe),b={};y&&O==="axis"&&(y.props.trigger==="click"?b={onClick:this.handleClick}:b={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var _=ma(this.props,this.handleOuterEvent);return D(D({},_),b)}},{key:"addListener",value:function(){lf.on(ff,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){lf.removeListener(ff,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,y){for(var b=this.state.formattedGraphicalItems,_=0,S=b.length;_<S;_++){var P=b[_];if(P.item===w||P.props.key===w.key||O===qt(P.item.type)&&y===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,y=O.left,b=O.top,_=O.height,S=O.width;return A.createElement("defs",null,A.createElement("clipPath",{id:w},A.createElement("rect",{x:y,y:b,height:_,width:S})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,y){var b=Rx(y,2),_=b[0],S=b[1];return D(D({},O),{},ie({},_,S.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,y){var b=Rx(y,2),_=b[0],S=b[1];return D(D({},O),{},ie({},_,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,y=O.formattedGraphicalItems,b=O.activeItem;if(y&&y.length)for(var _=0,S=y.length;_<S;_++){var P=y[_],j=P.props,E=P.item,T=E.type.defaultProps!==void 0?D(D({},E.type.defaultProps),E.props):E.props,I=qt(E.type);if(I==="Bar"){var M=(j.data||[]).find(function(F){return wD(w,F)});if(M)return{graphicalItem:P,payload:M}}else if(I==="RadialBar"){var R=(j.data||[]).find(function(F){return Mb(w,F)});if(R)return{graphicalItem:P,payload:R}}else if(Jo(P,b)||Qo(P,b)||Ri(P,b)){var k=FN({graphicalItem:P,activeTooltipItem:b,itemData:T.data}),N=T.activeIndex===void 0?k:T.activeIndex;return{graphicalItem:D(D({},P),{},{childIndex:N}),payload:Ri(P,b)?T.data[k]:P.props.data[k]}}}return null}},{key:"render",value:function(){var w=this;if(!Kv(this))return null;var O=this.props,y=O.children,b=O.className,_=O.width,S=O.height,P=O.style,j=O.compact,E=O.title,T=O.desc,I=kx(O,TB),M=X(I,!1);if(j)return A.createElement(px,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement(Zf,Vr({},M,{width:_,height:S,title:E,desc:T}),this.renderClipPath(),Gv(y,this.renderMap)));if(this.props.accessibilityLayer){var R,k;M.tabIndex=(R=this.props.tabIndex)!==null&&R!==void 0?R:0,M.role=(k=this.props.role)!==null&&k!==void 0?k:"application",M.onKeyDown=function(F){w.accessibilityManager.keyboardEvent(F)},M.onFocus=function(){w.accessibilityManager.focus()}}var N=this.parseEventsOfWrapper();return A.createElement(px,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement("div",Vr({className:Q.clsx("recharts-wrapper",b),style:D({position:"relative",cursor:"default",width:_,height:S},P)},N,{ref:function(K){w.container=K}}),A.createElement(Zf,Vr({},M,{width:_,height:S,title:E,desc:T,style:UB}),this.renderClipPath(),Gv(y,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(A.Component);ie(m,"displayName",r),ie(m,"defaultProps",D({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),ie(m,"getDerivedStateFromProps",function(h,g){var x=h.dataKey,w=h.data,O=h.children,y=h.width,b=h.height,_=h.layout,S=h.stackOffset,P=h.margin,j=g.dataStartIndex,E=g.dataEndIndex;if(g.updateId===void 0){var T=qx(h);return D(D(D({},T),{},{updateId:0},p(D(D({props:h},T),{},{updateId:0}),g)),{},{prevDataKey:x,prevData:w,prevWidth:y,prevHeight:b,prevLayout:_,prevStackOffset:S,prevMargin:P,prevChildren:O})}if(x!==g.prevDataKey||w!==g.prevData||y!==g.prevWidth||b!==g.prevHeight||_!==g.prevLayout||S!==g.prevStackOffset||!Yr(P,g.prevMargin)){var I=qx(h),M={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},R=D(D({},Nx(g,w,_)),{},{updateId:g.updateId+1}),k=D(D(D({},I),M),R);return D(D(D({},k),p(D({props:h},k),g)),{},{prevDataKey:x,prevData:w,prevWidth:y,prevHeight:b,prevLayout:_,prevStackOffset:S,prevMargin:P,prevChildren:O})}if(!Yf(O,g.prevChildren)){var N,F,K,$,q=nt(O,pn),L=q&&(N=(F=q.props)===null||F===void 0?void 0:F.startIndex)!==null&&N!==void 0?N:j,U=q&&(K=($=q.props)===null||$===void 0?void 0:$.endIndex)!==null&&K!==void 0?K:E,V=L!==j||U!==E,J=!ue(w),ee=J&&!V?g.updateId:g.updateId+1;return D(D({updateId:ee},p(D(D({props:h},g),{},{updateId:ee,dataStartIndex:L,dataEndIndex:U}),g)),{},{prevChildren:O,dataStartIndex:L,dataEndIndex:U})}return null}),ie(m,"renderActiveDot",function(h,g,x){var w;return A.isValidElement(h)?w=A.cloneElement(h,g):re(h)?w=h(g):w=A.createElement(Gi,g),A.createElement(se,{className:"recharts-active-dot",key:x},w)});var v=A.forwardRef(function(g,x){return A.createElement(m,Vr({},g,{ref:x}))});return v.displayName=m.displayName,v},o1=Vi({chartName:"LineChart",GraphicalChild:Cr,axisComponents:[{axisType:"xAxis",AxisComp:Ut},{axisType:"yAxis",AxisComp:It}],formatAxisMap:xh}),eF=Vi({chartName:"BarChart",GraphicalChild:Nr,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Ut},{axisType:"yAxis",AxisComp:It}],formatAxisMap:xh}),tF=Vi({chartName:"PieChart",GraphicalChild:Vt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Zo},{axisType:"radiusAxis",AxisComp:Yo}],formatAxisMap:EM,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),pf,Bx;function rF(){if(Bx)return pf;Bx=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i&&r(t[n],n,t)!==!1;);return t}return pf=e,pf}var hf,Fx;function u1(){if(Fx)return hf;Fx=1;var e=bh(),t=_o(),r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u){var s=a[o];(!(n.call(a,o)&&t(s,u))||u===void 0&&!(o in a))&&e(a,o,u)}return hf=i,hf}var vf,zx;function Yi(){if(zx)return vf;zx=1;var e=u1(),t=bh();function r(n,i,a,o){var u=!a;a||(a={});for(var s=-1,c=i.length;++s<c;){var f=i[s],l=o?o(a[f],n[f],f,a,n):void 0;l===void 0&&(l=n[f]),u?t(a,f,l):e(a,f,l)}return a}return vf=r,vf}var yf,Wx;function nF(){if(Wx)return yf;Wx=1;var e=Yi(),t=$n();function r(n,i){return n&&e(i,t(i),n)}return yf=r,yf}var mf,Ux;function iF(){if(Ux)return mf;Ux=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return mf=e,mf}var gf,Kx;function aF(){if(Kx)return gf;Kx=1;var e=_t(),t=qp(),r=iF(),n=Object.prototype,i=n.hasOwnProperty;function a(o){if(!e(o))return r(o);var u=t(o),s=[];for(var c in o)c=="constructor"&&(u||!i.call(o,c))||s.push(c);return s}return gf=a,gf}var bf,Hx;function Ch(){if(Hx)return bf;Hx=1;var e=dO(),t=aF(),r=In();function n(i){return r(i)?e(i,!0):t(i)}return bf=n,bf}var xf,Gx;function oF(){if(Gx)return xf;Gx=1;var e=Yi(),t=Ch();function r(n,i){return n&&e(i,t(i),n)}return xf=r,xf}var Jn={exports:{}};Jn.exports;var Vx;function uF(){return Vx||(Vx=1,(function(e,t){var r=wt(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a?r.Buffer:void 0,u=o?o.allocUnsafe:void 0;function s(c,f){if(f)return c.slice();var l=c.length,d=u?u(l):new c.constructor(l);return c.copy(d),d}e.exports=s})(Jn,Jn.exports)),Jn.exports}var wf,Yx;function sF(){if(Yx)return wf;Yx=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return wf=e,wf}var Of,Xx;function cF(){if(Xx)return Of;Xx=1;var e=Yi(),t=$p();function r(n,i){return e(n,t(n),i)}return Of=r,Of}var _f,Zx;function s1(){if(Zx)return _f;Zx=1;var e=Ip(),t=mh(),r=$p(),n=lO(),i=Object.getOwnPropertySymbols,a=i?function(o){for(var u=[];o;)e(u,r(o)),o=t(o);return u}:n;return _f=a,_f}var Af,Jx;function lF(){if(Jx)return Af;Jx=1;var e=Yi(),t=s1();function r(n,i){return e(n,t(n),i)}return Af=r,Af}var Sf,Qx;function c1(){if(Qx)return Sf;Qx=1;var e=cO(),t=s1(),r=Ch();function n(i){return e(i,r,t)}return Sf=n,Sf}var Pf,ew;function fF(){if(ew)return Pf;ew=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n){var i=n.length,a=new n.constructor(i);return i&&typeof n[0]=="string"&&t.call(n,"index")&&(a.index=n.index,a.input=n.input),a}return Pf=r,Pf}var Tf,tw;function Ih(){if(tw)return Tf;tw=1;var e=sO();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return Tf=t,Tf}var Ef,rw;function dF(){if(rw)return Ef;rw=1;var e=Ih();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return Ef=t,Ef}var jf,nw;function pF(){if(nw)return jf;nw=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return jf=t,jf}var Cf,iw;function hF(){if(iw)return Cf;iw=1;var e=Tn(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return Cf=n,Cf}var If,aw;function vF(){if(aw)return If;aw=1;var e=Ih();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return If=t,If}var $f,ow;function yF(){if(ow)return $f;ow=1;var e=Ih(),t=dF(),r=pF(),n=hF(),i=vF(),a="[object Boolean]",o="[object Date]",u="[object Map]",s="[object Number]",c="[object RegExp]",f="[object Set]",l="[object String]",d="[object Symbol]",p="[object ArrayBuffer]",m="[object DataView]",v="[object Float32Array]",h="[object Float64Array]",g="[object Int8Array]",x="[object Int16Array]",w="[object Int32Array]",O="[object Uint8Array]",y="[object Uint8ClampedArray]",b="[object Uint16Array]",_="[object Uint32Array]";function S(P,j,E){var T=P.constructor;switch(j){case p:return e(P);case a:case o:return new T(+P);case m:return t(P,E);case v:case h:case g:case x:case w:case O:case y:case b:case _:return i(P,E);case u:return new T;case s:case l:return new T(P);case c:return r(P);case f:return new T;case d:return n(P)}}return $f=S,$f}var Mf,uw;function mF(){if(uw)return Mf;uw=1;var e=_t(),t=Object.create,r=(function(){function n(){}return function(i){if(!e(i))return{};if(t)return t(i);n.prototype=i;var a=new n;return n.prototype=void 0,a}})();return Mf=r,Mf}var Rf,sw;function gF(){if(sw)return Rf;sw=1;var e=mF(),t=mh(),r=qp();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return Rf=n,Rf}var kf,cw;function bF(){if(cw)return kf;cw=1;var e=ko(),t=Ot(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return kf=n,kf}var Df,lw;function xF(){if(lw)return Df;lw=1;var e=bF(),t=Ro(),r=Np(),n=r&&r.isMap,i=n?t(n):e;return Df=i,Df}var Nf,fw;function wF(){if(fw)return Nf;fw=1;var e=ko(),t=Ot(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return Nf=n,Nf}var qf,dw;function OF(){if(dw)return qf;dw=1;var e=wF(),t=Ro(),r=Np(),n=r&&r.isSet,i=n?t(n):e;return qf=i,qf}var Lf,pw;function _F(){if(pw)return Lf;pw=1;var e=jp(),t=rF(),r=u1(),n=nF(),i=oF(),a=uF(),o=sF(),u=cF(),s=lF(),c=hO(),f=c1(),l=ko(),d=fF(),p=yF(),m=gF(),v=Ye(),h=Rp(),g=xF(),x=_t(),w=OF(),O=$n(),y=Ch(),b=1,_=2,S=4,P="[object Arguments]",j="[object Array]",E="[object Boolean]",T="[object Date]",I="[object Error]",M="[object Function]",R="[object GeneratorFunction]",k="[object Map]",N="[object Number]",F="[object Object]",K="[object RegExp]",$="[object Set]",q="[object String]",L="[object Symbol]",U="[object WeakMap]",V="[object ArrayBuffer]",J="[object DataView]",ee="[object Float32Array]",ae="[object Float64Array]",ne="[object Int8Array]",B="[object Int16Array]",G="[object Int32Array]",Z="[object Uint8Array]",C="[object Uint8ClampedArray]",ce="[object Uint16Array]",W="[object Uint32Array]",te={};te[P]=te[j]=te[V]=te[J]=te[E]=te[T]=te[ee]=te[ae]=te[ne]=te[B]=te[G]=te[k]=te[N]=te[F]=te[K]=te[$]=te[q]=te[L]=te[Z]=te[C]=te[ce]=te[W]=!0,te[I]=te[M]=te[U]=!1;function me(oe,Ke,et,qr,ot,De){var Ne,Yt=Ke&b,Xt=Ke&_,Xi=Ke&S;if(et&&(Ne=ot?et(oe,qr,ot,De):et(oe)),Ne!==void 0)return Ne;if(!x(oe))return oe;var Ln=v(oe);if(Ln){if(Ne=d(oe),!Yt)return o(oe,Ne)}else{var Lr=l(oe),Mh=Lr==M||Lr==R;if(h(oe))return a(oe,Yt);if(Lr==F||Lr==P||Mh&&!ot){if(Ne=Xt||Mh?{}:m(oe),!Yt)return Xt?s(oe,i(Ne,oe)):u(oe,n(Ne,oe))}else{if(!te[Lr])return ot?oe:{};Ne=p(oe,Lr,Yt)}}De||(De=new e);var Rh=De.get(oe);if(Rh)return Rh;De.set(oe,Ne),w(oe)?oe.forEach(function(Zt){Ne.add(me(Zt,Ke,et,Zt,oe,De))}):g(oe)&&oe.forEach(function(Zt,dr){Ne.set(dr,me(Zt,Ke,et,dr,oe,De))});var b1=Xi?Xt?f:c:Xt?y:O,kh=Ln?void 0:b1(oe);return t(kh||oe,function(Zt,dr){kh&&(dr=Zt,Zt=oe[dr]),r(Ne,dr,me(Zt,Ke,et,dr,oe,De))}),Ne}return Lf=me,Lf}var Bf,hw;function AF(){if(hw)return Bf;hw=1;var e=jo(),t=Nw();function r(n,i){return i.length<2?n:e(n,t(i,0,-1))}return Bf=r,Bf}var Ff,vw;function SF(){if(vw)return Ff;vw=1;var e=Eo(),t=H_(),r=AF(),n=Fi(),i=Object.prototype,a=i.hasOwnProperty;function o(u,s){s=e(s,u);var c=-1,f=s.length;if(!f)return!0;for(var l=u==null||typeof u!="object"&&typeof u!="function";++c<f;){var d=s[c];if(typeof d=="string"){if(d==="__proto__"&&!a.call(u,"__proto__"))return!1;if(d==="constructor"&&c+1<f&&typeof s[c+1]=="string"&&s[c+1]==="prototype"){if(l&&c===0)continue;return!1}}}var p=r(u,s);return p==null||delete p[n(t(s))]}return Ff=o,Ff}var zf,yw;function PF(){if(yw)return zf;yw=1;var e=sA();function t(r){return e(r)?void 0:r}return zf=t,zf}var Wf,mw;function TF(){if(mw)return Wf;mw=1;var e=Bp();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return Wf=t,Wf}var Uf,gw;function EF(){if(gw)return Uf;gw=1;var e=TF(),t=AO(),r=PO();function n(i){return r(t(i,void 0,e),i+"")}return Uf=n,Uf}var Kf,bw;function jF(){if(bw)return Kf;bw=1;var e=To(),t=_F(),r=SF(),n=Eo(),i=Yi(),a=PF(),o=EF(),u=c1(),s=1,c=2,f=4,l=o(function(d,p){var m={};if(d==null)return m;var v=!1;p=e(p,function(g){return g=n(g,d),v||(v=g.length>1),g}),i(d,u(d),m),v&&(m=t(m,s|c|f,a));for(var h=p.length;h--;)r(m,p[h]);return m});return Kf=l,Kf}var CF=jF();const IF=be(CF);var $F=Vi({chartName:"AreaChart",GraphicalChild:lr,axisComponents:[{axisType:"xAxis",AxisComp:Ut},{axisType:"yAxis",AxisComp:It}],formatAxisMap:xh});function Bi(e){"@babel/helpers - typeof";return Bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bi(e)}function vp(){return vp=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},vp.apply(this,arguments)}function xw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xw(Object(r),!0).forEach(function(n){MF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MF(e,t,r){return t=RF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RF(e){var t=kF(e,"string");return Bi(t)=="symbol"?t:t+""}function kF(e,t){if(Bi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DF(e,t){var r="".concat(t.x||e.x),n=parseInt(r,10),i="".concat(t.y||e.y),a=parseInt(i,10),o="".concat(t?.height||e?.height),u=parseInt(o,10);return Hf(Hf(Hf({},t),cA(e)),{},{height:u,x:n,y:a})}function NF(e){return A.createElement(gh,vp({shapeType:"trapezoid",propTransformer:DF},e))}var yp;function ww(e,t){return FF(e)||BF(e,t)||LF(e,t)||qF()}function qF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
67
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LF(e,t){if(e){if(typeof e=="string")return Ow(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 Ow(e,t)}}function Ow(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 BF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function FF(e){if(Array.isArray(e))return e}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 xo(){return xo=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},xo.apply(this,arguments)}function _w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_w(Object(r),!0).forEach(function(n){Bt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_w(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Aw(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,f1(n.key),n)}}function WF(e,t,r){return t&&Aw(e.prototype,t),r&&Aw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function UF(e,t,r){return t=wo(t),KF(e,l1()?Reflect.construct(t,r||[],wo(e).constructor):t.apply(e,r))}function KF(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 HF(e)}function HF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l1=function(){return!!e})()}function wo(e){return wo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wo(e)}function GF(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&&mp(e,t)}function mp(e,t){return mp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mp(e,t)}function Bt(e,t,r){return t=f1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f1(e){var t=VF(e,"string");return Pn(t)=="symbol"?t:t+""}function VF(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 fr=(function(e){function t(){var r;zF(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=UF(this,t,[].concat(i)),Bt(r,"state",{isAnimationFinished:!1}),Bt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),re(o)&&o()}),Bt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),re(o)&&o()}),r}return GF(t,e),WF(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"renderTrapezoidsStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.activeShape;return n.map(function(s,c){var f=i.isActiveIndex(c)?u:o,l=Me(Me({},s),{},{isActive:i.isActiveIndex(c),stroke:s.stroke});return A.createElement(se,xo({className:"recharts-funnel-trapezoid"},ar(i.props,s,c),{key:"trapezoid-".concat(s?.x,"-").concat(s?.y,"-").concat(s?.name,"-").concat(s?.value),role:"img"}),A.createElement(NF,xo({option:f},l)))})}},{key:"renderTrapezoidsWithAnimation",value:function(){var n=this,i=this.props,a=i.trapezoids,o=i.isAnimationActive,u=i.animationBegin,s=i.animationDuration,c=i.animationEasing,f=i.animationId,l=this.state.prevTrapezoids;return A.createElement(ht,{begin:u,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"funnel-".concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(d){var p=d.t,m=a.map(function(v,h){var g=l&&l[h];if(g){var x=ge(g.x,v.x),w=ge(g.y,v.y),O=ge(g.upperWidth,v.upperWidth),y=ge(g.lowerWidth,v.lowerWidth),b=ge(g.height,v.height);return Me(Me({},v),{},{x:x(p),y:w(p),upperWidth:O(p),lowerWidth:y(p),height:b(p)})}var _=ge(v.x+v.upperWidth/2,v.x),S=ge(v.y+v.height/2,v.y),P=ge(0,v.upperWidth),j=ge(0,v.lowerWidth),E=ge(0,v.height);return Me(Me({},v),{},{x:_(p),y:S(p),upperWidth:P(p),lowerWidth:j(p),height:E(p)})});return A.createElement(se,null,n.renderTrapezoidsStatically(m))})}},{key:"renderTrapezoids",value:function(){var n=this.props,i=n.trapezoids,a=n.isAnimationActive,o=this.state.prevTrapezoids;return a&&i&&i.length&&(!o||!or(o,i))?this.renderTrapezoidsWithAnimation():this.renderTrapezoidsStatically(i)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.trapezoids,o=n.className,u=n.isAnimationActive,s=this.state.isAnimationFinished;if(i||!a||!a.length)return null;var c=Q.clsx("recharts-trapezoids",o);return A.createElement(se,{className:c},this.renderTrapezoids(),(!u||s)&&dt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curTrapezoids:n.trapezoids,prevTrapezoids:i.curTrapezoids}:n.trapezoids!==i.curTrapezoids?{curTrapezoids:n.trapezoids}:null}}])})(A.PureComponent);yp=fr;Bt(fr,"displayName","Funnel");Bt(fr,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!Ht.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"});Bt(fr,"getRealFunnelData",function(e){var t=e.props,r=t.data,n=t.children,i=X(e.props,!1),a=Qe(n,Rn);return r&&r.length?r.map(function(o,u){return Me(Me(Me({payload:o},i),o),a&&a[u]&&a[u].props)}):a&&a.length?a.map(function(o){return Me(Me({},i),o.props)}):[]});Bt(fr,"getRealWidthHeight",function(e,t){var r=e.props.width,n=t.width,i=t.height,a=t.left,o=t.right,u=t.top,s=t.bottom,c=i,f=n;return kw(r)?f=r:ir(r)&&(f=f*parseFloat(r)/100),{realWidth:f-a-o-50,realHeight:c-s-u,offsetX:(n-f)/2,offsetY:(i-c)/2}});Bt(fr,"getComposedData",function(e){var t=e.item,r=e.offset,n=yp.getRealFunnelData(t),i=t.props,a=i.dataKey,o=i.nameKey,u=i.tooltipType,s=i.lastShapeType,c=i.reversed,f=r.left,l=r.top,d=yp.getRealWidthHeight(t,r),p=d.realHeight,m=d.realWidth,v=d.offsetX,h=d.offsetY,g=Math.max.apply(null,n.map(function(b){return Pe(b,a,0)})),x=n.length,w=p/x,O={x:r.left,y:r.top,width:r.width,height:r.height},y=n.map(function(b,_){var S=Pe(b,a,0),P=Pe(b,o,_),j=S,E;if(_!==x-1){if(E=Pe(n[_+1],a,0),E instanceof Array){var T=E,I=ww(T,1);E=I[0]}}else if(S instanceof Array&&S.length===2){var M=ww(S,2);j=M[0],E=M[1]}else s==="rectangle"?E=j:E=0;var R=(g-j)*m/(2*g)+l+25+v,k=w*_+f+h,N=j/g*m,F=E/g*m,K=[{name:P,value:j,payload:b,dataKey:a,type:u}],$={x:R+N/2,y:k+w/2};return Me(Me({x:R,y:k,width:Math.max(N,F),upperWidth:N,lowerWidth:F,height:w,name:P,val:j,tooltipPayload:K,tooltipPosition:$},IF(b,"width")),{},{payload:b,parentViewBox:O,labelViewBox:{x:R+(N-F)/4,y:k,width:Math.abs(N-F)/2+Math.min(N,F),height:w}})});return c&&(y=y.map(function(b,_){var S=b.y-_*w+(x-1-_)*w;return Me(Me({},b),{},{upperWidth:b.lowerWidth,lowerWidth:b.upperWidth,x:b.x-(b.lowerWidth-b.upperWidth)/2,y:b.y-_*w+(x-1-_)*w,tooltipPosition:Me(Me({},b.tooltipPosition),{},{y:S+w/2}),labelViewBox:Me(Me({},b.labelViewBox),{},{y:S})})})),{trapezoids:y,data:n}});var YF=Vi({chartName:"FunnelChart",GraphicalChild:fr,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const d1=Ue.forwardRef(({className:e,title:t,description:r,height:n=350,children:i,...a},o)=>{const u=H.jsx(Mr,{width:"100%",height:n,children:i});return t||r?H.jsxs(ye.Card,{ref:o,className:Q.cn("",e),...a,children:[H.jsxs(ye.CardHeader,{children:[t&&H.jsx(ye.CardTitle,{children:t}),r&&H.jsx(ye.CardDescription,{children:r})]}),H.jsx(ye.CardContent,{children:u})]}):H.jsx("div",{ref:o,className:Q.cn("",e),...a,children:u})});d1.displayName="ChartContainer";const ha=["hsl(var(--chart-1))","hsl(var(--chart-2))","hsl(var(--chart-3))","hsl(var(--chart-4))","hsl(var(--chart-5))"],p1=Ue.forwardRef(({className:e,data:t,areas:r,xAxisKey:n,title:i,description:a,height:o=350,showGrid:u=!0,showLegend:s=!0,showTooltip:c=!0,stacked:f=!1,...l},d)=>{const p=H.jsx(Mr,{width:"100%",height:o,children:H.jsxs($F,{data:t,margin:{top:10,right:30,left:0,bottom:0},children:[u&&H.jsx(au,{strokeDasharray:"3 3",className:"stroke-muted"}),H.jsx(Ut,{dataKey:n,tick:{fontSize:12},tickLine:!1,axisLine:!1,className:"text-muted-foreground"}),H.jsx(It,{tick:{fontSize:12},tickLine:!1,axisLine:!1,className:"text-muted-foreground"}),c&&H.jsx(Xe,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"8px"}}),s&&H.jsx(Tt,{}),r.map((m,v)=>H.jsx(lr,{type:"monotone",dataKey:m.dataKey,name:m.name||m.dataKey,stroke:m.color||ha[v%ha.length],fill:m.color||ha[v%ha.length],fillOpacity:m.fillOpacity??.3,stackId:f?"stack":m.stackId},m.dataKey))]})});return i||a?H.jsxs(ye.Card,{ref:d,className:Q.cn("",e),...l,children:[H.jsxs(ye.CardHeader,{children:[i&&H.jsx(ye.CardTitle,{children:i}),a&&H.jsx(ye.CardDescription,{children:a})]}),H.jsx(ye.CardContent,{children:p})]}):H.jsx("div",{ref:d,className:Q.cn("",e),...l,children:p})});p1.displayName="AreaChart";const Sw=["hsl(var(--chart-1))","hsl(var(--chart-2))","hsl(var(--chart-3))","hsl(var(--chart-4))","hsl(var(--chart-5))"],h1=Ue.forwardRef(({className:e,data:t,bars:r,xAxisKey:n,title:i,description:a,height:o=350,showGrid:u=!0,showLegend:s=!0,showTooltip:c=!0,stacked:f=!1,layout:l="horizontal",...d},p)=>{const m=H.jsx(Mr,{width:"100%",height:o,children:H.jsxs(eF,{data:t,layout:l,margin:{top:10,right:30,left:0,bottom:0},children:[u&&H.jsx(au,{strokeDasharray:"3 3",className:"stroke-muted"}),l==="horizontal"?H.jsxs(H.Fragment,{children:[H.jsx(Ut,{dataKey:n,tick:{fontSize:12},tickLine:!1,axisLine:!1,className:"text-muted-foreground"}),H.jsx(It,{tick:{fontSize:12},tickLine:!1,axisLine:!1})]}):H.jsxs(H.Fragment,{children:[H.jsx(Ut,{type:"number",tick:{fontSize:12},tickLine:!1,axisLine:!1}),H.jsx(It,{dataKey:n,type:"category",tick:{fontSize:12},tickLine:!1,axisLine:!1})]}),c&&H.jsx(Xe,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"8px"}}),s&&H.jsx(Tt,{}),r.map((v,h)=>H.jsx(Nr,{dataKey:v.dataKey,name:v.name||v.dataKey,fill:v.color||Sw[h%Sw.length],stackId:f?"stack":v.stackId,radius:v.radius??[4,4,0,0]},v.dataKey))]})});return i||a?H.jsxs(ye.Card,{ref:p,className:Q.cn("",e),...d,children:[H.jsxs(ye.CardHeader,{children:[i&&H.jsx(ye.CardTitle,{children:i}),a&&H.jsx(ye.CardDescription,{children:a})]}),H.jsx(ye.CardContent,{children:m})]}):H.jsx("div",{ref:p,className:Q.cn("",e),...d,children:m})});h1.displayName="BarChart";const Pw=["hsl(var(--chart-1))","hsl(var(--chart-2))","hsl(var(--chart-3))","hsl(var(--chart-4))","hsl(var(--chart-5))"],v1=Ue.forwardRef(({className:e,data:t,lines:r,xAxisKey:n,title:i,description:a,height:o=350,showGrid:u=!0,showLegend:s=!0,showTooltip:c=!0,...f},l)=>{const d=H.jsx(Mr,{width:"100%",height:o,children:H.jsxs(o1,{data:t,margin:{top:10,right:30,left:0,bottom:0},children:[u&&H.jsx(au,{strokeDasharray:"3 3",className:"stroke-muted"}),H.jsx(Ut,{dataKey:n,tick:{fontSize:12},tickLine:!1,axisLine:!1,className:"text-muted-foreground"}),H.jsx(It,{tick:{fontSize:12},tickLine:!1,axisLine:!1,className:"text-muted-foreground"}),c&&H.jsx(Xe,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"8px"}}),s&&H.jsx(Tt,{}),r.map((p,m)=>H.jsx(Cr,{type:p.type||"monotone",dataKey:p.dataKey,name:p.name||p.dataKey,stroke:p.color||Pw[m%Pw.length],strokeWidth:p.strokeWidth??2,dot:p.dot??!1,activeDot:{r:6}},p.dataKey))]})});return i||a?H.jsxs(ye.Card,{ref:l,className:Q.cn("",e),...f,children:[H.jsxs(ye.CardHeader,{children:[i&&H.jsx(ye.CardTitle,{children:i}),a&&H.jsx(ye.CardDescription,{children:a})]}),H.jsx(ye.CardContent,{children:d})]}):H.jsx("div",{ref:l,className:Q.cn("",e),...f,children:d})});v1.displayName="LineChart";const Tw=["hsl(var(--chart-1))","hsl(var(--chart-2))","hsl(var(--chart-3))","hsl(var(--chart-4))","hsl(var(--chart-5))"],$h=Ue.forwardRef(({className:e,data:t,title:r,description:n,height:i=350,showLegend:a=!0,showTooltip:o=!0,innerRadius:u=0,outerRadius:s=80,showLabels:c=!1,...f},l)=>{const d=H.jsx(Mr,{width:"100%",height:i,children:H.jsxs(tF,{children:[H.jsx(Vt,{data:t,cx:"50%",cy:"50%",innerRadius:u,outerRadius:s,paddingAngle:2,dataKey:"value",label:c?({name:p,percent:m})=>`${p} ${(m*100).toFixed(0)}%`:!1,children:t.map((p,m)=>H.jsx(Rn,{fill:p.color||Tw[m%Tw.length]},`cell-${m}`))}),o&&H.jsx(Xe,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"8px"}}),a&&H.jsx(Tt,{})]})});return r||n?H.jsxs(ye.Card,{ref:l,className:Q.cn("",e),...f,children:[H.jsxs(ye.CardHeader,{children:[r&&H.jsx(ye.CardTitle,{children:r}),n&&H.jsx(ye.CardDescription,{children:n})]}),H.jsx(ye.CardContent,{children:d})]}):H.jsx("div",{ref:l,className:Q.cn("",e),...f,children:d})});$h.displayName="PieChart";const y1=Ue.forwardRef(({outerRadius:e=80,...t},r)=>H.jsx($h,{ref:r,innerRadius:e*.6,outerRadius:e,...t}));y1.displayName="DonutChart";const Ew=["hsl(var(--chart-1))","hsl(var(--chart-2))","hsl(var(--chart-3))","hsl(var(--chart-4))","hsl(var(--chart-5))"],m1=Ue.forwardRef(({className:e,data:t,title:r,description:n,height:i=350,showTooltip:a=!0,showLabels:o=!0,...u},s)=>{const c=t.map((l,d)=>({...l,fill:l.fill||Ew[d%Ew.length]})),f=H.jsx(Mr,{width:"100%",height:i,children:H.jsxs(YF,{children:[H.jsxs(fr,{dataKey:"value",data:c,isAnimationActive:!0,children:[c.map((l,d)=>H.jsx(Rn,{fill:l.fill},`cell-${d}`)),o&&H.jsx(dt,{position:"right",fill:"#000",stroke:"none",dataKey:"name"})]}),a&&H.jsx(Xe,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"8px"}})]})});return r||n?H.jsxs(ye.Card,{ref:s,className:Q.cn("",e),...u,children:[H.jsxs(ye.CardHeader,{children:[r&&H.jsx(ye.CardTitle,{children:r}),n&&H.jsx(ye.CardDescription,{children:n})]}),H.jsx(ye.CardContent,{children:f})]}):H.jsx("div",{ref:s,className:Q.cn("",e),...u,children:f})});m1.displayName="FunnelChart";const g1=Ue.forwardRef(({className:e,data:t,color:r="hsl(var(--primary))",height:n=40,width:i=100,showReference:a=!1,referenceValue:o,...u},s)=>{const c=t.map((p,m)=>({value:p,index:m})),f=Math.min(...t),l=Math.max(...t),d=o??t[0];return H.jsx("div",{ref:s,className:Q.cn("inline-block",e),style:{width:i,height:n},...u,children:H.jsx(Mr,{width:"100%",height:"100%",children:H.jsxs(o1,{data:c,children:[H.jsx(It,{domain:[f*.9,l*1.1],hide:!0}),H.jsx(Cr,{type:"monotone",dataKey:"value",stroke:r,strokeWidth:2,dot:!1,isAnimationActive:!1}),a&&H.jsx(Cr,{type:"monotone",dataKey:()=>d,stroke:"hsl(var(--muted-foreground))",strokeWidth:1,strokeDasharray:"3 3",dot:!1,isAnimationActive:!1})]})})})});g1.displayName="SparklineChart";exports.AreaChart=p1;exports.BarChart=h1;exports.ChartContainer=d1;exports.DonutChart=y1;exports.FunnelChart=m1;exports.LineChart=v1;exports.PieChart=$h;exports.SparklineChart=g1;
|
|
68
|
+
//# sourceMappingURL=sparkline-chart-ca3uTzVK.cjs.map
|