@prefecthq/prefab-ui 0.19.2 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/app/{_baseUniq-BHlgyaoi.js → _baseUniq-BaR7L3VQ.js} +1 -1
  2. package/dist/app/app-DCQ8NMoB.js +61 -0
  3. package/dist/app/{architectureDiagram-2XIMDMQ5-D2SrEBM2.js → architectureDiagram-2XIMDMQ5-C182oGV6.js} +1 -1
  4. package/dist/app/{blockDiagram-WCTKOSBZ-B8Z_Ltro.js → blockDiagram-WCTKOSBZ-Onxp8QEy.js} +1 -1
  5. package/dist/app/{bundle-CW9DqwGK.js → bundle-DNvyPu0y.js} +179 -47
  6. package/dist/app/{c4Diagram-IC4MRINW-Cg3ITwB8.js → c4Diagram-IC4MRINW-CWWNrFhw.js} +1 -1
  7. package/dist/app/channel-DCCBGJ5F.js +1 -0
  8. package/dist/app/{charts-vQRKX19o.js → charts-mdsKtCbG.js} +41 -41
  9. package/dist/app/{chunk-4BX2VUAB-B1xMZLtX.js → chunk-4BX2VUAB-DyGULS9O.js} +1 -1
  10. package/dist/app/{chunk-55IACEB6-Dybri14v.js → chunk-55IACEB6-BkZobGVm.js} +1 -1
  11. package/dist/app/{chunk-FMBD7UC4-wpB0w2u-.js → chunk-FMBD7UC4-wZvI77Sa.js} +1 -1
  12. package/dist/app/{chunk-JSJVCQXG-DUdvv_KV.js → chunk-JSJVCQXG-jdtMiwMf.js} +1 -1
  13. package/dist/app/{chunk-KX2RTZJC-B2GIR0DF.js → chunk-KX2RTZJC-a_PbWEu8.js} +1 -1
  14. package/dist/app/{chunk-NQ4KR5QH-CNDsKiDi.js → chunk-NQ4KR5QH-DQxC4Zpe.js} +1 -1
  15. package/dist/app/{chunk-QZHKN3VN-BrAOGwbS.js → chunk-QZHKN3VN-DIxYjo1b.js} +1 -1
  16. package/dist/app/{chunk-WL4C6EOR-hFbvGfN_.js → chunk-WL4C6EOR-DwzPj8K4.js} +1 -1
  17. package/dist/app/classDiagram-VBA2DB6C-BYnmQqtm.js +1 -0
  18. package/dist/app/classDiagram-v2-RAHNMMFH-BYnmQqtm.js +1 -0
  19. package/dist/app/clone-C46Geeg6.js +1 -0
  20. package/dist/app/{cose-bilkent-S5V4N54A-BHQfPpAj.js → cose-bilkent-S5V4N54A-Vodg29r5.js} +1 -1
  21. package/dist/app/{dagre-KLK3FWXG-BlILasVe.js → dagre-KLK3FWXG-ByIsUIEW.js} +1 -1
  22. package/dist/app/{diagram-E7M64L7V-D5-LYl_l.js → diagram-E7M64L7V-B90RHT8C.js} +1 -1
  23. package/dist/app/{diagram-IFDJBPK2-DZUFN8iH.js → diagram-IFDJBPK2-DCC_ANQ3.js} +1 -1
  24. package/dist/app/{diagram-P4PSJMXO-n7A_7fnQ.js → diagram-P4PSJMXO-czAOmsot.js} +1 -1
  25. package/dist/app/{erDiagram-INFDFZHY-Dxa-maDR.js → erDiagram-INFDFZHY-CV_ByKOr.js} +1 -1
  26. package/dist/app/{flowDiagram-PKNHOUZH-D0qT3gXs.js → flowDiagram-PKNHOUZH-JyCi4Jaw.js} +1 -1
  27. package/dist/app/{ganttDiagram-A5KZAMGK-BcKD86Gg.js → ganttDiagram-A5KZAMGK-SvAqxlBT.js} +1 -1
  28. package/dist/app/{gitGraphDiagram-K3NZZRJ6-BSy3d6QY.js → gitGraphDiagram-K3NZZRJ6-CKR91HOu.js} +1 -1
  29. package/dist/app/{graph-BdAWYzJh.js → graph-CYNeNgKt.js} +1 -1
  30. package/dist/app/{icons-barrel-BsWue30w.js → icons-barrel-sH7tI5Au.js} +90 -90
  31. package/dist/app/{infoDiagram-LFFYTUFH-B7DQ_FAU.js → infoDiagram-LFFYTUFH-CpWLlyOJ.js} +1 -1
  32. package/dist/app/{ishikawaDiagram-PHBUUO56-D4-I6S8S.js → ishikawaDiagram-PHBUUO56-CvPLoIeY.js} +1 -1
  33. package/dist/app/{journeyDiagram-4ABVD52K-CdHqMpXH.js → journeyDiagram-4ABVD52K-DM99Fbm6.js} +1 -1
  34. package/dist/app/{kanban-definition-K7BYSVSG-DcmfHWcA.js → kanban-definition-K7BYSVSG-BlFWG4G2.js} +1 -1
  35. package/dist/app/{layout-Bes3UwVt.js → layout-DKZyRq64.js} +1 -1
  36. package/dist/app/{mermaid-DPg_vyar.js → mermaid-D36PoJAH.js} +2 -2
  37. package/dist/app/{mermaid.core-bNRKpJH0.js → mermaid.core-DJBXpCSw.js} +3 -3
  38. package/dist/app/{min-C-AlOD15.js → min-BnvAT8JL.js} +1 -1
  39. package/dist/app/{mindmap-definition-YRQLILUH-CDqlVVzc.js → mindmap-definition-YRQLILUH-BOSCxM0z.js} +1 -1
  40. package/dist/app/{pieDiagram-SKSYHLDU-DROb_p9B.js → pieDiagram-SKSYHLDU-Ci9XYcut.js} +1 -1
  41. package/dist/app/{quadrantDiagram-337W2JSQ-DYvI8_wt.js → quadrantDiagram-337W2JSQ-DvcJIYcF.js} +1 -1
  42. package/dist/app/renderer.css +1 -1
  43. package/dist/app/renderer.js +89 -79
  44. package/dist/app/{requirementDiagram-Z7DCOOCP-wEmp-0FP.js → requirementDiagram-Z7DCOOCP-wUb6_8T7.js} +1 -1
  45. package/dist/app/{sankeyDiagram-WA2Y5GQK-BnXRy6uk.js → sankeyDiagram-WA2Y5GQK-D2YrEWIB.js} +1 -1
  46. package/dist/app/{sequenceDiagram-2WXFIKYE-Dwo_UUGe.js → sequenceDiagram-2WXFIKYE-8zIp-2GX.js} +1 -1
  47. package/dist/app/{stateDiagram-RAJIS63D-DLl70nqM.js → stateDiagram-RAJIS63D-WFTiTf20.js} +1 -1
  48. package/dist/app/{stateDiagram-v2-FVOUBMTO-CdRDRbnc.js → stateDiagram-v2-FVOUBMTO-C6_3iem9.js} +1 -1
  49. package/dist/app/{timeline-definition-YZTLITO2-hBaNPeZQ.js → timeline-definition-YZTLITO2-Fsj9mulm.js} +1 -1
  50. package/dist/app/{treemap-KZPCXAKY-Ch6yFIsU.js → treemap-KZPCXAKY-CAkU2XYd.js} +1 -1
  51. package/dist/app/{vennDiagram-LZ73GAT5-Bl4dCPug.js → vennDiagram-LZ73GAT5-BcurNkbG.js} +1 -1
  52. package/dist/app/{xychartDiagram-JWTSCODW-QY1cKLWE.js → xychartDiagram-JWTSCODW-DPifccGl.js} +1 -1
  53. package/package.json +1 -1
  54. package/dist/app/app-DWWmwIek.js +0 -72
  55. package/dist/app/channel-BhddhB3X.js +0 -1
  56. package/dist/app/classDiagram-VBA2DB6C-D6qE_fms.js +0 -1
  57. package/dist/app/classDiagram-v2-RAHNMMFH-D6qE_fms.js +0 -1
  58. package/dist/app/clone-CwW_8LM5.js +0 -1
@@ -1,4 +1,4 @@
1
- import{v as Si,n as re,r as M,w as V,h as P,j as D,c as Fe}from"./renderer.js";import{w as Qg,n as eb,b as pe,M as Ef,S as v0,T as h0,l as tb,t as $a,d as Ze,p as il,s as Ni,a as rb,F as y0,G as m0,H as g0,I as b0,J as x0,K as O0,L as A0,N as w0,O as P0,c as S0,P as _0,Q as j0}from"./string-Bl2zznvy.js";import{b as al,p as Pn}from"./band-CquvqAHh.js";import{d as Li,n as E0,e as T0,i as Tf,f as ol,g as rr,h as $f,a as If,j as Op,k as ft,c as $0,m as Ia,o as nb,l as ul,p as I0}from"./linear-DSkd6W2C.js";import{i as Et,a as yt}from"./init-Dmth1JHB.js";import{m as Ap,a as wp,p as C0,q as R0,u as k0,s as M0,r as D0,v as N0,w as L0,x as q0,y as B0,z as F0,A as z0,B as K0,t as W0}from"./time-DXBSQWow.js";import{f as G0,b as H0}from"./defaultLocale-DX6XiGOO.js";import{i as U0,o as V0}from"./ordinal-DILIJJjt.js";var oo,Pp;function Te(){if(Pp)return oo;Pp=1;var t=Array.isArray;return oo=t,oo}var uo,Sp;function ib(){if(Sp)return uo;Sp=1;var t=typeof Si=="object"&&Si&&Si.Object===Object&&Si;return uo=t,uo}var co,_p;function ot(){if(_p)return co;_p=1;var t=ib(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return co=r,co}var so,jp;function di(){if(jp)return so;jp=1;var t=ot(),e=t.Symbol;return so=e,so}var lo,Ep;function X0(){if(Ep)return lo;Ep=1;var t=di(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,i=t?t.toStringTag:void 0;function a(o){var u=r.call(o,i),c=o[i];try{o[i]=void 0;var s=!0}catch{}var f=n.call(o);return s&&(u?o[i]=c:delete o[i]),f}return lo=a,lo}var fo,Tp;function Y0(){if(Tp)return fo;Tp=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return fo=r,fo}var po,$p;function mt(){if($p)return po;$p=1;var t=di(),e=X0(),r=Y0(),n="[object Null]",i="[object Undefined]",a=t?t.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?e(u):r(u)}return po=o,po}var vo,Ip;function gt(){if(Ip)return vo;Ip=1;function t(e){return e!=null&&typeof e=="object"}return vo=t,vo}var ho,Cp;function Jr(){if(Cp)return ho;Cp=1;var t=mt(),e=gt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||e(i)&&t(i)==r}return ho=n,ho}var yo,Rp;function Cf(){if(Rp)return yo;Rp=1;var t=Te(),e=Jr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(t(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||e(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return yo=i,yo}var mo,kp;function Tt(){if(kp)return mo;kp=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return mo=t,mo}var go,Mp;function Rf(){if(Mp)return go;Mp=1;var t=mt(),e=Tt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!e(u))return!1;var c=t(u);return c==n||c==i||c==r||c==a}return go=o,go}var bo,Dp;function Z0(){if(Dp)return bo;Dp=1;var t=ot(),e=t["__core-js_shared__"];return bo=e,bo}var xo,Np;function J0(){if(Np)return xo;Np=1;var t=Z0(),e=(function(){var n=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!e&&e in n}return xo=r,xo}var Oo,Lp;function ab(){if(Lp)return Oo;Lp=1;var t=Function.prototype,e=t.toString;function r(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Oo=r,Oo}var Ao,qp;function Q0(){if(qp)return Ao;qp=1;var t=Rf(),e=J0(),r=Tt(),n=ab(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,c=o.toString,s=u.hasOwnProperty,f=RegExp("^"+c.call(s).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(p){if(!r(p)||e(p))return!1;var d=t(p)?f:a;return d.test(n(p))}return Ao=l,Ao}var wo,Bp;function eA(){if(Bp)return wo;Bp=1;function t(e,r){return e==null?void 0:e[r]}return wo=t,wo}var Po,Fp;function nr(){if(Fp)return Po;Fp=1;var t=Q0(),e=eA();function r(n,i){var a=e(n,i);return t(a)?a:void 0}return Po=r,Po}var So,zp;function Ca(){if(zp)return So;zp=1;var t=nr(),e=t(Object,"create");return So=e,So}var _o,Kp;function tA(){if(Kp)return _o;Kp=1;var t=Ca();function e(){this.__data__=t?t(null):{},this.size=0}return _o=e,_o}var jo,Wp;function rA(){if(Wp)return jo;Wp=1;function t(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}return jo=t,jo}var Eo,Gp;function nA(){if(Gp)return Eo;Gp=1;var t=Ca(),e="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(t){var u=o[a];return u===e?void 0:u}return n.call(o,a)?o[a]:void 0}return Eo=i,Eo}var To,Hp;function iA(){if(Hp)return To;Hp=1;var t=Ca(),e=Object.prototype,r=e.hasOwnProperty;function n(i){var a=this.__data__;return t?a[i]!==void 0:r.call(a,i)}return To=n,To}var $o,Up;function aA(){if(Up)return $o;Up=1;var t=Ca(),e="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=t&&i===void 0?e:i,this}return $o=r,$o}var Io,Vp;function oA(){if(Vp)return Io;Vp=1;var t=tA(),e=rA(),r=nA(),n=iA(),i=aA();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=t,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Io=a,Io}var Co,Xp;function uA(){if(Xp)return Co;Xp=1;function t(){this.__data__=[],this.size=0}return Co=t,Co}var Ro,Yp;function kf(){if(Yp)return Ro;Yp=1;function t(e,r){return e===r||e!==e&&r!==r}return Ro=t,Ro}var ko,Zp;function Ra(){if(Zp)return ko;Zp=1;var t=kf();function e(r,n){for(var i=r.length;i--;)if(t(r[i][0],n))return i;return-1}return ko=e,ko}var Mo,Jp;function cA(){if(Jp)return Mo;Jp=1;var t=Ra(),e=Array.prototype,r=e.splice;function n(i){var a=this.__data__,o=t(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 Mo=n,Mo}var Do,Qp;function sA(){if(Qp)return Do;Qp=1;var t=Ra();function e(r){var n=this.__data__,i=t(n,r);return i<0?void 0:n[i][1]}return Do=e,Do}var No,ed;function lA(){if(ed)return No;ed=1;var t=Ra();function e(r){return t(this.__data__,r)>-1}return No=e,No}var Lo,td;function fA(){if(td)return Lo;td=1;var t=Ra();function e(r,n){var i=this.__data__,a=t(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Lo=e,Lo}var qo,rd;function ka(){if(rd)return qo;rd=1;var t=uA(),e=cA(),r=sA(),n=lA(),i=fA();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=t,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,qo=a,qo}var Bo,nd;function Mf(){if(nd)return Bo;nd=1;var t=nr(),e=ot(),r=t(e,"Map");return Bo=r,Bo}var Fo,id;function pA(){if(id)return Fo;id=1;var t=oA(),e=ka(),r=Mf();function n(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}return Fo=n,Fo}var zo,ad;function dA(){if(ad)return zo;ad=1;function t(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}return zo=t,zo}var Ko,od;function Ma(){if(od)return Ko;od=1;var t=dA();function e(r,n){var i=r.__data__;return t(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Ko=e,Ko}var Wo,ud;function vA(){if(ud)return Wo;ud=1;var t=Ma();function e(r){var n=t(this,r).delete(r);return this.size-=n?1:0,n}return Wo=e,Wo}var Go,cd;function hA(){if(cd)return Go;cd=1;var t=Ma();function e(r){return t(this,r).get(r)}return Go=e,Go}var Ho,sd;function yA(){if(sd)return Ho;sd=1;var t=Ma();function e(r){return t(this,r).has(r)}return Ho=e,Ho}var Uo,ld;function mA(){if(ld)return Uo;ld=1;var t=Ma();function e(r,n){var i=t(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Uo=e,Uo}var Vo,fd;function Df(){if(fd)return Vo;fd=1;var t=pA(),e=vA(),r=hA(),n=yA(),i=mA();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=t,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Vo=a,Vo}var Xo,pd;function ob(){if(pd)return Xo;pd=1;var t=Df(),e="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(e);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],c=a.cache;if(c.has(u))return c.get(u);var s=n.apply(this,o);return a.cache=c.set(u,s)||c,s};return a.cache=new(r.Cache||t),a}return r.Cache=t,Xo=r,Xo}var Yo,dd;function gA(){if(dd)return Yo;dd=1;var t=ob(),e=500;function r(n){var i=t(n,function(o){return a.size===e&&a.clear(),o}),a=i.cache;return i}return Yo=r,Yo}var Zo,vd;function bA(){if(vd)return Zo;vd=1;var t=gA(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(e,function(o,u,c,s){a.push(c?s.replace(r,"$1"):u||o)}),a});return Zo=n,Zo}var Jo,hd;function Nf(){if(hd)return Jo;hd=1;function t(e,r){for(var n=-1,i=e==null?0:e.length,a=Array(i);++n<i;)a[n]=r(e[n],n,e);return a}return Jo=t,Jo}var Qo,yd;function xA(){if(yd)return Qo;yd=1;var t=di(),e=Nf(),r=Te(),n=Jr(),i=t?t.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return e(u,o)+"";if(n(u))return a?a.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return Qo=o,Qo}var eu,md;function ub(){if(md)return eu;md=1;var t=xA();function e(r){return r==null?"":t(r)}return eu=e,eu}var tu,gd;function cb(){if(gd)return tu;gd=1;var t=Te(),e=Cf(),r=bA(),n=ub();function i(a,o){return t(a)?a:e(a,o)?[a]:r(n(a))}return tu=i,tu}var ru,bd;function Da(){if(bd)return ru;bd=1;var t=Jr();function e(r){if(typeof r=="string"||t(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return ru=e,ru}var nu,xd;function Lf(){if(xd)return nu;xd=1;var t=cb(),e=Da();function r(n,i){i=t(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[e(i[a++])];return a&&a==o?n:void 0}return nu=r,nu}var iu,Od;function sb(){if(Od)return iu;Od=1;var t=Lf();function e(r,n,i){var a=r==null?void 0:t(r,n);return a===void 0?i:a}return iu=e,iu}var OA=sb();const ke=re(OA);var au,Ad;function AA(){if(Ad)return au;Ad=1;function t(e){return e==null}return au=t,au}var wA=AA();const H=re(wA);var ou,wd;function PA(){if(wd)return ou;wd=1;var t=mt(),e=Te(),r=gt(),n="[object String]";function i(a){return typeof a=="string"||!e(a)&&r(a)&&t(a)==n}return ou=i,ou}var SA=PA();const Zt=re(SA);var _A=Rf();const W=re(_A);var jA=Tt();const Qr=re(jA);var uu={exports:{}},Q={};/**
1
+ import{v as _i,n as re,r as M,w as V,h as P,j as D,c as Fe,x as v0}from"./renderer.js";import{w as Qg,n as eb,b as pe,M as Tf,S as h0,T as y0,l as tb,t as Ia,d as Ze,p as al,s as Li,a as rb,F as m0,G as g0,H as b0,I as x0,J as O0,K as A0,L as w0,N as P0,O as S0,c as _0,P as j0,Q as E0}from"./string-Bl2zznvy.js";import{b as ol,p as Pn}from"./band-CquvqAHh.js";import{d as qi,n as T0,e as $0,i as $f,f as ul,g as rr,h as If,a as Cf,j as Op,k as ft,c as I0,m as Ca,o as nb,l as cl,p as C0}from"./linear-DSkd6W2C.js";import{i as Et,a as yt}from"./init-Dmth1JHB.js";import{m as Ap,a as wp,p as R0,q as k0,u as M0,s as D0,r as N0,v as L0,w as q0,x as B0,y as F0,z as z0,A as K0,B as W0,t as G0}from"./time-DXBSQWow.js";import{f as H0,b as U0}from"./defaultLocale-DX6XiGOO.js";import{i as V0,o as X0}from"./ordinal-DILIJJjt.js";var uo,Pp;function Te(){if(Pp)return uo;Pp=1;var t=Array.isArray;return uo=t,uo}var co,Sp;function ib(){if(Sp)return co;Sp=1;var t=typeof _i=="object"&&_i&&_i.Object===Object&&_i;return co=t,co}var so,_p;function ot(){if(_p)return so;_p=1;var t=ib(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return so=r,so}var lo,jp;function di(){if(jp)return lo;jp=1;var t=ot(),e=t.Symbol;return lo=e,lo}var fo,Ep;function Y0(){if(Ep)return fo;Ep=1;var t=di(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,i=t?t.toStringTag:void 0;function a(o){var u=r.call(o,i),c=o[i];try{o[i]=void 0;var s=!0}catch{}var f=n.call(o);return s&&(u?o[i]=c:delete o[i]),f}return fo=a,fo}var po,Tp;function Z0(){if(Tp)return po;Tp=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return po=r,po}var vo,$p;function mt(){if($p)return vo;$p=1;var t=di(),e=Y0(),r=Z0(),n="[object Null]",i="[object Undefined]",a=t?t.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?e(u):r(u)}return vo=o,vo}var ho,Ip;function gt(){if(Ip)return ho;Ip=1;function t(e){return e!=null&&typeof e=="object"}return ho=t,ho}var yo,Cp;function Jr(){if(Cp)return yo;Cp=1;var t=mt(),e=gt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||e(i)&&t(i)==r}return yo=n,yo}var mo,Rp;function Rf(){if(Rp)return mo;Rp=1;var t=Te(),e=Jr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(t(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||e(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return mo=i,mo}var go,kp;function Tt(){if(kp)return go;kp=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return go=t,go}var bo,Mp;function kf(){if(Mp)return bo;Mp=1;var t=mt(),e=Tt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!e(u))return!1;var c=t(u);return c==n||c==i||c==r||c==a}return bo=o,bo}var xo,Dp;function J0(){if(Dp)return xo;Dp=1;var t=ot(),e=t["__core-js_shared__"];return xo=e,xo}var Oo,Np;function Q0(){if(Np)return Oo;Np=1;var t=J0(),e=(function(){var n=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!e&&e in n}return Oo=r,Oo}var Ao,Lp;function ab(){if(Lp)return Ao;Lp=1;var t=Function.prototype,e=t.toString;function r(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Ao=r,Ao}var wo,qp;function eA(){if(qp)return wo;qp=1;var t=kf(),e=Q0(),r=Tt(),n=ab(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,c=o.toString,s=u.hasOwnProperty,f=RegExp("^"+c.call(s).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(p){if(!r(p)||e(p))return!1;var d=t(p)?f:a;return d.test(n(p))}return wo=l,wo}var Po,Bp;function tA(){if(Bp)return Po;Bp=1;function t(e,r){return e==null?void 0:e[r]}return Po=t,Po}var So,Fp;function nr(){if(Fp)return So;Fp=1;var t=eA(),e=tA();function r(n,i){var a=e(n,i);return t(a)?a:void 0}return So=r,So}var _o,zp;function Ra(){if(zp)return _o;zp=1;var t=nr(),e=t(Object,"create");return _o=e,_o}var jo,Kp;function rA(){if(Kp)return jo;Kp=1;var t=Ra();function e(){this.__data__=t?t(null):{},this.size=0}return jo=e,jo}var Eo,Wp;function nA(){if(Wp)return Eo;Wp=1;function t(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}return Eo=t,Eo}var To,Gp;function iA(){if(Gp)return To;Gp=1;var t=Ra(),e="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(t){var u=o[a];return u===e?void 0:u}return n.call(o,a)?o[a]:void 0}return To=i,To}var $o,Hp;function aA(){if(Hp)return $o;Hp=1;var t=Ra(),e=Object.prototype,r=e.hasOwnProperty;function n(i){var a=this.__data__;return t?a[i]!==void 0:r.call(a,i)}return $o=n,$o}var Io,Up;function oA(){if(Up)return Io;Up=1;var t=Ra(),e="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=t&&i===void 0?e:i,this}return Io=r,Io}var Co,Vp;function uA(){if(Vp)return Co;Vp=1;var t=rA(),e=nA(),r=iA(),n=aA(),i=oA();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=t,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Co=a,Co}var Ro,Xp;function cA(){if(Xp)return Ro;Xp=1;function t(){this.__data__=[],this.size=0}return Ro=t,Ro}var ko,Yp;function Mf(){if(Yp)return ko;Yp=1;function t(e,r){return e===r||e!==e&&r!==r}return ko=t,ko}var Mo,Zp;function ka(){if(Zp)return Mo;Zp=1;var t=Mf();function e(r,n){for(var i=r.length;i--;)if(t(r[i][0],n))return i;return-1}return Mo=e,Mo}var Do,Jp;function sA(){if(Jp)return Do;Jp=1;var t=ka(),e=Array.prototype,r=e.splice;function n(i){var a=this.__data__,o=t(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 Do=n,Do}var No,Qp;function lA(){if(Qp)return No;Qp=1;var t=ka();function e(r){var n=this.__data__,i=t(n,r);return i<0?void 0:n[i][1]}return No=e,No}var Lo,ed;function fA(){if(ed)return Lo;ed=1;var t=ka();function e(r){return t(this.__data__,r)>-1}return Lo=e,Lo}var qo,td;function pA(){if(td)return qo;td=1;var t=ka();function e(r,n){var i=this.__data__,a=t(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return qo=e,qo}var Bo,rd;function Ma(){if(rd)return Bo;rd=1;var t=cA(),e=sA(),r=lA(),n=fA(),i=pA();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=t,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Bo=a,Bo}var Fo,nd;function Df(){if(nd)return Fo;nd=1;var t=nr(),e=ot(),r=t(e,"Map");return Fo=r,Fo}var zo,id;function dA(){if(id)return zo;id=1;var t=uA(),e=Ma(),r=Df();function n(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}return zo=n,zo}var Ko,ad;function vA(){if(ad)return Ko;ad=1;function t(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}return Ko=t,Ko}var Wo,od;function Da(){if(od)return Wo;od=1;var t=vA();function e(r,n){var i=r.__data__;return t(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Wo=e,Wo}var Go,ud;function hA(){if(ud)return Go;ud=1;var t=Da();function e(r){var n=t(this,r).delete(r);return this.size-=n?1:0,n}return Go=e,Go}var Ho,cd;function yA(){if(cd)return Ho;cd=1;var t=Da();function e(r){return t(this,r).get(r)}return Ho=e,Ho}var Uo,sd;function mA(){if(sd)return Uo;sd=1;var t=Da();function e(r){return t(this,r).has(r)}return Uo=e,Uo}var Vo,ld;function gA(){if(ld)return Vo;ld=1;var t=Da();function e(r,n){var i=t(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Vo=e,Vo}var Xo,fd;function Nf(){if(fd)return Xo;fd=1;var t=dA(),e=hA(),r=yA(),n=mA(),i=gA();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=t,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Xo=a,Xo}var Yo,pd;function ob(){if(pd)return Yo;pd=1;var t=Nf(),e="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(e);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],c=a.cache;if(c.has(u))return c.get(u);var s=n.apply(this,o);return a.cache=c.set(u,s)||c,s};return a.cache=new(r.Cache||t),a}return r.Cache=t,Yo=r,Yo}var Zo,dd;function bA(){if(dd)return Zo;dd=1;var t=ob(),e=500;function r(n){var i=t(n,function(o){return a.size===e&&a.clear(),o}),a=i.cache;return i}return Zo=r,Zo}var Jo,vd;function xA(){if(vd)return Jo;vd=1;var t=bA(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(e,function(o,u,c,s){a.push(c?s.replace(r,"$1"):u||o)}),a});return Jo=n,Jo}var Qo,hd;function Lf(){if(hd)return Qo;hd=1;function t(e,r){for(var n=-1,i=e==null?0:e.length,a=Array(i);++n<i;)a[n]=r(e[n],n,e);return a}return Qo=t,Qo}var eu,yd;function OA(){if(yd)return eu;yd=1;var t=di(),e=Lf(),r=Te(),n=Jr(),i=t?t.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return e(u,o)+"";if(n(u))return a?a.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return eu=o,eu}var tu,md;function ub(){if(md)return tu;md=1;var t=OA();function e(r){return r==null?"":t(r)}return tu=e,tu}var ru,gd;function cb(){if(gd)return ru;gd=1;var t=Te(),e=Rf(),r=xA(),n=ub();function i(a,o){return t(a)?a:e(a,o)?[a]:r(n(a))}return ru=i,ru}var nu,bd;function Na(){if(bd)return nu;bd=1;var t=Jr();function e(r){if(typeof r=="string"||t(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return nu=e,nu}var iu,xd;function qf(){if(xd)return iu;xd=1;var t=cb(),e=Na();function r(n,i){i=t(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[e(i[a++])];return a&&a==o?n:void 0}return iu=r,iu}var au,Od;function sb(){if(Od)return au;Od=1;var t=qf();function e(r,n,i){var a=r==null?void 0:t(r,n);return a===void 0?i:a}return au=e,au}var AA=sb();const ke=re(AA);var ou,Ad;function wA(){if(Ad)return ou;Ad=1;function t(e){return e==null}return ou=t,ou}var PA=wA();const H=re(PA);var uu,wd;function SA(){if(wd)return uu;wd=1;var t=mt(),e=Te(),r=gt(),n="[object String]";function i(a){return typeof a=="string"||!e(a)&&r(a)&&t(a)==n}return uu=i,uu}var _A=SA();const Zt=re(_A);var jA=kf();const W=re(jA);var EA=Tt();const Qr=re(EA);var cu={exports:{}},Q={};/**
2
2
  * @license React
3
3
  * react-is.production.min.js
4
4
  *
@@ -6,52 +6,52 @@ import{v as Si,n as re,r as M,w as V,h as P,j as D,c as Fe}from"./renderer.js";i
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Pd;function EA(){if(Pd)return Q;Pd=1;var t=Symbol.for("react.element"),e=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"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function h(v){if(typeof v=="object"&&v!==null){var g=v.$$typeof;switch(g){case t:switch(v=v.type,v){case r:case i:case n:case s:case f:return v;default:switch(v=v&&v.$$typeof,v){case u:case o:case c:case p:case l:case a:return v;default:return g}}case e:return g}}}return Q.ContextConsumer=o,Q.ContextProvider=a,Q.Element=t,Q.ForwardRef=c,Q.Fragment=r,Q.Lazy=p,Q.Memo=l,Q.Portal=e,Q.Profiler=i,Q.StrictMode=n,Q.Suspense=s,Q.SuspenseList=f,Q.isAsyncMode=function(){return!1},Q.isConcurrentMode=function(){return!1},Q.isContextConsumer=function(v){return h(v)===o},Q.isContextProvider=function(v){return h(v)===a},Q.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},Q.isForwardRef=function(v){return h(v)===c},Q.isFragment=function(v){return h(v)===r},Q.isLazy=function(v){return h(v)===p},Q.isMemo=function(v){return h(v)===l},Q.isPortal=function(v){return h(v)===e},Q.isProfiler=function(v){return h(v)===i},Q.isStrictMode=function(v){return h(v)===n},Q.isSuspense=function(v){return h(v)===s},Q.isSuspenseList=function(v){return h(v)===f},Q.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===s||v===f||v===d||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===l||v.$$typeof===a||v.$$typeof===o||v.$$typeof===c||v.$$typeof===y||v.getModuleId!==void 0)},Q.typeOf=h,Q}var Sd;function TA(){return Sd||(Sd=1,uu.exports=EA()),uu.exports}var $A=TA(),cu,_d;function lb(){if(_d)return cu;_d=1;var t=mt(),e=gt(),r="[object Number]";function n(i){return typeof i=="number"||e(i)&&t(i)==r}return cu=n,cu}var su,jd;function IA(){if(jd)return su;jd=1;var t=lb();function e(r){return t(r)&&r!=+r}return su=e,su}var CA=IA();const en=re(CA);var RA=lb();const kA=re(RA);var Oe=function(e){return e===0?0:e>0?1:-1},Gt=function(e){return Zt(e)&&e.indexOf("%")===e.length-1},L=function(e){return kA(e)&&!en(e)},MA=function(e){return H(e)},ye=function(e){return L(e)||Zt(e)},DA=0,$t=function(e){var r=++DA;return"".concat(e||"").concat(r)},je=function(e,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(!L(e)&&!Zt(e))return n;var a;if(Gt(e)){var o=e.indexOf("%");a=r*parseFloat(e.slice(0,o))/100}else a=+e;return en(a)&&(a=n),i&&a>r&&(a=r),a},At=function(e){if(!e)return null;var r=Object.keys(e);return r&&r.length?e[r[0]]:null},NA=function(e){if(!Array.isArray(e))return!1;for(var r=e.length,n={},i=0;i<r;i++)if(!n[e[i]])n[e[i]]=!0;else return!0;return!1},te=function(e,r){return L(e)&&L(r)?function(n){return e+n*(r-e)}:function(){return r}};function qi(t,e,r){return!t||!t.length?null:t.find(function(n){return n&&(typeof e=="function"?e(n):ke(n,e))===r})}var LA=function(e){if(!e||!e.length)return null;for(var r=e.length,n=0,i=0,a=0,o=0,u=1/0,c=-1/0,s=0,f=0,l=0;l<r;l++)s=e[l].cx||0,f=e[l].cy||0,n+=s,i+=f,a+=s*f,o+=s*s,u=Math.min(u,s),c=Math.max(c,s);var p=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:u,xmax:c,a:p,b:(i-p*n)/r}},qA=function(e,r){return L(e)&&L(r)?e-r:Zt(e)&&Zt(r)?e.localeCompare(r):e instanceof Date&&r instanceof Date?e.getTime()-r.getTime():String(e).localeCompare(String(r))};function Ar(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function cl(t){"@babel/helpers - typeof";return cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cl(t)}var BA=["viewBox","children"],FA=["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"],Ed=["points","pathLength"],lu={svg:BA,polygon:Ed,polyline:Ed},qf=["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"],Bi=function(e,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(M.isValidElement(e)&&(n=e.props),!Qr(n))return null;var i={};return Object.keys(n).forEach(function(a){qf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},zA=function(e,r,n){return function(i){return e(r,n,i),null}},nt=function(e,r,n){if(!Qr(e)||cl(e)!=="object")return null;var i=null;return Object.keys(e).forEach(function(a){var o=e[a];qf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=zA(o,r,n))}),i},KA=["children"],WA=["children"];function Td(t,e){if(t==null)return{};var r=GA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function GA(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function sl(t){"@babel/helpers - typeof";return sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sl(t)}var $d={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"},dt=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},Id=null,fu=null,Bf=function t(e){if(e===Id&&Array.isArray(fu))return fu;var r=[];return M.Children.forEach(e,function(n){H(n)||($A.isFragment(n)?r=r.concat(t(n.props.children)):r.push(n))}),fu=r,Id=e,r};function Se(t,e){var r=[],n=[];return Array.isArray(e)?n=e.map(function(i){return dt(i)}):n=[dt(e)],Bf(t).forEach(function(i){var a=ke(i,"type.displayName")||ke(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ce(t,e){var r=Se(t,e);return r&&r[0]}var Cd=function(e){if(!e||!e.props)return!1;var r=e.props,n=r.width,i=r.height;return!(!L(n)||n<=0||!L(i)||i<=0)},HA=["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"],UA=function(e){return e&&e.type&&Zt(e.type)&&HA.indexOf(e.type)>=0},fb=function(e){return e&&sl(e)==="object"&&"clipDot"in e},VA=function(e,r,n,i){var a,o=(a=lu==null?void 0:lu[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!W(e)&&(i&&o.includes(r)||FA.includes(r))||n&&qf.includes(r)},F=function(e,r,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var i=e;if(M.isValidElement(e)&&(i=e.props),!Qr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;VA((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},ll=function t(e,r){if(e===r)return!0;var n=M.Children.count(e);if(n!==M.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Rd(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=e[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!t(a,o))return!1}else if(!Rd(a,o))return!1}return!0},Rd=function(e,r){if(H(e)&&H(r))return!0;if(!H(e)&&!H(r)){var n=e.props||{},i=n.children,a=Td(n,KA),o=r.props||{},u=o.children,c=Td(o,WA);return i&&u?Ar(a,c)&&ll(i,u):!i&&!u?Ar(a,c):!1}return!1},kd=function(e,r){var n=[],i={};return Bf(e).forEach(function(a,o){if(UA(a))n.push(a);else if(a){var u=dt(a.type),c=r[u]||{},s=c.handler,f=c.once;if(s&&(!f||!i[u])){var l=s(a,u,o);n.push(l),i[u]=!0}}}),n},XA=function(e){var r=e&&e.type;return r&&$d[r]?$d[r]:null},YA=function(e,r){return Bf(r).indexOf(e)},ZA=["children","width","height","viewBox","className","style","title","desc"];function fl(){return fl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fl.apply(this,arguments)}function JA(t,e){if(t==null)return{};var r=QA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function QA(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function pl(t){var e=t.children,r=t.width,n=t.height,i=t.viewBox,a=t.className,o=t.style,u=t.title,c=t.desc,s=JA(t,ZA),f=i||{width:r,height:n,x:0,y:0},l=V("recharts-surface",a);return P.createElement("svg",fl({},F(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),P.createElement("title",null,u),P.createElement("desc",null,c),e)}var ew=["children","className"];function dl(){return dl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},dl.apply(this,arguments)}function tw(t,e){if(t==null)return{};var r=rw(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function rw(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var X=P.forwardRef(function(t,e){var r=t.children,n=t.className,i=tw(t,ew),a=V("recharts-layer",n);return P.createElement("g",dl({className:a},F(i,!0),{ref:e}),r)}),Ve=function(e,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]},pu,Md;function nw(){if(Md)return pu;Md=1;function t(e,r,n){var i=-1,a=e.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]=e[i+r];return o}return pu=t,pu}var du,Dd;function iw(){if(Dd)return du;Dd=1;var t=nw();function e(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:t(r,n,i)}return du=e,du}var vu,Nd;function pb(){if(Nd)return vu;Nd=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=e+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+t+i+a+"]");function c(s){return u.test(s)}return vu=c,vu}var hu,Ld;function aw(){if(Ld)return hu;Ld=1;function t(e){return e.split("")}return hu=t,hu}var yu,qd;function ow(){if(qd)return yu;qd=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=e+r+n,a="\\ufe0e\\ufe0f",o="["+t+"]",u="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",s="(?:"+u+"|"+c+")",f="[^"+t+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",y=s+"?",h="["+a+"]?",v="(?:"+d+"(?:"+[f,l,p].join("|")+")"+h+y+")*",g=h+y+v,b="(?:"+[f+u+"?",u,l,p,o].join("|")+")",x=RegExp(c+"(?="+c+")|"+b+g,"g");function A(m){return m.match(x)||[]}return yu=A,yu}var mu,Bd;function uw(){if(Bd)return mu;Bd=1;var t=aw(),e=pb(),r=ow();function n(i){return e(i)?r(i):t(i)}return mu=n,mu}var gu,Fd;function cw(){if(Fd)return gu;Fd=1;var t=iw(),e=pb(),r=uw(),n=ub();function i(a){return function(o){o=n(o);var u=e(o)?r(o):void 0,c=u?u[0]:o.charAt(0),s=u?t(u,1).join(""):o.slice(1);return c[a]()+s}}return gu=i,gu}var bu,zd;function sw(){if(zd)return bu;zd=1;var t=cw(),e=t("toUpperCase");return bu=e,bu}var lw=sw();const Na=re(lw);function _i(t,e,r){var n=null,i=pe(!0),a=null,o=Ef,u=null,c=Qg(s);t=typeof t=="function"?t:t===void 0?v0:pe(+t),e=typeof e=="function"?e:e===void 0?pe(0):pe(+e),r=typeof r=="function"?r:r===void 0?h0:pe(+r);function s(l){var p,d,y,h=(l=eb(l)).length,v,g=!1,b,x=new Array(h),A=new Array(h);for(a==null&&(u=o(b=c())),p=0;p<=h;++p){if(!(p<h&&i(v=l[p],p,l))===g)if(g=!g)d=p,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=p-1;y>=d;--y)u.point(x[y],A[y]);u.lineEnd(),u.areaEnd()}g&&(x[p]=+t(v,p,l),A[p]=+e(v,p,l),u.point(n?+n(v,p,l):x[p],r?+r(v,p,l):A[p]))}if(b)return u=null,b+""||null}function f(){return tb().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(t=typeof l=="function"?l:pe(+l),n=null,s):t},s.x0=function(l){return arguments.length?(t=typeof l=="function"?l:pe(+l),s):t},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:pe(+l),s):n},s.y=function(l){return arguments.length?(e=typeof l=="function"?l:pe(+l),r=null,s):e},s.y0=function(l){return arguments.length?(e=typeof l=="function"?l:pe(+l),s):e},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:pe(+l),s):r},s.lineX0=s.lineY0=function(){return f().x(t).y(e)},s.lineY1=function(){return f().x(t).y(r)},s.lineX1=function(){return f().x(n).y(e)},s.defined=function(l){return arguments.length?(i=typeof l=="function"?l:pe(!!l),s):i},s.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),s):o},s.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),s):a},s}const Ff={draw(t,e){const r=Ze(e/il);t.moveTo(r,0),t.arc(0,0,r,0,$a)}},fw={draw(t,e){const r=Ze(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},db=Ze(1/3),pw=db*2,dw={draw(t,e){const r=Ze(e/pw),n=r*db;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},vw={draw(t,e){const r=Ze(e),n=-r/2;t.rect(n,n,r,r)}},hw=.8908130915292852,vb=Ni(il/10)/Ni(7*il/10),yw=Ni($a/10)*vb,mw=-rb($a/10)*vb,gw={draw(t,e){const r=Ze(e*hw),n=yw*r,i=mw*r;t.moveTo(0,-r),t.lineTo(n,i);for(let a=1;a<5;++a){const o=$a*a/5,u=rb(o),c=Ni(o);t.lineTo(c*r,-u*r),t.lineTo(u*n-c*i,c*n+u*i)}t.closePath()}},xu=Ze(3),bw={draw(t,e){const r=-Ze(e/(xu*3));t.moveTo(0,r*2),t.lineTo(-xu*r,-r),t.lineTo(xu*r,-r),t.closePath()}},Ne=-.5,Le=Ze(3)/2,vl=1/Ze(12),xw=(vl/2+1)*3,Ow={draw(t,e){const r=Ze(e/xw),n=r/2,i=r*vl,a=n,o=r*vl+r,u=-a,c=o;t.moveTo(n,i),t.lineTo(a,o),t.lineTo(u,c),t.lineTo(Ne*n-Le*i,Le*n+Ne*i),t.lineTo(Ne*a-Le*o,Le*a+Ne*o),t.lineTo(Ne*u-Le*c,Le*u+Ne*c),t.lineTo(Ne*n+Le*i,Ne*i-Le*n),t.lineTo(Ne*a+Le*o,Ne*o-Le*a),t.lineTo(Ne*u+Le*c,Ne*c-Le*u),t.closePath()}};function Aw(t,e){let r=null,n=Qg(i);t=typeof t=="function"?t:pe(t||Ff),e=typeof e=="function"?e:pe(e===void 0?64:+e);function i(){let a;if(r||(r=a=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(t=typeof a=="function"?a:pe(a),i):t},i.size=function(a){return arguments.length?(e=typeof a=="function"?a:pe(+a),i):e},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Pr(t,e){if((o=t.length)>1)for(var r=1,n,i,a=t[e[0]],o,u=a.length;r<o;++r)for(i=a,a=t[e[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function hl(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function ww(t,e){return t[e]}function Pw(t){const e=[];return e.key=t,e}function Sw(){var t=pe([]),e=hl,r=Pr,n=ww;function i(a){var o=Array.from(t.apply(this,arguments),Pw),u,c=o.length,s=-1,f;for(const l of a)for(u=0,++s;u<c;++u)(o[u][s]=[0,+n(l,o[u].key,s,a)]).data=l;for(u=0,f=eb(e(o));u<c;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(t=typeof a=="function"?a:pe(Array.from(a)),i):t},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:pe(+a),i):n},i.order=function(a){return arguments.length?(e=a==null?hl:typeof a=="function"?a:pe(Array.from(a)),i):e},i.offset=function(a){return arguments.length?(r=a??Pr,i):r},i}function _w(t,e){if((n=t.length)>0){for(var r,n,i=0,a=t[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}Pr(t,e)}}function jw(t,e){if((i=t.length)>0){for(var r=0,n=t[e[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=t[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}Pr(t,e)}}function Ew(t,e){if(!(!((o=t.length)>0)||!((a=(i=t[e[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,c=0,s=0;u<o;++u){for(var f=t[e[u]],l=f[n][1]||0,p=f[n-1][1]||0,d=(l-p)/2,y=0;y<u;++y){var h=t[e[y]],v=h[n][1]||0,g=h[n-1][1]||0;d+=v-g}c+=l,s+=d*l}i[n-1][1]+=i[n-1][0]=r,c&&(r-=s/c)}i[n-1][1]+=i[n-1][0]=r,Pr(t,e)}}function Rn(t){"@babel/helpers - typeof";return Rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rn(t)}var Tw=["type","size","sizeType"];function yl(){return yl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yl.apply(this,arguments)}function Kd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Wd(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Kd(Object(r),!0).forEach(function(n){$w(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kd(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function $w(t,e,r){return e=Iw(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Iw(t){var e=Cw(t,"string");return Rn(e)=="symbol"?e:e+""}function Cw(t,e){if(Rn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Rw(t,e){if(t==null)return{};var r=kw(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function kw(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var hb={symbolCircle:Ff,symbolCross:fw,symbolDiamond:dw,symbolSquare:vw,symbolStar:gw,symbolTriangle:bw,symbolWye:Ow},Mw=Math.PI/180,Dw=function(e){var r="symbol".concat(Na(e));return hb[r]||Ff},Nw=function(e,r,n){if(r==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var i=18*Mw;return 1.25*e*e*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Lw=function(e,r){hb["symbol".concat(Na(e))]=r},La=function(e){var r=e.type,n=r===void 0?"circle":r,i=e.size,a=i===void 0?64:i,o=e.sizeType,u=o===void 0?"area":o,c=Rw(e,Tw),s=Wd(Wd({},c),{},{type:n,size:a,sizeType:u}),f=function(){var v=Dw(n),g=Aw().type(v).size(Nw(a,u,n));return g()},l=s.className,p=s.cx,d=s.cy,y=F(s,!0);return p===+p&&d===+d&&a===+a?P.createElement("path",yl({},y,{className:V("recharts-symbols",l),transform:"translate(".concat(p,", ").concat(d,")"),d:f()})):null};La.registerSymbol=Lw;function Sr(t){"@babel/helpers - typeof";return Sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(t)}function ml(){return ml=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ml.apply(this,arguments)}function Gd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function qw(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Gd(Object(r),!0).forEach(function(n){kn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gd(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Bw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fw(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mb(n.key),n)}}function zw(t,e,r){return e&&Fw(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Kw(t,e,r){return e=Fi(e),Ww(t,yb()?Reflect.construct(e,r||[],Fi(t).constructor):e.apply(t,r))}function Ww(t,e){if(e&&(Sr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gw(t)}function Gw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yb=function(){return!!t})()}function Fi(t){return Fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fi(t)}function Hw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gl(t,e)}function gl(t,e){return gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gl(t,e)}function kn(t,e,r){return e=mb(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mb(t){var e=Uw(t,"string");return Sr(e)=="symbol"?e:e+""}function Uw(t,e){if(Sr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var qe=32,zf=(function(t){function e(){return Bw(this,e),Kw(this,e,arguments)}return Hw(e,t),zw(e,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=qe/2,o=qe/6,u=qe/3,c=n.inactive?i:n.color;if(n.type==="plainline")return P.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:qe,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return P.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,`
9
+ */var Pd;function TA(){if(Pd)return Q;Pd=1;var t=Symbol.for("react.element"),e=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"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function h(v){if(typeof v=="object"&&v!==null){var b=v.$$typeof;switch(b){case t:switch(v=v.type,v){case r:case i:case n:case s:case f:return v;default:switch(v=v&&v.$$typeof,v){case u:case o:case c:case p:case l:case a:return v;default:return b}}case e:return b}}}return Q.ContextConsumer=o,Q.ContextProvider=a,Q.Element=t,Q.ForwardRef=c,Q.Fragment=r,Q.Lazy=p,Q.Memo=l,Q.Portal=e,Q.Profiler=i,Q.StrictMode=n,Q.Suspense=s,Q.SuspenseList=f,Q.isAsyncMode=function(){return!1},Q.isConcurrentMode=function(){return!1},Q.isContextConsumer=function(v){return h(v)===o},Q.isContextProvider=function(v){return h(v)===a},Q.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},Q.isForwardRef=function(v){return h(v)===c},Q.isFragment=function(v){return h(v)===r},Q.isLazy=function(v){return h(v)===p},Q.isMemo=function(v){return h(v)===l},Q.isPortal=function(v){return h(v)===e},Q.isProfiler=function(v){return h(v)===i},Q.isStrictMode=function(v){return h(v)===n},Q.isSuspense=function(v){return h(v)===s},Q.isSuspenseList=function(v){return h(v)===f},Q.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===s||v===f||v===d||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===l||v.$$typeof===a||v.$$typeof===o||v.$$typeof===c||v.$$typeof===y||v.getModuleId!==void 0)},Q.typeOf=h,Q}var Sd;function $A(){return Sd||(Sd=1,cu.exports=TA()),cu.exports}var IA=$A(),su,_d;function lb(){if(_d)return su;_d=1;var t=mt(),e=gt(),r="[object Number]";function n(i){return typeof i=="number"||e(i)&&t(i)==r}return su=n,su}var lu,jd;function CA(){if(jd)return lu;jd=1;var t=lb();function e(r){return t(r)&&r!=+r}return lu=e,lu}var RA=CA();const en=re(RA);var kA=lb();const MA=re(kA);var Oe=function(e){return e===0?0:e>0?1:-1},Gt=function(e){return Zt(e)&&e.indexOf("%")===e.length-1},L=function(e){return MA(e)&&!en(e)},DA=function(e){return H(e)},ye=function(e){return L(e)||Zt(e)},NA=0,$t=function(e){var r=++NA;return"".concat(e||"").concat(r)},je=function(e,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(!L(e)&&!Zt(e))return n;var a;if(Gt(e)){var o=e.indexOf("%");a=r*parseFloat(e.slice(0,o))/100}else a=+e;return en(a)&&(a=n),i&&a>r&&(a=r),a},At=function(e){if(!e)return null;var r=Object.keys(e);return r&&r.length?e[r[0]]:null},LA=function(e){if(!Array.isArray(e))return!1;for(var r=e.length,n={},i=0;i<r;i++)if(!n[e[i]])n[e[i]]=!0;else return!0;return!1},te=function(e,r){return L(e)&&L(r)?function(n){return e+n*(r-e)}:function(){return r}};function Bi(t,e,r){return!t||!t.length?null:t.find(function(n){return n&&(typeof e=="function"?e(n):ke(n,e))===r})}var qA=function(e){if(!e||!e.length)return null;for(var r=e.length,n=0,i=0,a=0,o=0,u=1/0,c=-1/0,s=0,f=0,l=0;l<r;l++)s=e[l].cx||0,f=e[l].cy||0,n+=s,i+=f,a+=s*f,o+=s*s,u=Math.min(u,s),c=Math.max(c,s);var p=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:u,xmax:c,a:p,b:(i-p*n)/r}},BA=function(e,r){return L(e)&&L(r)?e-r:Zt(e)&&Zt(r)?e.localeCompare(r):e instanceof Date&&r instanceof Date?e.getTime()-r.getTime():String(e).localeCompare(String(r))};function Ar(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function sl(t){"@babel/helpers - typeof";return sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sl(t)}var FA=["viewBox","children"],zA=["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"],Ed=["points","pathLength"],fu={svg:FA,polygon:Ed,polyline:Ed},Bf=["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"],Fi=function(e,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(M.isValidElement(e)&&(n=e.props),!Qr(n))return null;var i={};return Object.keys(n).forEach(function(a){Bf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},KA=function(e,r,n){return function(i){return e(r,n,i),null}},nt=function(e,r,n){if(!Qr(e)||sl(e)!=="object")return null;var i=null;return Object.keys(e).forEach(function(a){var o=e[a];Bf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=KA(o,r,n))}),i},WA=["children"],GA=["children"];function Td(t,e){if(t==null)return{};var r=HA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function HA(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function ll(t){"@babel/helpers - typeof";return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ll(t)}var $d={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"},dt=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},Id=null,pu=null,Ff=function t(e){if(e===Id&&Array.isArray(pu))return pu;var r=[];return M.Children.forEach(e,function(n){H(n)||(IA.isFragment(n)?r=r.concat(t(n.props.children)):r.push(n))}),pu=r,Id=e,r};function Se(t,e){var r=[],n=[];return Array.isArray(e)?n=e.map(function(i){return dt(i)}):n=[dt(e)],Ff(t).forEach(function(i){var a=ke(i,"type.displayName")||ke(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ce(t,e){var r=Se(t,e);return r&&r[0]}var Cd=function(e){if(!e||!e.props)return!1;var r=e.props,n=r.width,i=r.height;return!(!L(n)||n<=0||!L(i)||i<=0)},UA=["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"],VA=function(e){return e&&e.type&&Zt(e.type)&&UA.indexOf(e.type)>=0},fb=function(e){return e&&ll(e)==="object"&&"clipDot"in e},XA=function(e,r,n,i){var a,o=(a=fu==null?void 0:fu[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!W(e)&&(i&&o.includes(r)||zA.includes(r))||n&&Bf.includes(r)},F=function(e,r,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var i=e;if(M.isValidElement(e)&&(i=e.props),!Qr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;XA((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},fl=function t(e,r){if(e===r)return!0;var n=M.Children.count(e);if(n!==M.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Rd(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=e[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!t(a,o))return!1}else if(!Rd(a,o))return!1}return!0},Rd=function(e,r){if(H(e)&&H(r))return!0;if(!H(e)&&!H(r)){var n=e.props||{},i=n.children,a=Td(n,WA),o=r.props||{},u=o.children,c=Td(o,GA);return i&&u?Ar(a,c)&&fl(i,u):!i&&!u?Ar(a,c):!1}return!1},kd=function(e,r){var n=[],i={};return Ff(e).forEach(function(a,o){if(VA(a))n.push(a);else if(a){var u=dt(a.type),c=r[u]||{},s=c.handler,f=c.once;if(s&&(!f||!i[u])){var l=s(a,u,o);n.push(l),i[u]=!0}}}),n},YA=function(e){var r=e&&e.type;return r&&$d[r]?$d[r]:null},ZA=function(e,r){return Ff(r).indexOf(e)},JA=["children","width","height","viewBox","className","style","title","desc"];function pl(){return pl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pl.apply(this,arguments)}function QA(t,e){if(t==null)return{};var r=ew(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ew(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function dl(t){var e=t.children,r=t.width,n=t.height,i=t.viewBox,a=t.className,o=t.style,u=t.title,c=t.desc,s=QA(t,JA),f=i||{width:r,height:n,x:0,y:0},l=V("recharts-surface",a);return P.createElement("svg",pl({},F(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),P.createElement("title",null,u),P.createElement("desc",null,c),e)}var tw=["children","className"];function vl(){return vl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},vl.apply(this,arguments)}function rw(t,e){if(t==null)return{};var r=nw(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function nw(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var X=P.forwardRef(function(t,e){var r=t.children,n=t.className,i=rw(t,tw),a=V("recharts-layer",n);return P.createElement("g",vl({className:a},F(i,!0),{ref:e}),r)}),Ve=function(e,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]},du,Md;function iw(){if(Md)return du;Md=1;function t(e,r,n){var i=-1,a=e.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]=e[i+r];return o}return du=t,du}var vu,Dd;function aw(){if(Dd)return vu;Dd=1;var t=iw();function e(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:t(r,n,i)}return vu=e,vu}var hu,Nd;function pb(){if(Nd)return hu;Nd=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=e+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+t+i+a+"]");function c(s){return u.test(s)}return hu=c,hu}var yu,Ld;function ow(){if(Ld)return yu;Ld=1;function t(e){return e.split("")}return yu=t,yu}var mu,qd;function uw(){if(qd)return mu;qd=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=e+r+n,a="\\ufe0e\\ufe0f",o="["+t+"]",u="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",s="(?:"+u+"|"+c+")",f="[^"+t+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",y=s+"?",h="["+a+"]?",v="(?:"+d+"(?:"+[f,l,p].join("|")+")"+h+y+")*",b=h+y+v,g="(?:"+[f+u+"?",u,l,p,o].join("|")+")",x=RegExp(c+"(?="+c+")|"+g+b,"g");function A(m){return m.match(x)||[]}return mu=A,mu}var gu,Bd;function cw(){if(Bd)return gu;Bd=1;var t=ow(),e=pb(),r=uw();function n(i){return e(i)?r(i):t(i)}return gu=n,gu}var bu,Fd;function sw(){if(Fd)return bu;Fd=1;var t=aw(),e=pb(),r=cw(),n=ub();function i(a){return function(o){o=n(o);var u=e(o)?r(o):void 0,c=u?u[0]:o.charAt(0),s=u?t(u,1).join(""):o.slice(1);return c[a]()+s}}return bu=i,bu}var xu,zd;function lw(){if(zd)return xu;zd=1;var t=sw(),e=t("toUpperCase");return xu=e,xu}var fw=lw();const La=re(fw);function ji(t,e,r){var n=null,i=pe(!0),a=null,o=Tf,u=null,c=Qg(s);t=typeof t=="function"?t:t===void 0?h0:pe(+t),e=typeof e=="function"?e:e===void 0?pe(0):pe(+e),r=typeof r=="function"?r:r===void 0?y0:pe(+r);function s(l){var p,d,y,h=(l=eb(l)).length,v,b=!1,g,x=new Array(h),A=new Array(h);for(a==null&&(u=o(g=c())),p=0;p<=h;++p){if(!(p<h&&i(v=l[p],p,l))===b)if(b=!b)d=p,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=p-1;y>=d;--y)u.point(x[y],A[y]);u.lineEnd(),u.areaEnd()}b&&(x[p]=+t(v,p,l),A[p]=+e(v,p,l),u.point(n?+n(v,p,l):x[p],r?+r(v,p,l):A[p]))}if(g)return u=null,g+""||null}function f(){return tb().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(t=typeof l=="function"?l:pe(+l),n=null,s):t},s.x0=function(l){return arguments.length?(t=typeof l=="function"?l:pe(+l),s):t},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:pe(+l),s):n},s.y=function(l){return arguments.length?(e=typeof l=="function"?l:pe(+l),r=null,s):e},s.y0=function(l){return arguments.length?(e=typeof l=="function"?l:pe(+l),s):e},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:pe(+l),s):r},s.lineX0=s.lineY0=function(){return f().x(t).y(e)},s.lineY1=function(){return f().x(t).y(r)},s.lineX1=function(){return f().x(n).y(e)},s.defined=function(l){return arguments.length?(i=typeof l=="function"?l:pe(!!l),s):i},s.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),s):o},s.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),s):a},s}const zf={draw(t,e){const r=Ze(e/al);t.moveTo(r,0),t.arc(0,0,r,0,Ia)}},pw={draw(t,e){const r=Ze(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},db=Ze(1/3),dw=db*2,vw={draw(t,e){const r=Ze(e/dw),n=r*db;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},hw={draw(t,e){const r=Ze(e),n=-r/2;t.rect(n,n,r,r)}},yw=.8908130915292852,vb=Li(al/10)/Li(7*al/10),mw=Li(Ia/10)*vb,gw=-rb(Ia/10)*vb,bw={draw(t,e){const r=Ze(e*yw),n=mw*r,i=gw*r;t.moveTo(0,-r),t.lineTo(n,i);for(let a=1;a<5;++a){const o=Ia*a/5,u=rb(o),c=Li(o);t.lineTo(c*r,-u*r),t.lineTo(u*n-c*i,c*n+u*i)}t.closePath()}},Ou=Ze(3),xw={draw(t,e){const r=-Ze(e/(Ou*3));t.moveTo(0,r*2),t.lineTo(-Ou*r,-r),t.lineTo(Ou*r,-r),t.closePath()}},Ne=-.5,Le=Ze(3)/2,hl=1/Ze(12),Ow=(hl/2+1)*3,Aw={draw(t,e){const r=Ze(e/Ow),n=r/2,i=r*hl,a=n,o=r*hl+r,u=-a,c=o;t.moveTo(n,i),t.lineTo(a,o),t.lineTo(u,c),t.lineTo(Ne*n-Le*i,Le*n+Ne*i),t.lineTo(Ne*a-Le*o,Le*a+Ne*o),t.lineTo(Ne*u-Le*c,Le*u+Ne*c),t.lineTo(Ne*n+Le*i,Ne*i-Le*n),t.lineTo(Ne*a+Le*o,Ne*o-Le*a),t.lineTo(Ne*u+Le*c,Ne*c-Le*u),t.closePath()}};function ww(t,e){let r=null,n=Qg(i);t=typeof t=="function"?t:pe(t||zf),e=typeof e=="function"?e:pe(e===void 0?64:+e);function i(){let a;if(r||(r=a=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(t=typeof a=="function"?a:pe(a),i):t},i.size=function(a){return arguments.length?(e=typeof a=="function"?a:pe(+a),i):e},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Pr(t,e){if((o=t.length)>1)for(var r=1,n,i,a=t[e[0]],o,u=a.length;r<o;++r)for(i=a,a=t[e[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function yl(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function Pw(t,e){return t[e]}function Sw(t){const e=[];return e.key=t,e}function _w(){var t=pe([]),e=yl,r=Pr,n=Pw;function i(a){var o=Array.from(t.apply(this,arguments),Sw),u,c=o.length,s=-1,f;for(const l of a)for(u=0,++s;u<c;++u)(o[u][s]=[0,+n(l,o[u].key,s,a)]).data=l;for(u=0,f=eb(e(o));u<c;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(t=typeof a=="function"?a:pe(Array.from(a)),i):t},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:pe(+a),i):n},i.order=function(a){return arguments.length?(e=a==null?yl:typeof a=="function"?a:pe(Array.from(a)),i):e},i.offset=function(a){return arguments.length?(r=a??Pr,i):r},i}function jw(t,e){if((n=t.length)>0){for(var r,n,i=0,a=t[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}Pr(t,e)}}function Ew(t,e){if((i=t.length)>0){for(var r=0,n=t[e[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=t[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}Pr(t,e)}}function Tw(t,e){if(!(!((o=t.length)>0)||!((a=(i=t[e[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,c=0,s=0;u<o;++u){for(var f=t[e[u]],l=f[n][1]||0,p=f[n-1][1]||0,d=(l-p)/2,y=0;y<u;++y){var h=t[e[y]],v=h[n][1]||0,b=h[n-1][1]||0;d+=v-b}c+=l,s+=d*l}i[n-1][1]+=i[n-1][0]=r,c&&(r-=s/c)}i[n-1][1]+=i[n-1][0]=r,Pr(t,e)}}function Rn(t){"@babel/helpers - typeof";return Rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rn(t)}var $w=["type","size","sizeType"];function ml(){return ml=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ml.apply(this,arguments)}function Kd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Wd(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Kd(Object(r),!0).forEach(function(n){Iw(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kd(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Iw(t,e,r){return e=Cw(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cw(t){var e=Rw(t,"string");return Rn(e)=="symbol"?e:e+""}function Rw(t,e){if(Rn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function kw(t,e){if(t==null)return{};var r=Mw(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Mw(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var hb={symbolCircle:zf,symbolCross:pw,symbolDiamond:vw,symbolSquare:hw,symbolStar:bw,symbolTriangle:xw,symbolWye:Aw},Dw=Math.PI/180,Nw=function(e){var r="symbol".concat(La(e));return hb[r]||zf},Lw=function(e,r,n){if(r==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var i=18*Dw;return 1.25*e*e*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},qw=function(e,r){hb["symbol".concat(La(e))]=r},qa=function(e){var r=e.type,n=r===void 0?"circle":r,i=e.size,a=i===void 0?64:i,o=e.sizeType,u=o===void 0?"area":o,c=kw(e,$w),s=Wd(Wd({},c),{},{type:n,size:a,sizeType:u}),f=function(){var v=Nw(n),b=ww().type(v).size(Lw(a,u,n));return b()},l=s.className,p=s.cx,d=s.cy,y=F(s,!0);return p===+p&&d===+d&&a===+a?P.createElement("path",ml({},y,{className:V("recharts-symbols",l),transform:"translate(".concat(p,", ").concat(d,")"),d:f()})):null};qa.registerSymbol=qw;function Sr(t){"@babel/helpers - typeof";return Sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(t)}function gl(){return gl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gl.apply(this,arguments)}function Gd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Bw(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Gd(Object(r),!0).forEach(function(n){kn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gd(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Fw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zw(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mb(n.key),n)}}function Kw(t,e,r){return e&&zw(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ww(t,e,r){return e=zi(e),Gw(t,yb()?Reflect.construct(e,r||[],zi(t).constructor):e.apply(t,r))}function Gw(t,e){if(e&&(Sr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hw(t)}function Hw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yb=function(){return!!t})()}function zi(t){return zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zi(t)}function Uw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bl(t,e)}function bl(t,e){return bl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bl(t,e)}function kn(t,e,r){return e=mb(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mb(t){var e=Vw(t,"string");return Sr(e)=="symbol"?e:e+""}function Vw(t,e){if(Sr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var qe=32,Kf=(function(t){function e(){return Fw(this,e),Ww(this,e,arguments)}return Uw(e,t),Kw(e,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=qe/2,o=qe/6,u=qe/3,c=n.inactive?i:n.color;if(n.type==="plainline")return P.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:qe,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return P.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,`
10
10
  A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
11
11
  H`).concat(qe,"M").concat(2*u,",").concat(a,`
12
- A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return P.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(qe/8,"h").concat(qe,"v").concat(qe*3/4,"h").concat(-qe,"z"),className:"recharts-legend-icon"});if(P.isValidElement(n.legendIcon)){var s=qw({},n);return delete s.legendIcon,P.cloneElement(n.legendIcon,s)}return P.createElement(La,{fill:c,cx:a,cy:a,size:qe,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,c=i.formatter,s=i.inactiveColor,f={x:0,y:0,width:qe,height:qe},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(d,y){var h=d.formatter||c,v=V(kn(kn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",d.inactive));if(d.type==="none")return null;var g=W(d.value)?null:d.value;Ve(!W(d.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 b=d.inactive?s:d.color;return P.createElement("li",ml({className:v,style:l,key:"legend-item-".concat(y)},nt(n.props,d,y)),P.createElement(pl,{width:o,height:o,viewBox:f,style:p},n.renderIcon(d)),P.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},h?h(g,d,y):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 P.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(M.PureComponent);kn(zf,"displayName","Legend");kn(zf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Ou,Hd;function Vw(){if(Hd)return Ou;Hd=1;var t=ka();function e(){this.__data__=new t,this.size=0}return Ou=e,Ou}var Au,Ud;function Xw(){if(Ud)return Au;Ud=1;function t(e){var r=this.__data__,n=r.delete(e);return this.size=r.size,n}return Au=t,Au}var wu,Vd;function Yw(){if(Vd)return wu;Vd=1;function t(e){return this.__data__.get(e)}return wu=t,wu}var Pu,Xd;function Zw(){if(Xd)return Pu;Xd=1;function t(e){return this.__data__.has(e)}return Pu=t,Pu}var Su,Yd;function Jw(){if(Yd)return Su;Yd=1;var t=ka(),e=Mf(),r=Df(),n=200;function i(a,o){var u=this.__data__;if(u instanceof t){var c=u.__data__;if(!e||c.length<n-1)return c.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(c)}return u.set(a,o),this.size=u.size,this}return Su=i,Su}var _u,Zd;function gb(){if(Zd)return _u;Zd=1;var t=ka(),e=Vw(),r=Xw(),n=Yw(),i=Zw(),a=Jw();function o(u){var c=this.__data__=new t(u);this.size=c.size}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,_u=o,_u}var ju,Jd;function Qw(){if(Jd)return ju;Jd=1;var t="__lodash_hash_undefined__";function e(r){return this.__data__.set(r,t),this}return ju=e,ju}var Eu,Qd;function eP(){if(Qd)return Eu;Qd=1;function t(e){return this.__data__.has(e)}return Eu=t,Eu}var Tu,ev;function bb(){if(ev)return Tu;ev=1;var t=Df(),e=Qw(),r=eP();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new t;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,Tu=n,Tu}var $u,tv;function xb(){if(tv)return $u;tv=1;function t(e,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(e[n],n,e))return!0;return!1}return $u=t,$u}var Iu,rv;function Ob(){if(rv)return Iu;rv=1;function t(e,r){return e.has(r)}return Iu=t,Iu}var Cu,nv;function Ab(){if(nv)return Cu;nv=1;var t=bb(),e=xb(),r=Ob(),n=1,i=2;function a(o,u,c,s,f,l){var p=c&n,d=o.length,y=u.length;if(d!=y&&!(p&&y>d))return!1;var h=l.get(o),v=l.get(u);if(h&&v)return h==u&&v==o;var g=-1,b=!0,x=c&i?new t:void 0;for(l.set(o,u),l.set(u,o);++g<d;){var A=o[g],m=u[g];if(s)var O=p?s(m,A,g,u,o,l):s(A,m,g,o,u,l);if(O!==void 0){if(O)continue;b=!1;break}if(x){if(!e(u,function(w,S){if(!r(x,S)&&(A===w||f(A,w,c,s,l)))return x.push(S)})){b=!1;break}}else if(!(A===m||f(A,m,c,s,l))){b=!1;break}}return l.delete(o),l.delete(u),b}return Cu=a,Cu}var Ru,iv;function tP(){if(iv)return Ru;iv=1;var t=ot(),e=t.Uint8Array;return Ru=e,Ru}var ku,av;function rP(){if(av)return ku;av=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(i,a){n[++r]=[a,i]}),n}return ku=t,ku}var Mu,ov;function Kf(){if(ov)return Mu;ov=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(i){n[++r]=i}),n}return Mu=t,Mu}var Du,uv;function nP(){if(uv)return Du;uv=1;var t=di(),e=tP(),r=kf(),n=Ab(),i=rP(),a=Kf(),o=1,u=2,c="[object Boolean]",s="[object Date]",f="[object Error]",l="[object Map]",p="[object Number]",d="[object RegExp]",y="[object Set]",h="[object String]",v="[object Symbol]",g="[object ArrayBuffer]",b="[object DataView]",x=t?t.prototype:void 0,A=x?x.valueOf:void 0;function m(O,w,S,_,T,j,E){switch(S){case b:if(O.byteLength!=w.byteLength||O.byteOffset!=w.byteOffset)return!1;O=O.buffer,w=w.buffer;case g:return!(O.byteLength!=w.byteLength||!j(new e(O),new e(w)));case c:case s:case p:return r(+O,+w);case f:return O.name==w.name&&O.message==w.message;case d:case h:return O==w+"";case l:var $=i;case y:var C=_&o;if($||($=a),O.size!=w.size&&!C)return!1;var I=E.get(O);if(I)return I==w;_|=u,E.set(O,w);var k=n($(O),$(w),_,T,j,E);return E.delete(O),k;case v:if(A)return A.call(O)==A.call(w)}return!1}return Du=m,Du}var Nu,cv;function wb(){if(cv)return Nu;cv=1;function t(e,r){for(var n=-1,i=r.length,a=e.length;++n<i;)e[a+n]=r[n];return e}return Nu=t,Nu}var Lu,sv;function iP(){if(sv)return Lu;sv=1;var t=wb(),e=Te();function r(n,i,a){var o=i(n);return e(n)?o:t(o,a(n))}return Lu=r,Lu}var qu,lv;function aP(){if(lv)return qu;lv=1;function t(e,r){for(var n=-1,i=e==null?0:e.length,a=0,o=[];++n<i;){var u=e[n];r(u,n,e)&&(o[a++]=u)}return o}return qu=t,qu}var Bu,fv;function oP(){if(fv)return Bu;fv=1;function t(){return[]}return Bu=t,Bu}var Fu,pv;function uP(){if(pv)return Fu;pv=1;var t=aP(),e=oP(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),t(i(o),function(u){return n.call(o,u)}))}:e;return Fu=a,Fu}var zu,dv;function cP(){if(dv)return zu;dv=1;function t(e,r){for(var n=-1,i=Array(e);++n<e;)i[n]=r(n);return i}return zu=t,zu}var Ku,vv;function sP(){if(vv)return Ku;vv=1;var t=mt(),e=gt(),r="[object Arguments]";function n(i){return e(i)&&t(i)==r}return Ku=n,Ku}var Wu,hv;function Wf(){if(hv)return Wu;hv=1;var t=sP(),e=gt(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=t((function(){return arguments})())?t:function(o){return e(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Wu=a,Wu}var On={exports:{}},Gu,yv;function lP(){if(yv)return Gu;yv=1;function t(){return!1}return Gu=t,Gu}On.exports;var mv;function Pb(){return mv||(mv=1,(function(t,e){var r=ot(),n=lP(),i=e&&!e.nodeType&&e,a=i&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===i,u=o?r.Buffer:void 0,c=u?u.isBuffer:void 0,s=c||n;t.exports=s})(On,On.exports)),On.exports}var Hu,gv;function Gf(){if(gv)return Hu;gv=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??t,!!i&&(a=="number"||a!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<i}return Hu=r,Hu}var Uu,bv;function Hf(){if(bv)return Uu;bv=1;var t=9007199254740991;function e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}return Uu=e,Uu}var Vu,xv;function fP(){if(xv)return Vu;xv=1;var t=mt(),e=Hf(),r=gt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",c="[object Function]",s="[object Map]",f="[object Number]",l="[object Object]",p="[object RegExp]",d="[object Set]",y="[object String]",h="[object WeakMap]",v="[object ArrayBuffer]",g="[object DataView]",b="[object Float32Array]",x="[object Float64Array]",A="[object Int8Array]",m="[object Int16Array]",O="[object Int32Array]",w="[object Uint8Array]",S="[object Uint8ClampedArray]",_="[object Uint16Array]",T="[object Uint32Array]",j={};j[b]=j[x]=j[A]=j[m]=j[O]=j[w]=j[S]=j[_]=j[T]=!0,j[n]=j[i]=j[v]=j[a]=j[g]=j[o]=j[u]=j[c]=j[s]=j[f]=j[l]=j[p]=j[d]=j[y]=j[h]=!1;function E($){return r($)&&e($.length)&&!!j[t($)]}return Vu=E,Vu}var Xu,Ov;function Sb(){if(Ov)return Xu;Ov=1;function t(e){return function(r){return e(r)}}return Xu=t,Xu}var An={exports:{}};An.exports;var Av;function pP(){return Av||(Av=1,(function(t,e){var r=ib(),n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}})();t.exports=u})(An,An.exports)),An.exports}var Yu,wv;function _b(){if(wv)return Yu;wv=1;var t=fP(),e=Sb(),r=pP(),n=r&&r.isTypedArray,i=n?e(n):t;return Yu=i,Yu}var Zu,Pv;function dP(){if(Pv)return Zu;Pv=1;var t=cP(),e=Wf(),r=Te(),n=Pb(),i=Gf(),a=_b(),o=Object.prototype,u=o.hasOwnProperty;function c(s,f){var l=r(s),p=!l&&e(s),d=!l&&!p&&n(s),y=!l&&!p&&!d&&a(s),h=l||p||d||y,v=h?t(s.length,String):[],g=v.length;for(var b in s)(f||u.call(s,b))&&!(h&&(b=="length"||d&&(b=="offset"||b=="parent")||y&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,g)))&&v.push(b);return v}return Zu=c,Zu}var Ju,Sv;function vP(){if(Sv)return Ju;Sv=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||t;return r===i}return Ju=e,Ju}var Qu,_v;function jb(){if(_v)return Qu;_v=1;function t(e,r){return function(n){return e(r(n))}}return Qu=t,Qu}var ec,jv;function hP(){if(jv)return ec;jv=1;var t=jb(),e=t(Object.keys,Object);return ec=e,ec}var tc,Ev;function yP(){if(Ev)return tc;Ev=1;var t=vP(),e=hP(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!t(a))return e(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,Tv;function vi(){if(Tv)return rc;Tv=1;var t=Rf(),e=Hf();function r(n){return n!=null&&e(n.length)&&!t(n)}return rc=r,rc}var nc,$v;function qa(){if($v)return nc;$v=1;var t=dP(),e=yP(),r=vi();function n(i){return r(i)?t(i):e(i)}return nc=n,nc}var ic,Iv;function mP(){if(Iv)return ic;Iv=1;var t=iP(),e=uP(),r=qa();function n(i){return t(i,r,e)}return ic=n,ic}var ac,Cv;function gP(){if(Cv)return ac;Cv=1;var t=mP(),e=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,c,s,f){var l=u&e,p=t(a),d=p.length,y=t(o),h=y.length;if(d!=h&&!l)return!1;for(var v=d;v--;){var g=p[v];if(!(l?g in o:n.call(o,g)))return!1}var b=f.get(a),x=f.get(o);if(b&&x)return b==o&&x==a;var A=!0;f.set(a,o),f.set(o,a);for(var m=l;++v<d;){g=p[v];var O=a[g],w=o[g];if(c)var S=l?c(w,O,g,o,a,f):c(O,w,g,a,o,f);if(!(S===void 0?O===w||s(O,w,u,c,f):S)){A=!1;break}m||(m=g=="constructor")}if(A&&!m){var _=a.constructor,T=o.constructor;_!=T&&"constructor"in a&&"constructor"in o&&!(typeof _=="function"&&_ instanceof _&&typeof T=="function"&&T instanceof T)&&(A=!1)}return f.delete(a),f.delete(o),A}return ac=i,ac}var oc,Rv;function bP(){if(Rv)return oc;Rv=1;var t=nr(),e=ot(),r=t(e,"DataView");return oc=r,oc}var uc,kv;function xP(){if(kv)return uc;kv=1;var t=nr(),e=ot(),r=t(e,"Promise");return uc=r,uc}var cc,Mv;function Eb(){if(Mv)return cc;Mv=1;var t=nr(),e=ot(),r=t(e,"Set");return cc=r,cc}var sc,Dv;function OP(){if(Dv)return sc;Dv=1;var t=nr(),e=ot(),r=t(e,"WeakMap");return sc=r,sc}var lc,Nv;function AP(){if(Nv)return lc;Nv=1;var t=bP(),e=Mf(),r=xP(),n=Eb(),i=OP(),a=mt(),o=ab(),u="[object Map]",c="[object Object]",s="[object Promise]",f="[object Set]",l="[object WeakMap]",p="[object DataView]",d=o(t),y=o(e),h=o(r),v=o(n),g=o(i),b=a;return(t&&b(new t(new ArrayBuffer(1)))!=p||e&&b(new e)!=u||r&&b(r.resolve())!=s||n&&b(new n)!=f||i&&b(new i)!=l)&&(b=function(x){var A=a(x),m=A==c?x.constructor:void 0,O=m?o(m):"";if(O)switch(O){case d:return p;case y:return u;case h:return s;case v:return f;case g:return l}return A}),lc=b,lc}var fc,Lv;function wP(){if(Lv)return fc;Lv=1;var t=gb(),e=Ab(),r=nP(),n=gP(),i=AP(),a=Te(),o=Pb(),u=_b(),c=1,s="[object Arguments]",f="[object Array]",l="[object Object]",p=Object.prototype,d=p.hasOwnProperty;function y(h,v,g,b,x,A){var m=a(h),O=a(v),w=m?f:i(h),S=O?f:i(v);w=w==s?l:w,S=S==s?l:S;var _=w==l,T=S==l,j=w==S;if(j&&o(h)){if(!o(v))return!1;m=!0,_=!1}if(j&&!_)return A||(A=new t),m||u(h)?e(h,v,g,b,x,A):r(h,v,w,g,b,x,A);if(!(g&c)){var E=_&&d.call(h,"__wrapped__"),$=T&&d.call(v,"__wrapped__");if(E||$){var C=E?h.value():h,I=$?v.value():v;return A||(A=new t),x(C,I,g,b,A)}}return j?(A||(A=new t),n(h,v,g,b,x,A)):!1}return fc=y,fc}var pc,qv;function Uf(){if(qv)return pc;qv=1;var t=wP(),e=gt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!e(n)&&!e(i)?n!==n&&i!==i:t(n,i,a,o,r,u)}return pc=r,pc}var dc,Bv;function PP(){if(Bv)return dc;Bv=1;var t=gb(),e=Uf(),r=1,n=2;function i(a,o,u,c){var s=u.length,f=s,l=!c;if(a==null)return!f;for(a=Object(a);s--;){var p=u[s];if(l&&p[2]?p[1]!==a[p[0]]:!(p[0]in a))return!1}for(;++s<f;){p=u[s];var d=p[0],y=a[d],h=p[1];if(l&&p[2]){if(y===void 0&&!(d in a))return!1}else{var v=new t;if(c)var g=c(y,h,d,a,o,v);if(!(g===void 0?e(h,y,r|n,c,v):g))return!1}}return!0}return dc=i,dc}var vc,Fv;function Tb(){if(Fv)return vc;Fv=1;var t=Tt();function e(r){return r===r&&!t(r)}return vc=e,vc}var hc,zv;function SP(){if(zv)return hc;zv=1;var t=Tb(),e=qa();function r(n){for(var i=e(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,t(u)]}return i}return hc=r,hc}var yc,Kv;function $b(){if(Kv)return yc;Kv=1;function t(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}return yc=t,yc}var mc,Wv;function _P(){if(Wv)return mc;Wv=1;var t=PP(),e=SP(),r=$b();function n(i){var a=e(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||t(o,i,a)}}return mc=n,mc}var gc,Gv;function jP(){if(Gv)return gc;Gv=1;function t(e,r){return e!=null&&r in Object(e)}return gc=t,gc}var bc,Hv;function EP(){if(Hv)return bc;Hv=1;var t=cb(),e=Wf(),r=Te(),n=Gf(),i=Hf(),a=Da();function o(u,c,s){c=t(c,u);for(var f=-1,l=c.length,p=!1;++f<l;){var d=a(c[f]);if(!(p=u!=null&&s(u,d)))break;u=u[d]}return p||++f!=l?p:(l=u==null?0:u.length,!!l&&i(l)&&n(d,l)&&(r(u)||e(u)))}return bc=o,bc}var xc,Uv;function TP(){if(Uv)return xc;Uv=1;var t=jP(),e=EP();function r(n,i){return n!=null&&e(n,i,t)}return xc=r,xc}var Oc,Vv;function $P(){if(Vv)return Oc;Vv=1;var t=Uf(),e=sb(),r=TP(),n=Cf(),i=Tb(),a=$b(),o=Da(),u=1,c=2;function s(f,l){return n(f)&&i(l)?a(o(f),l):function(p){var d=e(p,f);return d===void 0&&d===l?r(p,f):t(l,d,u|c)}}return Oc=s,Oc}var Ac,Xv;function tn(){if(Xv)return Ac;Xv=1;function t(e){return e}return Ac=t,Ac}var wc,Yv;function IP(){if(Yv)return wc;Yv=1;function t(e){return function(r){return r==null?void 0:r[e]}}return wc=t,wc}var Pc,Zv;function CP(){if(Zv)return Pc;Zv=1;var t=Lf();function e(r){return function(n){return t(n,r)}}return Pc=e,Pc}var Sc,Jv;function RP(){if(Jv)return Sc;Jv=1;var t=IP(),e=CP(),r=Cf(),n=Da();function i(a){return r(a)?t(n(a)):e(a)}return Sc=i,Sc}var _c,Qv;function ut(){if(Qv)return _c;Qv=1;var t=_P(),e=$P(),r=tn(),n=Te(),i=RP();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?e(o[0],o[1]):t(o):i(o)}return _c=a,_c}var jc,eh;function Ib(){if(eh)return jc;eh=1;function t(e,r,n,i){for(var a=e.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(e[o],o,e))return o;return-1}return jc=t,jc}var Ec,th;function kP(){if(th)return Ec;th=1;function t(e){return e!==e}return Ec=t,Ec}var Tc,rh;function MP(){if(rh)return Tc;rh=1;function t(e,r,n){for(var i=n-1,a=e.length;++i<a;)if(e[i]===r)return i;return-1}return Tc=t,Tc}var $c,nh;function DP(){if(nh)return $c;nh=1;var t=Ib(),e=kP(),r=MP();function n(i,a,o){return a===a?r(i,a,o):t(i,e,o)}return $c=n,$c}var Ic,ih;function NP(){if(ih)return Ic;ih=1;var t=DP();function e(r,n){var i=r==null?0:r.length;return!!i&&t(r,n,0)>-1}return Ic=e,Ic}var Cc,ah;function LP(){if(ah)return Cc;ah=1;function t(e,r,n){for(var i=-1,a=e==null?0:e.length;++i<a;)if(n(r,e[i]))return!0;return!1}return Cc=t,Cc}var Rc,oh;function qP(){if(oh)return Rc;oh=1;function t(){}return Rc=t,Rc}var kc,uh;function BP(){if(uh)return kc;uh=1;var t=Eb(),e=qP(),r=Kf(),n=1/0,i=t&&1/r(new t([,-0]))[1]==n?function(a){return new t(a)}:e;return kc=i,kc}var Mc,ch;function FP(){if(ch)return Mc;ch=1;var t=bb(),e=NP(),r=LP(),n=Ob(),i=BP(),a=Kf(),o=200;function u(c,s,f){var l=-1,p=e,d=c.length,y=!0,h=[],v=h;if(f)y=!1,p=r;else if(d>=o){var g=s?null:i(c);if(g)return a(g);y=!1,p=n,v=new t}else v=s?[]:h;e:for(;++l<d;){var b=c[l],x=s?s(b):b;if(b=f||b!==0?b:0,y&&x===x){for(var A=v.length;A--;)if(v[A]===x)continue e;s&&v.push(x),h.push(b)}else p(v,x,f)||(v!==h&&v.push(x),h.push(b))}return h}return Mc=u,Mc}var Dc,sh;function zP(){if(sh)return Dc;sh=1;var t=ut(),e=FP();function r(n,i){return n&&n.length?e(n,t(i,2)):[]}return Dc=r,Dc}var KP=zP();const lh=re(KP);function Cb(t,e,r){return e===!0?lh(t,r):W(e)?lh(t,e):t}function _r(t){"@babel/helpers - typeof";return _r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_r(t)}var WP=["ref"];function fh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ct(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fh(Object(r),!0).forEach(function(n){Ba(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fh(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function GP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ph(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,kb(n.key),n)}}function HP(t,e,r){return e&&ph(t.prototype,e),r&&ph(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function UP(t,e,r){return e=zi(e),VP(t,Rb()?Reflect.construct(e,r||[],zi(t).constructor):e.apply(t,r))}function VP(t,e){if(e&&(_r(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XP(t)}function XP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rb=function(){return!!t})()}function zi(t){return zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zi(t)}function YP(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bl(t,e)}function bl(t,e){return bl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bl(t,e)}function Ba(t,e,r){return e=kb(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kb(t){var e=ZP(t,"string");return _r(e)=="symbol"?e:e+""}function ZP(t,e){if(_r(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(_r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function JP(t,e){if(t==null)return{};var r=QP(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function QP(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function eS(t){return t.value}function tS(t,e){if(P.isValidElement(t))return P.cloneElement(t,e);if(typeof t=="function")return P.createElement(t,e);e.ref;var r=JP(e,WP);return P.createElement(zf,r)}var dh=1,Vt=(function(t){function e(){var r;GP(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=UP(this,e,[].concat(i)),Ba(r,"lastBoundingBox",{width:-1,height:-1}),r}return YP(e,t),HP(e,[{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)>dh||Math.abs(i.height-this.lastBoundingBox.height)>dh)&&(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?ct({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,c=i.margin,s=i.chartWidth,f=i.chartHeight,l,p;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var d=this.getBBoxSnapshot();l={left:((s||0)-d.width)/2}}else l=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();p={top:((f||0)-y.height)/2}}else p=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return ct(ct({},l),p)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,c=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,l=ct(ct({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return P.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(d){n.wrapperNode=d}},tS(a,ct(ct({},this.props),{},{payload:Cb(f,s,eS)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ct(ct({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&L(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(M.PureComponent);Ba(Vt,"displayName","Legend");Ba(Vt,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Nc,vh;function rS(){if(vh)return Nc;vh=1;var t=di(),e=Wf(),r=Te(),n=t?t.isConcatSpreadable:void 0;function i(a){return r(a)||e(a)||!!(n&&a&&a[n])}return Nc=i,Nc}var Lc,hh;function Mb(){if(hh)return Lc;hh=1;var t=wb(),e=rS();function r(n,i,a,o,u){var c=-1,s=n.length;for(a||(a=e),u||(u=[]);++c<s;){var f=n[c];i>0&&a(f)?i>1?r(f,i-1,a,o,u):t(u,f):o||(u[u.length]=f)}return u}return Lc=r,Lc}var qc,yh;function nS(){if(yh)return qc;yh=1;function t(e){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),c=u.length;c--;){var s=u[e?c:++a];if(n(o[s],s,o)===!1)break}return r}}return qc=t,qc}var Bc,mh;function iS(){if(mh)return Bc;mh=1;var t=nS(),e=t();return Bc=e,Bc}var Fc,gh;function Db(){if(gh)return Fc;gh=1;var t=iS(),e=qa();function r(n,i){return n&&t(n,i,e)}return Fc=r,Fc}var zc,bh;function aS(){if(bh)return zc;bh=1;var t=vi();function e(r,n){return function(i,a){if(i==null)return i;if(!t(i))return r(i,a);for(var o=i.length,u=n?o:-1,c=Object(i);(n?u--:++u<o)&&a(c[u],u,c)!==!1;);return i}}return zc=e,zc}var Kc,xh;function Vf(){if(xh)return Kc;xh=1;var t=Db(),e=aS(),r=e(t);return Kc=r,Kc}var Wc,Oh;function Nb(){if(Oh)return Wc;Oh=1;var t=Vf(),e=vi();function r(n,i){var a=-1,o=e(n)?Array(n.length):[];return t(n,function(u,c,s){o[++a]=i(u,c,s)}),o}return Wc=r,Wc}var Gc,Ah;function oS(){if(Ah)return Gc;Ah=1;function t(e,r){var n=e.length;for(e.sort(r);n--;)e[n]=e[n].value;return e}return Gc=t,Gc}var Hc,wh;function uS(){if(wh)return Hc;wh=1;var t=Jr();function e(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=t(r),c=n!==void 0,s=n===null,f=n===n,l=t(n);if(!s&&!l&&!u&&r>n||u&&c&&f&&!s&&!l||a&&c&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||s&&i&&o||!c&&o||!f)return-1}return 0}return Hc=e,Hc}var Uc,Ph;function cS(){if(Ph)return Uc;Ph=1;var t=uS();function e(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,c=o.length,s=i.length;++a<c;){var f=t(o[a],u[a]);if(f){if(a>=s)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return Uc=e,Uc}var Vc,Sh;function sS(){if(Sh)return Vc;Sh=1;var t=Nf(),e=Lf(),r=ut(),n=Nb(),i=oS(),a=Sb(),o=cS(),u=tn(),c=Te();function s(f,l,p){l.length?l=t(l,function(h){return c(h)?function(v){return e(v,h.length===1?h[0]:h)}:h}):l=[u];var d=-1;l=t(l,a(r));var y=n(f,function(h,v,g){var b=t(l,function(x){return x(h)});return{criteria:b,index:++d,value:h}});return i(y,function(h,v){return o(h,v,p)})}return Vc=s,Vc}var Xc,_h;function lS(){if(_h)return Xc;_h=1;function t(e,r,n){switch(n.length){case 0:return e.call(r);case 1:return e.call(r,n[0]);case 2:return e.call(r,n[0],n[1]);case 3:return e.call(r,n[0],n[1],n[2])}return e.apply(r,n)}return Xc=t,Xc}var Yc,jh;function fS(){if(jh)return Yc;jh=1;var t=lS(),e=Math.max;function r(n,i,a){return i=e(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,c=e(o.length-i,0),s=Array(c);++u<c;)s[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(s),t(n,this,f)}}return Yc=r,Yc}var Zc,Eh;function pS(){if(Eh)return Zc;Eh=1;function t(e){return function(){return e}}return Zc=t,Zc}var Jc,Th;function Lb(){if(Th)return Jc;Th=1;var t=nr(),e=(function(){try{var r=t(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Jc=e,Jc}var Qc,$h;function dS(){if($h)return Qc;$h=1;var t=pS(),e=Lb(),r=tn(),n=e?function(i,a){return e(i,"toString",{configurable:!0,enumerable:!1,value:t(a),writable:!0})}:r;return Qc=n,Qc}var es,Ih;function vS(){if(Ih)return es;Ih=1;var t=800,e=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),c=e-(u-o);if(o=u,c>0){if(++a>=t)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return es=n,es}var ts,Ch;function hS(){if(Ch)return ts;Ch=1;var t=dS(),e=vS(),r=e(t);return ts=r,ts}var rs,Rh;function yS(){if(Rh)return rs;Rh=1;var t=tn(),e=fS(),r=hS();function n(i,a){return r(e(i,a,t),i+"")}return rs=n,rs}var ns,kh;function Fa(){if(kh)return ns;kh=1;var t=kf(),e=vi(),r=Gf(),n=Tt();function i(a,o,u){if(!n(u))return!1;var c=typeof o;return(c=="number"?e(u)&&r(o,u.length):c=="string"&&o in u)?t(u[o],a):!1}return ns=i,ns}var is,Mh;function mS(){if(Mh)return is;Mh=1;var t=Mb(),e=sS(),r=yS(),n=Fa(),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]]),e(a,t(o,1),[])});return is=i,is}var gS=mS();const Xf=re(gS);function Mn(t){"@babel/helpers - typeof";return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mn(t)}function xl(){return xl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xl.apply(this,arguments)}function bS(t,e){return wS(t)||AS(t,e)||OS(t,e)||xS()}function xS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OS(t,e){if(t){if(typeof t=="string")return Dh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dh(t,e)}}function Dh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function AS(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function wS(t){if(Array.isArray(t))return t}function Nh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function as(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Nh(Object(r),!0).forEach(function(n){PS(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nh(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function PS(t,e,r){return e=SS(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function SS(t){var e=_S(t,"string");return Mn(e)=="symbol"?e:e+""}function _S(t,e){if(Mn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function jS(t){return Array.isArray(t)&&ye(t[0])&&ye(t[1])?t.join(" ~ "):t}var ES=function(e){var r=e.separator,n=r===void 0?" : ":r,i=e.contentStyle,a=i===void 0?{}:i,o=e.itemStyle,u=o===void 0?{}:o,c=e.labelStyle,s=c===void 0?{}:c,f=e.payload,l=e.formatter,p=e.itemSorter,d=e.wrapperClassName,y=e.labelClassName,h=e.label,v=e.labelFormatter,g=e.accessibilityLayer,b=g===void 0?!1:g,x=function(){if(f&&f.length){var E={padding:0,margin:0},$=(p?Xf(f,p):f).map(function(C,I){if(C.type==="none")return null;var k=as({display:"block",paddingTop:4,paddingBottom:4,color:C.color||"#000"},u),N=C.formatter||l||jS,q=C.value,B=C.name,G=q,Y=B;if(N&&G!=null&&Y!=null){var z=N(q,B,C,I,f);if(Array.isArray(z)){var Z=bS(z,2);G=Z[0],Y=Z[1]}else G=z}return P.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(I),style:k},ye(Y)?P.createElement("span",{className:"recharts-tooltip-item-name"},Y):null,ye(Y)?P.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,P.createElement("span",{className:"recharts-tooltip-item-value"},G),P.createElement("span",{className:"recharts-tooltip-item-unit"},C.unit||""))});return P.createElement("ul",{className:"recharts-tooltip-item-list",style:E},$)}return null},A=as({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=as({margin:0},s),O=!H(h),w=O?h:"",S=V("recharts-default-tooltip",d),_=V("recharts-tooltip-label",y);O&&v&&f!==void 0&&f!==null&&(w=v(h,f));var T=b?{role:"status","aria-live":"assertive"}:{};return P.createElement("div",xl({className:S,style:A},T),P.createElement("p",{className:_,style:m},P.isValidElement(w)?w:"".concat(w)),x())};function Dn(t){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dn(t)}function ji(t,e,r){return e=TS(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function TS(t){var e=$S(t,"string");return Dn(e)=="symbol"?e:e+""}function $S(t,e){if(Dn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var hn="recharts-tooltip-wrapper",IS={visibility:"hidden"};function CS(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return V(hn,ji(ji(ji(ji({},"".concat(hn,"-right"),L(r)&&e&&L(e.x)&&r>=e.x),"".concat(hn,"-left"),L(r)&&e&&L(e.x)&&r<e.x),"".concat(hn,"-bottom"),L(n)&&e&&L(e.y)&&n>=e.y),"".concat(hn,"-top"),L(n)&&e&&L(e.y)&&n<e.y))}function Lh(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,i=t.offsetTopLeft,a=t.position,o=t.reverseDirection,u=t.tooltipDimension,c=t.viewBox,s=t.viewBoxDimension;if(a&&L(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(e[n])return o[n]?f:l;if(o[n]){var p=f,d=c[n];return p<d?Math.max(l,c[n]):Math.max(f,c[n])}var y=l+u,h=c[n]+s;return y>h?Math.max(f,c[n]):Math.max(l,c[n])}function RS(t){var e=t.translateX,r=t.translateY,n=t.useTranslate3d;return{transform:n?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}function kS(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.offsetTopLeft,i=t.position,a=t.reverseDirection,o=t.tooltipBox,u=t.useTranslate3d,c=t.viewBox,s,f,l;return o.height>0&&o.width>0&&r?(f=Lh({allowEscapeViewBox:e,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=Lh({allowEscapeViewBox:e,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=RS({translateX:f,translateY:l,useTranslate3d:u})):s=IS,{cssProperties:s,cssClasses:CS({translateX:f,translateY:l,coordinate:r})}}function jr(t){"@babel/helpers - typeof";return jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jr(t)}function qh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Bh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qh(Object(r),!0).forEach(function(n){Al(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qh(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function MS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function DS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Bb(n.key),n)}}function NS(t,e,r){return e&&DS(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function LS(t,e,r){return e=Ki(e),qS(t,qb()?Reflect.construct(e,r||[],Ki(t).constructor):e.apply(t,r))}function qS(t,e){if(e&&(jr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BS(t)}function BS(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qb=function(){return!!t})()}function Ki(t){return Ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ki(t)}function FS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ol(t,e)}function Ol(t,e){return Ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ol(t,e)}function Al(t,e,r){return e=Bb(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bb(t){var e=zS(t,"string");return jr(e)=="symbol"?e:e+""}function zS(t,e){if(jr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Fh=1,KS=(function(t){function e(){var r;MS(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=LS(this,e,[].concat(i)),Al(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Al(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,c,s,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&u!==void 0?u:0,y:(s=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&s!==void 0?s:0}})}}),r}return FS(e,t),NS(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Fh||Math.abs(n.height-this.state.lastBoundingBox.height)>Fh)&&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,c=i.animationEasing,s=i.children,f=i.coordinate,l=i.hasPayload,p=i.isAnimationActive,d=i.offset,y=i.position,h=i.reverseDirection,v=i.useTranslate3d,g=i.viewBox,b=i.wrapperStyle,x=kS({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:d,position:y,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:g}),A=x.cssClasses,m=x.cssProperties,O=Bh(Bh({transition:p&&a?"transform ".concat(u,"ms ").concat(c):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},b);return P.createElement("div",{tabIndex:-1,className:A,style:O,ref:function(S){n.wrapperNode=S}},s)}}])})(M.PureComponent),WS=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Je={isSsr:WS()};function Er(t){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Er(t)}function zh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Kh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zh(Object(r),!0).forEach(function(n){Yf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zh(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function GS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,zb(n.key),n)}}function US(t,e,r){return e&&HS(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function VS(t,e,r){return e=Wi(e),XS(t,Fb()?Reflect.construct(e,r||[],Wi(t).constructor):e.apply(t,r))}function XS(t,e){if(e&&(Er(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YS(t)}function YS(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fb=function(){return!!t})()}function Wi(t){return Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wi(t)}function ZS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wl(t,e)}function wl(t,e){return wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wl(t,e)}function Yf(t,e,r){return e=zb(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zb(t){var e=JS(t,"string");return Er(e)=="symbol"?e:e+""}function JS(t,e){if(Er(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function QS(t){return t.dataKey}function e_(t,e){return P.isValidElement(t)?P.cloneElement(t,e):typeof t=="function"?P.createElement(t,e):P.createElement(ES,e)}var Qe=(function(t){function e(){return GS(this,e),VS(this,e,arguments)}return ZS(e,t),US(e,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.content,f=i.coordinate,l=i.filterNull,p=i.isAnimationActive,d=i.offset,y=i.payload,h=i.payloadUniqBy,v=i.position,g=i.reverseDirection,b=i.useTranslate3d,x=i.viewBox,A=i.wrapperStyle,m=y??[];l&&m.length&&(m=Cb(y.filter(function(w){return w.value!=null&&(w.hide!==!0||n.props.includeHidden)}),h,QS));var O=m.length>0;return P.createElement(KS,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:p,active:a,coordinate:f,hasPayload:O,offset:d,position:v,reverseDirection:g,useTranslate3d:b,viewBox:x,wrapperStyle:A},e_(s,Kh(Kh({},this.props),{},{payload:m})))}}])})(M.PureComponent);Yf(Qe,"displayName","Tooltip");Yf(Qe,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Je.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 os,Wh;function t_(){if(Wh)return os;Wh=1;var t=ot(),e=function(){return t.Date.now()};return os=e,os}var us,Gh;function r_(){if(Gh)return us;Gh=1;var t=/\s/;function e(r){for(var n=r.length;n--&&t.test(r.charAt(n)););return n}return us=e,us}var cs,Hh;function n_(){if(Hh)return cs;Hh=1;var t=r_(),e=/^\s+/;function r(n){return n&&n.slice(0,t(n)+1).replace(e,"")}return cs=r,cs}var ss,Uh;function Kb(){if(Uh)return ss;Uh=1;var t=n_(),e=Tt(),r=Jr(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function c(s){if(typeof s=="number")return s;if(r(s))return n;if(e(s)){var f=typeof s.valueOf=="function"?s.valueOf():s;s=e(f)?f+"":f}if(typeof s!="string")return s===0?s:+s;s=t(s);var l=a.test(s);return l||o.test(s)?u(s.slice(2),l?2:8):i.test(s)?n:+s}return ss=c,ss}var ls,Vh;function i_(){if(Vh)return ls;Vh=1;var t=Tt(),e=t_(),r=Kb(),n="Expected a function",i=Math.max,a=Math.min;function o(u,c,s){var f,l,p,d,y,h,v=0,g=!1,b=!1,x=!0;if(typeof u!="function")throw new TypeError(n);c=r(c)||0,t(s)&&(g=!!s.leading,b="maxWait"in s,p=b?i(r(s.maxWait)||0,c):p,x="trailing"in s?!!s.trailing:x);function A($){var C=f,I=l;return f=l=void 0,v=$,d=u.apply(I,C),d}function m($){return v=$,y=setTimeout(S,c),g?A($):d}function O($){var C=$-h,I=$-v,k=c-C;return b?a(k,p-I):k}function w($){var C=$-h,I=$-v;return h===void 0||C>=c||C<0||b&&I>=p}function S(){var $=e();if(w($))return _($);y=setTimeout(S,O($))}function _($){return y=void 0,x&&f?A($):(f=l=void 0,d)}function T(){y!==void 0&&clearTimeout(y),v=0,f=h=l=y=void 0}function j(){return y===void 0?d:_(e())}function E(){var $=e(),C=w($);if(f=arguments,l=this,h=$,C){if(y===void 0)return m(h);if(b)return clearTimeout(y),y=setTimeout(S,c),A(h)}return y===void 0&&(y=setTimeout(S,c)),d}return E.cancel=T,E.flush=j,E}return ls=o,ls}var fs,Xh;function a_(){if(Xh)return fs;Xh=1;var t=i_(),e=Tt(),r="Expected a function";function n(i,a,o){var u=!0,c=!0;if(typeof i!="function")throw new TypeError(r);return e(o)&&(u="leading"in o?!!o.leading:u,c="trailing"in o?!!o.trailing:c),t(i,a,{leading:u,maxWait:a,trailing:c})}return fs=n,fs}var o_=a_();const Wb=re(o_);function Nn(t){"@babel/helpers - typeof";return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nn(t)}function Yh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ei(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Yh(Object(r),!0).forEach(function(n){u_(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yh(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function u_(t,e,r){return e=c_(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c_(t){var e=s_(t,"string");return Nn(e)=="symbol"?e:e+""}function s_(t,e){if(Nn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function l_(t,e){return v_(t)||d_(t,e)||p_(t,e)||f_()}function f_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p_(t,e){if(t){if(typeof t=="string")return Zh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zh(t,e)}}function Zh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function d_(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function v_(t){if(Array.isArray(t))return t}var h_=M.forwardRef(function(t,e){var r=t.aspect,n=t.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=t.width,o=a===void 0?"100%":a,u=t.height,c=u===void 0?"100%":u,s=t.minWidth,f=s===void 0?0:s,l=t.minHeight,p=t.maxHeight,d=t.children,y=t.debounce,h=y===void 0?0:y,v=t.id,g=t.className,b=t.onResize,x=t.style,A=x===void 0?{}:x,m=M.useRef(null),O=M.useRef();O.current=b,M.useImperativeHandle(e,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var w=M.useState({containerWidth:i.width,containerHeight:i.height}),S=l_(w,2),_=S[0],T=S[1],j=M.useCallback(function($,C){T(function(I){var k=Math.round($),N=Math.round(C);return I.containerWidth===k&&I.containerHeight===N?I:{containerWidth:k,containerHeight:N}})},[]);M.useEffect(function(){var $=function(B){var G,Y=B[0].contentRect,z=Y.width,Z=Y.height;j(z,Z),(G=O.current)===null||G===void 0||G.call(O,z,Z)};h>0&&($=Wb($,h,{trailing:!0,leading:!1}));var C=new ResizeObserver($),I=m.current.getBoundingClientRect(),k=I.width,N=I.height;return j(k,N),C.observe(m.current),function(){C.disconnect()}},[j,h]);var E=M.useMemo(function(){var $=_.containerWidth,C=_.containerHeight;if($<0||C<0)return null;Ve(Gt(o)||Gt(c),`The width(%s) and height(%s) are both fixed numbers,
12
+ A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return P.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(qe/8,"h").concat(qe,"v").concat(qe*3/4,"h").concat(-qe,"z"),className:"recharts-legend-icon"});if(P.isValidElement(n.legendIcon)){var s=Bw({},n);return delete s.legendIcon,P.cloneElement(n.legendIcon,s)}return P.createElement(qa,{fill:c,cx:a,cy:a,size:qe,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,c=i.formatter,s=i.inactiveColor,f={x:0,y:0,width:qe,height:qe},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(d,y){var h=d.formatter||c,v=V(kn(kn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",d.inactive));if(d.type==="none")return null;var b=W(d.value)?null:d.value;Ve(!W(d.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 g=d.inactive?s:d.color;return P.createElement("li",gl({className:v,style:l,key:"legend-item-".concat(y)},nt(n.props,d,y)),P.createElement(dl,{width:o,height:o,viewBox:f,style:p},n.renderIcon(d)),P.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},h?h(b,d,y):b))})}},{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 P.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(M.PureComponent);kn(Kf,"displayName","Legend");kn(Kf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Au,Hd;function Xw(){if(Hd)return Au;Hd=1;var t=Ma();function e(){this.__data__=new t,this.size=0}return Au=e,Au}var wu,Ud;function Yw(){if(Ud)return wu;Ud=1;function t(e){var r=this.__data__,n=r.delete(e);return this.size=r.size,n}return wu=t,wu}var Pu,Vd;function Zw(){if(Vd)return Pu;Vd=1;function t(e){return this.__data__.get(e)}return Pu=t,Pu}var Su,Xd;function Jw(){if(Xd)return Su;Xd=1;function t(e){return this.__data__.has(e)}return Su=t,Su}var _u,Yd;function Qw(){if(Yd)return _u;Yd=1;var t=Ma(),e=Df(),r=Nf(),n=200;function i(a,o){var u=this.__data__;if(u instanceof t){var c=u.__data__;if(!e||c.length<n-1)return c.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(c)}return u.set(a,o),this.size=u.size,this}return _u=i,_u}var ju,Zd;function gb(){if(Zd)return ju;Zd=1;var t=Ma(),e=Xw(),r=Yw(),n=Zw(),i=Jw(),a=Qw();function o(u){var c=this.__data__=new t(u);this.size=c.size}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,ju=o,ju}var Eu,Jd;function eP(){if(Jd)return Eu;Jd=1;var t="__lodash_hash_undefined__";function e(r){return this.__data__.set(r,t),this}return Eu=e,Eu}var Tu,Qd;function tP(){if(Qd)return Tu;Qd=1;function t(e){return this.__data__.has(e)}return Tu=t,Tu}var $u,ev;function bb(){if(ev)return $u;ev=1;var t=Nf(),e=eP(),r=tP();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new t;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,$u=n,$u}var Iu,tv;function xb(){if(tv)return Iu;tv=1;function t(e,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(e[n],n,e))return!0;return!1}return Iu=t,Iu}var Cu,rv;function Ob(){if(rv)return Cu;rv=1;function t(e,r){return e.has(r)}return Cu=t,Cu}var Ru,nv;function Ab(){if(nv)return Ru;nv=1;var t=bb(),e=xb(),r=Ob(),n=1,i=2;function a(o,u,c,s,f,l){var p=c&n,d=o.length,y=u.length;if(d!=y&&!(p&&y>d))return!1;var h=l.get(o),v=l.get(u);if(h&&v)return h==u&&v==o;var b=-1,g=!0,x=c&i?new t:void 0;for(l.set(o,u),l.set(u,o);++b<d;){var A=o[b],m=u[b];if(s)var O=p?s(m,A,b,u,o,l):s(A,m,b,o,u,l);if(O!==void 0){if(O)continue;g=!1;break}if(x){if(!e(u,function(w,S){if(!r(x,S)&&(A===w||f(A,w,c,s,l)))return x.push(S)})){g=!1;break}}else if(!(A===m||f(A,m,c,s,l))){g=!1;break}}return l.delete(o),l.delete(u),g}return Ru=a,Ru}var ku,iv;function rP(){if(iv)return ku;iv=1;var t=ot(),e=t.Uint8Array;return ku=e,ku}var Mu,av;function nP(){if(av)return Mu;av=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(i,a){n[++r]=[a,i]}),n}return Mu=t,Mu}var Du,ov;function Wf(){if(ov)return Du;ov=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(i){n[++r]=i}),n}return Du=t,Du}var Nu,uv;function iP(){if(uv)return Nu;uv=1;var t=di(),e=rP(),r=Mf(),n=Ab(),i=nP(),a=Wf(),o=1,u=2,c="[object Boolean]",s="[object Date]",f="[object Error]",l="[object Map]",p="[object Number]",d="[object RegExp]",y="[object Set]",h="[object String]",v="[object Symbol]",b="[object ArrayBuffer]",g="[object DataView]",x=t?t.prototype:void 0,A=x?x.valueOf:void 0;function m(O,w,S,_,T,j,E){switch(S){case g:if(O.byteLength!=w.byteLength||O.byteOffset!=w.byteOffset)return!1;O=O.buffer,w=w.buffer;case b:return!(O.byteLength!=w.byteLength||!j(new e(O),new e(w)));case c:case s:case p:return r(+O,+w);case f:return O.name==w.name&&O.message==w.message;case d:case h:return O==w+"";case l:var $=i;case y:var C=_&o;if($||($=a),O.size!=w.size&&!C)return!1;var I=E.get(O);if(I)return I==w;_|=u,E.set(O,w);var k=n($(O),$(w),_,T,j,E);return E.delete(O),k;case v:if(A)return A.call(O)==A.call(w)}return!1}return Nu=m,Nu}var Lu,cv;function wb(){if(cv)return Lu;cv=1;function t(e,r){for(var n=-1,i=r.length,a=e.length;++n<i;)e[a+n]=r[n];return e}return Lu=t,Lu}var qu,sv;function aP(){if(sv)return qu;sv=1;var t=wb(),e=Te();function r(n,i,a){var o=i(n);return e(n)?o:t(o,a(n))}return qu=r,qu}var Bu,lv;function oP(){if(lv)return Bu;lv=1;function t(e,r){for(var n=-1,i=e==null?0:e.length,a=0,o=[];++n<i;){var u=e[n];r(u,n,e)&&(o[a++]=u)}return o}return Bu=t,Bu}var Fu,fv;function uP(){if(fv)return Fu;fv=1;function t(){return[]}return Fu=t,Fu}var zu,pv;function cP(){if(pv)return zu;pv=1;var t=oP(),e=uP(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),t(i(o),function(u){return n.call(o,u)}))}:e;return zu=a,zu}var Ku,dv;function sP(){if(dv)return Ku;dv=1;function t(e,r){for(var n=-1,i=Array(e);++n<e;)i[n]=r(n);return i}return Ku=t,Ku}var Wu,vv;function lP(){if(vv)return Wu;vv=1;var t=mt(),e=gt(),r="[object Arguments]";function n(i){return e(i)&&t(i)==r}return Wu=n,Wu}var Gu,hv;function Gf(){if(hv)return Gu;hv=1;var t=lP(),e=gt(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=t((function(){return arguments})())?t:function(o){return e(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Gu=a,Gu}var On={exports:{}},Hu,yv;function fP(){if(yv)return Hu;yv=1;function t(){return!1}return Hu=t,Hu}On.exports;var mv;function Pb(){return mv||(mv=1,(function(t,e){var r=ot(),n=fP(),i=e&&!e.nodeType&&e,a=i&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===i,u=o?r.Buffer:void 0,c=u?u.isBuffer:void 0,s=c||n;t.exports=s})(On,On.exports)),On.exports}var Uu,gv;function Hf(){if(gv)return Uu;gv=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??t,!!i&&(a=="number"||a!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<i}return Uu=r,Uu}var Vu,bv;function Uf(){if(bv)return Vu;bv=1;var t=9007199254740991;function e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}return Vu=e,Vu}var Xu,xv;function pP(){if(xv)return Xu;xv=1;var t=mt(),e=Uf(),r=gt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",c="[object Function]",s="[object Map]",f="[object Number]",l="[object Object]",p="[object RegExp]",d="[object Set]",y="[object String]",h="[object WeakMap]",v="[object ArrayBuffer]",b="[object DataView]",g="[object Float32Array]",x="[object Float64Array]",A="[object Int8Array]",m="[object Int16Array]",O="[object Int32Array]",w="[object Uint8Array]",S="[object Uint8ClampedArray]",_="[object Uint16Array]",T="[object Uint32Array]",j={};j[g]=j[x]=j[A]=j[m]=j[O]=j[w]=j[S]=j[_]=j[T]=!0,j[n]=j[i]=j[v]=j[a]=j[b]=j[o]=j[u]=j[c]=j[s]=j[f]=j[l]=j[p]=j[d]=j[y]=j[h]=!1;function E($){return r($)&&e($.length)&&!!j[t($)]}return Xu=E,Xu}var Yu,Ov;function Sb(){if(Ov)return Yu;Ov=1;function t(e){return function(r){return e(r)}}return Yu=t,Yu}var An={exports:{}};An.exports;var Av;function dP(){return Av||(Av=1,(function(t,e){var r=ib(),n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}})();t.exports=u})(An,An.exports)),An.exports}var Zu,wv;function _b(){if(wv)return Zu;wv=1;var t=pP(),e=Sb(),r=dP(),n=r&&r.isTypedArray,i=n?e(n):t;return Zu=i,Zu}var Ju,Pv;function vP(){if(Pv)return Ju;Pv=1;var t=sP(),e=Gf(),r=Te(),n=Pb(),i=Hf(),a=_b(),o=Object.prototype,u=o.hasOwnProperty;function c(s,f){var l=r(s),p=!l&&e(s),d=!l&&!p&&n(s),y=!l&&!p&&!d&&a(s),h=l||p||d||y,v=h?t(s.length,String):[],b=v.length;for(var g in s)(f||u.call(s,g))&&!(h&&(g=="length"||d&&(g=="offset"||g=="parent")||y&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||i(g,b)))&&v.push(g);return v}return Ju=c,Ju}var Qu,Sv;function hP(){if(Sv)return Qu;Sv=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||t;return r===i}return Qu=e,Qu}var ec,_v;function jb(){if(_v)return ec;_v=1;function t(e,r){return function(n){return e(r(n))}}return ec=t,ec}var tc,jv;function yP(){if(jv)return tc;jv=1;var t=jb(),e=t(Object.keys,Object);return tc=e,tc}var rc,Ev;function mP(){if(Ev)return rc;Ev=1;var t=hP(),e=yP(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!t(a))return e(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return rc=i,rc}var nc,Tv;function vi(){if(Tv)return nc;Tv=1;var t=kf(),e=Uf();function r(n){return n!=null&&e(n.length)&&!t(n)}return nc=r,nc}var ic,$v;function Ba(){if($v)return ic;$v=1;var t=vP(),e=mP(),r=vi();function n(i){return r(i)?t(i):e(i)}return ic=n,ic}var ac,Iv;function gP(){if(Iv)return ac;Iv=1;var t=aP(),e=cP(),r=Ba();function n(i){return t(i,r,e)}return ac=n,ac}var oc,Cv;function bP(){if(Cv)return oc;Cv=1;var t=gP(),e=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,c,s,f){var l=u&e,p=t(a),d=p.length,y=t(o),h=y.length;if(d!=h&&!l)return!1;for(var v=d;v--;){var b=p[v];if(!(l?b in o:n.call(o,b)))return!1}var g=f.get(a),x=f.get(o);if(g&&x)return g==o&&x==a;var A=!0;f.set(a,o),f.set(o,a);for(var m=l;++v<d;){b=p[v];var O=a[b],w=o[b];if(c)var S=l?c(w,O,b,o,a,f):c(O,w,b,a,o,f);if(!(S===void 0?O===w||s(O,w,u,c,f):S)){A=!1;break}m||(m=b=="constructor")}if(A&&!m){var _=a.constructor,T=o.constructor;_!=T&&"constructor"in a&&"constructor"in o&&!(typeof _=="function"&&_ instanceof _&&typeof T=="function"&&T instanceof T)&&(A=!1)}return f.delete(a),f.delete(o),A}return oc=i,oc}var uc,Rv;function xP(){if(Rv)return uc;Rv=1;var t=nr(),e=ot(),r=t(e,"DataView");return uc=r,uc}var cc,kv;function OP(){if(kv)return cc;kv=1;var t=nr(),e=ot(),r=t(e,"Promise");return cc=r,cc}var sc,Mv;function Eb(){if(Mv)return sc;Mv=1;var t=nr(),e=ot(),r=t(e,"Set");return sc=r,sc}var lc,Dv;function AP(){if(Dv)return lc;Dv=1;var t=nr(),e=ot(),r=t(e,"WeakMap");return lc=r,lc}var fc,Nv;function wP(){if(Nv)return fc;Nv=1;var t=xP(),e=Df(),r=OP(),n=Eb(),i=AP(),a=mt(),o=ab(),u="[object Map]",c="[object Object]",s="[object Promise]",f="[object Set]",l="[object WeakMap]",p="[object DataView]",d=o(t),y=o(e),h=o(r),v=o(n),b=o(i),g=a;return(t&&g(new t(new ArrayBuffer(1)))!=p||e&&g(new e)!=u||r&&g(r.resolve())!=s||n&&g(new n)!=f||i&&g(new i)!=l)&&(g=function(x){var A=a(x),m=A==c?x.constructor:void 0,O=m?o(m):"";if(O)switch(O){case d:return p;case y:return u;case h:return s;case v:return f;case b:return l}return A}),fc=g,fc}var pc,Lv;function PP(){if(Lv)return pc;Lv=1;var t=gb(),e=Ab(),r=iP(),n=bP(),i=wP(),a=Te(),o=Pb(),u=_b(),c=1,s="[object Arguments]",f="[object Array]",l="[object Object]",p=Object.prototype,d=p.hasOwnProperty;function y(h,v,b,g,x,A){var m=a(h),O=a(v),w=m?f:i(h),S=O?f:i(v);w=w==s?l:w,S=S==s?l:S;var _=w==l,T=S==l,j=w==S;if(j&&o(h)){if(!o(v))return!1;m=!0,_=!1}if(j&&!_)return A||(A=new t),m||u(h)?e(h,v,b,g,x,A):r(h,v,w,b,g,x,A);if(!(b&c)){var E=_&&d.call(h,"__wrapped__"),$=T&&d.call(v,"__wrapped__");if(E||$){var C=E?h.value():h,I=$?v.value():v;return A||(A=new t),x(C,I,b,g,A)}}return j?(A||(A=new t),n(h,v,b,g,x,A)):!1}return pc=y,pc}var dc,qv;function Vf(){if(qv)return dc;qv=1;var t=PP(),e=gt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!e(n)&&!e(i)?n!==n&&i!==i:t(n,i,a,o,r,u)}return dc=r,dc}var vc,Bv;function SP(){if(Bv)return vc;Bv=1;var t=gb(),e=Vf(),r=1,n=2;function i(a,o,u,c){var s=u.length,f=s,l=!c;if(a==null)return!f;for(a=Object(a);s--;){var p=u[s];if(l&&p[2]?p[1]!==a[p[0]]:!(p[0]in a))return!1}for(;++s<f;){p=u[s];var d=p[0],y=a[d],h=p[1];if(l&&p[2]){if(y===void 0&&!(d in a))return!1}else{var v=new t;if(c)var b=c(y,h,d,a,o,v);if(!(b===void 0?e(h,y,r|n,c,v):b))return!1}}return!0}return vc=i,vc}var hc,Fv;function Tb(){if(Fv)return hc;Fv=1;var t=Tt();function e(r){return r===r&&!t(r)}return hc=e,hc}var yc,zv;function _P(){if(zv)return yc;zv=1;var t=Tb(),e=Ba();function r(n){for(var i=e(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,t(u)]}return i}return yc=r,yc}var mc,Kv;function $b(){if(Kv)return mc;Kv=1;function t(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}return mc=t,mc}var gc,Wv;function jP(){if(Wv)return gc;Wv=1;var t=SP(),e=_P(),r=$b();function n(i){var a=e(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||t(o,i,a)}}return gc=n,gc}var bc,Gv;function EP(){if(Gv)return bc;Gv=1;function t(e,r){return e!=null&&r in Object(e)}return bc=t,bc}var xc,Hv;function TP(){if(Hv)return xc;Hv=1;var t=cb(),e=Gf(),r=Te(),n=Hf(),i=Uf(),a=Na();function o(u,c,s){c=t(c,u);for(var f=-1,l=c.length,p=!1;++f<l;){var d=a(c[f]);if(!(p=u!=null&&s(u,d)))break;u=u[d]}return p||++f!=l?p:(l=u==null?0:u.length,!!l&&i(l)&&n(d,l)&&(r(u)||e(u)))}return xc=o,xc}var Oc,Uv;function $P(){if(Uv)return Oc;Uv=1;var t=EP(),e=TP();function r(n,i){return n!=null&&e(n,i,t)}return Oc=r,Oc}var Ac,Vv;function IP(){if(Vv)return Ac;Vv=1;var t=Vf(),e=sb(),r=$P(),n=Rf(),i=Tb(),a=$b(),o=Na(),u=1,c=2;function s(f,l){return n(f)&&i(l)?a(o(f),l):function(p){var d=e(p,f);return d===void 0&&d===l?r(p,f):t(l,d,u|c)}}return Ac=s,Ac}var wc,Xv;function tn(){if(Xv)return wc;Xv=1;function t(e){return e}return wc=t,wc}var Pc,Yv;function CP(){if(Yv)return Pc;Yv=1;function t(e){return function(r){return r==null?void 0:r[e]}}return Pc=t,Pc}var Sc,Zv;function RP(){if(Zv)return Sc;Zv=1;var t=qf();function e(r){return function(n){return t(n,r)}}return Sc=e,Sc}var _c,Jv;function kP(){if(Jv)return _c;Jv=1;var t=CP(),e=RP(),r=Rf(),n=Na();function i(a){return r(a)?t(n(a)):e(a)}return _c=i,_c}var jc,Qv;function ut(){if(Qv)return jc;Qv=1;var t=jP(),e=IP(),r=tn(),n=Te(),i=kP();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?e(o[0],o[1]):t(o):i(o)}return jc=a,jc}var Ec,eh;function Ib(){if(eh)return Ec;eh=1;function t(e,r,n,i){for(var a=e.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(e[o],o,e))return o;return-1}return Ec=t,Ec}var Tc,th;function MP(){if(th)return Tc;th=1;function t(e){return e!==e}return Tc=t,Tc}var $c,rh;function DP(){if(rh)return $c;rh=1;function t(e,r,n){for(var i=n-1,a=e.length;++i<a;)if(e[i]===r)return i;return-1}return $c=t,$c}var Ic,nh;function NP(){if(nh)return Ic;nh=1;var t=Ib(),e=MP(),r=DP();function n(i,a,o){return a===a?r(i,a,o):t(i,e,o)}return Ic=n,Ic}var Cc,ih;function LP(){if(ih)return Cc;ih=1;var t=NP();function e(r,n){var i=r==null?0:r.length;return!!i&&t(r,n,0)>-1}return Cc=e,Cc}var Rc,ah;function qP(){if(ah)return Rc;ah=1;function t(e,r,n){for(var i=-1,a=e==null?0:e.length;++i<a;)if(n(r,e[i]))return!0;return!1}return Rc=t,Rc}var kc,oh;function BP(){if(oh)return kc;oh=1;function t(){}return kc=t,kc}var Mc,uh;function FP(){if(uh)return Mc;uh=1;var t=Eb(),e=BP(),r=Wf(),n=1/0,i=t&&1/r(new t([,-0]))[1]==n?function(a){return new t(a)}:e;return Mc=i,Mc}var Dc,ch;function zP(){if(ch)return Dc;ch=1;var t=bb(),e=LP(),r=qP(),n=Ob(),i=FP(),a=Wf(),o=200;function u(c,s,f){var l=-1,p=e,d=c.length,y=!0,h=[],v=h;if(f)y=!1,p=r;else if(d>=o){var b=s?null:i(c);if(b)return a(b);y=!1,p=n,v=new t}else v=s?[]:h;e:for(;++l<d;){var g=c[l],x=s?s(g):g;if(g=f||g!==0?g:0,y&&x===x){for(var A=v.length;A--;)if(v[A]===x)continue e;s&&v.push(x),h.push(g)}else p(v,x,f)||(v!==h&&v.push(x),h.push(g))}return h}return Dc=u,Dc}var Nc,sh;function KP(){if(sh)return Nc;sh=1;var t=ut(),e=zP();function r(n,i){return n&&n.length?e(n,t(i,2)):[]}return Nc=r,Nc}var WP=KP();const lh=re(WP);function Cb(t,e,r){return e===!0?lh(t,r):W(e)?lh(t,e):t}function _r(t){"@babel/helpers - typeof";return _r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_r(t)}var GP=["ref"];function fh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ct(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fh(Object(r),!0).forEach(function(n){Fa(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fh(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function HP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ph(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,kb(n.key),n)}}function UP(t,e,r){return e&&ph(t.prototype,e),r&&ph(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function VP(t,e,r){return e=Ki(e),XP(t,Rb()?Reflect.construct(e,r||[],Ki(t).constructor):e.apply(t,r))}function XP(t,e){if(e&&(_r(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YP(t)}function YP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rb=function(){return!!t})()}function Ki(t){return Ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ki(t)}function ZP(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xl(t,e)}function xl(t,e){return xl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xl(t,e)}function Fa(t,e,r){return e=kb(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kb(t){var e=JP(t,"string");return _r(e)=="symbol"?e:e+""}function JP(t,e){if(_r(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(_r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function QP(t,e){if(t==null)return{};var r=eS(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function eS(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function tS(t){return t.value}function rS(t,e){if(P.isValidElement(t))return P.cloneElement(t,e);if(typeof t=="function")return P.createElement(t,e);e.ref;var r=QP(e,GP);return P.createElement(Kf,r)}var dh=1,Vt=(function(t){function e(){var r;HP(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=VP(this,e,[].concat(i)),Fa(r,"lastBoundingBox",{width:-1,height:-1}),r}return ZP(e,t),UP(e,[{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)>dh||Math.abs(i.height-this.lastBoundingBox.height)>dh)&&(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?ct({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,c=i.margin,s=i.chartWidth,f=i.chartHeight,l,p;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var d=this.getBBoxSnapshot();l={left:((s||0)-d.width)/2}}else l=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();p={top:((f||0)-y.height)/2}}else p=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return ct(ct({},l),p)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,c=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,l=ct(ct({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return P.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(d){n.wrapperNode=d}},rS(a,ct(ct({},this.props),{},{payload:Cb(f,s,tS)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ct(ct({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&L(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(M.PureComponent);Fa(Vt,"displayName","Legend");Fa(Vt,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Lc,vh;function nS(){if(vh)return Lc;vh=1;var t=di(),e=Gf(),r=Te(),n=t?t.isConcatSpreadable:void 0;function i(a){return r(a)||e(a)||!!(n&&a&&a[n])}return Lc=i,Lc}var qc,hh;function Mb(){if(hh)return qc;hh=1;var t=wb(),e=nS();function r(n,i,a,o,u){var c=-1,s=n.length;for(a||(a=e),u||(u=[]);++c<s;){var f=n[c];i>0&&a(f)?i>1?r(f,i-1,a,o,u):t(u,f):o||(u[u.length]=f)}return u}return qc=r,qc}var Bc,yh;function iS(){if(yh)return Bc;yh=1;function t(e){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),c=u.length;c--;){var s=u[e?c:++a];if(n(o[s],s,o)===!1)break}return r}}return Bc=t,Bc}var Fc,mh;function aS(){if(mh)return Fc;mh=1;var t=iS(),e=t();return Fc=e,Fc}var zc,gh;function Db(){if(gh)return zc;gh=1;var t=aS(),e=Ba();function r(n,i){return n&&t(n,i,e)}return zc=r,zc}var Kc,bh;function oS(){if(bh)return Kc;bh=1;var t=vi();function e(r,n){return function(i,a){if(i==null)return i;if(!t(i))return r(i,a);for(var o=i.length,u=n?o:-1,c=Object(i);(n?u--:++u<o)&&a(c[u],u,c)!==!1;);return i}}return Kc=e,Kc}var Wc,xh;function Xf(){if(xh)return Wc;xh=1;var t=Db(),e=oS(),r=e(t);return Wc=r,Wc}var Gc,Oh;function Nb(){if(Oh)return Gc;Oh=1;var t=Xf(),e=vi();function r(n,i){var a=-1,o=e(n)?Array(n.length):[];return t(n,function(u,c,s){o[++a]=i(u,c,s)}),o}return Gc=r,Gc}var Hc,Ah;function uS(){if(Ah)return Hc;Ah=1;function t(e,r){var n=e.length;for(e.sort(r);n--;)e[n]=e[n].value;return e}return Hc=t,Hc}var Uc,wh;function cS(){if(wh)return Uc;wh=1;var t=Jr();function e(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=t(r),c=n!==void 0,s=n===null,f=n===n,l=t(n);if(!s&&!l&&!u&&r>n||u&&c&&f&&!s&&!l||a&&c&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||s&&i&&o||!c&&o||!f)return-1}return 0}return Uc=e,Uc}var Vc,Ph;function sS(){if(Ph)return Vc;Ph=1;var t=cS();function e(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,c=o.length,s=i.length;++a<c;){var f=t(o[a],u[a]);if(f){if(a>=s)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return Vc=e,Vc}var Xc,Sh;function lS(){if(Sh)return Xc;Sh=1;var t=Lf(),e=qf(),r=ut(),n=Nb(),i=uS(),a=Sb(),o=sS(),u=tn(),c=Te();function s(f,l,p){l.length?l=t(l,function(h){return c(h)?function(v){return e(v,h.length===1?h[0]:h)}:h}):l=[u];var d=-1;l=t(l,a(r));var y=n(f,function(h,v,b){var g=t(l,function(x){return x(h)});return{criteria:g,index:++d,value:h}});return i(y,function(h,v){return o(h,v,p)})}return Xc=s,Xc}var Yc,_h;function fS(){if(_h)return Yc;_h=1;function t(e,r,n){switch(n.length){case 0:return e.call(r);case 1:return e.call(r,n[0]);case 2:return e.call(r,n[0],n[1]);case 3:return e.call(r,n[0],n[1],n[2])}return e.apply(r,n)}return Yc=t,Yc}var Zc,jh;function pS(){if(jh)return Zc;jh=1;var t=fS(),e=Math.max;function r(n,i,a){return i=e(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,c=e(o.length-i,0),s=Array(c);++u<c;)s[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(s),t(n,this,f)}}return Zc=r,Zc}var Jc,Eh;function dS(){if(Eh)return Jc;Eh=1;function t(e){return function(){return e}}return Jc=t,Jc}var Qc,Th;function Lb(){if(Th)return Qc;Th=1;var t=nr(),e=(function(){try{var r=t(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Qc=e,Qc}var es,$h;function vS(){if($h)return es;$h=1;var t=dS(),e=Lb(),r=tn(),n=e?function(i,a){return e(i,"toString",{configurable:!0,enumerable:!1,value:t(a),writable:!0})}:r;return es=n,es}var ts,Ih;function hS(){if(Ih)return ts;Ih=1;var t=800,e=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),c=e-(u-o);if(o=u,c>0){if(++a>=t)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return ts=n,ts}var rs,Ch;function yS(){if(Ch)return rs;Ch=1;var t=vS(),e=hS(),r=e(t);return rs=r,rs}var ns,Rh;function mS(){if(Rh)return ns;Rh=1;var t=tn(),e=pS(),r=yS();function n(i,a){return r(e(i,a,t),i+"")}return ns=n,ns}var is,kh;function za(){if(kh)return is;kh=1;var t=Mf(),e=vi(),r=Hf(),n=Tt();function i(a,o,u){if(!n(u))return!1;var c=typeof o;return(c=="number"?e(u)&&r(o,u.length):c=="string"&&o in u)?t(u[o],a):!1}return is=i,is}var as,Mh;function gS(){if(Mh)return as;Mh=1;var t=Mb(),e=lS(),r=mS(),n=za(),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]]),e(a,t(o,1),[])});return as=i,as}var bS=gS();const Yf=re(bS);function Mn(t){"@babel/helpers - typeof";return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mn(t)}function Ol(){return Ol=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ol.apply(this,arguments)}function xS(t,e){return PS(t)||wS(t,e)||AS(t,e)||OS()}function OS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AS(t,e){if(t){if(typeof t=="string")return Dh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dh(t,e)}}function Dh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function wS(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function PS(t){if(Array.isArray(t))return t}function Nh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function os(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Nh(Object(r),!0).forEach(function(n){SS(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nh(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function SS(t,e,r){return e=_S(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _S(t){var e=jS(t,"string");return Mn(e)=="symbol"?e:e+""}function jS(t,e){if(Mn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ES(t){return Array.isArray(t)&&ye(t[0])&&ye(t[1])?t.join(" ~ "):t}var TS=function(e){var r=e.separator,n=r===void 0?" : ":r,i=e.contentStyle,a=i===void 0?{}:i,o=e.itemStyle,u=o===void 0?{}:o,c=e.labelStyle,s=c===void 0?{}:c,f=e.payload,l=e.formatter,p=e.itemSorter,d=e.wrapperClassName,y=e.labelClassName,h=e.label,v=e.labelFormatter,b=e.accessibilityLayer,g=b===void 0?!1:b,x=function(){if(f&&f.length){var E={padding:0,margin:0},$=(p?Yf(f,p):f).map(function(C,I){if(C.type==="none")return null;var k=os({display:"block",paddingTop:4,paddingBottom:4,color:C.color||"#000"},u),N=C.formatter||l||ES,q=C.value,B=C.name,G=q,Y=B;if(N&&G!=null&&Y!=null){var z=N(q,B,C,I,f);if(Array.isArray(z)){var Z=xS(z,2);G=Z[0],Y=Z[1]}else G=z}return P.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(I),style:k},ye(Y)?P.createElement("span",{className:"recharts-tooltip-item-name"},Y):null,ye(Y)?P.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,P.createElement("span",{className:"recharts-tooltip-item-value"},G),P.createElement("span",{className:"recharts-tooltip-item-unit"},C.unit||""))});return P.createElement("ul",{className:"recharts-tooltip-item-list",style:E},$)}return null},A=os({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=os({margin:0},s),O=!H(h),w=O?h:"",S=V("recharts-default-tooltip",d),_=V("recharts-tooltip-label",y);O&&v&&f!==void 0&&f!==null&&(w=v(h,f));var T=g?{role:"status","aria-live":"assertive"}:{};return P.createElement("div",Ol({className:S,style:A},T),P.createElement("p",{className:_,style:m},P.isValidElement(w)?w:"".concat(w)),x())};function Dn(t){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dn(t)}function Ei(t,e,r){return e=$S(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $S(t){var e=IS(t,"string");return Dn(e)=="symbol"?e:e+""}function IS(t,e){if(Dn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var hn="recharts-tooltip-wrapper",CS={visibility:"hidden"};function RS(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return V(hn,Ei(Ei(Ei(Ei({},"".concat(hn,"-right"),L(r)&&e&&L(e.x)&&r>=e.x),"".concat(hn,"-left"),L(r)&&e&&L(e.x)&&r<e.x),"".concat(hn,"-bottom"),L(n)&&e&&L(e.y)&&n>=e.y),"".concat(hn,"-top"),L(n)&&e&&L(e.y)&&n<e.y))}function Lh(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,i=t.offsetTopLeft,a=t.position,o=t.reverseDirection,u=t.tooltipDimension,c=t.viewBox,s=t.viewBoxDimension;if(a&&L(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(e[n])return o[n]?f:l;if(o[n]){var p=f,d=c[n];return p<d?Math.max(l,c[n]):Math.max(f,c[n])}var y=l+u,h=c[n]+s;return y>h?Math.max(f,c[n]):Math.max(l,c[n])}function kS(t){var e=t.translateX,r=t.translateY,n=t.useTranslate3d;return{transform:n?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}function MS(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.offsetTopLeft,i=t.position,a=t.reverseDirection,o=t.tooltipBox,u=t.useTranslate3d,c=t.viewBox,s,f,l;return o.height>0&&o.width>0&&r?(f=Lh({allowEscapeViewBox:e,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=Lh({allowEscapeViewBox:e,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=kS({translateX:f,translateY:l,useTranslate3d:u})):s=CS,{cssProperties:s,cssClasses:RS({translateX:f,translateY:l,coordinate:r})}}function jr(t){"@babel/helpers - typeof";return jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jr(t)}function qh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Bh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qh(Object(r),!0).forEach(function(n){wl(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qh(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function DS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function NS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Bb(n.key),n)}}function LS(t,e,r){return e&&NS(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function qS(t,e,r){return e=Wi(e),BS(t,qb()?Reflect.construct(e,r||[],Wi(t).constructor):e.apply(t,r))}function BS(t,e){if(e&&(jr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FS(t)}function FS(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qb=function(){return!!t})()}function Wi(t){return Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wi(t)}function zS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Al(t,e)}function Al(t,e){return Al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Al(t,e)}function wl(t,e,r){return e=Bb(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bb(t){var e=KS(t,"string");return jr(e)=="symbol"?e:e+""}function KS(t,e){if(jr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Fh=1,WS=(function(t){function e(){var r;DS(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=qS(this,e,[].concat(i)),wl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),wl(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,c,s,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&u!==void 0?u:0,y:(s=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&s!==void 0?s:0}})}}),r}return zS(e,t),LS(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Fh||Math.abs(n.height-this.state.lastBoundingBox.height)>Fh)&&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,c=i.animationEasing,s=i.children,f=i.coordinate,l=i.hasPayload,p=i.isAnimationActive,d=i.offset,y=i.position,h=i.reverseDirection,v=i.useTranslate3d,b=i.viewBox,g=i.wrapperStyle,x=MS({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:d,position:y,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:b}),A=x.cssClasses,m=x.cssProperties,O=Bh(Bh({transition:p&&a?"transform ".concat(u,"ms ").concat(c):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},g);return P.createElement("div",{tabIndex:-1,className:A,style:O,ref:function(S){n.wrapperNode=S}},s)}}])})(M.PureComponent),GS=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Je={isSsr:GS()};function Er(t){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Er(t)}function zh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Kh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zh(Object(r),!0).forEach(function(n){Zf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zh(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function HS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function US(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,zb(n.key),n)}}function VS(t,e,r){return e&&US(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function XS(t,e,r){return e=Gi(e),YS(t,Fb()?Reflect.construct(e,r||[],Gi(t).constructor):e.apply(t,r))}function YS(t,e){if(e&&(Er(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZS(t)}function ZS(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fb=function(){return!!t})()}function Gi(t){return Gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gi(t)}function JS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pl(t,e)}function Pl(t,e){return Pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pl(t,e)}function Zf(t,e,r){return e=zb(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zb(t){var e=QS(t,"string");return Er(e)=="symbol"?e:e+""}function QS(t,e){if(Er(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function e_(t){return t.dataKey}function t_(t,e){return P.isValidElement(t)?P.cloneElement(t,e):typeof t=="function"?P.createElement(t,e):P.createElement(TS,e)}var Qe=(function(t){function e(){return HS(this,e),XS(this,e,arguments)}return JS(e,t),VS(e,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.content,f=i.coordinate,l=i.filterNull,p=i.isAnimationActive,d=i.offset,y=i.payload,h=i.payloadUniqBy,v=i.position,b=i.reverseDirection,g=i.useTranslate3d,x=i.viewBox,A=i.wrapperStyle,m=y??[];l&&m.length&&(m=Cb(y.filter(function(w){return w.value!=null&&(w.hide!==!0||n.props.includeHidden)}),h,e_));var O=m.length>0;return P.createElement(WS,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:p,active:a,coordinate:f,hasPayload:O,offset:d,position:v,reverseDirection:b,useTranslate3d:g,viewBox:x,wrapperStyle:A},t_(s,Kh(Kh({},this.props),{},{payload:m})))}}])})(M.PureComponent);Zf(Qe,"displayName","Tooltip");Zf(Qe,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Je.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 us,Wh;function r_(){if(Wh)return us;Wh=1;var t=ot(),e=function(){return t.Date.now()};return us=e,us}var cs,Gh;function n_(){if(Gh)return cs;Gh=1;var t=/\s/;function e(r){for(var n=r.length;n--&&t.test(r.charAt(n)););return n}return cs=e,cs}var ss,Hh;function i_(){if(Hh)return ss;Hh=1;var t=n_(),e=/^\s+/;function r(n){return n&&n.slice(0,t(n)+1).replace(e,"")}return ss=r,ss}var ls,Uh;function Kb(){if(Uh)return ls;Uh=1;var t=i_(),e=Tt(),r=Jr(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function c(s){if(typeof s=="number")return s;if(r(s))return n;if(e(s)){var f=typeof s.valueOf=="function"?s.valueOf():s;s=e(f)?f+"":f}if(typeof s!="string")return s===0?s:+s;s=t(s);var l=a.test(s);return l||o.test(s)?u(s.slice(2),l?2:8):i.test(s)?n:+s}return ls=c,ls}var fs,Vh;function a_(){if(Vh)return fs;Vh=1;var t=Tt(),e=r_(),r=Kb(),n="Expected a function",i=Math.max,a=Math.min;function o(u,c,s){var f,l,p,d,y,h,v=0,b=!1,g=!1,x=!0;if(typeof u!="function")throw new TypeError(n);c=r(c)||0,t(s)&&(b=!!s.leading,g="maxWait"in s,p=g?i(r(s.maxWait)||0,c):p,x="trailing"in s?!!s.trailing:x);function A($){var C=f,I=l;return f=l=void 0,v=$,d=u.apply(I,C),d}function m($){return v=$,y=setTimeout(S,c),b?A($):d}function O($){var C=$-h,I=$-v,k=c-C;return g?a(k,p-I):k}function w($){var C=$-h,I=$-v;return h===void 0||C>=c||C<0||g&&I>=p}function S(){var $=e();if(w($))return _($);y=setTimeout(S,O($))}function _($){return y=void 0,x&&f?A($):(f=l=void 0,d)}function T(){y!==void 0&&clearTimeout(y),v=0,f=h=l=y=void 0}function j(){return y===void 0?d:_(e())}function E(){var $=e(),C=w($);if(f=arguments,l=this,h=$,C){if(y===void 0)return m(h);if(g)return clearTimeout(y),y=setTimeout(S,c),A(h)}return y===void 0&&(y=setTimeout(S,c)),d}return E.cancel=T,E.flush=j,E}return fs=o,fs}var ps,Xh;function o_(){if(Xh)return ps;Xh=1;var t=a_(),e=Tt(),r="Expected a function";function n(i,a,o){var u=!0,c=!0;if(typeof i!="function")throw new TypeError(r);return e(o)&&(u="leading"in o?!!o.leading:u,c="trailing"in o?!!o.trailing:c),t(i,a,{leading:u,maxWait:a,trailing:c})}return ps=n,ps}var u_=o_();const Wb=re(u_);function Nn(t){"@babel/helpers - typeof";return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nn(t)}function Yh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ti(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Yh(Object(r),!0).forEach(function(n){c_(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yh(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function c_(t,e,r){return e=s_(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s_(t){var e=l_(t,"string");return Nn(e)=="symbol"?e:e+""}function l_(t,e){if(Nn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function f_(t,e){return h_(t)||v_(t,e)||d_(t,e)||p_()}function p_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d_(t,e){if(t){if(typeof t=="string")return Zh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zh(t,e)}}function Zh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function v_(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function h_(t){if(Array.isArray(t))return t}var y_=M.forwardRef(function(t,e){var r=t.aspect,n=t.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=t.width,o=a===void 0?"100%":a,u=t.height,c=u===void 0?"100%":u,s=t.minWidth,f=s===void 0?0:s,l=t.minHeight,p=t.maxHeight,d=t.children,y=t.debounce,h=y===void 0?0:y,v=t.id,b=t.className,g=t.onResize,x=t.style,A=x===void 0?{}:x,m=M.useRef(null),O=M.useRef();O.current=g,M.useImperativeHandle(e,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var w=M.useState({containerWidth:i.width,containerHeight:i.height}),S=f_(w,2),_=S[0],T=S[1],j=M.useCallback(function($,C){T(function(I){var k=Math.round($),N=Math.round(C);return I.containerWidth===k&&I.containerHeight===N?I:{containerWidth:k,containerHeight:N}})},[]);M.useEffect(function(){var $=function(B){var G,Y=B[0].contentRect,z=Y.width,Z=Y.height;j(z,Z),(G=O.current)===null||G===void 0||G.call(O,z,Z)};h>0&&($=Wb($,h,{trailing:!0,leading:!1}));var C=new ResizeObserver($),I=m.current.getBoundingClientRect(),k=I.width,N=I.height;return j(k,N),C.observe(m.current),function(){C.disconnect()}},[j,h]);var E=M.useMemo(function(){var $=_.containerWidth,C=_.containerHeight;if($<0||C<0)return null;Ve(Gt(o)||Gt(c),`The width(%s) and height(%s) are both fixed numbers,
15
15
  maybe you don't need to use a ResponsiveContainer.`,o,c),Ve(!r||r>0,"The aspect(%s) must be greater than zero.",r);var I=Gt(o)?$:o,k=Gt(c)?C:c;r&&r>0&&(I?k=I/r:k&&(I=k*r),p&&k>p&&(k=p)),Ve(I>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0,
16
16
  please check the style of container, or the props width(%s) and height(%s),
17
17
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
18
- height and width.`,I,k,o,c,f,l,r);var N=!Array.isArray(d)&&dt(d.type).endsWith("Chart");return P.Children.map(d,function(q){return P.isValidElement(q)?M.cloneElement(q,Ei({width:I,height:k},N?{style:Ei({height:"100%",width:"100%",maxHeight:k,maxWidth:I},q.props.style)}:{})):q})},[r,d,c,p,l,f,_,o]);return P.createElement("div",{id:v?"".concat(v):void 0,className:V("recharts-responsive-container",g),style:Ei(Ei({},A),{},{width:o,height:c,minWidth:f,minHeight:l,maxHeight:p}),ref:m},E)}),hi=function(e){return null};hi.displayName="Cell";function Ln(t){"@babel/helpers - typeof";return Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ln(t)}function Jh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Pl(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Jh(Object(r),!0).forEach(function(n){y_(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jh(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function y_(t,e,r){return e=m_(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function m_(t){var e=g_(t,"string");return Ln(e)=="symbol"?e:e+""}function g_(t,e){if(Ln(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var vr={widthCache:{},cacheCount:0},b_=2e3,x_={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Qh="recharts_measurement_span";function O_(t){var e=Pl({},t);return Object.keys(e).forEach(function(r){e[r]||delete e[r]}),e}var Sn=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||Je.isSsr)return{width:0,height:0};var n=O_(r),i=JSON.stringify({text:e,copyStyle:n});if(vr.widthCache[i])return vr.widthCache[i];try{var a=document.getElementById(Qh);a||(a=document.createElement("span"),a.setAttribute("id",Qh),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Pl(Pl({},x_),n);Object.assign(a.style,o),a.textContent="".concat(e);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return vr.widthCache[i]=c,++vr.cacheCount>b_&&(vr.cacheCount=0,vr.widthCache={}),c}catch{return{width:0,height:0}}},A_=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function qn(t){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qn(t)}function Gi(t,e){return __(t)||S_(t,e)||P_(t,e)||w_()}function w_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
19
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P_(t,e){if(t){if(typeof t=="string")return ey(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ey(t,e)}}function ey(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function S_(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function __(t){if(Array.isArray(t))return t}function j_(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ty(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,T_(n.key),n)}}function E_(t,e,r){return e&&ty(t.prototype,e),r&&ty(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function T_(t){var e=$_(t,"string");return qn(e)=="symbol"?e:e+""}function $_(t,e){if(qn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var ry=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ny=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,I_=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,C_=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Gb={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},R_=Object.keys(Gb),mr="NaN";function k_(t,e){return t*Gb[e]}var Ti=(function(){function t(e,r){j_(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),r!==""&&!I_.test(r)&&(this.num=NaN,this.unit=""),R_.includes(r)&&(this.num=k_(e,r),this.unit="px")}return E_(t,[{key:"add",value:function(r){return this.unit!==r.unit?new t(NaN,""):new t(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new t(NaN,""):new t(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new t(NaN,""):new t(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new t(NaN,""):new t(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=C_.exec(r))!==null&&n!==void 0?n:[],a=Gi(i,3),o=a[1],u=a[2];return new t(parseFloat(o),u??"")}}])})();function Hb(t){if(t.includes(mr))return mr;for(var e=t;e.includes("*")||e.includes("/");){var r,n=(r=ry.exec(e))!==null&&r!==void 0?r:[],i=Gi(n,4),a=i[1],o=i[2],u=i[3],c=Ti.parse(a??""),s=Ti.parse(u??""),f=o==="*"?c.multiply(s):c.divide(s);if(f.isNaN())return mr;e=e.replace(ry,f.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var l,p=(l=ny.exec(e))!==null&&l!==void 0?l:[],d=Gi(p,4),y=d[1],h=d[2],v=d[3],g=Ti.parse(y??""),b=Ti.parse(v??""),x=h==="+"?g.add(b):g.subtract(b);if(x.isNaN())return mr;e=e.replace(ny,x.toString())}return e}var iy=/\(([^()]*)\)/;function M_(t){for(var e=t;e.includes("(");){var r=iy.exec(e),n=Gi(r,2),i=n[1];e=e.replace(iy,Hb(i))}return e}function D_(t){var e=t.replace(/\s+/g,"");return e=M_(e),e=Hb(e),e}function N_(t){try{return D_(t)}catch{return mr}}function ps(t){var e=N_(t.slice(5,-1));return e===mr?"":e}var L_=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],q_=["dx","dy","angle","className","breakAll"];function Sl(){return Sl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Sl.apply(this,arguments)}function ay(t,e){if(t==null)return{};var r=B_(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function B_(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function oy(t,e){return W_(t)||K_(t,e)||z_(t,e)||F_()}function F_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z_(t,e){if(t){if(typeof t=="string")return uy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uy(t,e)}}function uy(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function K_(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function W_(t){if(Array.isArray(t))return t}var Ub=/[ \f\n\r\t\v\u2028\u2029]+/,Vb=function(e){var r=e.children,n=e.breakAll,i=e.style;try{var a=[];H(r)||(n?a=r.toString().split(""):a=r.toString().split(Ub));var o=a.map(function(c){return{word:c,width:Sn(c,i).width}}),u=n?0:Sn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},G_=function(e,r,n,i,a){var o=e.maxLines,u=e.children,c=e.style,s=e.breakAll,f=L(o),l=u,p=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return I.reduce(function(k,N){var q=N.word,B=N.width,G=k[k.length-1];if(G&&(i==null||a||G.width+B+n<Number(i)))G.words.push(q),G.width+=B+n;else{var Y={words:[q],width:B};k.push(Y)}return k},[])},d=p(r),y=function(I){return I.reduce(function(k,N){return k.width>N.width?k:N})};if(!f)return d;for(var h="…",v=function(I){var k=l.slice(0,I),N=Vb({breakAll:s,style:c,children:k+h}).wordsWithComputedWidth,q=p(N),B=q.length>o||y(q).width>Number(i);return[B,q]},g=0,b=l.length-1,x=0,A;g<=b&&x<=l.length-1;){var m=Math.floor((g+b)/2),O=m-1,w=v(O),S=oy(w,2),_=S[0],T=S[1],j=v(m),E=oy(j,1),$=E[0];if(!_&&!$&&(g=m+1),_&&$&&(b=m-1),!_&&$){A=T;break}x++}return A||d},cy=function(e){var r=H(e)?[]:e.toString().split(Ub);return[{words:r}]},H_=function(e){var r=e.width,n=e.scaleToFit,i=e.children,a=e.style,o=e.breakAll,u=e.maxLines;if((r||n)&&!Je.isSsr){var c,s,f=Vb({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,p=f.spaceWidth;c=l,s=p}else return cy(i);return G_({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return cy(i)},sy="#808080",Jt=function(e){var r=e.x,n=r===void 0?0:r,i=e.y,a=i===void 0?0:i,o=e.lineHeight,u=o===void 0?"1em":o,c=e.capHeight,s=c===void 0?"0.71em":c,f=e.scaleToFit,l=f===void 0?!1:f,p=e.textAnchor,d=p===void 0?"start":p,y=e.verticalAnchor,h=y===void 0?"end":y,v=e.fill,g=v===void 0?sy:v,b=ay(e,L_),x=M.useMemo(function(){return H_({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:l,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,l,b.style,b.width]),A=b.dx,m=b.dy,O=b.angle,w=b.className,S=b.breakAll,_=ay(b,q_);if(!ye(n)||!ye(a))return null;var T=n+(L(A)?A:0),j=a+(L(m)?m:0),E;switch(h){case"start":E=ps("calc(".concat(s,")"));break;case"middle":E=ps("calc(".concat((x.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:E=ps("calc(".concat(x.length-1," * -").concat(u,")"));break}var $=[];if(l){var C=x[0].width,I=b.width;$.push("scale(".concat((L(I)?I/C:1)/C,")"))}return O&&$.push("rotate(".concat(O,", ").concat(T,", ").concat(j,")")),$.length&&(_.transform=$.join(" ")),P.createElement("text",Sl({},F(_,!0),{x:T,y:j,className:V("recharts-text",w),textAnchor:d,fill:g.includes("url")?sy:g}),x.map(function(k,N){var q=k.words.join(S?"":" ");return P.createElement("tspan",{x:T,dy:N===0?E:u,key:"".concat(q,"-").concat(N)},q)}))};function U_(t=Li){if(t===Li)return Xb;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||n===0?n:(t(r,r)===0)-(t(e,e)===0)}}function Xb(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(t<e?-1:t>e?1:0)}function Yb(t,e,r=0,n=1/0,i){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(i=i===void 0?Xb:U_(i);n>r;){if(n-r>600){const c=n-r+1,s=e-r+1,f=Math.log(c),l=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*l*(c-l)/c)*(s-c/2<0?-1:1),d=Math.max(r,Math.floor(e-s*l/c+p)),y=Math.min(n,Math.floor(e+(c-s)*l/c+p));Yb(t,e,d,y,i)}const a=t[e];let o=r,u=n;for(yn(t,r,e),i(t[n],a)>0&&yn(t,r,n);o<u;){for(yn(t,o,u),++o,--u;i(t[o],a)<0;)++o;for(;i(t[u],a)>0;)--u}i(t[r],a)===0?yn(t,r,u):(++u,yn(t,u,n)),u<=e&&(r=u+1),e<=u&&(n=u-1)}return t}function yn(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function V_(t,e,r){if(t=Float64Array.from(E0(t)),!(!(n=t.length)||isNaN(e=+e))){if(e<=0||n<2)return Ap(t);if(e>=1)return wp(t);var n,i=(n-1)*e,a=Math.floor(i),o=wp(Yb(t,a).subarray(0,a+1)),u=Ap(t.subarray(a+1));return o+(u-o)*(i-a)}}function X_(t,e,r=T0){if(!(!(n=t.length)||isNaN(e=+e))){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t),u=+r(t[a+1],a+1,t);return o+(u-o)*(i-a)}}function Y_(t,e){e===void 0&&(e=t,t=Tf);for(var r=0,n=e.length-1,i=e[0],a=new Array(n<0?0:n);r<n;)a[r]=t(i,i=e[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function Zb(t){var e;function r(n){return n==null||isNaN(n=+n)?e:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(t=Array.from(n,ol),r):t.slice()},r.unknown=function(n){return arguments.length?(e=n,r):e},r.copy=function(){return Zb(t).unknown(e)},t=arguments.length?Array.from(t,ol):[0,1],rr(r)}function ly(t){return Math.log(t)}function fy(t){return Math.exp(t)}function Z_(t){return-Math.log(-t)}function J_(t){return-Math.exp(-t)}function Q_(t){return isFinite(t)?+("1e"+t):t<0?0:t}function e1(t){return t===10?Q_:t===Math.E?Math.exp:e=>Math.pow(t,e)}function t1(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function py(t){return(e,r)=>-t(-e,r)}function Zf(t){const e=t(ly,fy),r=e.domain;let n=10,i,a;function o(){return i=t1(n),a=e1(n),r()[0]<0?(i=py(i),a=py(a),t(Z_,J_)):t(ly,fy),e}return e.base=function(u){return arguments.length?(n=+u,o()):n},e.domain=function(u){return arguments.length?(r(u),o()):r()},e.ticks=u=>{const c=r();let s=c[0],f=c[c.length-1];const l=f<s;l&&([s,f]=[f,s]);let p=i(s),d=i(f),y,h;const v=u==null?10:+u;let g=[];if(!(n%1)&&d-p<v){if(p=Math.floor(p),d=Math.ceil(d),s>0){for(;p<=d;++p)for(y=1;y<n;++y)if(h=p<0?y/a(-p):y*a(p),!(h<s)){if(h>f)break;g.push(h)}}else for(;p<=d;++p)for(y=n-1;y>=1;--y)if(h=p>0?y/a(-p):y*a(p),!(h<s)){if(h>f)break;g.push(h)}g.length*2<v&&(g=Op(s,f,v))}else g=Op(p,d,Math.min(d-p,v)).map(a);return l?g.reverse():g},e.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=G0(c)).precision==null&&(c.trim=!0),c=H0(c)),u===1/0)return c;const s=Math.max(1,n*u/e.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=s?c(f):""}},e.nice=()=>r(C0(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),e}function Jb(){const t=Zf($f()).domain([1,10]);return t.copy=()=>If(t,Jb()).base(t.base()),Et.apply(t,arguments),t}function dy(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function vy(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Jf(t){var e=1,r=t(dy(e),vy(e));return r.constant=function(n){return arguments.length?t(dy(e=+n),vy(e)):e},rr(r)}function Qb(){var t=Jf($f());return t.copy=function(){return If(t,Qb()).constant(t.constant())},Et.apply(t,arguments)}function hy(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function r1(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function n1(t){return t<0?-t*t:t*t}function Qf(t){var e=t(ft,ft),r=1;function n(){return r===1?t(ft,ft):r===.5?t(r1,n1):t(hy(r),hy(1/r))}return e.exponent=function(i){return arguments.length?(r=+i,n()):r},rr(e)}function ep(){var t=Qf($f());return t.copy=function(){return If(t,ep()).exponent(t.exponent())},Et.apply(t,arguments),t}function i1(){return ep.apply(null,arguments).exponent(.5)}function yy(t){return Math.sign(t)*t*t}function a1(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function ex(){var t=$0(),e=[0,1],r=!1,n;function i(a){var o=a1(t(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return t.invert(yy(a))},i.domain=function(a){return arguments.length?(t.domain(a),i):t.domain()},i.range=function(a){return arguments.length?(t.range((e=Array.from(a,ol)).map(yy)),i):e.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?(t.clamp(a),i):t.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return ex(t.domain(),e).round(r).clamp(t.clamp()).unknown(n)},Et.apply(i,arguments),rr(i)}function tx(){var t=[],e=[],r=[],n;function i(){var o=0,u=Math.max(1,e.length);for(r=new Array(u-1);++o<u;)r[o-1]=X_(t,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:e[Ia(r,o)]}return a.invertExtent=function(o){var u=e.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:t[0],u<r.length?r[u]:t[t.length-1]]},a.domain=function(o){if(!arguments.length)return t.slice();t=[];for(let u of o)u!=null&&!isNaN(u=+u)&&t.push(u);return t.sort(Li),i()},a.range=function(o){return arguments.length?(e=Array.from(o),i()):e.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return tx().domain(t).range(e).unknown(n)},Et.apply(a,arguments)}function rx(){var t=0,e=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[Ia(n,c,0,r)]:a}function u(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*e-(c-r)*t)/(r+1);return o}return o.domain=function(c){return arguments.length?([t,e]=c,t=+t,e=+e,u()):[t,e]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,u()):i.slice()},o.invertExtent=function(c){var s=i.indexOf(c);return s<0?[NaN,NaN]:s<1?[t,n[0]]:s>=r?[n[r-1],e]:[n[s-1],n[s]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return rx().domain([t,e]).range(i).unknown(a)},Et.apply(rr(o),arguments)}function nx(){var t=[.5],e=[0,1],r,n=1;function i(a){return a!=null&&a<=a?e[Ia(t,a,0,n)]:r}return i.domain=function(a){return arguments.length?(t=Array.from(a),n=Math.min(t.length,e.length-1),i):t.slice()},i.range=function(a){return arguments.length?(e=Array.from(a),n=Math.min(t.length,e.length-1),i):e.slice()},i.invertExtent=function(a){var o=e.indexOf(a);return[t[o-1],t[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return nx().domain(t).range(e).unknown(r)},Et.apply(i,arguments)}function o1(){return Et.apply(R0(K0,z0,F0,B0,q0,L0,N0,D0,M0,k0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function za(){var t=0,e=1,r,n,i,a,o=ft,u=!1,c;function s(l){return l==null||isNaN(l=+l)?c:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}s.domain=function(l){return arguments.length?([t,e]=l,r=a(t=+t),n=a(e=+e),i=r===n?0:1/(n-r),s):[t,e]},s.clamp=function(l){return arguments.length?(u=!!l,s):u},s.interpolator=function(l){return arguments.length?(o=l,s):o};function f(l){return function(p){var d,y;return arguments.length?([d,y]=p,o=l(d,y),s):[o(0),o(1)]}}return s.range=f(Tf),s.rangeRound=f(nb),s.unknown=function(l){return arguments.length?(c=l,s):c},function(l){return a=l,r=l(t),n=l(e),i=r===n?0:1/(n-r),s}}function It(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function ix(){var t=rr(za()(ft));return t.copy=function(){return It(t,ix())},yt.apply(t,arguments)}function ax(){var t=Zf(za()).domain([1,10]);return t.copy=function(){return It(t,ax()).base(t.base())},yt.apply(t,arguments)}function ox(){var t=Jf(za());return t.copy=function(){return It(t,ox()).constant(t.constant())},yt.apply(t,arguments)}function tp(){var t=Qf(za());return t.copy=function(){return It(t,tp()).exponent(t.exponent())},yt.apply(t,arguments)}function u1(){return tp.apply(null,arguments).exponent(.5)}function ux(){var t=[],e=ft;function r(n){if(n!=null&&!isNaN(n=+n))return e((Ia(t,n,1)-1)/(t.length-1))}return r.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let i of n)i!=null&&!isNaN(i=+i)&&t.push(i);return t.sort(Li),r},r.interpolator=function(n){return arguments.length?(e=n,r):e},r.range=function(){return t.map((n,i)=>e(i/(t.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>V_(t,a/n))},r.copy=function(){return ux(e).domain(t)},yt.apply(r,arguments)}function Ka(){var t=0,e=.5,r=1,n=1,i,a,o,u,c,s=ft,f,l=!1,p;function d(h){return isNaN(h=+h)?p:(h=.5+((h=+f(h))-a)*(n*h<n*a?u:c),s(l?Math.max(0,Math.min(1,h)):h))}d.domain=function(h){return arguments.length?([t,e,r]=h,i=f(t=+t),a=f(e=+e),o=f(r=+r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,d):[t,e,r]},d.clamp=function(h){return arguments.length?(l=!!h,d):l},d.interpolator=function(h){return arguments.length?(s=h,d):s};function y(h){return function(v){var g,b,x;return arguments.length?([g,b,x]=v,s=Y_(h,[g,b,x]),d):[s(0),s(.5),s(1)]}}return d.range=y(Tf),d.rangeRound=y(nb),d.unknown=function(h){return arguments.length?(p=h,d):p},function(h){return f=h,i=h(t),a=h(e),o=h(r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,d}}function cx(){var t=rr(Ka()(ft));return t.copy=function(){return It(t,cx())},yt.apply(t,arguments)}function sx(){var t=Zf(Ka()).domain([.1,1,10]);return t.copy=function(){return It(t,sx()).base(t.base())},yt.apply(t,arguments)}function lx(){var t=Jf(Ka());return t.copy=function(){return It(t,lx()).constant(t.constant())},yt.apply(t,arguments)}function rp(){var t=Qf(Ka());return t.copy=function(){return It(t,rp()).exponent(t.exponent())},yt.apply(t,arguments)}function c1(){return rp.apply(null,arguments).exponent(.5)}const my=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:al,scaleDiverging:cx,scaleDivergingLog:sx,scaleDivergingPow:rp,scaleDivergingSqrt:c1,scaleDivergingSymlog:lx,scaleIdentity:Zb,scaleImplicit:U0,scaleLinear:ul,scaleLog:Jb,scaleOrdinal:V0,scalePoint:Pn,scalePow:ep,scaleQuantile:tx,scaleQuantize:rx,scaleRadial:ex,scaleSequential:ix,scaleSequentialLog:ax,scaleSequentialPow:tp,scaleSequentialQuantile:ux,scaleSequentialSqrt:u1,scaleSequentialSymlog:ox,scaleSqrt:i1,scaleSymlog:Qb,scaleThreshold:nx,scaleTime:W0,scaleUtc:o1,tickFormat:I0},Symbol.toStringTag,{value:"Module"}));var ds,gy;function Wa(){if(gy)return ds;gy=1;var t=Jr();function e(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],c=n(u);if(c!=null&&(s===void 0?c===c&&!t(c):i(c,s)))var s=c,f=u}return f}return ds=e,ds}var vs,by;function fx(){if(by)return vs;by=1;function t(e,r){return e>r}return vs=t,vs}var hs,xy;function s1(){if(xy)return hs;xy=1;var t=Wa(),e=fx(),r=tn();function n(i){return i&&i.length?t(i,r,e):void 0}return hs=n,hs}var l1=s1();const wt=re(l1);var ys,Oy;function px(){if(Oy)return ys;Oy=1;function t(e,r){return e<r}return ys=t,ys}var ms,Ay;function f1(){if(Ay)return ms;Ay=1;var t=Wa(),e=px(),r=tn();function n(i){return i&&i.length?t(i,r,e):void 0}return ms=n,ms}var p1=f1();const Ga=re(p1);var gs,wy;function d1(){if(wy)return gs;wy=1;var t=Nf(),e=ut(),r=Nb(),n=Te();function i(a,o){var u=n(a)?t:r;return u(a,e(o,3))}return gs=i,gs}var bs,Py;function v1(){if(Py)return bs;Py=1;var t=Mb(),e=d1();function r(n,i){return t(e(n,i),1)}return bs=r,bs}var h1=v1();const y1=re(h1);var xs,Sy;function m1(){if(Sy)return xs;Sy=1;var t=Uf();function e(r,n){return t(r,n)}return xs=e,xs}var g1=m1();const it=re(g1);var rn=1e9,b1={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},ip,ce=!0,Ke="[DecimalError] ",Xt=Ke+"Invalid argument: ",np=Ke+"Exponent out of range: ",nn=Math.floor,Kt=Math.pow,x1=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Re,be=1e7,ue=7,dx=9007199254740991,Hi=nn(dx/ue),K={};K.absoluteValue=K.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t};K.comparedTo=K.cmp=function(t){var e,r,n,i,a=this;if(t=new a.constructor(t),a.s!==t.s)return a.s||-t.s;if(a.e!==t.e)return a.e>t.e^a.s<0?1:-1;for(n=a.d.length,i=t.d.length,e=0,r=n<i?n:i;e<r;++e)if(a.d[e]!==t.d[e])return a.d[e]>t.d[e]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};K.decimalPlaces=K.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*ue;if(e=t.d[e],e)for(;e%10==0;e/=10)r--;return r<0?0:r};K.dividedBy=K.div=function(t){return vt(this,new this.constructor(t))};K.dividedToIntegerBy=K.idiv=function(t){var e=this,r=e.constructor;return ae(vt(e,new r(t),0,1),r.precision)};K.equals=K.eq=function(t){return!this.cmp(t)};K.exponent=function(){return de(this)};K.greaterThan=K.gt=function(t){return this.cmp(t)>0};K.greaterThanOrEqualTo=K.gte=function(t){return this.cmp(t)>=0};K.isInteger=K.isint=function(){return this.e>this.d.length-2};K.isNegative=K.isneg=function(){return this.s<0};K.isPositive=K.ispos=function(){return this.s>0};K.isZero=function(){return this.s===0};K.lessThan=K.lt=function(t){return this.cmp(t)<0};K.lessThanOrEqualTo=K.lte=function(t){return this.cmp(t)<1};K.logarithm=K.log=function(t){var e,r=this,n=r.constructor,i=n.precision,a=i+5;if(t===void 0)t=new n(10);else if(t=new n(t),t.s<1||t.eq(Re))throw Error(Ke+"NaN");if(r.s<1)throw Error(Ke+(r.s?"NaN":"-Infinity"));return r.eq(Re)?new n(0):(ce=!1,e=vt(Bn(r,a),Bn(t,a),a),ce=!0,ae(e,i))};K.minus=K.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?yx(e,t):vx(e,(t.s=-t.s,t))};K.modulo=K.mod=function(t){var e,r=this,n=r.constructor,i=n.precision;if(t=new n(t),!t.s)throw Error(Ke+"NaN");return r.s?(ce=!1,e=vt(r,t,0,1).times(t),ce=!0,r.minus(e)):ae(new n(r),i)};K.naturalExponential=K.exp=function(){return hx(this)};K.naturalLogarithm=K.ln=function(){return Bn(this)};K.negated=K.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t};K.plus=K.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?vx(e,t):yx(e,(t.s=-t.s,t))};K.precision=K.sd=function(t){var e,r,n,i=this;if(t!==void 0&&t!==!!t&&t!==1&&t!==0)throw Error(Xt+t);if(e=de(i)+1,n=i.d.length-1,r=n*ue+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return t&&e>r?e:r};K.squareRoot=K.sqrt=function(){var t,e,r,n,i,a,o,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(Ke+"NaN")}for(t=de(u),ce=!1,i=Math.sqrt(+u),i==0||i==1/0?(e=et(u.d),(e.length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=nn((t+1)/2)-(t<0||t%2),i==1/0?e="5e"+t:(e=i.toExponential(),e=e.slice(0,e.indexOf("e")+1)+t),n=new c(e)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(vt(u,a,o+2)).times(.5),et(a.d).slice(0,o)===(e=et(n.d)).slice(0,o)){if(e=e.slice(o-3,o+1),i==o&&e=="4999"){if(ae(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(e!="9999")break;o+=4}return ce=!0,ae(n,r)};K.times=K.mul=function(t){var e,r,n,i,a,o,u,c,s,f=this,l=f.constructor,p=f.d,d=(t=new l(t)).d;if(!f.s||!t.s)return new l(0);for(t.s*=f.s,r=f.e+t.e,c=p.length,s=d.length,c<s&&(a=p,p=d,d=a,o=c,c=s,s=o),a=[],o=c+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(e=0,i=c+n;i>n;)u=a[i]+d[n]*p[i-n-1]+e,a[i--]=u%be|0,e=u/be|0;a[i]=(a[i]+e)%be|0}for(;!a[--o];)a.pop();return e?++r:a.shift(),t.d=a,t.e=r,ce?ae(t,l.precision):t};K.toDecimalPlaces=K.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),t===void 0?r:(at(t,0,rn),e===void 0?e=n.rounding:at(e,0,8),ae(r,t+de(r)+1,e))};K.toExponential=function(t,e){var r,n=this,i=n.constructor;return t===void 0?r=Qt(n,!0):(at(t,0,rn),e===void 0?e=i.rounding:at(e,0,8),n=ae(new i(n),t+1,e),r=Qt(n,!0,t+1)),r};K.toFixed=function(t,e){var r,n,i=this,a=i.constructor;return t===void 0?Qt(i):(at(t,0,rn),e===void 0?e=a.rounding:at(e,0,8),n=ae(new a(i),t+de(i)+1,e),r=Qt(n.abs(),!1,t+de(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};K.toInteger=K.toint=function(){var t=this,e=t.constructor;return ae(new e(t),de(t)+1,e.rounding)};K.toNumber=function(){return+this};K.toPower=K.pow=function(t){var e,r,n,i,a,o,u=this,c=u.constructor,s=12,f=+(t=new c(t));if(!t.s)return new c(Re);if(u=new c(u),!u.s){if(t.s<1)throw Error(Ke+"Infinity");return u}if(u.eq(Re))return u;if(n=c.precision,t.eq(Re))return ae(u,n);if(e=t.e,r=t.d.length-1,o=e>=r,a=u.s,o){if((r=f<0?-f:f)<=dx){for(i=new c(Re),e=Math.ceil(n/ue+4),ce=!1;r%2&&(i=i.times(u),jy(i.d,e)),r=nn(r/2),r!==0;)u=u.times(u),jy(u.d,e);return ce=!0,t.s<0?new c(Re).div(i):ae(i,n)}}else if(a<0)throw Error(Ke+"NaN");return a=a<0&&t.d[Math.max(e,r)]&1?-1:1,u.s=1,ce=!1,i=t.times(Bn(u,n+s)),ce=!0,i=hx(i),i.s=a,i};K.toPrecision=function(t,e){var r,n,i=this,a=i.constructor;return t===void 0?(r=de(i),n=Qt(i,r<=a.toExpNeg||r>=a.toExpPos)):(at(t,1,rn),e===void 0?e=a.rounding:at(e,0,8),i=ae(new a(i),t,e),r=de(i),n=Qt(i,t<=r||r<=a.toExpNeg,t)),n};K.toSignificantDigits=K.tosd=function(t,e){var r=this,n=r.constructor;return t===void 0?(t=n.precision,e=n.rounding):(at(t,1,rn),e===void 0?e=n.rounding:at(e,0,8)),ae(new n(r),t,e)};K.toString=K.valueOf=K.val=K.toJSON=K[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=de(t),r=t.constructor;return Qt(t,e<=r.toExpNeg||e>=r.toExpPos)};function vx(t,e){var r,n,i,a,o,u,c,s,f=t.constructor,l=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),ce?ae(e,l):e;if(c=t.d,s=e.d,o=t.e,i=e.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,u=s.length):(n=s,i=o,u=c.length),o=Math.ceil(l/ue),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=c.length,a=s.length,u-a<0&&(a=u,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/be|0,c[a]%=be;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return e.d=c,e.e=i,ce?ae(e,l):e}function at(t,e,r){if(t!==~~t||t<e||t>r)throw Error(Xt+t)}function et(t){var e,r,n,i=t.length-1,a="",o=t[0];if(i>0){for(a+=o,e=1;e<i;e++)n=t[e]+"",r=ue-n.length,r&&(a+=Ot(r)),a+=n;o=t[e],n=o+"",r=ue-n.length,r&&(a+=Ot(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var vt=(function(){function t(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%be|0,o=a/be|0;return o&&n.unshift(o),n}function e(n,i,a,o){var u,c;if(a!=o)c=a>o?1:-1;else for(u=c=0;u<a;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*be+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,c,s,f,l,p,d,y,h,v,g,b,x,A,m,O,w,S,_=n.constructor,T=n.s==i.s?1:-1,j=n.d,E=i.d;if(!n.s)return new _(n);if(!i.s)throw Error(Ke+"Division by zero");for(c=n.e-i.e,w=E.length,m=j.length,d=new _(T),y=d.d=[],s=0;E[s]==(j[s]||0);)++s;if(E[s]>(j[s]||0)&&--c,a==null?b=a=_.precision:o?b=a+(de(n)-de(i))+1:b=a,b<0)return new _(0);if(b=b/ue+2|0,s=0,w==1)for(f=0,E=E[0],b++;(s<m||f)&&b--;s++)x=f*be+(j[s]||0),y[s]=x/E|0,f=x%E|0;else{for(f=be/(E[0]+1)|0,f>1&&(E=t(E,f),j=t(j,f),w=E.length,m=j.length),A=w,h=j.slice(0,w),v=h.length;v<w;)h[v++]=0;S=E.slice(),S.unshift(0),O=E[0],E[1]>=be/2&&++O;do f=0,u=e(E,h,w,v),u<0?(g=h[0],w!=v&&(g=g*be+(h[1]||0)),f=g/O|0,f>1?(f>=be&&(f=be-1),l=t(E,f),p=l.length,v=h.length,u=e(l,h,p,v),u==1&&(f--,r(l,w<p?S:E,p))):(f==0&&(u=f=1),l=E.slice()),p=l.length,p<v&&l.unshift(0),r(h,l,v),u==-1&&(v=h.length,u=e(E,h,w,v),u<1&&(f++,r(h,w<v?S:E,v))),v=h.length):u===0&&(f++,h=[0]),y[s++]=f,u&&h[0]?h[v++]=j[A]||0:(h=[j[A]],v=1);while((A++<m||h[0]!==void 0)&&b--)}return y[0]||y.shift(),d.e=c,ae(d,o?a+de(d)+1:a)}})();function hx(t,e){var r,n,i,a,o,u,c=0,s=0,f=t.constructor,l=f.precision;if(de(t)>16)throw Error(np+de(t));if(!t.s)return new f(Re);for(ce=!1,u=l,o=new f(.03125);t.abs().gte(.1);)t=t.times(o),s+=5;for(n=Math.log(Kt(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Re),f.precision=u;;){if(i=ae(i.times(t),u),r=r.times(++c),o=a.plus(vt(i,r,u)),et(o.d).slice(0,u)===et(a.d).slice(0,u)){for(;s--;)a=ae(a.times(a),u);return f.precision=l,e==null?(ce=!0,ae(a,l)):a}a=o}}function de(t){for(var e=t.e*ue,r=t.d[0];r>=10;r/=10)e++;return e}function Os(t,e,r){if(e>t.LN10.sd())throw ce=!0,r&&(t.precision=r),Error(Ke+"LN10 precision limit exceeded");return ae(new t(t.LN10),e)}function Ot(t){for(var e="";t--;)e+="0";return e}function Bn(t,e){var r,n,i,a,o,u,c,s,f,l=1,p=10,d=t,y=d.d,h=d.constructor,v=h.precision;if(d.s<1)throw Error(Ke+(d.s?"NaN":"-Infinity"));if(d.eq(Re))return new h(0);if(e==null?(ce=!1,s=v):s=e,d.eq(10))return e==null&&(ce=!0),Os(h,s);if(s+=p,h.precision=s,r=et(y),n=r.charAt(0),a=de(d),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)d=d.times(t),r=et(d.d),n=r.charAt(0),l++;a=de(d),n>1?(d=new h("0."+r),a++):d=new h(n+"."+r.slice(1))}else return c=Os(h,s+2,v).times(a+""),d=Bn(new h(n+"."+r.slice(1)),s-p).plus(c),h.precision=v,e==null?(ce=!0,ae(d,v)):d;for(u=o=d=vt(d.minus(Re),d.plus(Re),s),f=ae(d.times(d),s),i=3;;){if(o=ae(o.times(f),s),c=u.plus(vt(o,new h(i),s)),et(c.d).slice(0,s)===et(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(Os(h,s+2,v).times(a+""))),u=vt(u,new h(l),s),h.precision=v,e==null?(ce=!0,ae(u,v)):u;u=c,i+=2}}function _y(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;e.charCodeAt(n)===48;)++n;for(i=e.length;e.charCodeAt(i-1)===48;)--i;if(e=e.slice(n,i),e){if(i-=n,r=r-n-1,t.e=nn(r/ue),t.d=[],n=(r+1)%ue,r<0&&(n+=ue),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=ue;n<i;)t.d.push(+e.slice(n,n+=ue));e=e.slice(n),n=ue-e.length}else n-=i;for(;n--;)e+="0";if(t.d.push(+e),ce&&(t.e>Hi||t.e<-Hi))throw Error(np+r)}else t.s=0,t.e=0,t.d=[0];return t}function ae(t,e,r){var n,i,a,o,u,c,s,f,l=t.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=e-o,n<0)n+=ue,i=e,s=l[f=0];else{if(f=Math.ceil((n+1)/ue),a=l.length,f>=a)return t;for(s=a=l[f],o=1;a>=10;a/=10)o++;n%=ue,i=n-ue+o}if(r!==void 0&&(a=Kt(10,o-i-1),u=s/a%10|0,c=e<0||l[f+1]!==void 0||s%a,c=r<4?(u||c)&&(r==0||r==(t.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?s/Kt(10,o-i):0:l[f-1])%10&1||r==(t.s<0?8:7))),e<1||!l[0])return c?(a=de(t),l.length=1,e=e-a-1,l[0]=Kt(10,(ue-e%ue)%ue),t.e=nn(-e/ue)||0):(l.length=1,l[0]=t.e=t.s=0),t;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=Kt(10,ue-n),l[f]=i>0?(s/Kt(10,o-i)%Kt(10,i)|0)*a:0),c)for(;;)if(f==0){(l[0]+=a)==be&&(l[0]=1,++t.e);break}else{if(l[f]+=a,l[f]!=be)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(ce&&(t.e>Hi||t.e<-Hi))throw Error(np+de(t));return t}function yx(t,e){var r,n,i,a,o,u,c,s,f,l,p=t.constructor,d=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),ce?ae(e,d):e;if(c=t.d,l=e.d,n=e.e,s=t.e,c=c.slice(),o=s-n,o){for(f=o<0,f?(r=c,o=-o,u=l.length):(r=l,n=s,u=c.length),i=Math.max(Math.ceil(d/ue),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(c[i]!=l[i]){f=c[i]<l[i];break}o=0}for(f&&(r=c,c=l,l=r,e.s=-e.s),u=c.length,i=l.length-u;i>0;--i)c[u++]=0;for(i=l.length;i>o;){if(c[--i]<l[i]){for(a=i;a&&c[--a]===0;)c[a]=be-1;--c[a],c[i]+=be}c[i]-=l[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(e.d=c,e.e=n,ce?ae(e,d):e):new p(0)}function Qt(t,e,r){var n,i=de(t),a=et(t.d),o=a.length;return e?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Ot(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Ot(-i-1)+a,r&&(n=r-o)>0&&(a+=Ot(n))):i>=o?(a+=Ot(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Ot(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Ot(n))),t.s<0?"-"+a:a}function jy(t,e){if(t.length>e)return t.length=e,!0}function mx(t){var e,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(Xt+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 _y(o,a.toString())}else if(typeof a!="string")throw Error(Xt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,x1.test(a))_y(o,a);else throw Error(Xt+a)}if(i.prototype=K,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=mx,i.config=i.set=O1,t===void 0&&(t={}),t)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],e=0;e<n.length;)t.hasOwnProperty(r=n[e++])||(t[r]=this[r]);return i.config(t),i}function O1(t){if(!t||typeof t!="object")throw Error(Ke+"Object expected");var e,r,n,i=["precision",1,rn,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if((n=t[r=i[e]])!==void 0)if(nn(n)===n&&n>=i[e+1]&&n<=i[e+2])this[r]=n;else throw Error(Xt+r+": "+n);if((n=t[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Xt+r+": "+n);return this}var ip=mx(b1);Re=new ip(1);const ne=ip;function A1(t){return _1(t)||S1(t)||P1(t)||w1()}function w1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
21
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P1(t,e){if(t){if(typeof t=="string")return _l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _l(t,e)}}function S1(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function _1(t){if(Array.isArray(t))return _l(t)}function _l(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var j1=function(e){return e},gx={},bx=function(e){return e===gx},Ey=function(e){return function r(){return arguments.length===0||arguments.length===1&&bx(arguments.length<=0?void 0:arguments[0])?r:e.apply(void 0,arguments)}},E1=function t(e,r){return e===1?r:Ey(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!==gx}).length;return o>=e?r.apply(void 0,i):t(e-o,Ey(function(){for(var u=arguments.length,c=new Array(u),s=0;s<u;s++)c[s]=arguments[s];var f=i.map(function(l){return bx(l)?c.shift():l});return r.apply(void 0,A1(f).concat(c))}))})},Ha=function(e){return E1(e.length,e)},jl=function(e,r){for(var n=[],i=e;i<r;++i)n[i-e]=i;return n},T1=Ha(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(r){return e[r]}).map(t)}),$1=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!r.length)return j1;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,c){return c(u)},a.apply(void 0,arguments))}},El=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},xx=function(e){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,c){return u===r[c]})||(r=a,n=e.apply(void 0,a)),n}};function I1(t){var e;return t===0?e=1:e=Math.floor(new ne(t).abs().log(10).toNumber())+1,e}function C1(t,e,r){for(var n=new ne(t),i=0,a=[];n.lt(e)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var R1=Ha(function(t,e,r){var n=+t,i=+e;return n+r*(i-n)}),k1=Ha(function(t,e,r){var n=e-+t;return n=n||1/0,(r-t)/n}),M1=Ha(function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))});const Ua={rangeStep:C1,getDigitCount:I1,interpolateNumber:R1,uninterpolateNumber:k1,uninterpolateTruncation:M1};function Tl(t){return L1(t)||N1(t)||Ox(t)||D1()}function D1(){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 N1(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function L1(t){if(Array.isArray(t))return $l(t)}function Fn(t,e){return F1(t)||B1(t,e)||Ox(t,e)||q1()}function q1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ox(t,e){if(t){if(typeof t=="string")return $l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $l(t,e)}}function $l(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function B1(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=t[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(e&&r.length===e));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function F1(t){if(Array.isArray(t))return t}function Ax(t){var e=Fn(t,2),r=e[0],n=e[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function wx(t,e,r){if(t.lte(0))return new ne(0);var n=Ua.getDigitCount(t.toNumber()),i=new ne(10).pow(n),a=t.div(i),o=n!==1?.05:.1,u=new ne(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return e?c:new ne(Math.ceil(c))}function z1(t,e,r){var n=1,i=new ne(t);if(!i.isint()&&r){var a=Math.abs(t);a<1?(n=new ne(10).pow(Ua.getDigitCount(t)-1),i=new ne(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ne(Math.floor(t)))}else t===0?i=new ne(Math.floor((e-1)/2)):r||(i=new ne(Math.floor(t)));var o=Math.floor((e-1)/2),u=$1(T1(function(c){return i.add(new ne(c-o).mul(n)).toNumber()}),jl);return u(0,e)}function Px(t,e,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new ne(0),tickMin:new ne(0),tickMax:new ne(0)};var a=wx(new ne(e).sub(t).div(r-1),n,i),o;t<=0&&e>=0?o=new ne(0):(o=new ne(t).add(e).div(2),o=o.sub(new ne(o).mod(a)));var u=Math.ceil(o.sub(t).div(a).toNumber()),c=Math.ceil(new ne(e).sub(o).div(a).toNumber()),s=u+c+1;return s>r?Px(t,e,r,n,i+1):(s<r&&(c=e>0?c+(r-s):c,u=e>0?u:u+(r-s)),{step:a,tickMin:o.sub(new ne(u).mul(a)),tickMax:o.add(new ne(c).mul(a))})}function K1(t){var e=Fn(t,2),r=e[0],n=e[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=Ax([r,n]),c=Fn(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(Tl(jl(0,i-1).map(function(){return 1/0}))):[].concat(Tl(jl(0,i-1).map(function(){return-1/0})),[f]);return r>n?El(l):l}if(s===f)return z1(s,i,a);var p=Px(s,f,o,a),d=p.step,y=p.tickMin,h=p.tickMax,v=Ua.rangeStep(y,h.add(new ne(.1).mul(d)),d);return r>n?El(v):v}function W1(t,e){var r=Fn(t,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Ax([n,i]),u=Fn(o,2),c=u[0],s=u[1];if(c===-1/0||s===1/0)return[n,i];if(c===s)return[c];var f=Math.max(e,2),l=wx(new ne(s).sub(c).div(f-1),a,0),p=[].concat(Tl(Ua.rangeStep(new ne(c),new ne(s).sub(new ne(.99).mul(l)),l)),[s]);return n>i?El(p):p}var G1=xx(K1),H1=xx(W1),U1="Invariant failed";function er(t,e){throw new Error(U1)}var V1=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Tr(t){"@babel/helpers - typeof";return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tr(t)}function Ui(){return Ui=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ui.apply(this,arguments)}function X1(t,e){return Q1(t)||J1(t,e)||Z1(t,e)||Y1()}function Y1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z1(t,e){if(t){if(typeof t=="string")return Ty(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ty(t,e)}}function Ty(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function J1(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function Q1(t){if(Array.isArray(t))return t}function ej(t,e){if(t==null)return{};var r=tj(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function tj(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function rj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nj(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jx(n.key),n)}}function ij(t,e,r){return e&&nj(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function aj(t,e,r){return e=Vi(e),oj(t,Sx()?Reflect.construct(e,r||[],Vi(t).constructor):e.apply(t,r))}function oj(t,e){if(e&&(Tr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uj(t)}function uj(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sx(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sx=function(){return!!t})()}function Vi(t){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(t)}function cj(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Il(t,e)}function Il(t,e){return Il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Il(t,e)}function _x(t,e,r){return e=jx(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jx(t){var e=sj(t,"string");return Tr(e)=="symbol"?e:e+""}function sj(t,e){if(Tr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var an=(function(t){function e(){return rj(this,e),aj(this,e,arguments)}return cj(e,t),ij(e,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,c=n.data,s=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,p=ej(n,V1),d=F(p,!1);this.props.direction==="x"&&f.type!=="number"&&er();var y=c.map(function(h){var v=s(h,u),g=v.x,b=v.y,x=v.value,A=v.errorVal;if(!A)return null;var m=[],O,w;if(Array.isArray(A)){var S=X1(A,2);O=S[0],w=S[1]}else O=w=A;if(a==="vertical"){var _=f.scale,T=b+i,j=T+o,E=T-o,$=_(x-O),C=_(x+w);m.push({x1:C,y1:j,x2:C,y2:E}),m.push({x1:$,y1:T,x2:C,y2:T}),m.push({x1:$,y1:j,x2:$,y2:E})}else if(a==="horizontal"){var I=l.scale,k=g+i,N=k-o,q=k+o,B=I(x-O),G=I(x+w);m.push({x1:N,y1:G,x2:q,y2:G}),m.push({x1:k,y1:B,x2:k,y2:G}),m.push({x1:N,y1:B,x2:q,y2:B})}return P.createElement(X,Ui({className:"recharts-errorBar",key:"bar-".concat(m.map(function(Y){return"".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))},d),m.map(function(Y){return P.createElement("line",Ui({},Y,{key:"line-".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))}))});return P.createElement(X,{className:"recharts-errorBars"},y)}}])})(P.Component);_x(an,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});_x(an,"displayName","ErrorBar");function zn(t){"@babel/helpers - typeof";return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zn(t)}function $y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Bt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$y(Object(r),!0).forEach(function(n){lj(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$y(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function lj(t,e,r){return e=fj(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fj(t){var e=pj(t,"string");return zn(e)=="symbol"?e:e+""}function pj(t,e){if(zn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ex=function(e){var r=e.children,n=e.formattedGraphicalItems,i=e.legendWidth,a=e.legendContent,o=Ce(r,Vt);if(!o)return null;var u=Vt.defaultProps,c=u!==void 0?Bt(Bt({},u),o.props):{},s;return o.props&&o.props.payload?s=o.props&&o.props.payload:a==="children"?s=(n||[]).reduce(function(f,l){var p=l.item,d=l.props,y=d.sectors||d.data||[];return f.concat(y.map(function(h){return{type:o.props.iconType||p.props.legendType,value:h.name,color:h.fill,payload:h}}))},[]):s=(n||[]).map(function(f){var l=f.item,p=l.type.defaultProps,d=p!==void 0?Bt(Bt({},p),l.props):{},y=d.dataKey,h=d.name,v=d.legendType,g=d.hide;return{inactive:g,dataKey:y,type:c.iconType||v||"square",color:ap(l),value:h||y,payload:d}}),Bt(Bt(Bt({},c),Vt.getWithHeight(o,i)),{},{payload:s,item:o})};function Kn(t){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kn(t)}function Iy(t){return yj(t)||hj(t)||vj(t)||dj()}function dj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
25
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vj(t,e){if(t){if(typeof t=="string")return Cl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cl(t,e)}}function hj(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function yj(t){if(Array.isArray(t))return Cl(t)}function Cl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Cy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function le(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Cy(Object(r),!0).forEach(function(n){wr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cy(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function wr(t,e,r){return e=mj(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mj(t){var e=gj(t,"string");return Kn(e)=="symbol"?e:e+""}function gj(t,e){if(Kn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ie(t,e,r){return H(t)||H(e)?r:ye(e)?ke(t,e,r):W(e)?e(t):r}function _n(t,e,r,n){var i=y1(t,function(u){return ie(u,e)});if(r==="number"){var a=i.filter(function(u){return L(u)||parseFloat(u)});return a.length?[Ga(a),wt(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!H(u)}):i;return o.map(function(u){return ye(u)||u instanceof Date?u:""})}var bj=function(e){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==null?void 0: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 c=a.range,s=0;s<u;s++){var f=s>0?i[s-1].coordinate:i[u-1].coordinate,l=i[s].coordinate,p=s>=u-1?i[0].coordinate:i[s+1].coordinate,d=void 0;if(Oe(l-f)!==Oe(p-l)){var y=[];if(Oe(p-l)===Oe(c[1]-c[0])){d=p;var h=l+c[1]-c[0];y[0]=Math.min(h,(h+f)/2),y[1]=Math.max(h,(h+f)/2)}else{d=f;var v=p+c[1]-c[0];y[0]=Math.min(l,(v+l)/2),y[1]=Math.max(l,(v+l)/2)}var g=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(e>g[0]&&e<=g[1]||e>=y[0]&&e<=y[1]){o=i[s].index;break}}else{var b=Math.min(f,p),x=Math.max(f,p);if(e>(b+l)/2&&e<=(x+l)/2){o=i[s].index;break}}}else for(var A=0;A<u;A++)if(A===0&&e<=(n[A].coordinate+n[A+1].coordinate)/2||A>0&&A<u-1&&e>(n[A].coordinate+n[A-1].coordinate)/2&&e<=(n[A].coordinate+n[A+1].coordinate)/2||A===u-1&&e>(n[A].coordinate+n[A-1].coordinate)/2){o=n[A].index;break}return o},ap=function(e){var r,n=e,i=n.type.displayName,a=(r=e.type)!==null&&r!==void 0&&r.defaultProps?le(le({},e.type.defaultProps),e.props):e.props,o=a.stroke,u=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:u;break;default:c=u;break}return c},xj=function(e){var r=e.barSize,n=e.totalSize,i=e.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),c=0,s=u.length;c<s;c++)for(var f=a[u[c]].stackGroups,l=Object.keys(f),p=0,d=l.length;p<d;p++){var y=f[l[p]],h=y.items,v=y.cateAxisId,g=h.filter(function(w){return dt(w.type).indexOf("Bar")>=0});if(g&&g.length){var b=g[0].type.defaultProps,x=b!==void 0?le(le({},b),g[0].props):g[0].props,A=x.barSize,m=x[v];o[m]||(o[m]=[]);var O=H(A)?r:A;o[m].push({item:g[0],stackList:g.slice(1),barSize:H(O)?void 0:je(O,n,0)})}}return o},Oj=function(e){var r=e.barGap,n=e.barCategoryGap,i=e.bandSize,a=e.sizeList,o=a===void 0?[]:a,u=e.maxBarSize,c=o.length;if(c<1)return null;var s=je(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var p=!1,d=i/c,y=o.reduce(function(A,m){return A+m.barSize||0},0);y+=(c-1)*s,y>=i&&(y-=(c-1)*s,s=0),y>=i&&d>0&&(p=!0,d*=.9,y=c*d);var h=(i-y)/2>>0,v={offset:h-s,size:0};f=o.reduce(function(A,m){var O={item:m.item,position:{offset:v.offset+v.size+s,size:p?d:m.barSize}},w=[].concat(Iy(A),[O]);return v=w[w.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){w.push({item:S,position:v})}),w},l)}else{var g=je(n,i,0,!0);i-2*g-(c-1)*s<=0&&(s=0);var b=(i-2*g-(c-1)*s)/c;b>1&&(b>>=0);var x=u===+u?Math.min(b,u):b;f=o.reduce(function(A,m,O){var w=[].concat(Iy(A),[{item:m.item,position:{offset:g+(b+s)*O+(b-x)/2,size:x}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){w.push({item:S,position:w[w.length-1].position})}),w},l)}return f},Aj=function(e,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=Ex({children:a,legendWidth:c});if(s){var f=i||{},l=f.width,p=f.height,d=s.align,y=s.verticalAlign,h=s.layout;if((h==="vertical"||h==="horizontal"&&y==="middle")&&d!=="center"&&L(e[d]))return le(le({},e),{},wr({},d,e[d]+(l||0)));if((h==="horizontal"||h==="vertical"&&d==="center")&&y!=="middle"&&L(e[y]))return le(le({},e),{},wr({},y,e[y]+(p||0)))}return e},wj=function(e,r,n){return H(r)?!0:e==="horizontal"?r==="yAxis":e==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Tx=function(e,r,n,i,a){var o=r.props.children,u=Se(o,an).filter(function(s){return wj(i,a,s.props.direction)});if(u&&u.length){var c=u.map(function(s){return s.props.dataKey});return e.reduce(function(s,f){var l=ie(f,n);if(H(l))return s;var p=Array.isArray(l)?[Ga(l),wt(l)]:[l,l],d=c.reduce(function(y,h){var v=ie(f,h,0),g=p[0]-Math.abs(Array.isArray(v)?v[0]:v),b=p[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(g,y[0]),Math.max(b,y[1])]},[1/0,-1/0]);return[Math.min(d[0],s[0]),Math.max(d[1],s[1])]},[1/0,-1/0])}return null},Pj=function(e,r,n,i,a){var o=r.map(function(u){return Tx(e,u,n,a,i)}).filter(function(u){return!H(u)});return o&&o.length?o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},$x=function(e,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&Tx(e,c,s,i)||_n(e,s,n,a)});if(n==="number")return o.reduce(function(c,s){return[Math.min(c[0],s[0]),Math.max(c[1],s[1])]},[1/0,-1/0]);var u={};return o.reduce(function(c,s){for(var f=0,l=s.length;f<l;f++)u[s[f]]||(u[s[f]]=!0,c.push(s[f]));return c},[])},Ix=function(e,r){return e==="horizontal"&&r==="xAxis"||e==="vertical"&&r==="yAxis"||e==="centric"&&r==="angleAxis"||e==="radial"&&r==="radiusAxis"},Cx=function(e,r,n,i){if(i)return e.map(function(c){return c.coordinate});var a,o,u=e.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||u.push(r),o||u.push(n),u},pt=function(e,r,n){if(!e)return null;var i=e.scale,a=e.duplicateDomain,o=e.type,u=e.range,c=e.realScaleType==="scaleBand"?i.bandwidth()/2:2,s=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(s=e.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?Oe(u[0]-u[1])*2*s:s,r&&(e.ticks||e.niceTicks)){var f=(e.ticks||e.niceTicks).map(function(l){var p=a?a.indexOf(l):l;return{coordinate:i(p)+s,value:l,offset:s}});return f.filter(function(l){return!en(l.coordinate)})}return e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(l,p){return{coordinate:i(l)+s,value:l,index:p,offset:s}}):i.ticks&&!n?i.ticks(e.tickCount).map(function(l){return{coordinate:i(l)+s,value:l,offset:s}}):i.domain().map(function(l,p){return{coordinate:i(l)+s,value:a?a[l]:l,index:p,offset:s}})},As=new WeakMap,$i=function(e,r){if(typeof r!="function")return e;As.has(e)||As.set(e,new WeakMap);var n=As.get(e);if(n.has(r))return n.get(r);var i=function(){e.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},Rx=function(e,r,n){var i=e.scale,a=e.type,o=e.layout,u=e.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:al(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:ul(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Pn(),realScaleType:"point"}:a==="category"?{scale:al(),realScaleType:"band"}:{scale:ul(),realScaleType:"linear"};if(Zt(i)){var c="scale".concat(Na(i));return{scale:(my[c]||Pn)(),realScaleType:my[c]?c:"point"}}return W(i)?{scale:i}:{scale:Pn(),realScaleType:"point"}},Ry=1e-4,kx=function(e){var r=e.domain();if(!(!r||r.length<=2)){var n=r.length,i=e.range(),a=Math.min(i[0],i[1])-Ry,o=Math.max(i[0],i[1])+Ry,u=e(r[0]),c=e(r[n-1]);(u<a||u>o||c<a||c>o)&&e.domain([r[0],r[n-1]])}},Mx=function(e,r){if(!e)return null;for(var n=0,i=e.length;n<i;n++)if(e[n].item===r)return e[n].position;return null},Dx=function(e,r){if(!r||r.length!==2||!L(r[0])||!L(r[1]))return e;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[e[0],e[1]];return(!L(e[0])||e[0]<n)&&(a[0]=n),(!L(e[1])||e[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},Sj=function(e){var r=e.length;if(!(r<=0))for(var n=0,i=e[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var c=en(e[u][n][1])?e[u][n][0]:e[u][n][1];c>=0?(e[u][n][0]=a,e[u][n][1]=a+c,a=e[u][n][1]):(e[u][n][0]=o,e[u][n][1]=o+c,o=e[u][n][1])}},_j=function(e){var r=e.length;if(!(r<=0))for(var n=0,i=e[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=en(e[o][n][1])?e[o][n][0]:e[o][n][1];u>=0?(e[o][n][0]=a,e[o][n][1]=a+u,a=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}},jj={sign:Sj,expand:_w,none:Pr,silhouette:jw,wiggle:Ew,positive:_j},Ej=function(e,r,n){var i=r.map(function(u){return u.props.dataKey}),a=jj[n],o=Sw().keys(i).value(function(u,c){return+ie(u,c,0)}).order(hl).offset(a);return o(e)},Tj=function(e,r,n,i,a,o){if(!e)return null;var u=o?r.reverse():r,c={},s=u.reduce(function(l,p){var d,y=(d=p.type)!==null&&d!==void 0&&d.defaultProps?le(le({},p.type.defaultProps),p.props):p.props,h=y.stackId,v=y.hide;if(v)return l;var g=y[n],b=l[g]||{hasStack:!1,stackGroups:{}};if(ye(h)){var x=b.stackGroups[h]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(p),b.hasStack=!0,b.stackGroups[h]=x}else b.stackGroups[$t("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[p]};return le(le({},l),{},wr({},g,b))},c),f={};return Object.keys(s).reduce(function(l,p){var d=s[p];if(d.hasStack){var y={};d.stackGroups=Object.keys(d.stackGroups).reduce(function(h,v){var g=d.stackGroups[v];return le(le({},h),{},wr({},v,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:Ej(e,g.items,a)}))},y)}return le(le({},l),{},wr({},p,d))},f)},Nx=function(e,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=e.domain();if(!s.length)return null;var f=G1(s,a,u);return e.domain([Ga(f),wt(f)]),{niceTicks:f}}if(a&&i==="number"){var l=e.domain(),p=H1(l,a,u);return{niceTicks:p}}return null};function $r(t){var e=t.axis,r=t.ticks,n=t.bandSize,i=t.entry,a=t.index,o=t.dataKey;if(e.type==="category"){if(!e.allowDuplicatedCategory&&e.dataKey&&!H(i[e.dataKey])){var u=qi(r,"value",i[e.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=ie(i,H(o)?e.dataKey:o);return H(c)?null:e.scale(c)}var Xi=function(e){var r=e.axis,n=e.ticks,i=e.offset,a=e.bandSize,o=e.entry,u=e.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var c=ie(o,r.dataKey,r.domain[u]);return H(c)?null:r.scale(c)-a/2+i},Lx=function(e){var r=e.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]},$j=function(e,r){var n,i=(n=e.type)!==null&&n!==void 0&&n.defaultProps?le(le({},e.type.defaultProps),e.props):e.props,a=i.stackId;if(ye(a)){var o=r[a];if(o){var u=o.items.indexOf(e);return u>=0?o.stackedData[u]:null}}return null},Ij=function(e){return e.reduce(function(r,n){return[Ga(n.concat([r[0]]).filter(L)),wt(n.concat([r[1]]).filter(L))]},[1/0,-1/0])},qx=function(e,r,n){return Object.keys(e).reduce(function(i,a){var o=e[a],u=o.stackedData,c=u.reduce(function(s,f){var l=Ij(f.slice(r,n+1));return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},ky=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,My=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Rl=function(e,r,n){if(W(e))return e(r,n);if(!Array.isArray(e))return r;var i=[];if(L(e[0]))i[0]=n?e[0]:Math.min(e[0],r[0]);else if(ky.test(e[0])){var a=+ky.exec(e[0])[1];i[0]=r[0]-a}else W(e[0])?i[0]=e[0](r[0]):i[0]=r[0];if(L(e[1]))i[1]=n?e[1]:Math.max(e[1],r[1]);else if(My.test(e[1])){var o=+My.exec(e[1])[1];i[1]=r[1]+o}else W(e[1])?i[1]=e[1](r[1]):i[1]=r[1];return i},Yi=function(e,r,n){if(e&&e.scale&&e.scale.bandwidth){var i=e.scale.bandwidth();if(!n||i>0)return i}if(e&&r&&r.length>=2){for(var a=Xf(r,function(l){return l.coordinate}),o=1/0,u=1,c=a.length;u<c;u++){var s=a[u],f=a[u-1];o=Math.min((s.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Dy=function(e,r,n){return!e||!e.length||it(e,ke(n,"type.defaultProps.domain"))?r:e},op=function(e,r){var n=e.type.defaultProps?le(le({},e.type.defaultProps),e.props):e.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,c=n.tooltipType,s=n.chartType,f=n.hide;return le(le({},F(e,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:ap(e),value:ie(r,i),type:c,payload:r,chartType:s,hide:f})};function Wn(t){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wn(t)}function Ny(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function st(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ny(Object(r),!0).forEach(function(n){Bx(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ny(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Bx(t,e,r){return e=Cj(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cj(t){var e=Rj(t,"string");return Wn(e)=="symbol"?e:e+""}function Rj(t,e){if(Wn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function kj(t,e){return Lj(t)||Nj(t,e)||Dj(t,e)||Mj()}function Mj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
26
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dj(t,e){if(t){if(typeof t=="string")return Ly(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ly(t,e)}}function Ly(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Nj(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function Lj(t){if(Array.isArray(t))return t}var Zi=Math.PI/180,qj=function(e){return e*180/Math.PI},J=function(e,r,n,i){return{x:e+Math.cos(-Zi*i)*n,y:r+Math.sin(-Zi*i)*n}},Fx=function(e,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(e-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},up=function(e,r,n,i,a){var o=e.width,u=e.height,c=e.startAngle,s=e.endAngle,f=je(e.cx,o,o/2),l=je(e.cy,u,u/2),p=Fx(o,u,n),d=je(e.innerRadius,p,0),y=je(e.outerRadius,p,p*.8),h=Object.keys(r);return h.reduce(function(v,g){var b=r[g],x=b.domain,A=b.reversed,m;if(H(b.range))i==="angleAxis"?m=[c,s]:i==="radiusAxis"&&(m=[d,y]),A&&(m=[m[1],m[0]]);else{m=b.range;var O=m,w=kj(O,2);c=w[0],s=w[1]}var S=Rx(b,a),_=S.realScaleType,T=S.scale;T.domain(x).range(m),kx(T);var j=Nx(T,st(st({},b),{},{realScaleType:_})),E=st(st(st({},b),j),{},{range:m,radius:y,realScaleType:_,scale:T,cx:f,cy:l,innerRadius:d,outerRadius:y,startAngle:c,endAngle:s});return st(st({},v),{},Bx({},g,E))},{})},Bj=function(e,r){var n=e.x,i=e.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},Fj=function(e,r){var n=e.x,i=e.y,a=r.cx,o=r.cy,u=Bj({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var c=(n-a)/u,s=Math.acos(c);return i>o&&(s=2*Math.PI-s),{radius:u,angle:qj(s),angleInRadian:s}},zj=function(e){var r=e.startAngle,n=e.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}},Kj=function(e,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return e+u*360},qy=function(e,r){var n=e.x,i=e.y,a=Fj({x:n,y:i},r),o=a.radius,u=a.angle,c=r.innerRadius,s=r.outerRadius;if(o<c||o>s)return!1;if(o===0)return!0;var f=zj(r),l=f.startAngle,p=f.endAngle,d=u,y;if(l<=p){for(;d>p;)d-=360;for(;d<l;)d+=360;y=d>=l&&d<=p}else{for(;d>l;)d-=360;for(;d<p;)d+=360;y=d>=p&&d<=l}return y?st(st({},r),{},{radius:o,angle:Kj(d,r)}):null},zx=function(e){return!M.isValidElement(e)&&!W(e)&&typeof e!="boolean"?e.className:""};function Gn(t){"@babel/helpers - typeof";return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gn(t)}var Wj=["offset"];function Gj(t){return Xj(t)||Vj(t)||Uj(t)||Hj()}function Hj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
27
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uj(t,e){if(t){if(typeof t=="string")return kl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kl(t,e)}}function Vj(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Xj(t){if(Array.isArray(t))return kl(t)}function kl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Yj(t,e){if(t==null)return{};var r=Zj(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Zj(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function By(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function he(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?By(Object(r),!0).forEach(function(n){Jj(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):By(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Jj(t,e,r){return e=Qj(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qj(t){var e=eE(t,"string");return Gn(e)=="symbol"?e:e+""}function eE(t,e){if(Gn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hn(){return Hn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hn.apply(this,arguments)}var tE=function(e){var r=e.value,n=e.formatter,i=H(e.children)?r:e.children;return W(n)?n(i):i},rE=function(e,r){var n=Oe(r-e),i=Math.min(Math.abs(r-e),360);return n*i},nE=function(e,r,n){var i=e.position,a=e.viewBox,o=e.offset,u=e.className,c=a,s=c.cx,f=c.cy,l=c.innerRadius,p=c.outerRadius,d=c.startAngle,y=c.endAngle,h=c.clockWise,v=(l+p)/2,g=rE(d,y),b=g>=0?1:-1,x,A;i==="insideStart"?(x=d+b*o,A=h):i==="insideEnd"?(x=y-b*o,A=!h):i==="end"&&(x=y+b*o,A=h),A=g<=0?A:!A;var m=J(s,f,v,x),O=J(s,f,v,x+(A?1:-1)*359),w="M".concat(m.x,",").concat(m.y,`
18
+ height and width.`,I,k,o,c,f,l,r);var N=!Array.isArray(d)&&dt(d.type).endsWith("Chart");return P.Children.map(d,function(q){return P.isValidElement(q)?M.cloneElement(q,Ti({width:I,height:k},N?{style:Ti({height:"100%",width:"100%",maxHeight:k,maxWidth:I},q.props.style)}:{})):q})},[r,d,c,p,l,f,_,o]);return P.createElement("div",{id:v?"".concat(v):void 0,className:V("recharts-responsive-container",b),style:Ti(Ti({},A),{},{width:o,height:c,minWidth:f,minHeight:l,maxHeight:p}),ref:m},E)}),hi=function(e){return null};hi.displayName="Cell";function Ln(t){"@babel/helpers - typeof";return Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ln(t)}function Jh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Sl(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Jh(Object(r),!0).forEach(function(n){m_(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jh(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function m_(t,e,r){return e=g_(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g_(t){var e=b_(t,"string");return Ln(e)=="symbol"?e:e+""}function b_(t,e){if(Ln(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var vr={widthCache:{},cacheCount:0},x_=2e3,O_={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Qh="recharts_measurement_span";function A_(t){var e=Sl({},t);return Object.keys(e).forEach(function(r){e[r]||delete e[r]}),e}var Sn=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||Je.isSsr)return{width:0,height:0};var n=A_(r),i=JSON.stringify({text:e,copyStyle:n});if(vr.widthCache[i])return vr.widthCache[i];try{var a=document.getElementById(Qh);a||(a=document.createElement("span"),a.setAttribute("id",Qh),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Sl(Sl({},O_),n);Object.assign(a.style,o),a.textContent="".concat(e);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return vr.widthCache[i]=c,++vr.cacheCount>x_&&(vr.cacheCount=0,vr.widthCache={}),c}catch{return{width:0,height:0}}},w_=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function qn(t){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qn(t)}function Hi(t,e){return j_(t)||__(t,e)||S_(t,e)||P_()}function P_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
19
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S_(t,e){if(t){if(typeof t=="string")return ey(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ey(t,e)}}function ey(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function __(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function j_(t){if(Array.isArray(t))return t}function E_(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ty(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,$_(n.key),n)}}function T_(t,e,r){return e&&ty(t.prototype,e),r&&ty(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function $_(t){var e=I_(t,"string");return qn(e)=="symbol"?e:e+""}function I_(t,e){if(qn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var ry=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ny=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,C_=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,R_=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Gb={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},k_=Object.keys(Gb),mr="NaN";function M_(t,e){return t*Gb[e]}var $i=(function(){function t(e,r){E_(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),r!==""&&!C_.test(r)&&(this.num=NaN,this.unit=""),k_.includes(r)&&(this.num=M_(e,r),this.unit="px")}return T_(t,[{key:"add",value:function(r){return this.unit!==r.unit?new t(NaN,""):new t(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new t(NaN,""):new t(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new t(NaN,""):new t(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new t(NaN,""):new t(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=R_.exec(r))!==null&&n!==void 0?n:[],a=Hi(i,3),o=a[1],u=a[2];return new t(parseFloat(o),u??"")}}])})();function Hb(t){if(t.includes(mr))return mr;for(var e=t;e.includes("*")||e.includes("/");){var r,n=(r=ry.exec(e))!==null&&r!==void 0?r:[],i=Hi(n,4),a=i[1],o=i[2],u=i[3],c=$i.parse(a??""),s=$i.parse(u??""),f=o==="*"?c.multiply(s):c.divide(s);if(f.isNaN())return mr;e=e.replace(ry,f.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var l,p=(l=ny.exec(e))!==null&&l!==void 0?l:[],d=Hi(p,4),y=d[1],h=d[2],v=d[3],b=$i.parse(y??""),g=$i.parse(v??""),x=h==="+"?b.add(g):b.subtract(g);if(x.isNaN())return mr;e=e.replace(ny,x.toString())}return e}var iy=/\(([^()]*)\)/;function D_(t){for(var e=t;e.includes("(");){var r=iy.exec(e),n=Hi(r,2),i=n[1];e=e.replace(iy,Hb(i))}return e}function N_(t){var e=t.replace(/\s+/g,"");return e=D_(e),e=Hb(e),e}function L_(t){try{return N_(t)}catch{return mr}}function ds(t){var e=L_(t.slice(5,-1));return e===mr?"":e}var q_=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],B_=["dx","dy","angle","className","breakAll"];function _l(){return _l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},_l.apply(this,arguments)}function ay(t,e){if(t==null)return{};var r=F_(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function F_(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function oy(t,e){return G_(t)||W_(t,e)||K_(t,e)||z_()}function z_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K_(t,e){if(t){if(typeof t=="string")return uy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uy(t,e)}}function uy(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function W_(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function G_(t){if(Array.isArray(t))return t}var Ub=/[ \f\n\r\t\v\u2028\u2029]+/,Vb=function(e){var r=e.children,n=e.breakAll,i=e.style;try{var a=[];H(r)||(n?a=r.toString().split(""):a=r.toString().split(Ub));var o=a.map(function(c){return{word:c,width:Sn(c,i).width}}),u=n?0:Sn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},H_=function(e,r,n,i,a){var o=e.maxLines,u=e.children,c=e.style,s=e.breakAll,f=L(o),l=u,p=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return I.reduce(function(k,N){var q=N.word,B=N.width,G=k[k.length-1];if(G&&(i==null||a||G.width+B+n<Number(i)))G.words.push(q),G.width+=B+n;else{var Y={words:[q],width:B};k.push(Y)}return k},[])},d=p(r),y=function(I){return I.reduce(function(k,N){return k.width>N.width?k:N})};if(!f)return d;for(var h="…",v=function(I){var k=l.slice(0,I),N=Vb({breakAll:s,style:c,children:k+h}).wordsWithComputedWidth,q=p(N),B=q.length>o||y(q).width>Number(i);return[B,q]},b=0,g=l.length-1,x=0,A;b<=g&&x<=l.length-1;){var m=Math.floor((b+g)/2),O=m-1,w=v(O),S=oy(w,2),_=S[0],T=S[1],j=v(m),E=oy(j,1),$=E[0];if(!_&&!$&&(b=m+1),_&&$&&(g=m-1),!_&&$){A=T;break}x++}return A||d},cy=function(e){var r=H(e)?[]:e.toString().split(Ub);return[{words:r}]},U_=function(e){var r=e.width,n=e.scaleToFit,i=e.children,a=e.style,o=e.breakAll,u=e.maxLines;if((r||n)&&!Je.isSsr){var c,s,f=Vb({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,p=f.spaceWidth;c=l,s=p}else return cy(i);return H_({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return cy(i)},sy="#808080",Jt=function(e){var r=e.x,n=r===void 0?0:r,i=e.y,a=i===void 0?0:i,o=e.lineHeight,u=o===void 0?"1em":o,c=e.capHeight,s=c===void 0?"0.71em":c,f=e.scaleToFit,l=f===void 0?!1:f,p=e.textAnchor,d=p===void 0?"start":p,y=e.verticalAnchor,h=y===void 0?"end":y,v=e.fill,b=v===void 0?sy:v,g=ay(e,q_),x=M.useMemo(function(){return U_({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:l,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,l,g.style,g.width]),A=g.dx,m=g.dy,O=g.angle,w=g.className,S=g.breakAll,_=ay(g,B_);if(!ye(n)||!ye(a))return null;var T=n+(L(A)?A:0),j=a+(L(m)?m:0),E;switch(h){case"start":E=ds("calc(".concat(s,")"));break;case"middle":E=ds("calc(".concat((x.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:E=ds("calc(".concat(x.length-1," * -").concat(u,")"));break}var $=[];if(l){var C=x[0].width,I=g.width;$.push("scale(".concat((L(I)?I/C:1)/C,")"))}return O&&$.push("rotate(".concat(O,", ").concat(T,", ").concat(j,")")),$.length&&(_.transform=$.join(" ")),P.createElement("text",_l({},F(_,!0),{x:T,y:j,className:V("recharts-text",w),textAnchor:d,fill:b.includes("url")?sy:b}),x.map(function(k,N){var q=k.words.join(S?"":" ");return P.createElement("tspan",{x:T,dy:N===0?E:u,key:"".concat(q,"-").concat(N)},q)}))};function V_(t=qi){if(t===qi)return Xb;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||n===0?n:(t(r,r)===0)-(t(e,e)===0)}}function Xb(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(t<e?-1:t>e?1:0)}function Yb(t,e,r=0,n=1/0,i){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(i=i===void 0?Xb:V_(i);n>r;){if(n-r>600){const c=n-r+1,s=e-r+1,f=Math.log(c),l=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*l*(c-l)/c)*(s-c/2<0?-1:1),d=Math.max(r,Math.floor(e-s*l/c+p)),y=Math.min(n,Math.floor(e+(c-s)*l/c+p));Yb(t,e,d,y,i)}const a=t[e];let o=r,u=n;for(yn(t,r,e),i(t[n],a)>0&&yn(t,r,n);o<u;){for(yn(t,o,u),++o,--u;i(t[o],a)<0;)++o;for(;i(t[u],a)>0;)--u}i(t[r],a)===0?yn(t,r,u):(++u,yn(t,u,n)),u<=e&&(r=u+1),e<=u&&(n=u-1)}return t}function yn(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function X_(t,e,r){if(t=Float64Array.from(T0(t)),!(!(n=t.length)||isNaN(e=+e))){if(e<=0||n<2)return Ap(t);if(e>=1)return wp(t);var n,i=(n-1)*e,a=Math.floor(i),o=wp(Yb(t,a).subarray(0,a+1)),u=Ap(t.subarray(a+1));return o+(u-o)*(i-a)}}function Y_(t,e,r=$0){if(!(!(n=t.length)||isNaN(e=+e))){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t),u=+r(t[a+1],a+1,t);return o+(u-o)*(i-a)}}function Z_(t,e){e===void 0&&(e=t,t=$f);for(var r=0,n=e.length-1,i=e[0],a=new Array(n<0?0:n);r<n;)a[r]=t(i,i=e[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function Zb(t){var e;function r(n){return n==null||isNaN(n=+n)?e:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(t=Array.from(n,ul),r):t.slice()},r.unknown=function(n){return arguments.length?(e=n,r):e},r.copy=function(){return Zb(t).unknown(e)},t=arguments.length?Array.from(t,ul):[0,1],rr(r)}function ly(t){return Math.log(t)}function fy(t){return Math.exp(t)}function J_(t){return-Math.log(-t)}function Q_(t){return-Math.exp(-t)}function e1(t){return isFinite(t)?+("1e"+t):t<0?0:t}function t1(t){return t===10?e1:t===Math.E?Math.exp:e=>Math.pow(t,e)}function r1(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function py(t){return(e,r)=>-t(-e,r)}function Jf(t){const e=t(ly,fy),r=e.domain;let n=10,i,a;function o(){return i=r1(n),a=t1(n),r()[0]<0?(i=py(i),a=py(a),t(J_,Q_)):t(ly,fy),e}return e.base=function(u){return arguments.length?(n=+u,o()):n},e.domain=function(u){return arguments.length?(r(u),o()):r()},e.ticks=u=>{const c=r();let s=c[0],f=c[c.length-1];const l=f<s;l&&([s,f]=[f,s]);let p=i(s),d=i(f),y,h;const v=u==null?10:+u;let b=[];if(!(n%1)&&d-p<v){if(p=Math.floor(p),d=Math.ceil(d),s>0){for(;p<=d;++p)for(y=1;y<n;++y)if(h=p<0?y/a(-p):y*a(p),!(h<s)){if(h>f)break;b.push(h)}}else for(;p<=d;++p)for(y=n-1;y>=1;--y)if(h=p>0?y/a(-p):y*a(p),!(h<s)){if(h>f)break;b.push(h)}b.length*2<v&&(b=Op(s,f,v))}else b=Op(p,d,Math.min(d-p,v)).map(a);return l?b.reverse():b},e.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=H0(c)).precision==null&&(c.trim=!0),c=U0(c)),u===1/0)return c;const s=Math.max(1,n*u/e.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=s?c(f):""}},e.nice=()=>r(R0(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),e}function Jb(){const t=Jf(If()).domain([1,10]);return t.copy=()=>Cf(t,Jb()).base(t.base()),Et.apply(t,arguments),t}function dy(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function vy(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Qf(t){var e=1,r=t(dy(e),vy(e));return r.constant=function(n){return arguments.length?t(dy(e=+n),vy(e)):e},rr(r)}function Qb(){var t=Qf(If());return t.copy=function(){return Cf(t,Qb()).constant(t.constant())},Et.apply(t,arguments)}function hy(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function n1(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function i1(t){return t<0?-t*t:t*t}function ep(t){var e=t(ft,ft),r=1;function n(){return r===1?t(ft,ft):r===.5?t(n1,i1):t(hy(r),hy(1/r))}return e.exponent=function(i){return arguments.length?(r=+i,n()):r},rr(e)}function tp(){var t=ep(If());return t.copy=function(){return Cf(t,tp()).exponent(t.exponent())},Et.apply(t,arguments),t}function a1(){return tp.apply(null,arguments).exponent(.5)}function yy(t){return Math.sign(t)*t*t}function o1(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function ex(){var t=I0(),e=[0,1],r=!1,n;function i(a){var o=o1(t(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return t.invert(yy(a))},i.domain=function(a){return arguments.length?(t.domain(a),i):t.domain()},i.range=function(a){return arguments.length?(t.range((e=Array.from(a,ul)).map(yy)),i):e.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?(t.clamp(a),i):t.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return ex(t.domain(),e).round(r).clamp(t.clamp()).unknown(n)},Et.apply(i,arguments),rr(i)}function tx(){var t=[],e=[],r=[],n;function i(){var o=0,u=Math.max(1,e.length);for(r=new Array(u-1);++o<u;)r[o-1]=Y_(t,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:e[Ca(r,o)]}return a.invertExtent=function(o){var u=e.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:t[0],u<r.length?r[u]:t[t.length-1]]},a.domain=function(o){if(!arguments.length)return t.slice();t=[];for(let u of o)u!=null&&!isNaN(u=+u)&&t.push(u);return t.sort(qi),i()},a.range=function(o){return arguments.length?(e=Array.from(o),i()):e.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return tx().domain(t).range(e).unknown(n)},Et.apply(a,arguments)}function rx(){var t=0,e=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[Ca(n,c,0,r)]:a}function u(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*e-(c-r)*t)/(r+1);return o}return o.domain=function(c){return arguments.length?([t,e]=c,t=+t,e=+e,u()):[t,e]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,u()):i.slice()},o.invertExtent=function(c){var s=i.indexOf(c);return s<0?[NaN,NaN]:s<1?[t,n[0]]:s>=r?[n[r-1],e]:[n[s-1],n[s]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return rx().domain([t,e]).range(i).unknown(a)},Et.apply(rr(o),arguments)}function nx(){var t=[.5],e=[0,1],r,n=1;function i(a){return a!=null&&a<=a?e[Ca(t,a,0,n)]:r}return i.domain=function(a){return arguments.length?(t=Array.from(a),n=Math.min(t.length,e.length-1),i):t.slice()},i.range=function(a){return arguments.length?(e=Array.from(a),n=Math.min(t.length,e.length-1),i):e.slice()},i.invertExtent=function(a){var o=e.indexOf(a);return[t[o-1],t[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return nx().domain(t).range(e).unknown(r)},Et.apply(i,arguments)}function u1(){return Et.apply(k0(W0,K0,z0,F0,B0,q0,L0,N0,D0,M0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ka(){var t=0,e=1,r,n,i,a,o=ft,u=!1,c;function s(l){return l==null||isNaN(l=+l)?c:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}s.domain=function(l){return arguments.length?([t,e]=l,r=a(t=+t),n=a(e=+e),i=r===n?0:1/(n-r),s):[t,e]},s.clamp=function(l){return arguments.length?(u=!!l,s):u},s.interpolator=function(l){return arguments.length?(o=l,s):o};function f(l){return function(p){var d,y;return arguments.length?([d,y]=p,o=l(d,y),s):[o(0),o(1)]}}return s.range=f($f),s.rangeRound=f(nb),s.unknown=function(l){return arguments.length?(c=l,s):c},function(l){return a=l,r=l(t),n=l(e),i=r===n?0:1/(n-r),s}}function It(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function ix(){var t=rr(Ka()(ft));return t.copy=function(){return It(t,ix())},yt.apply(t,arguments)}function ax(){var t=Jf(Ka()).domain([1,10]);return t.copy=function(){return It(t,ax()).base(t.base())},yt.apply(t,arguments)}function ox(){var t=Qf(Ka());return t.copy=function(){return It(t,ox()).constant(t.constant())},yt.apply(t,arguments)}function rp(){var t=ep(Ka());return t.copy=function(){return It(t,rp()).exponent(t.exponent())},yt.apply(t,arguments)}function c1(){return rp.apply(null,arguments).exponent(.5)}function ux(){var t=[],e=ft;function r(n){if(n!=null&&!isNaN(n=+n))return e((Ca(t,n,1)-1)/(t.length-1))}return r.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let i of n)i!=null&&!isNaN(i=+i)&&t.push(i);return t.sort(qi),r},r.interpolator=function(n){return arguments.length?(e=n,r):e},r.range=function(){return t.map((n,i)=>e(i/(t.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>X_(t,a/n))},r.copy=function(){return ux(e).domain(t)},yt.apply(r,arguments)}function Wa(){var t=0,e=.5,r=1,n=1,i,a,o,u,c,s=ft,f,l=!1,p;function d(h){return isNaN(h=+h)?p:(h=.5+((h=+f(h))-a)*(n*h<n*a?u:c),s(l?Math.max(0,Math.min(1,h)):h))}d.domain=function(h){return arguments.length?([t,e,r]=h,i=f(t=+t),a=f(e=+e),o=f(r=+r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,d):[t,e,r]},d.clamp=function(h){return arguments.length?(l=!!h,d):l},d.interpolator=function(h){return arguments.length?(s=h,d):s};function y(h){return function(v){var b,g,x;return arguments.length?([b,g,x]=v,s=Z_(h,[b,g,x]),d):[s(0),s(.5),s(1)]}}return d.range=y($f),d.rangeRound=y(nb),d.unknown=function(h){return arguments.length?(p=h,d):p},function(h){return f=h,i=h(t),a=h(e),o=h(r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,d}}function cx(){var t=rr(Wa()(ft));return t.copy=function(){return It(t,cx())},yt.apply(t,arguments)}function sx(){var t=Jf(Wa()).domain([.1,1,10]);return t.copy=function(){return It(t,sx()).base(t.base())},yt.apply(t,arguments)}function lx(){var t=Qf(Wa());return t.copy=function(){return It(t,lx()).constant(t.constant())},yt.apply(t,arguments)}function np(){var t=ep(Wa());return t.copy=function(){return It(t,np()).exponent(t.exponent())},yt.apply(t,arguments)}function s1(){return np.apply(null,arguments).exponent(.5)}const my=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ol,scaleDiverging:cx,scaleDivergingLog:sx,scaleDivergingPow:np,scaleDivergingSqrt:s1,scaleDivergingSymlog:lx,scaleIdentity:Zb,scaleImplicit:V0,scaleLinear:cl,scaleLog:Jb,scaleOrdinal:X0,scalePoint:Pn,scalePow:tp,scaleQuantile:tx,scaleQuantize:rx,scaleRadial:ex,scaleSequential:ix,scaleSequentialLog:ax,scaleSequentialPow:rp,scaleSequentialQuantile:ux,scaleSequentialSqrt:c1,scaleSequentialSymlog:ox,scaleSqrt:a1,scaleSymlog:Qb,scaleThreshold:nx,scaleTime:G0,scaleUtc:u1,tickFormat:C0},Symbol.toStringTag,{value:"Module"}));var vs,gy;function Ga(){if(gy)return vs;gy=1;var t=Jr();function e(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],c=n(u);if(c!=null&&(s===void 0?c===c&&!t(c):i(c,s)))var s=c,f=u}return f}return vs=e,vs}var hs,by;function fx(){if(by)return hs;by=1;function t(e,r){return e>r}return hs=t,hs}var ys,xy;function l1(){if(xy)return ys;xy=1;var t=Ga(),e=fx(),r=tn();function n(i){return i&&i.length?t(i,r,e):void 0}return ys=n,ys}var f1=l1();const wt=re(f1);var ms,Oy;function px(){if(Oy)return ms;Oy=1;function t(e,r){return e<r}return ms=t,ms}var gs,Ay;function p1(){if(Ay)return gs;Ay=1;var t=Ga(),e=px(),r=tn();function n(i){return i&&i.length?t(i,r,e):void 0}return gs=n,gs}var d1=p1();const Ha=re(d1);var bs,wy;function v1(){if(wy)return bs;wy=1;var t=Lf(),e=ut(),r=Nb(),n=Te();function i(a,o){var u=n(a)?t:r;return u(a,e(o,3))}return bs=i,bs}var xs,Py;function h1(){if(Py)return xs;Py=1;var t=Mb(),e=v1();function r(n,i){return t(e(n,i),1)}return xs=r,xs}var y1=h1();const m1=re(y1);var Os,Sy;function g1(){if(Sy)return Os;Sy=1;var t=Vf();function e(r,n){return t(r,n)}return Os=e,Os}var b1=g1();const it=re(b1);var rn=1e9,x1={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},ap,ce=!0,Ke="[DecimalError] ",Xt=Ke+"Invalid argument: ",ip=Ke+"Exponent out of range: ",nn=Math.floor,Kt=Math.pow,O1=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Re,be=1e7,ue=7,dx=9007199254740991,Ui=nn(dx/ue),K={};K.absoluteValue=K.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t};K.comparedTo=K.cmp=function(t){var e,r,n,i,a=this;if(t=new a.constructor(t),a.s!==t.s)return a.s||-t.s;if(a.e!==t.e)return a.e>t.e^a.s<0?1:-1;for(n=a.d.length,i=t.d.length,e=0,r=n<i?n:i;e<r;++e)if(a.d[e]!==t.d[e])return a.d[e]>t.d[e]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};K.decimalPlaces=K.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*ue;if(e=t.d[e],e)for(;e%10==0;e/=10)r--;return r<0?0:r};K.dividedBy=K.div=function(t){return vt(this,new this.constructor(t))};K.dividedToIntegerBy=K.idiv=function(t){var e=this,r=e.constructor;return ae(vt(e,new r(t),0,1),r.precision)};K.equals=K.eq=function(t){return!this.cmp(t)};K.exponent=function(){return de(this)};K.greaterThan=K.gt=function(t){return this.cmp(t)>0};K.greaterThanOrEqualTo=K.gte=function(t){return this.cmp(t)>=0};K.isInteger=K.isint=function(){return this.e>this.d.length-2};K.isNegative=K.isneg=function(){return this.s<0};K.isPositive=K.ispos=function(){return this.s>0};K.isZero=function(){return this.s===0};K.lessThan=K.lt=function(t){return this.cmp(t)<0};K.lessThanOrEqualTo=K.lte=function(t){return this.cmp(t)<1};K.logarithm=K.log=function(t){var e,r=this,n=r.constructor,i=n.precision,a=i+5;if(t===void 0)t=new n(10);else if(t=new n(t),t.s<1||t.eq(Re))throw Error(Ke+"NaN");if(r.s<1)throw Error(Ke+(r.s?"NaN":"-Infinity"));return r.eq(Re)?new n(0):(ce=!1,e=vt(Bn(r,a),Bn(t,a),a),ce=!0,ae(e,i))};K.minus=K.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?yx(e,t):vx(e,(t.s=-t.s,t))};K.modulo=K.mod=function(t){var e,r=this,n=r.constructor,i=n.precision;if(t=new n(t),!t.s)throw Error(Ke+"NaN");return r.s?(ce=!1,e=vt(r,t,0,1).times(t),ce=!0,r.minus(e)):ae(new n(r),i)};K.naturalExponential=K.exp=function(){return hx(this)};K.naturalLogarithm=K.ln=function(){return Bn(this)};K.negated=K.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t};K.plus=K.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?vx(e,t):yx(e,(t.s=-t.s,t))};K.precision=K.sd=function(t){var e,r,n,i=this;if(t!==void 0&&t!==!!t&&t!==1&&t!==0)throw Error(Xt+t);if(e=de(i)+1,n=i.d.length-1,r=n*ue+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return t&&e>r?e:r};K.squareRoot=K.sqrt=function(){var t,e,r,n,i,a,o,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(Ke+"NaN")}for(t=de(u),ce=!1,i=Math.sqrt(+u),i==0||i==1/0?(e=et(u.d),(e.length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=nn((t+1)/2)-(t<0||t%2),i==1/0?e="5e"+t:(e=i.toExponential(),e=e.slice(0,e.indexOf("e")+1)+t),n=new c(e)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(vt(u,a,o+2)).times(.5),et(a.d).slice(0,o)===(e=et(n.d)).slice(0,o)){if(e=e.slice(o-3,o+1),i==o&&e=="4999"){if(ae(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(e!="9999")break;o+=4}return ce=!0,ae(n,r)};K.times=K.mul=function(t){var e,r,n,i,a,o,u,c,s,f=this,l=f.constructor,p=f.d,d=(t=new l(t)).d;if(!f.s||!t.s)return new l(0);for(t.s*=f.s,r=f.e+t.e,c=p.length,s=d.length,c<s&&(a=p,p=d,d=a,o=c,c=s,s=o),a=[],o=c+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(e=0,i=c+n;i>n;)u=a[i]+d[n]*p[i-n-1]+e,a[i--]=u%be|0,e=u/be|0;a[i]=(a[i]+e)%be|0}for(;!a[--o];)a.pop();return e?++r:a.shift(),t.d=a,t.e=r,ce?ae(t,l.precision):t};K.toDecimalPlaces=K.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),t===void 0?r:(at(t,0,rn),e===void 0?e=n.rounding:at(e,0,8),ae(r,t+de(r)+1,e))};K.toExponential=function(t,e){var r,n=this,i=n.constructor;return t===void 0?r=Qt(n,!0):(at(t,0,rn),e===void 0?e=i.rounding:at(e,0,8),n=ae(new i(n),t+1,e),r=Qt(n,!0,t+1)),r};K.toFixed=function(t,e){var r,n,i=this,a=i.constructor;return t===void 0?Qt(i):(at(t,0,rn),e===void 0?e=a.rounding:at(e,0,8),n=ae(new a(i),t+de(i)+1,e),r=Qt(n.abs(),!1,t+de(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};K.toInteger=K.toint=function(){var t=this,e=t.constructor;return ae(new e(t),de(t)+1,e.rounding)};K.toNumber=function(){return+this};K.toPower=K.pow=function(t){var e,r,n,i,a,o,u=this,c=u.constructor,s=12,f=+(t=new c(t));if(!t.s)return new c(Re);if(u=new c(u),!u.s){if(t.s<1)throw Error(Ke+"Infinity");return u}if(u.eq(Re))return u;if(n=c.precision,t.eq(Re))return ae(u,n);if(e=t.e,r=t.d.length-1,o=e>=r,a=u.s,o){if((r=f<0?-f:f)<=dx){for(i=new c(Re),e=Math.ceil(n/ue+4),ce=!1;r%2&&(i=i.times(u),jy(i.d,e)),r=nn(r/2),r!==0;)u=u.times(u),jy(u.d,e);return ce=!0,t.s<0?new c(Re).div(i):ae(i,n)}}else if(a<0)throw Error(Ke+"NaN");return a=a<0&&t.d[Math.max(e,r)]&1?-1:1,u.s=1,ce=!1,i=t.times(Bn(u,n+s)),ce=!0,i=hx(i),i.s=a,i};K.toPrecision=function(t,e){var r,n,i=this,a=i.constructor;return t===void 0?(r=de(i),n=Qt(i,r<=a.toExpNeg||r>=a.toExpPos)):(at(t,1,rn),e===void 0?e=a.rounding:at(e,0,8),i=ae(new a(i),t,e),r=de(i),n=Qt(i,t<=r||r<=a.toExpNeg,t)),n};K.toSignificantDigits=K.tosd=function(t,e){var r=this,n=r.constructor;return t===void 0?(t=n.precision,e=n.rounding):(at(t,1,rn),e===void 0?e=n.rounding:at(e,0,8)),ae(new n(r),t,e)};K.toString=K.valueOf=K.val=K.toJSON=K[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=de(t),r=t.constructor;return Qt(t,e<=r.toExpNeg||e>=r.toExpPos)};function vx(t,e){var r,n,i,a,o,u,c,s,f=t.constructor,l=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),ce?ae(e,l):e;if(c=t.d,s=e.d,o=t.e,i=e.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,u=s.length):(n=s,i=o,u=c.length),o=Math.ceil(l/ue),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=c.length,a=s.length,u-a<0&&(a=u,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/be|0,c[a]%=be;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return e.d=c,e.e=i,ce?ae(e,l):e}function at(t,e,r){if(t!==~~t||t<e||t>r)throw Error(Xt+t)}function et(t){var e,r,n,i=t.length-1,a="",o=t[0];if(i>0){for(a+=o,e=1;e<i;e++)n=t[e]+"",r=ue-n.length,r&&(a+=Ot(r)),a+=n;o=t[e],n=o+"",r=ue-n.length,r&&(a+=Ot(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var vt=(function(){function t(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%be|0,o=a/be|0;return o&&n.unshift(o),n}function e(n,i,a,o){var u,c;if(a!=o)c=a>o?1:-1;else for(u=c=0;u<a;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*be+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,c,s,f,l,p,d,y,h,v,b,g,x,A,m,O,w,S,_=n.constructor,T=n.s==i.s?1:-1,j=n.d,E=i.d;if(!n.s)return new _(n);if(!i.s)throw Error(Ke+"Division by zero");for(c=n.e-i.e,w=E.length,m=j.length,d=new _(T),y=d.d=[],s=0;E[s]==(j[s]||0);)++s;if(E[s]>(j[s]||0)&&--c,a==null?g=a=_.precision:o?g=a+(de(n)-de(i))+1:g=a,g<0)return new _(0);if(g=g/ue+2|0,s=0,w==1)for(f=0,E=E[0],g++;(s<m||f)&&g--;s++)x=f*be+(j[s]||0),y[s]=x/E|0,f=x%E|0;else{for(f=be/(E[0]+1)|0,f>1&&(E=t(E,f),j=t(j,f),w=E.length,m=j.length),A=w,h=j.slice(0,w),v=h.length;v<w;)h[v++]=0;S=E.slice(),S.unshift(0),O=E[0],E[1]>=be/2&&++O;do f=0,u=e(E,h,w,v),u<0?(b=h[0],w!=v&&(b=b*be+(h[1]||0)),f=b/O|0,f>1?(f>=be&&(f=be-1),l=t(E,f),p=l.length,v=h.length,u=e(l,h,p,v),u==1&&(f--,r(l,w<p?S:E,p))):(f==0&&(u=f=1),l=E.slice()),p=l.length,p<v&&l.unshift(0),r(h,l,v),u==-1&&(v=h.length,u=e(E,h,w,v),u<1&&(f++,r(h,w<v?S:E,v))),v=h.length):u===0&&(f++,h=[0]),y[s++]=f,u&&h[0]?h[v++]=j[A]||0:(h=[j[A]],v=1);while((A++<m||h[0]!==void 0)&&g--)}return y[0]||y.shift(),d.e=c,ae(d,o?a+de(d)+1:a)}})();function hx(t,e){var r,n,i,a,o,u,c=0,s=0,f=t.constructor,l=f.precision;if(de(t)>16)throw Error(ip+de(t));if(!t.s)return new f(Re);for(ce=!1,u=l,o=new f(.03125);t.abs().gte(.1);)t=t.times(o),s+=5;for(n=Math.log(Kt(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Re),f.precision=u;;){if(i=ae(i.times(t),u),r=r.times(++c),o=a.plus(vt(i,r,u)),et(o.d).slice(0,u)===et(a.d).slice(0,u)){for(;s--;)a=ae(a.times(a),u);return f.precision=l,e==null?(ce=!0,ae(a,l)):a}a=o}}function de(t){for(var e=t.e*ue,r=t.d[0];r>=10;r/=10)e++;return e}function As(t,e,r){if(e>t.LN10.sd())throw ce=!0,r&&(t.precision=r),Error(Ke+"LN10 precision limit exceeded");return ae(new t(t.LN10),e)}function Ot(t){for(var e="";t--;)e+="0";return e}function Bn(t,e){var r,n,i,a,o,u,c,s,f,l=1,p=10,d=t,y=d.d,h=d.constructor,v=h.precision;if(d.s<1)throw Error(Ke+(d.s?"NaN":"-Infinity"));if(d.eq(Re))return new h(0);if(e==null?(ce=!1,s=v):s=e,d.eq(10))return e==null&&(ce=!0),As(h,s);if(s+=p,h.precision=s,r=et(y),n=r.charAt(0),a=de(d),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)d=d.times(t),r=et(d.d),n=r.charAt(0),l++;a=de(d),n>1?(d=new h("0."+r),a++):d=new h(n+"."+r.slice(1))}else return c=As(h,s+2,v).times(a+""),d=Bn(new h(n+"."+r.slice(1)),s-p).plus(c),h.precision=v,e==null?(ce=!0,ae(d,v)):d;for(u=o=d=vt(d.minus(Re),d.plus(Re),s),f=ae(d.times(d),s),i=3;;){if(o=ae(o.times(f),s),c=u.plus(vt(o,new h(i),s)),et(c.d).slice(0,s)===et(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(As(h,s+2,v).times(a+""))),u=vt(u,new h(l),s),h.precision=v,e==null?(ce=!0,ae(u,v)):u;u=c,i+=2}}function _y(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;e.charCodeAt(n)===48;)++n;for(i=e.length;e.charCodeAt(i-1)===48;)--i;if(e=e.slice(n,i),e){if(i-=n,r=r-n-1,t.e=nn(r/ue),t.d=[],n=(r+1)%ue,r<0&&(n+=ue),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=ue;n<i;)t.d.push(+e.slice(n,n+=ue));e=e.slice(n),n=ue-e.length}else n-=i;for(;n--;)e+="0";if(t.d.push(+e),ce&&(t.e>Ui||t.e<-Ui))throw Error(ip+r)}else t.s=0,t.e=0,t.d=[0];return t}function ae(t,e,r){var n,i,a,o,u,c,s,f,l=t.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=e-o,n<0)n+=ue,i=e,s=l[f=0];else{if(f=Math.ceil((n+1)/ue),a=l.length,f>=a)return t;for(s=a=l[f],o=1;a>=10;a/=10)o++;n%=ue,i=n-ue+o}if(r!==void 0&&(a=Kt(10,o-i-1),u=s/a%10|0,c=e<0||l[f+1]!==void 0||s%a,c=r<4?(u||c)&&(r==0||r==(t.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?s/Kt(10,o-i):0:l[f-1])%10&1||r==(t.s<0?8:7))),e<1||!l[0])return c?(a=de(t),l.length=1,e=e-a-1,l[0]=Kt(10,(ue-e%ue)%ue),t.e=nn(-e/ue)||0):(l.length=1,l[0]=t.e=t.s=0),t;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=Kt(10,ue-n),l[f]=i>0?(s/Kt(10,o-i)%Kt(10,i)|0)*a:0),c)for(;;)if(f==0){(l[0]+=a)==be&&(l[0]=1,++t.e);break}else{if(l[f]+=a,l[f]!=be)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(ce&&(t.e>Ui||t.e<-Ui))throw Error(ip+de(t));return t}function yx(t,e){var r,n,i,a,o,u,c,s,f,l,p=t.constructor,d=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),ce?ae(e,d):e;if(c=t.d,l=e.d,n=e.e,s=t.e,c=c.slice(),o=s-n,o){for(f=o<0,f?(r=c,o=-o,u=l.length):(r=l,n=s,u=c.length),i=Math.max(Math.ceil(d/ue),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(c[i]!=l[i]){f=c[i]<l[i];break}o=0}for(f&&(r=c,c=l,l=r,e.s=-e.s),u=c.length,i=l.length-u;i>0;--i)c[u++]=0;for(i=l.length;i>o;){if(c[--i]<l[i]){for(a=i;a&&c[--a]===0;)c[a]=be-1;--c[a],c[i]+=be}c[i]-=l[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(e.d=c,e.e=n,ce?ae(e,d):e):new p(0)}function Qt(t,e,r){var n,i=de(t),a=et(t.d),o=a.length;return e?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Ot(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Ot(-i-1)+a,r&&(n=r-o)>0&&(a+=Ot(n))):i>=o?(a+=Ot(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Ot(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Ot(n))),t.s<0?"-"+a:a}function jy(t,e){if(t.length>e)return t.length=e,!0}function mx(t){var e,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(Xt+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 _y(o,a.toString())}else if(typeof a!="string")throw Error(Xt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,O1.test(a))_y(o,a);else throw Error(Xt+a)}if(i.prototype=K,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=mx,i.config=i.set=A1,t===void 0&&(t={}),t)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],e=0;e<n.length;)t.hasOwnProperty(r=n[e++])||(t[r]=this[r]);return i.config(t),i}function A1(t){if(!t||typeof t!="object")throw Error(Ke+"Object expected");var e,r,n,i=["precision",1,rn,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if((n=t[r=i[e]])!==void 0)if(nn(n)===n&&n>=i[e+1]&&n<=i[e+2])this[r]=n;else throw Error(Xt+r+": "+n);if((n=t[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Xt+r+": "+n);return this}var ap=mx(x1);Re=new ap(1);const ne=ap;function w1(t){return j1(t)||_1(t)||S1(t)||P1()}function P1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
21
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S1(t,e){if(t){if(typeof t=="string")return jl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jl(t,e)}}function _1(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function j1(t){if(Array.isArray(t))return jl(t)}function jl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var E1=function(e){return e},gx={},bx=function(e){return e===gx},Ey=function(e){return function r(){return arguments.length===0||arguments.length===1&&bx(arguments.length<=0?void 0:arguments[0])?r:e.apply(void 0,arguments)}},T1=function t(e,r){return e===1?r:Ey(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!==gx}).length;return o>=e?r.apply(void 0,i):t(e-o,Ey(function(){for(var u=arguments.length,c=new Array(u),s=0;s<u;s++)c[s]=arguments[s];var f=i.map(function(l){return bx(l)?c.shift():l});return r.apply(void 0,w1(f).concat(c))}))})},Ua=function(e){return T1(e.length,e)},El=function(e,r){for(var n=[],i=e;i<r;++i)n[i-e]=i;return n},$1=Ua(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(r){return e[r]}).map(t)}),I1=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!r.length)return E1;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,c){return c(u)},a.apply(void 0,arguments))}},Tl=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},xx=function(e){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,c){return u===r[c]})||(r=a,n=e.apply(void 0,a)),n}};function C1(t){var e;return t===0?e=1:e=Math.floor(new ne(t).abs().log(10).toNumber())+1,e}function R1(t,e,r){for(var n=new ne(t),i=0,a=[];n.lt(e)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var k1=Ua(function(t,e,r){var n=+t,i=+e;return n+r*(i-n)}),M1=Ua(function(t,e,r){var n=e-+t;return n=n||1/0,(r-t)/n}),D1=Ua(function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))});const Va={rangeStep:R1,getDigitCount:C1,interpolateNumber:k1,uninterpolateNumber:M1,uninterpolateTruncation:D1};function $l(t){return q1(t)||L1(t)||Ox(t)||N1()}function N1(){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 L1(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function q1(t){if(Array.isArray(t))return Il(t)}function Fn(t,e){return z1(t)||F1(t,e)||Ox(t,e)||B1()}function B1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ox(t,e){if(t){if(typeof t=="string")return Il(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Il(t,e)}}function Il(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function F1(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=t[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(e&&r.length===e));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function z1(t){if(Array.isArray(t))return t}function Ax(t){var e=Fn(t,2),r=e[0],n=e[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function wx(t,e,r){if(t.lte(0))return new ne(0);var n=Va.getDigitCount(t.toNumber()),i=new ne(10).pow(n),a=t.div(i),o=n!==1?.05:.1,u=new ne(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return e?c:new ne(Math.ceil(c))}function K1(t,e,r){var n=1,i=new ne(t);if(!i.isint()&&r){var a=Math.abs(t);a<1?(n=new ne(10).pow(Va.getDigitCount(t)-1),i=new ne(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ne(Math.floor(t)))}else t===0?i=new ne(Math.floor((e-1)/2)):r||(i=new ne(Math.floor(t)));var o=Math.floor((e-1)/2),u=I1($1(function(c){return i.add(new ne(c-o).mul(n)).toNumber()}),El);return u(0,e)}function Px(t,e,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new ne(0),tickMin:new ne(0),tickMax:new ne(0)};var a=wx(new ne(e).sub(t).div(r-1),n,i),o;t<=0&&e>=0?o=new ne(0):(o=new ne(t).add(e).div(2),o=o.sub(new ne(o).mod(a)));var u=Math.ceil(o.sub(t).div(a).toNumber()),c=Math.ceil(new ne(e).sub(o).div(a).toNumber()),s=u+c+1;return s>r?Px(t,e,r,n,i+1):(s<r&&(c=e>0?c+(r-s):c,u=e>0?u:u+(r-s)),{step:a,tickMin:o.sub(new ne(u).mul(a)),tickMax:o.add(new ne(c).mul(a))})}function W1(t){var e=Fn(t,2),r=e[0],n=e[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=Ax([r,n]),c=Fn(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat($l(El(0,i-1).map(function(){return 1/0}))):[].concat($l(El(0,i-1).map(function(){return-1/0})),[f]);return r>n?Tl(l):l}if(s===f)return K1(s,i,a);var p=Px(s,f,o,a),d=p.step,y=p.tickMin,h=p.tickMax,v=Va.rangeStep(y,h.add(new ne(.1).mul(d)),d);return r>n?Tl(v):v}function G1(t,e){var r=Fn(t,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Ax([n,i]),u=Fn(o,2),c=u[0],s=u[1];if(c===-1/0||s===1/0)return[n,i];if(c===s)return[c];var f=Math.max(e,2),l=wx(new ne(s).sub(c).div(f-1),a,0),p=[].concat($l(Va.rangeStep(new ne(c),new ne(s).sub(new ne(.99).mul(l)),l)),[s]);return n>i?Tl(p):p}var H1=xx(W1),U1=xx(G1),V1="Invariant failed";function er(t,e){throw new Error(V1)}var X1=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Tr(t){"@babel/helpers - typeof";return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tr(t)}function Vi(){return Vi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Vi.apply(this,arguments)}function Y1(t,e){return ej(t)||Q1(t,e)||J1(t,e)||Z1()}function Z1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J1(t,e){if(t){if(typeof t=="string")return Ty(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ty(t,e)}}function Ty(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Q1(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function ej(t){if(Array.isArray(t))return t}function tj(t,e){if(t==null)return{};var r=rj(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function rj(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function nj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ij(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jx(n.key),n)}}function aj(t,e,r){return e&&ij(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function oj(t,e,r){return e=Xi(e),uj(t,Sx()?Reflect.construct(e,r||[],Xi(t).constructor):e.apply(t,r))}function uj(t,e){if(e&&(Tr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cj(t)}function cj(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sx(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sx=function(){return!!t})()}function Xi(t){return Xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xi(t)}function sj(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Cl(t,e)}function Cl(t,e){return Cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cl(t,e)}function _x(t,e,r){return e=jx(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jx(t){var e=lj(t,"string");return Tr(e)=="symbol"?e:e+""}function lj(t,e){if(Tr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var an=(function(t){function e(){return nj(this,e),oj(this,e,arguments)}return sj(e,t),aj(e,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,c=n.data,s=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,p=tj(n,X1),d=F(p,!1);this.props.direction==="x"&&f.type!=="number"&&er();var y=c.map(function(h){var v=s(h,u),b=v.x,g=v.y,x=v.value,A=v.errorVal;if(!A)return null;var m=[],O,w;if(Array.isArray(A)){var S=Y1(A,2);O=S[0],w=S[1]}else O=w=A;if(a==="vertical"){var _=f.scale,T=g+i,j=T+o,E=T-o,$=_(x-O),C=_(x+w);m.push({x1:C,y1:j,x2:C,y2:E}),m.push({x1:$,y1:T,x2:C,y2:T}),m.push({x1:$,y1:j,x2:$,y2:E})}else if(a==="horizontal"){var I=l.scale,k=b+i,N=k-o,q=k+o,B=I(x-O),G=I(x+w);m.push({x1:N,y1:G,x2:q,y2:G}),m.push({x1:k,y1:B,x2:k,y2:G}),m.push({x1:N,y1:B,x2:q,y2:B})}return P.createElement(X,Vi({className:"recharts-errorBar",key:"bar-".concat(m.map(function(Y){return"".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))},d),m.map(function(Y){return P.createElement("line",Vi({},Y,{key:"line-".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))}))});return P.createElement(X,{className:"recharts-errorBars"},y)}}])})(P.Component);_x(an,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});_x(an,"displayName","ErrorBar");function zn(t){"@babel/helpers - typeof";return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zn(t)}function $y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Bt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$y(Object(r),!0).forEach(function(n){fj(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$y(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function fj(t,e,r){return e=pj(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pj(t){var e=dj(t,"string");return zn(e)=="symbol"?e:e+""}function dj(t,e){if(zn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ex=function(e){var r=e.children,n=e.formattedGraphicalItems,i=e.legendWidth,a=e.legendContent,o=Ce(r,Vt);if(!o)return null;var u=Vt.defaultProps,c=u!==void 0?Bt(Bt({},u),o.props):{},s;return o.props&&o.props.payload?s=o.props&&o.props.payload:a==="children"?s=(n||[]).reduce(function(f,l){var p=l.item,d=l.props,y=d.sectors||d.data||[];return f.concat(y.map(function(h){return{type:o.props.iconType||p.props.legendType,value:h.name,color:h.fill,payload:h}}))},[]):s=(n||[]).map(function(f){var l=f.item,p=l.type.defaultProps,d=p!==void 0?Bt(Bt({},p),l.props):{},y=d.dataKey,h=d.name,v=d.legendType,b=d.hide;return{inactive:b,dataKey:y,type:c.iconType||v||"square",color:op(l),value:h||y,payload:d}}),Bt(Bt(Bt({},c),Vt.getWithHeight(o,i)),{},{payload:s,item:o})};function Kn(t){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kn(t)}function Iy(t){return mj(t)||yj(t)||hj(t)||vj()}function vj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
25
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hj(t,e){if(t){if(typeof t=="string")return Rl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rl(t,e)}}function yj(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function mj(t){if(Array.isArray(t))return Rl(t)}function Rl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Cy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function le(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Cy(Object(r),!0).forEach(function(n){wr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cy(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function wr(t,e,r){return e=gj(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gj(t){var e=bj(t,"string");return Kn(e)=="symbol"?e:e+""}function bj(t,e){if(Kn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ie(t,e,r){return H(t)||H(e)?r:ye(e)?ke(t,e,r):W(e)?e(t):r}function _n(t,e,r,n){var i=m1(t,function(u){return ie(u,e)});if(r==="number"){var a=i.filter(function(u){return L(u)||parseFloat(u)});return a.length?[Ha(a),wt(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!H(u)}):i;return o.map(function(u){return ye(u)||u instanceof Date?u:""})}var xj=function(e){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==null?void 0: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 c=a.range,s=0;s<u;s++){var f=s>0?i[s-1].coordinate:i[u-1].coordinate,l=i[s].coordinate,p=s>=u-1?i[0].coordinate:i[s+1].coordinate,d=void 0;if(Oe(l-f)!==Oe(p-l)){var y=[];if(Oe(p-l)===Oe(c[1]-c[0])){d=p;var h=l+c[1]-c[0];y[0]=Math.min(h,(h+f)/2),y[1]=Math.max(h,(h+f)/2)}else{d=f;var v=p+c[1]-c[0];y[0]=Math.min(l,(v+l)/2),y[1]=Math.max(l,(v+l)/2)}var b=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(e>b[0]&&e<=b[1]||e>=y[0]&&e<=y[1]){o=i[s].index;break}}else{var g=Math.min(f,p),x=Math.max(f,p);if(e>(g+l)/2&&e<=(x+l)/2){o=i[s].index;break}}}else for(var A=0;A<u;A++)if(A===0&&e<=(n[A].coordinate+n[A+1].coordinate)/2||A>0&&A<u-1&&e>(n[A].coordinate+n[A-1].coordinate)/2&&e<=(n[A].coordinate+n[A+1].coordinate)/2||A===u-1&&e>(n[A].coordinate+n[A-1].coordinate)/2){o=n[A].index;break}return o},op=function(e){var r,n=e,i=n.type.displayName,a=(r=e.type)!==null&&r!==void 0&&r.defaultProps?le(le({},e.type.defaultProps),e.props):e.props,o=a.stroke,u=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:u;break;default:c=u;break}return c},Oj=function(e){var r=e.barSize,n=e.totalSize,i=e.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),c=0,s=u.length;c<s;c++)for(var f=a[u[c]].stackGroups,l=Object.keys(f),p=0,d=l.length;p<d;p++){var y=f[l[p]],h=y.items,v=y.cateAxisId,b=h.filter(function(w){return dt(w.type).indexOf("Bar")>=0});if(b&&b.length){var g=b[0].type.defaultProps,x=g!==void 0?le(le({},g),b[0].props):b[0].props,A=x.barSize,m=x[v];o[m]||(o[m]=[]);var O=H(A)?r:A;o[m].push({item:b[0],stackList:b.slice(1),barSize:H(O)?void 0:je(O,n,0)})}}return o},Aj=function(e){var r=e.barGap,n=e.barCategoryGap,i=e.bandSize,a=e.sizeList,o=a===void 0?[]:a,u=e.maxBarSize,c=o.length;if(c<1)return null;var s=je(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var p=!1,d=i/c,y=o.reduce(function(A,m){return A+m.barSize||0},0);y+=(c-1)*s,y>=i&&(y-=(c-1)*s,s=0),y>=i&&d>0&&(p=!0,d*=.9,y=c*d);var h=(i-y)/2>>0,v={offset:h-s,size:0};f=o.reduce(function(A,m){var O={item:m.item,position:{offset:v.offset+v.size+s,size:p?d:m.barSize}},w=[].concat(Iy(A),[O]);return v=w[w.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){w.push({item:S,position:v})}),w},l)}else{var b=je(n,i,0,!0);i-2*b-(c-1)*s<=0&&(s=0);var g=(i-2*b-(c-1)*s)/c;g>1&&(g>>=0);var x=u===+u?Math.min(g,u):g;f=o.reduce(function(A,m,O){var w=[].concat(Iy(A),[{item:m.item,position:{offset:b+(g+s)*O+(g-x)/2,size:x}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){w.push({item:S,position:w[w.length-1].position})}),w},l)}return f},wj=function(e,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=Ex({children:a,legendWidth:c});if(s){var f=i||{},l=f.width,p=f.height,d=s.align,y=s.verticalAlign,h=s.layout;if((h==="vertical"||h==="horizontal"&&y==="middle")&&d!=="center"&&L(e[d]))return le(le({},e),{},wr({},d,e[d]+(l||0)));if((h==="horizontal"||h==="vertical"&&d==="center")&&y!=="middle"&&L(e[y]))return le(le({},e),{},wr({},y,e[y]+(p||0)))}return e},Pj=function(e,r,n){return H(r)?!0:e==="horizontal"?r==="yAxis":e==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Tx=function(e,r,n,i,a){var o=r.props.children,u=Se(o,an).filter(function(s){return Pj(i,a,s.props.direction)});if(u&&u.length){var c=u.map(function(s){return s.props.dataKey});return e.reduce(function(s,f){var l=ie(f,n);if(H(l))return s;var p=Array.isArray(l)?[Ha(l),wt(l)]:[l,l],d=c.reduce(function(y,h){var v=ie(f,h,0),b=p[0]-Math.abs(Array.isArray(v)?v[0]:v),g=p[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(b,y[0]),Math.max(g,y[1])]},[1/0,-1/0]);return[Math.min(d[0],s[0]),Math.max(d[1],s[1])]},[1/0,-1/0])}return null},Sj=function(e,r,n,i,a){var o=r.map(function(u){return Tx(e,u,n,a,i)}).filter(function(u){return!H(u)});return o&&o.length?o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},$x=function(e,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&Tx(e,c,s,i)||_n(e,s,n,a)});if(n==="number")return o.reduce(function(c,s){return[Math.min(c[0],s[0]),Math.max(c[1],s[1])]},[1/0,-1/0]);var u={};return o.reduce(function(c,s){for(var f=0,l=s.length;f<l;f++)u[s[f]]||(u[s[f]]=!0,c.push(s[f]));return c},[])},Ix=function(e,r){return e==="horizontal"&&r==="xAxis"||e==="vertical"&&r==="yAxis"||e==="centric"&&r==="angleAxis"||e==="radial"&&r==="radiusAxis"},Cx=function(e,r,n,i){if(i)return e.map(function(c){return c.coordinate});var a,o,u=e.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||u.push(r),o||u.push(n),u},pt=function(e,r,n){if(!e)return null;var i=e.scale,a=e.duplicateDomain,o=e.type,u=e.range,c=e.realScaleType==="scaleBand"?i.bandwidth()/2:2,s=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(s=e.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?Oe(u[0]-u[1])*2*s:s,r&&(e.ticks||e.niceTicks)){var f=(e.ticks||e.niceTicks).map(function(l){var p=a?a.indexOf(l):l;return{coordinate:i(p)+s,value:l,offset:s}});return f.filter(function(l){return!en(l.coordinate)})}return e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(l,p){return{coordinate:i(l)+s,value:l,index:p,offset:s}}):i.ticks&&!n?i.ticks(e.tickCount).map(function(l){return{coordinate:i(l)+s,value:l,offset:s}}):i.domain().map(function(l,p){return{coordinate:i(l)+s,value:a?a[l]:l,index:p,offset:s}})},ws=new WeakMap,Ii=function(e,r){if(typeof r!="function")return e;ws.has(e)||ws.set(e,new WeakMap);var n=ws.get(e);if(n.has(r))return n.get(r);var i=function(){e.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},Rx=function(e,r,n){var i=e.scale,a=e.type,o=e.layout,u=e.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:ol(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:cl(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Pn(),realScaleType:"point"}:a==="category"?{scale:ol(),realScaleType:"band"}:{scale:cl(),realScaleType:"linear"};if(Zt(i)){var c="scale".concat(La(i));return{scale:(my[c]||Pn)(),realScaleType:my[c]?c:"point"}}return W(i)?{scale:i}:{scale:Pn(),realScaleType:"point"}},Ry=1e-4,kx=function(e){var r=e.domain();if(!(!r||r.length<=2)){var n=r.length,i=e.range(),a=Math.min(i[0],i[1])-Ry,o=Math.max(i[0],i[1])+Ry,u=e(r[0]),c=e(r[n-1]);(u<a||u>o||c<a||c>o)&&e.domain([r[0],r[n-1]])}},Mx=function(e,r){if(!e)return null;for(var n=0,i=e.length;n<i;n++)if(e[n].item===r)return e[n].position;return null},Dx=function(e,r){if(!r||r.length!==2||!L(r[0])||!L(r[1]))return e;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[e[0],e[1]];return(!L(e[0])||e[0]<n)&&(a[0]=n),(!L(e[1])||e[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},_j=function(e){var r=e.length;if(!(r<=0))for(var n=0,i=e[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var c=en(e[u][n][1])?e[u][n][0]:e[u][n][1];c>=0?(e[u][n][0]=a,e[u][n][1]=a+c,a=e[u][n][1]):(e[u][n][0]=o,e[u][n][1]=o+c,o=e[u][n][1])}},jj=function(e){var r=e.length;if(!(r<=0))for(var n=0,i=e[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=en(e[o][n][1])?e[o][n][0]:e[o][n][1];u>=0?(e[o][n][0]=a,e[o][n][1]=a+u,a=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}},Ej={sign:_j,expand:jw,none:Pr,silhouette:Ew,wiggle:Tw,positive:jj},Tj=function(e,r,n){var i=r.map(function(u){return u.props.dataKey}),a=Ej[n],o=_w().keys(i).value(function(u,c){return+ie(u,c,0)}).order(yl).offset(a);return o(e)},$j=function(e,r,n,i,a,o){if(!e)return null;var u=o?r.reverse():r,c={},s=u.reduce(function(l,p){var d,y=(d=p.type)!==null&&d!==void 0&&d.defaultProps?le(le({},p.type.defaultProps),p.props):p.props,h=y.stackId,v=y.hide;if(v)return l;var b=y[n],g=l[b]||{hasStack:!1,stackGroups:{}};if(ye(h)){var x=g.stackGroups[h]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(p),g.hasStack=!0,g.stackGroups[h]=x}else g.stackGroups[$t("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[p]};return le(le({},l),{},wr({},b,g))},c),f={};return Object.keys(s).reduce(function(l,p){var d=s[p];if(d.hasStack){var y={};d.stackGroups=Object.keys(d.stackGroups).reduce(function(h,v){var b=d.stackGroups[v];return le(le({},h),{},wr({},v,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:Tj(e,b.items,a)}))},y)}return le(le({},l),{},wr({},p,d))},f)},Nx=function(e,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=e.domain();if(!s.length)return null;var f=H1(s,a,u);return e.domain([Ha(f),wt(f)]),{niceTicks:f}}if(a&&i==="number"){var l=e.domain(),p=U1(l,a,u);return{niceTicks:p}}return null};function $r(t){var e=t.axis,r=t.ticks,n=t.bandSize,i=t.entry,a=t.index,o=t.dataKey;if(e.type==="category"){if(!e.allowDuplicatedCategory&&e.dataKey&&!H(i[e.dataKey])){var u=Bi(r,"value",i[e.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=ie(i,H(o)?e.dataKey:o);return H(c)?null:e.scale(c)}var Yi=function(e){var r=e.axis,n=e.ticks,i=e.offset,a=e.bandSize,o=e.entry,u=e.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var c=ie(o,r.dataKey,r.domain[u]);return H(c)?null:r.scale(c)-a/2+i},Lx=function(e){var r=e.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]},Ij=function(e,r){var n,i=(n=e.type)!==null&&n!==void 0&&n.defaultProps?le(le({},e.type.defaultProps),e.props):e.props,a=i.stackId;if(ye(a)){var o=r[a];if(o){var u=o.items.indexOf(e);return u>=0?o.stackedData[u]:null}}return null},Cj=function(e){return e.reduce(function(r,n){return[Ha(n.concat([r[0]]).filter(L)),wt(n.concat([r[1]]).filter(L))]},[1/0,-1/0])},qx=function(e,r,n){return Object.keys(e).reduce(function(i,a){var o=e[a],u=o.stackedData,c=u.reduce(function(s,f){var l=Cj(f.slice(r,n+1));return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},ky=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,My=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,kl=function(e,r,n){if(W(e))return e(r,n);if(!Array.isArray(e))return r;var i=[];if(L(e[0]))i[0]=n?e[0]:Math.min(e[0],r[0]);else if(ky.test(e[0])){var a=+ky.exec(e[0])[1];i[0]=r[0]-a}else W(e[0])?i[0]=e[0](r[0]):i[0]=r[0];if(L(e[1]))i[1]=n?e[1]:Math.max(e[1],r[1]);else if(My.test(e[1])){var o=+My.exec(e[1])[1];i[1]=r[1]+o}else W(e[1])?i[1]=e[1](r[1]):i[1]=r[1];return i},Zi=function(e,r,n){if(e&&e.scale&&e.scale.bandwidth){var i=e.scale.bandwidth();if(!n||i>0)return i}if(e&&r&&r.length>=2){for(var a=Yf(r,function(l){return l.coordinate}),o=1/0,u=1,c=a.length;u<c;u++){var s=a[u],f=a[u-1];o=Math.min((s.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Dy=function(e,r,n){return!e||!e.length||it(e,ke(n,"type.defaultProps.domain"))?r:e},up=function(e,r){var n=e.type.defaultProps?le(le({},e.type.defaultProps),e.props):e.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,c=n.tooltipType,s=n.chartType,f=n.hide;return le(le({},F(e,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:op(e),value:ie(r,i),type:c,payload:r,chartType:s,hide:f})};function Wn(t){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wn(t)}function Ny(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function st(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ny(Object(r),!0).forEach(function(n){Bx(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ny(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Bx(t,e,r){return e=Rj(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rj(t){var e=kj(t,"string");return Wn(e)=="symbol"?e:e+""}function kj(t,e){if(Wn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Mj(t,e){return qj(t)||Lj(t,e)||Nj(t,e)||Dj()}function Dj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
26
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nj(t,e){if(t){if(typeof t=="string")return Ly(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ly(t,e)}}function Ly(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Lj(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function qj(t){if(Array.isArray(t))return t}var Ji=Math.PI/180,Bj=function(e){return e*180/Math.PI},J=function(e,r,n,i){return{x:e+Math.cos(-Ji*i)*n,y:r+Math.sin(-Ji*i)*n}},Fx=function(e,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(e-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},cp=function(e,r,n,i,a){var o=e.width,u=e.height,c=e.startAngle,s=e.endAngle,f=je(e.cx,o,o/2),l=je(e.cy,u,u/2),p=Fx(o,u,n),d=je(e.innerRadius,p,0),y=je(e.outerRadius,p,p*.8),h=Object.keys(r);return h.reduce(function(v,b){var g=r[b],x=g.domain,A=g.reversed,m;if(H(g.range))i==="angleAxis"?m=[c,s]:i==="radiusAxis"&&(m=[d,y]),A&&(m=[m[1],m[0]]);else{m=g.range;var O=m,w=Mj(O,2);c=w[0],s=w[1]}var S=Rx(g,a),_=S.realScaleType,T=S.scale;T.domain(x).range(m),kx(T);var j=Nx(T,st(st({},g),{},{realScaleType:_})),E=st(st(st({},g),j),{},{range:m,radius:y,realScaleType:_,scale:T,cx:f,cy:l,innerRadius:d,outerRadius:y,startAngle:c,endAngle:s});return st(st({},v),{},Bx({},b,E))},{})},Fj=function(e,r){var n=e.x,i=e.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},zj=function(e,r){var n=e.x,i=e.y,a=r.cx,o=r.cy,u=Fj({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var c=(n-a)/u,s=Math.acos(c);return i>o&&(s=2*Math.PI-s),{radius:u,angle:Bj(s),angleInRadian:s}},Kj=function(e){var r=e.startAngle,n=e.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}},Wj=function(e,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return e+u*360},qy=function(e,r){var n=e.x,i=e.y,a=zj({x:n,y:i},r),o=a.radius,u=a.angle,c=r.innerRadius,s=r.outerRadius;if(o<c||o>s)return!1;if(o===0)return!0;var f=Kj(r),l=f.startAngle,p=f.endAngle,d=u,y;if(l<=p){for(;d>p;)d-=360;for(;d<l;)d+=360;y=d>=l&&d<=p}else{for(;d>l;)d-=360;for(;d<p;)d+=360;y=d>=p&&d<=l}return y?st(st({},r),{},{radius:o,angle:Wj(d,r)}):null},zx=function(e){return!M.isValidElement(e)&&!W(e)&&typeof e!="boolean"?e.className:""};function Gn(t){"@babel/helpers - typeof";return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gn(t)}var Gj=["offset"];function Hj(t){return Yj(t)||Xj(t)||Vj(t)||Uj()}function Uj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
27
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vj(t,e){if(t){if(typeof t=="string")return Ml(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ml(t,e)}}function Xj(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Yj(t){if(Array.isArray(t))return Ml(t)}function Ml(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Zj(t,e){if(t==null)return{};var r=Jj(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Jj(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function By(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function he(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?By(Object(r),!0).forEach(function(n){Qj(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):By(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Qj(t,e,r){return e=eE(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eE(t){var e=tE(t,"string");return Gn(e)=="symbol"?e:e+""}function tE(t,e){if(Gn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hn(){return Hn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hn.apply(this,arguments)}var rE=function(e){var r=e.value,n=e.formatter,i=H(e.children)?r:e.children;return W(n)?n(i):i},nE=function(e,r){var n=Oe(r-e),i=Math.min(Math.abs(r-e),360);return n*i},iE=function(e,r,n){var i=e.position,a=e.viewBox,o=e.offset,u=e.className,c=a,s=c.cx,f=c.cy,l=c.innerRadius,p=c.outerRadius,d=c.startAngle,y=c.endAngle,h=c.clockWise,v=(l+p)/2,b=nE(d,y),g=b>=0?1:-1,x,A;i==="insideStart"?(x=d+g*o,A=h):i==="insideEnd"?(x=y-g*o,A=!h):i==="end"&&(x=y+g*o,A=h),A=b<=0?A:!A;var m=J(s,f,v,x),O=J(s,f,v,x+(A?1:-1)*359),w="M".concat(m.x,",").concat(m.y,`
28
28
  A`).concat(v,",").concat(v,",0,1,").concat(A?0:1,`,
29
- `).concat(O.x,",").concat(O.y),S=H(e.id)?$t("recharts-radial-line-"):e.id;return P.createElement("text",Hn({},n,{dominantBaseline:"central",className:V("recharts-radial-bar-label",u)}),P.createElement("defs",null,P.createElement("path",{id:S,d:w})),P.createElement("textPath",{xlinkHref:"#".concat(S)},r))},iE=function(e){var r=e.viewBox,n=e.offset,i=e.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,s=a.outerRadius,f=a.startAngle,l=a.endAngle,p=(f+l)/2;if(i==="outside"){var d=J(o,u,s+n,p),y=d.x,h=d.y;return{x:y,y:h,textAnchor:y>=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 v=(c+s)/2,g=J(o,u,v,p),b=g.x,x=g.y;return{x:b,y:x,textAnchor:"middle",verticalAnchor:"middle"}},aE=function(e){var r=e.viewBox,n=e.parentViewBox,i=e.offset,a=e.position,o=r,u=o.x,c=o.y,s=o.width,f=o.height,l=f>=0?1:-1,p=l*i,d=l>0?"end":"start",y=l>0?"start":"end",h=s>=0?1:-1,v=h*i,g=h>0?"end":"start",b=h>0?"start":"end";if(a==="top"){var x={x:u+s/2,y:c-l*i,textAnchor:"middle",verticalAnchor:d};return he(he({},x),n?{height:Math.max(c-n.y,0),width:s}:{})}if(a==="bottom"){var A={x:u+s/2,y:c+f+p,textAnchor:"middle",verticalAnchor:y};return he(he({},A),n?{height:Math.max(n.y+n.height-(c+f),0),width:s}:{})}if(a==="left"){var m={x:u-v,y:c+f/2,textAnchor:g,verticalAnchor:"middle"};return he(he({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var O={x:u+s+v,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return he(he({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:f}:{})}var w=n?{width:s,height:f}:{};return a==="insideLeft"?he({x:u+v,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},w):a==="insideRight"?he({x:u+s-v,y:c+f/2,textAnchor:g,verticalAnchor:"middle"},w):a==="insideTop"?he({x:u+s/2,y:c+p,textAnchor:"middle",verticalAnchor:y},w):a==="insideBottom"?he({x:u+s/2,y:c+f-p,textAnchor:"middle",verticalAnchor:d},w):a==="insideTopLeft"?he({x:u+v,y:c+p,textAnchor:b,verticalAnchor:y},w):a==="insideTopRight"?he({x:u+s-v,y:c+p,textAnchor:g,verticalAnchor:y},w):a==="insideBottomLeft"?he({x:u+v,y:c+f-p,textAnchor:b,verticalAnchor:d},w):a==="insideBottomRight"?he({x:u+s-v,y:c+f-p,textAnchor:g,verticalAnchor:d},w):Qr(a)&&(L(a.x)||Gt(a.x))&&(L(a.y)||Gt(a.y))?he({x:u+je(a.x,s),y:c+je(a.y,f),textAnchor:"end",verticalAnchor:"end"},w):he({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},w)},oE=function(e){return"cx"in e&&L(e.cx)};function xe(t){var e=t.offset,r=e===void 0?5:e,n=Yj(t,Wj),i=he({offset:r},n),a=i.viewBox,o=i.position,u=i.value,c=i.children,s=i.content,f=i.className,l=f===void 0?"":f,p=i.textBreakAll;if(!a||H(u)&&H(c)&&!M.isValidElement(s)&&!W(s))return null;if(M.isValidElement(s))return M.cloneElement(s,i);var d;if(W(s)){if(d=M.createElement(s,i),M.isValidElement(d))return d}else d=tE(i);var y=oE(a),h=F(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return nE(i,d,h);var v=y?iE(i):aE(i);return P.createElement(Jt,Hn({className:V("recharts-label",l)},h,v,{breakAll:p}),d)}xe.displayName="Label";var Kx=function(e){var r=e.cx,n=e.cy,i=e.angle,a=e.startAngle,o=e.endAngle,u=e.r,c=e.radius,s=e.innerRadius,f=e.outerRadius,l=e.x,p=e.y,d=e.top,y=e.left,h=e.width,v=e.height,g=e.clockWise,b=e.labelViewBox;if(b)return b;if(L(h)&&L(v)){if(L(l)&&L(p))return{x:l,y:p,width:h,height:v};if(L(d)&&L(y))return{x:d,y,width:h,height:v}}return L(l)&&L(p)?{x:l,y:p,width:0,height:0}:L(r)&&L(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||c||u||0,clockWise:g}:e.viewBox?e.viewBox:{}},uE=function(e,r){return e?e===!0?P.createElement(xe,{key:"label-implicit",viewBox:r}):ye(e)?P.createElement(xe,{key:"label-implicit",viewBox:r,value:e}):M.isValidElement(e)?e.type===xe?M.cloneElement(e,{key:"label-implicit",viewBox:r}):P.createElement(xe,{key:"label-implicit",content:e,viewBox:r}):W(e)?P.createElement(xe,{key:"label-implicit",content:e,viewBox:r}):Qr(e)?P.createElement(xe,Hn({viewBox:r},e,{key:"label-implicit"})):null:null},cE=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var i=e.children,a=Kx(e),o=Se(i,xe).map(function(c,s){return M.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=uE(e.label,r||a);return[u].concat(Gj(o))};xe.parseViewBox=Kx;xe.renderCallByParent=cE;var ws,Fy;function sE(){if(Fy)return ws;Fy=1;function t(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}return ws=t,ws}var lE=sE();const Wx=re(lE);function Un(t){"@babel/helpers - typeof";return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Un(t)}var fE=["valueAccessor"],pE=["data","dataKey","clockWise","id","textBreakAll"];function dE(t){return mE(t)||yE(t)||hE(t)||vE()}function vE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
30
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hE(t,e){if(t){if(typeof t=="string")return Ml(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ml(t,e)}}function yE(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function mE(t){if(Array.isArray(t))return Ml(t)}function Ml(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ji(){return Ji=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ji.apply(this,arguments)}function zy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ky(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zy(Object(r),!0).forEach(function(n){gE(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zy(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function gE(t,e,r){return e=bE(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bE(t){var e=xE(t,"string");return Un(e)=="symbol"?e:e+""}function xE(t,e){if(Un(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Wy(t,e){if(t==null)return{};var r=OE(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function OE(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var AE=function(e){return Array.isArray(e.value)?Wx(e.value):e.value};function Me(t){var e=t.valueAccessor,r=e===void 0?AE:e,n=Wy(t,fE),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=Wy(n,pE);return!i||!i.length?null:P.createElement(X,{className:"recharts-label-list"},i.map(function(f,l){var p=H(a)?r(f,l):ie(f&&f.payload,a),d=H(u)?{}:{id:"".concat(u,"-").concat(l)};return P.createElement(xe,Ji({},F(f,!0),s,d,{parentViewBox:f.parentViewBox,value:p,textBreakAll:c,viewBox:xe.parseViewBox(H(o)?f:Ky(Ky({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}Me.displayName="LabelList";function wE(t,e){return t?t===!0?P.createElement(Me,{key:"labelList-implicit",data:e}):P.isValidElement(t)||W(t)?P.createElement(Me,{key:"labelList-implicit",data:e,content:t}):Qr(t)?P.createElement(Me,Ji({data:e},t,{key:"labelList-implicit"})):null:null}function PE(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var n=t.children,i=Se(n,Me).map(function(o,u){return M.cloneElement(o,{data:e,key:"labelList-".concat(u)})});if(!r)return i;var a=wE(t.label,e);return[a].concat(dE(i))}Me.renderCallByParent=PE;function Vn(t){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vn(t)}function Dl(){return Dl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Dl.apply(this,arguments)}function Gy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Hy(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Gy(Object(r),!0).forEach(function(n){SE(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gy(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function SE(t,e,r){return e=_E(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _E(t){var e=jE(t,"string");return Vn(e)=="symbol"?e:e+""}function jE(t,e){if(Vn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var EE=function(e,r){var n=Oe(r-e),i=Math.min(Math.abs(r-e),359.999);return n*i},Ii=function(e){var r=e.cx,n=e.cy,i=e.radius,a=e.angle,o=e.sign,u=e.isExternal,c=e.cornerRadius,s=e.cornerIsExternal,f=c*(u?1:-1)+i,l=Math.asin(c/f)/Zi,p=s?a:a+o*l,d=J(r,n,f,p),y=J(r,n,i,p),h=s?a-o*l:a,v=J(r,n,f*Math.cos(l*Zi),h);return{center:d,circleTangency:y,lineTangency:v,theta:l}},Gx=function(e){var r=e.cx,n=e.cy,i=e.innerRadius,a=e.outerRadius,o=e.startAngle,u=e.endAngle,c=EE(o,u),s=o+c,f=J(r,n,a,o),l=J(r,n,a,s),p="M ".concat(f.x,",").concat(f.y,`
29
+ `).concat(O.x,",").concat(O.y),S=H(e.id)?$t("recharts-radial-line-"):e.id;return P.createElement("text",Hn({},n,{dominantBaseline:"central",className:V("recharts-radial-bar-label",u)}),P.createElement("defs",null,P.createElement("path",{id:S,d:w})),P.createElement("textPath",{xlinkHref:"#".concat(S)},r))},aE=function(e){var r=e.viewBox,n=e.offset,i=e.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,s=a.outerRadius,f=a.startAngle,l=a.endAngle,p=(f+l)/2;if(i==="outside"){var d=J(o,u,s+n,p),y=d.x,h=d.y;return{x:y,y:h,textAnchor:y>=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 v=(c+s)/2,b=J(o,u,v,p),g=b.x,x=b.y;return{x:g,y:x,textAnchor:"middle",verticalAnchor:"middle"}},oE=function(e){var r=e.viewBox,n=e.parentViewBox,i=e.offset,a=e.position,o=r,u=o.x,c=o.y,s=o.width,f=o.height,l=f>=0?1:-1,p=l*i,d=l>0?"end":"start",y=l>0?"start":"end",h=s>=0?1:-1,v=h*i,b=h>0?"end":"start",g=h>0?"start":"end";if(a==="top"){var x={x:u+s/2,y:c-l*i,textAnchor:"middle",verticalAnchor:d};return he(he({},x),n?{height:Math.max(c-n.y,0),width:s}:{})}if(a==="bottom"){var A={x:u+s/2,y:c+f+p,textAnchor:"middle",verticalAnchor:y};return he(he({},A),n?{height:Math.max(n.y+n.height-(c+f),0),width:s}:{})}if(a==="left"){var m={x:u-v,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return he(he({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var O={x:u+s+v,y:c+f/2,textAnchor:g,verticalAnchor:"middle"};return he(he({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:f}:{})}var w=n?{width:s,height:f}:{};return a==="insideLeft"?he({x:u+v,y:c+f/2,textAnchor:g,verticalAnchor:"middle"},w):a==="insideRight"?he({x:u+s-v,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},w):a==="insideTop"?he({x:u+s/2,y:c+p,textAnchor:"middle",verticalAnchor:y},w):a==="insideBottom"?he({x:u+s/2,y:c+f-p,textAnchor:"middle",verticalAnchor:d},w):a==="insideTopLeft"?he({x:u+v,y:c+p,textAnchor:g,verticalAnchor:y},w):a==="insideTopRight"?he({x:u+s-v,y:c+p,textAnchor:b,verticalAnchor:y},w):a==="insideBottomLeft"?he({x:u+v,y:c+f-p,textAnchor:g,verticalAnchor:d},w):a==="insideBottomRight"?he({x:u+s-v,y:c+f-p,textAnchor:b,verticalAnchor:d},w):Qr(a)&&(L(a.x)||Gt(a.x))&&(L(a.y)||Gt(a.y))?he({x:u+je(a.x,s),y:c+je(a.y,f),textAnchor:"end",verticalAnchor:"end"},w):he({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},w)},uE=function(e){return"cx"in e&&L(e.cx)};function xe(t){var e=t.offset,r=e===void 0?5:e,n=Zj(t,Gj),i=he({offset:r},n),a=i.viewBox,o=i.position,u=i.value,c=i.children,s=i.content,f=i.className,l=f===void 0?"":f,p=i.textBreakAll;if(!a||H(u)&&H(c)&&!M.isValidElement(s)&&!W(s))return null;if(M.isValidElement(s))return M.cloneElement(s,i);var d;if(W(s)){if(d=M.createElement(s,i),M.isValidElement(d))return d}else d=rE(i);var y=uE(a),h=F(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return iE(i,d,h);var v=y?aE(i):oE(i);return P.createElement(Jt,Hn({className:V("recharts-label",l)},h,v,{breakAll:p}),d)}xe.displayName="Label";var Kx=function(e){var r=e.cx,n=e.cy,i=e.angle,a=e.startAngle,o=e.endAngle,u=e.r,c=e.radius,s=e.innerRadius,f=e.outerRadius,l=e.x,p=e.y,d=e.top,y=e.left,h=e.width,v=e.height,b=e.clockWise,g=e.labelViewBox;if(g)return g;if(L(h)&&L(v)){if(L(l)&&L(p))return{x:l,y:p,width:h,height:v};if(L(d)&&L(y))return{x:d,y,width:h,height:v}}return L(l)&&L(p)?{x:l,y:p,width:0,height:0}:L(r)&&L(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||c||u||0,clockWise:b}:e.viewBox?e.viewBox:{}},cE=function(e,r){return e?e===!0?P.createElement(xe,{key:"label-implicit",viewBox:r}):ye(e)?P.createElement(xe,{key:"label-implicit",viewBox:r,value:e}):M.isValidElement(e)?e.type===xe?M.cloneElement(e,{key:"label-implicit",viewBox:r}):P.createElement(xe,{key:"label-implicit",content:e,viewBox:r}):W(e)?P.createElement(xe,{key:"label-implicit",content:e,viewBox:r}):Qr(e)?P.createElement(xe,Hn({viewBox:r},e,{key:"label-implicit"})):null:null},sE=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var i=e.children,a=Kx(e),o=Se(i,xe).map(function(c,s){return M.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=cE(e.label,r||a);return[u].concat(Hj(o))};xe.parseViewBox=Kx;xe.renderCallByParent=sE;var Ps,Fy;function lE(){if(Fy)return Ps;Fy=1;function t(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}return Ps=t,Ps}var fE=lE();const Wx=re(fE);function Un(t){"@babel/helpers - typeof";return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Un(t)}var pE=["valueAccessor"],dE=["data","dataKey","clockWise","id","textBreakAll"];function vE(t){return gE(t)||mE(t)||yE(t)||hE()}function hE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yE(t,e){if(t){if(typeof t=="string")return Dl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dl(t,e)}}function mE(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gE(t){if(Array.isArray(t))return Dl(t)}function Dl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Qi(){return Qi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Qi.apply(this,arguments)}function zy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ky(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zy(Object(r),!0).forEach(function(n){bE(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zy(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function bE(t,e,r){return e=xE(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xE(t){var e=OE(t,"string");return Un(e)=="symbol"?e:e+""}function OE(t,e){if(Un(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Wy(t,e){if(t==null)return{};var r=AE(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function AE(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var wE=function(e){return Array.isArray(e.value)?Wx(e.value):e.value};function Me(t){var e=t.valueAccessor,r=e===void 0?wE:e,n=Wy(t,pE),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=Wy(n,dE);return!i||!i.length?null:P.createElement(X,{className:"recharts-label-list"},i.map(function(f,l){var p=H(a)?r(f,l):ie(f&&f.payload,a),d=H(u)?{}:{id:"".concat(u,"-").concat(l)};return P.createElement(xe,Qi({},F(f,!0),s,d,{parentViewBox:f.parentViewBox,value:p,textBreakAll:c,viewBox:xe.parseViewBox(H(o)?f:Ky(Ky({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}Me.displayName="LabelList";function PE(t,e){return t?t===!0?P.createElement(Me,{key:"labelList-implicit",data:e}):P.isValidElement(t)||W(t)?P.createElement(Me,{key:"labelList-implicit",data:e,content:t}):Qr(t)?P.createElement(Me,Qi({data:e},t,{key:"labelList-implicit"})):null:null}function SE(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var n=t.children,i=Se(n,Me).map(function(o,u){return M.cloneElement(o,{data:e,key:"labelList-".concat(u)})});if(!r)return i;var a=PE(t.label,e);return[a].concat(vE(i))}Me.renderCallByParent=SE;function Vn(t){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vn(t)}function Nl(){return Nl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Nl.apply(this,arguments)}function Gy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Hy(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Gy(Object(r),!0).forEach(function(n){_E(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gy(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _E(t,e,r){return e=jE(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jE(t){var e=EE(t,"string");return Vn(e)=="symbol"?e:e+""}function EE(t,e){if(Vn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var TE=function(e,r){var n=Oe(r-e),i=Math.min(Math.abs(r-e),359.999);return n*i},Ci=function(e){var r=e.cx,n=e.cy,i=e.radius,a=e.angle,o=e.sign,u=e.isExternal,c=e.cornerRadius,s=e.cornerIsExternal,f=c*(u?1:-1)+i,l=Math.asin(c/f)/Ji,p=s?a:a+o*l,d=J(r,n,f,p),y=J(r,n,i,p),h=s?a-o*l:a,v=J(r,n,f*Math.cos(l*Ji),h);return{center:d,circleTangency:y,lineTangency:v,theta:l}},Gx=function(e){var r=e.cx,n=e.cy,i=e.innerRadius,a=e.outerRadius,o=e.startAngle,u=e.endAngle,c=TE(o,u),s=o+c,f=J(r,n,a,o),l=J(r,n,a,s),p="M ".concat(f.x,",").concat(f.y,`
31
31
  A `).concat(a,",").concat(a,`,0,
32
32
  `).concat(+(Math.abs(c)>180),",").concat(+(o>s),`,
33
33
  `).concat(l.x,",").concat(l.y,`
34
34
  `);if(i>0){var d=J(r,n,i,o),y=J(r,n,i,s);p+="L ".concat(y.x,",").concat(y.y,`
35
35
  A `).concat(i,",").concat(i,`,0,
36
36
  `).concat(+(Math.abs(c)>180),",").concat(+(o<=s),`,
37
- `).concat(d.x,",").concat(d.y," Z")}else p+="L ".concat(r,",").concat(n," Z");return p},TE=function(e){var r=e.cx,n=e.cy,i=e.innerRadius,a=e.outerRadius,o=e.cornerRadius,u=e.forceCornerRadius,c=e.cornerIsExternal,s=e.startAngle,f=e.endAngle,l=Oe(f-s),p=Ii({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),d=p.circleTangency,y=p.lineTangency,h=p.theta,v=Ii({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),g=v.circleTangency,b=v.lineTangency,x=v.theta,A=c?Math.abs(s-f):Math.abs(s-f)-h-x;if(A<0)return u?"M ".concat(y.x,",").concat(y.y,`
37
+ `).concat(d.x,",").concat(d.y," Z")}else p+="L ".concat(r,",").concat(n," Z");return p},$E=function(e){var r=e.cx,n=e.cy,i=e.innerRadius,a=e.outerRadius,o=e.cornerRadius,u=e.forceCornerRadius,c=e.cornerIsExternal,s=e.startAngle,f=e.endAngle,l=Oe(f-s),p=Ci({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),d=p.circleTangency,y=p.lineTangency,h=p.theta,v=Ci({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),b=v.circleTangency,g=v.lineTangency,x=v.theta,A=c?Math.abs(s-f):Math.abs(s-f)-h-x;if(A<0)return u?"M ".concat(y.x,",").concat(y.y,`
38
38
  a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
39
39
  a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
40
40
  `):Gx({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
41
41
  A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(d.x,",").concat(d.y,`
42
- A`).concat(a,",").concat(a,",0,").concat(+(A>180),",").concat(+(l<0),",").concat(g.x,",").concat(g.y,`
43
- A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(b.x,",").concat(b.y,`
44
- `);if(i>0){var O=Ii({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),w=O.circleTangency,S=O.lineTangency,_=O.theta,T=Ii({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),j=T.circleTangency,E=T.lineTangency,$=T.theta,C=c?Math.abs(s-f):Math.abs(s-f)-_-$;if(C<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(E.x,",").concat(E.y,`
42
+ A`).concat(a,",").concat(a,",0,").concat(+(A>180),",").concat(+(l<0),",").concat(b.x,",").concat(b.y,`
43
+ A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(g.x,",").concat(g.y,`
44
+ `);if(i>0){var O=Ci({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),w=O.circleTangency,S=O.lineTangency,_=O.theta,T=Ci({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),j=T.circleTangency,E=T.lineTangency,$=T.theta,C=c?Math.abs(s-f):Math.abs(s-f)-_-$;if(C<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(E.x,",").concat(E.y,`
45
45
  A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(j.x,",").concat(j.y,`
46
46
  A`).concat(i,",").concat(i,",0,").concat(+(C>180),",").concat(+(l>0),",").concat(w.x,",").concat(w.y,`
47
- A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},$E={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Hx=function(e){var r=Hy(Hy({},$E),e),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,c=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,p=r.className;if(o<a||f===l)return null;var d=V("recharts-sector",p),y=o-a,h=je(u,y,0,!0),v;return h>0&&Math.abs(f-l)<360?v=TE({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(h,y/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):v=Gx({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),P.createElement("path",Dl({},F(r,!0),{className:d,d:v,role:"img"}))};function Xn(t){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xn(t)}function Nl(){return Nl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Nl.apply(this,arguments)}function Uy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Vy(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Uy(Object(r),!0).forEach(function(n){IE(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uy(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function IE(t,e,r){return e=CE(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function CE(t){var e=RE(t,"string");return Xn(e)=="symbol"?e:e+""}function RE(t,e){if(Xn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Xy={curveBasisClosed:j0,curveBasisOpen:_0,curveBasis:S0,curveBumpX:P0,curveBumpY:w0,curveLinearClosed:A0,curveLinear:Ef,curveMonotoneX:O0,curveMonotoneY:x0,curveNatural:b0,curveStep:g0,curveStepAfter:m0,curveStepBefore:y0},Ci=function(e){return e.x===+e.x&&e.y===+e.y},mn=function(e){return e.x},gn=function(e){return e.y},kE=function(e,r){if(W(e))return e;var n="curve".concat(Na(e));return(n==="curveMonotone"||n==="curveBump")&&r?Xy["".concat(n).concat(r==="vertical"?"Y":"X")]:Xy[n]||Ef},ME=function(e){var r=e.type,n=r===void 0?"linear":r,i=e.points,a=i===void 0?[]:i,o=e.baseLine,u=e.layout,c=e.connectNulls,s=c===void 0?!1:c,f=kE(n,u),l=s?a.filter(function(h){return Ci(h)}):a,p;if(Array.isArray(o)){var d=s?o.filter(function(h){return Ci(h)}):o,y=l.map(function(h,v){return Vy(Vy({},h),{},{base:d[v]})});return u==="vertical"?p=_i().y(gn).x1(mn).x0(function(h){return h.base.x}):p=_i().x(mn).y1(gn).y0(function(h){return h.base.y}),p.defined(Ci).curve(f),p(y)}return u==="vertical"&&L(o)?p=_i().y(gn).x1(mn).x0(o):L(o)?p=_i().x(mn).y1(gn).y0(o):p=tb().x(mn).y(gn),p.defined(Ci).curve(f),p(l)},_t=function(e){var r=e.className,n=e.points,i=e.path,a=e.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?ME(e):i;return M.createElement("path",Nl({},F(e,!1),Bi(e),{className:V("recharts-curve",r),d:o,ref:a}))},Ps={exports:{}},Ss,Yy;function DE(){if(Yy)return Ss;Yy=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ss=t,Ss}var _s,Zy;function NE(){if(Zy)return _s;Zy=1;var t=DE();function e(){}function r(){}return r.resetWarningCache=e,_s=function(){function n(o,u,c,s,f,l){if(l!==t){var p=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 p.name="Invariant Violation",p}}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:e};return a.PropTypes=a,a},_s}var Jy;function LE(){return Jy||(Jy=1,Ps.exports=NE()()),Ps.exports}var qE=LE();const ee=re(qE),{getOwnPropertyNames:BE,getOwnPropertySymbols:FE}=Object,{hasOwnProperty:zE}=Object.prototype;function js(t,e){return function(n,i,a){return t(n,i,a)&&e(n,i,a)}}function Ri(t){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return t(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 c=t(r,n,i);return a.delete(r),a.delete(n),c}}function KE(t){return t!=null?t[Symbol.toStringTag]:void 0}function Qy(t){return BE(t).concat(FE(t))}const WE=Object.hasOwn||((t,e)=>zE.call(t,e));function ir(t,e){return t===e||!t&&!e&&t!==t&&e!==e}const GE="__v",HE="__o",UE="_owner",{getOwnPropertyDescriptor:em,keys:tm}=Object;function VE(t,e){return t.byteLength===e.byteLength&&Qi(new Uint8Array(t),new Uint8Array(e))}function XE(t,e,r){let n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function YE(t,e){return t.byteLength===e.byteLength&&Qi(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function ZE(t,e){return ir(t.getTime(),e.getTime())}function JE(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function QE(t,e){return t===e}function rm(t,e,r){const n=t.size;if(n!==e.size)return!1;if(!n)return!0;const i=new Array(n),a=t.entries();let o,u,c=0;for(;(o=a.next())&&!o.done;){const s=e.entries();let f=!1,l=0;for(;(u=s.next())&&!u.done;){if(i[l]){l++;continue}const p=o.value,d=u.value;if(r.equals(p[0],d[0],c,l,t,e,r)&&r.equals(p[1],d[1],p[0],d[0],t,e,r)){f=i[l]=!0;break}l++}if(!f)return!1;c++}return!0}const eT=ir;function tT(t,e,r){const n=tm(t);let i=n.length;if(tm(e).length!==i)return!1;for(;i-- >0;)if(!Ux(t,e,r,n[i]))return!1;return!0}function bn(t,e,r){const n=Qy(t);let i=n.length;if(Qy(e).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!Ux(t,e,r,a)||(o=em(t,a),u=em(e,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function rT(t,e){return ir(t.valueOf(),e.valueOf())}function nT(t,e){return t.source===e.source&&t.flags===e.flags}function nm(t,e,r){const n=t.size;if(n!==e.size)return!1;if(!n)return!0;const i=new Array(n),a=t.values();let o,u;for(;(o=a.next())&&!o.done;){const c=e.values();let s=!1,f=0;for(;(u=c.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,t,e,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function Qi(t,e){let r=t.byteLength;if(e.byteLength!==r||t.byteOffset!==e.byteOffset)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function iT(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function Ux(t,e,r,n){return(n===UE||n===HE||n===GE)&&(t.$$typeof||e.$$typeof)?!0:WE(e,n)&&r.equals(t[n],e[n],n,n,t,e,r)}const aT="[object ArrayBuffer]",oT="[object Arguments]",uT="[object Boolean]",cT="[object DataView]",sT="[object Date]",lT="[object Error]",fT="[object Map]",pT="[object Number]",dT="[object Object]",vT="[object RegExp]",hT="[object Set]",yT="[object String]",mT={"[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},gT="[object URL]",bT=Object.prototype.toString;function xT({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:c,arePrimitiveWrappersEqual:s,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:p,areUrlsEqual:d,unknownTagComparators:y}){return function(v,g,b){if(v===g)return!0;if(v==null||g==null)return!1;const x=typeof v;if(x!==typeof g)return!1;if(x!=="object")return x==="number"?u(v,g,b):x==="function"?a(v,g,b):!1;const A=v.constructor;if(A!==g.constructor)return!1;if(A===Object)return c(v,g,b);if(Array.isArray(v))return e(v,g,b);if(A===Date)return n(v,g,b);if(A===RegExp)return f(v,g,b);if(A===Map)return o(v,g,b);if(A===Set)return l(v,g,b);const m=bT.call(v);if(m===sT)return n(v,g,b);if(m===vT)return f(v,g,b);if(m===fT)return o(v,g,b);if(m===hT)return l(v,g,b);if(m===dT)return typeof v.then!="function"&&typeof g.then!="function"&&c(v,g,b);if(m===gT)return d(v,g,b);if(m===lT)return i(v,g,b);if(m===oT)return c(v,g,b);if(mT[m])return p(v,g,b);if(m===aT)return t(v,g,b);if(m===cT)return r(v,g,b);if(m===uT||m===pT||m===yT)return s(v,g,b);if(y){let O=y[m];if(!O){const w=KE(v);w&&(O=y[w])}if(O)return O(v,g,b)}return!1}}function OT({circular:t,createCustomConfig:e,strict:r}){let n={areArrayBuffersEqual:VE,areArraysEqual:r?bn:XE,areDataViewsEqual:YE,areDatesEqual:ZE,areErrorsEqual:JE,areFunctionsEqual:QE,areMapsEqual:r?js(rm,bn):rm,areNumbersEqual:eT,areObjectsEqual:r?bn:tT,arePrimitiveWrappersEqual:rT,areRegExpsEqual:nT,areSetsEqual:r?js(nm,bn):nm,areTypedArraysEqual:r?js(Qi,bn):Qi,areUrlsEqual:iT,unknownTagComparators:void 0};if(e&&(n=Object.assign({},n,e(n))),t){const i=Ri(n.areArraysEqual),a=Ri(n.areMapsEqual),o=Ri(n.areObjectsEqual),u=Ri(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function AT(t){return function(e,r,n,i,a,o,u){return t(e,r,u)}}function wT({circular:t,comparator:e,createState:r,equals:n,strict:i}){if(r)return function(u,c){const{cache:s=t?new WeakMap:void 0,meta:f}=r();return e(u,c,{cache:s,equals:n,meta:f,strict:i})};if(t)return function(u,c){return e(u,c,{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,c){return e(u,c,a)}}const PT=Ct();Ct({strict:!0});Ct({circular:!0});Ct({circular:!0,strict:!0});Ct({createInternalComparator:()=>ir});Ct({strict:!0,createInternalComparator:()=>ir});Ct({circular:!0,createInternalComparator:()=>ir});Ct({circular:!0,createInternalComparator:()=>ir,strict:!0});function Ct(t={}){const{circular:e=!1,createInternalComparator:r,createState:n,strict:i=!1}=t,a=OT(t),o=xT(a),u=r?r(o):AT(o);return wT({circular:e,comparator:o,createState:n,equals:u,strict:i})}function ST(t){typeof requestAnimationFrame<"u"&&requestAnimationFrame(t)}function im(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>e?(t(a),r=-1):ST(i)};requestAnimationFrame(n)}function Ll(t){"@babel/helpers - typeof";return Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ll(t)}function _T(t){return $T(t)||TT(t)||ET(t)||jT()}function jT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
48
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ET(t,e){if(t){if(typeof t=="string")return am(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return am(t,e)}}function am(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function TT(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function $T(t){if(Array.isArray(t))return t}function IT(){var t={},e=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=_T(o),c=u[0],s=u.slice(1);if(typeof c=="number"){im(i.bind(null,s),c);return}i(c),im(i.bind(null,s));return}Ll(a)==="object"&&(t=a,e(t)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return e=a,function(){e=function(){return null}}}}}function Yn(t){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(t)}function om(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function um(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?om(Object(r),!0).forEach(function(n){Vx(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):om(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Vx(t,e,r){return e=CT(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function CT(t){var e=RT(t,"string");return Yn(e)==="symbol"?e:String(e)}function RT(t,e){if(Yn(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Yn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var kT=function(e,r){return[Object.keys(e),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},MT=function(e){return e},DT=function(e){return e.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},jn=function(e,r){return Object.keys(r).reduce(function(n,i){return um(um({},n),{},Vx({},i,e(i,r[i])))},{})},cm=function(e,r,n){return e.map(function(i){return"".concat(DT(i)," ").concat(r,"ms ").concat(n)}).join(",")};function NT(t,e){return BT(t)||qT(t,e)||Xx(t,e)||LT()}function LT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
49
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qT(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function BT(t){if(Array.isArray(t))return t}function FT(t){return WT(t)||KT(t)||Xx(t)||zT()}function zT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
50
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xx(t,e){if(t){if(typeof t=="string")return ql(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ql(t,e)}}function KT(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function WT(t){if(Array.isArray(t))return ql(t)}function ql(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ea=1e-4,Yx=function(e,r){return[0,3*e,3*r-6*e,3*e-3*r+1]},Zx=function(e,r){return e.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},sm=function(e,r){return function(n){var i=Yx(e,r);return Zx(i,n)}},GT=function(e,r){return function(n){var i=Yx(e,r),a=[].concat(FT(i.map(function(o,u){return o*u}).slice(1)),[0]);return Zx(a,n)}},lm=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;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 c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var s=c[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),f=NT(s,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=sm(i,o),p=sm(a,u),d=GT(i,o),y=function(g){return g>1?1:g<0?0:g},h=function(g){for(var b=g>1?1:g,x=b,A=0;A<8;++A){var m=l(x)-b,O=d(x);if(Math.abs(m-b)<ea||O<ea)return p(x);x=y(x-m/O)}return p(x)};return h.isStepper=!1,h},HT=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.stiff,n=r===void 0?100:r,i=e.damping,a=i===void 0?8:i,o=e.dt,u=o===void 0?17:o,c=function(f,l,p){var d=-(f-l)*n,y=p*a,h=p+(d-y)*u/1e3,v=p*u/1e3+f;return Math.abs(v-l)<ea&&Math.abs(h)<ea?[l,0]:[v,h]};return c.isStepper=!0,c.dt=u,c},UT=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;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 lm(i);case"spring":return HT();default:if(i.split("(")[0]==="cubic-bezier")return lm(i)}return typeof i=="function"?i:null};function Zn(t){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zn(t)}function fm(t){return YT(t)||XT(t)||Jx(t)||VT()}function VT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
51
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XT(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function YT(t){if(Array.isArray(t))return Fl(t)}function pm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ae(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pm(Object(r),!0).forEach(function(n){Bl(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Bl(t,e,r){return e=ZT(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ZT(t){var e=JT(t,"string");return Zn(e)==="symbol"?e:String(e)}function JT(t,e){if(Zn(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Zn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function QT(t,e){return r$(t)||t$(t,e)||Jx(t,e)||e$()}function e$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
52
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jx(t,e){if(t){if(typeof t=="string")return Fl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fl(t,e)}}function Fl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function t$(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function r$(t){if(Array.isArray(t))return t}var ta=function(e,r,n){return e+(r-e)*n},zl=function(e){var r=e.from,n=e.to;return r!==n},n$=function t(e,r,n){var i=jn(function(a,o){if(zl(o)){var u=e(o.from,o.to,o.velocity),c=QT(u,2),s=c[0],f=c[1];return Ae(Ae({},o),{},{from:s,velocity:f})}return o},r);return n<1?jn(function(a,o){return zl(o)?Ae(Ae({},o),{},{velocity:ta(o.velocity,i[a].velocity,n),from:ta(o.from,i[a].from,n)}):o},r):t(e,i,n-1)};const i$=(function(t,e,r,n,i){var a=kT(t,e),o=a.reduce(function(v,g){return Ae(Ae({},v),{},Bl({},g,[t[g],e[g]]))},{}),u=a.reduce(function(v,g){return Ae(Ae({},v),{},Bl({},g,{from:t[g],velocity:0,to:e[g]}))},{}),c=-1,s,f,l=function(){return null},p=function(){return jn(function(g,b){return b.from},u)},d=function(){return!Object.values(u).filter(zl).length},y=function(g){s||(s=g);var b=g-s,x=b/r.dt;u=n$(r,u,x),i(Ae(Ae(Ae({},t),e),p())),s=g,d()||(c=requestAnimationFrame(l))},h=function(g){f||(f=g);var b=(g-f)/n,x=jn(function(m,O){return ta.apply(void 0,fm(O).concat([r(b)]))},o);if(i(Ae(Ae(Ae({},t),e),x)),b<1)c=requestAnimationFrame(l);else{var A=jn(function(m,O){return ta.apply(void 0,fm(O).concat([r(1)]))},o);i(Ae(Ae(Ae({},t),e),A))}};return l=r.isStepper?y:h,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(c)}}});function Ir(t){"@babel/helpers - typeof";return Ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ir(t)}var a$=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function o$(t,e){if(t==null)return{};var r=u$(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function u$(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function Es(t){return f$(t)||l$(t)||s$(t)||c$()}function c$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
53
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s$(t,e){if(t){if(typeof t=="string")return Kl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kl(t,e)}}function l$(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function f$(t){if(Array.isArray(t))return Kl(t)}function Kl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function dm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?dm(Object(r),!0).forEach(function(n){wn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function wn(t,e,r){return e=Qx(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d$(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Qx(n.key),n)}}function v$(t,e,r){return e&&d$(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qx(t){var e=h$(t,"string");return Ir(e)==="symbol"?e:String(e)}function h$(t,e){if(Ir(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ir(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function y$(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wl(t,e)}function Wl(t,e){return Wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wl(t,e)}function m$(t){var e=g$();return function(){var n=ra(t),i;if(e){var a=ra(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Gl(this,i)}}function Gl(t,e){if(e&&(Ir(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hl(t)}function Hl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g$(){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 ra(t){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ra(t)}var Ee=(function(t){y$(r,t);var e=m$(r);function r(n,i){var a;p$(this,r),a=e.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,s=o.from,f=o.to,l=o.steps,p=o.children,d=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Hl(a)),a.changeStyle=a.changeStyle.bind(Hl(a)),!u||d<=0)return a.state={style:{}},typeof p=="function"&&(a.state={style:f}),Gl(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof p=="function")return a.state={style:s},Gl(a);a.state={style:c?wn({},c,s):s}}else a.state={style:{}};return a}return v$(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,c=a.attributeName,s=a.shouldReAnimate,f=a.to,l=a.from,p=this.state.style;if(u){if(!o){var d={style:c?wn({},c,f):f};this.state&&p&&(c&&p[c]!==f||!c&&p!==f)&&this.setState(d);return}if(!(PT(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var h=y||s?l:i.to;if(this.state&&p){var v={style:c?wn({},c,h):h};(c&&p[c]!==h||!c&&p!==h)&&this.setState(v)}this.runAnimation(Ge(Ge({},this.props),{},{from:h,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,c=i.duration,s=i.easing,f=i.begin,l=i.onAnimationEnd,p=i.onAnimationStart,d=i$(o,u,UT(s),c,this.changeStyle),y=function(){a.stopJSAnimation=d()};this.manager.start([p,f,y,c,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,c=i.onAnimationStart,s=o[0],f=s.style,l=s.duration,p=l===void 0?0:l,d=function(h,v,g){if(g===0)return h;var b=v.duration,x=v.easing,A=x===void 0?"ease":x,m=v.style,O=v.properties,w=v.onAnimationEnd,S=g>0?o[g-1]:v,_=O||Object.keys(m);if(typeof A=="function"||A==="spring")return[].concat(Es(h),[a.runJSAnimation.bind(a,{from:S.style,to:m,duration:b,easing:A}),b]);var T=cm(_,b,A),j=Ge(Ge(Ge({},S.style),m),{},{transition:T});return[].concat(Es(h),[j,b,w]).filter(MT)};return this.manager.start([c].concat(Es(o.reduce(d,[f,Math.max(p,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=IT());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,s=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,p=i.steps,d=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof s=="function"||typeof d=="function"||s==="spring"){this.runJSAnimation(i);return}if(p.length>1){this.runStepAnimation(i);return}var h=u?wn({},u,c):c,v=cm(Object.keys(h),o,s);y.start([f,a,Ge(Ge({},h),{},{transition:v}),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 c=o$(i,a$),s=M.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||s===0||o<=0)return a;var l=function(d){var y=d.props,h=y.style,v=h===void 0?{}:h,g=y.className,b=M.cloneElement(d,Ge(Ge({},c),{},{style:Ge(Ge({},v),f),className:g}));return b};return s===1?l(M.Children.only(a)):P.createElement("div",null,M.Children.map(a,function(p){return l(p)}))}}]),r})(M.PureComponent);Ee.displayName="Animate";Ee.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ee.propTypes={from:ee.oneOfType([ee.object,ee.string]),to:ee.oneOfType([ee.object,ee.string]),attributeName:ee.string,duration:ee.number,begin:ee.number,easing:ee.oneOfType([ee.string,ee.func]),steps:ee.arrayOf(ee.shape({duration:ee.number.isRequired,style:ee.object.isRequired,easing:ee.oneOfType([ee.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ee.func]),properties:ee.arrayOf("string"),onAnimationEnd:ee.func})),children:ee.oneOfType([ee.node,ee.func]),isActive:ee.bool,canBegin:ee.bool,onAnimationEnd:ee.func,shouldReAnimate:ee.bool,onAnimationStart:ee.func,onAnimationReStart:ee.func};function Jn(t){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jn(t)}function na(){return na=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},na.apply(this,arguments)}function b$(t,e){return w$(t)||A$(t,e)||O$(t,e)||x$()}function x$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O$(t,e){if(t){if(typeof t=="string")return vm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vm(t,e)}}function vm(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function A$(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function w$(t){if(Array.isArray(t))return t}function hm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ym(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?hm(Object(r),!0).forEach(function(n){P$(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function P$(t,e,r){return e=S$(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S$(t){var e=_$(t,"string");return Jn(e)=="symbol"?e:e+""}function _$(t,e){if(Jn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var mm=function(e,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,c=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],p=0,d=4;p<d;p++)l[p]=a[p]>o?o:a[p];f="M".concat(e,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(e+c*l[0],",").concat(r)),f+="L ".concat(e+n-c*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,`,
47
+ A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},IE={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Hx=function(e){var r=Hy(Hy({},IE),e),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,c=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,p=r.className;if(o<a||f===l)return null;var d=V("recharts-sector",p),y=o-a,h=je(u,y,0,!0),v;return h>0&&Math.abs(f-l)<360?v=$E({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(h,y/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):v=Gx({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),P.createElement("path",Nl({},F(r,!0),{className:d,d:v,role:"img"}))};function Xn(t){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xn(t)}function Ll(){return Ll=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ll.apply(this,arguments)}function Uy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Vy(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Uy(Object(r),!0).forEach(function(n){CE(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uy(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function CE(t,e,r){return e=RE(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function RE(t){var e=kE(t,"string");return Xn(e)=="symbol"?e:e+""}function kE(t,e){if(Xn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Xy={curveBasisClosed:E0,curveBasisOpen:j0,curveBasis:_0,curveBumpX:S0,curveBumpY:P0,curveLinearClosed:w0,curveLinear:Tf,curveMonotoneX:A0,curveMonotoneY:O0,curveNatural:x0,curveStep:b0,curveStepAfter:g0,curveStepBefore:m0},Ri=function(e){return e.x===+e.x&&e.y===+e.y},mn=function(e){return e.x},gn=function(e){return e.y},ME=function(e,r){if(W(e))return e;var n="curve".concat(La(e));return(n==="curveMonotone"||n==="curveBump")&&r?Xy["".concat(n).concat(r==="vertical"?"Y":"X")]:Xy[n]||Tf},DE=function(e){var r=e.type,n=r===void 0?"linear":r,i=e.points,a=i===void 0?[]:i,o=e.baseLine,u=e.layout,c=e.connectNulls,s=c===void 0?!1:c,f=ME(n,u),l=s?a.filter(function(h){return Ri(h)}):a,p;if(Array.isArray(o)){var d=s?o.filter(function(h){return Ri(h)}):o,y=l.map(function(h,v){return Vy(Vy({},h),{},{base:d[v]})});return u==="vertical"?p=ji().y(gn).x1(mn).x0(function(h){return h.base.x}):p=ji().x(mn).y1(gn).y0(function(h){return h.base.y}),p.defined(Ri).curve(f),p(y)}return u==="vertical"&&L(o)?p=ji().y(gn).x1(mn).x0(o):L(o)?p=ji().x(mn).y1(gn).y0(o):p=tb().x(mn).y(gn),p.defined(Ri).curve(f),p(l)},_t=function(e){var r=e.className,n=e.points,i=e.path,a=e.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?DE(e):i;return M.createElement("path",Ll({},F(e,!1),Fi(e),{className:V("recharts-curve",r),d:o,ref:a}))},Ss={exports:{}},_s,Yy;function NE(){if(Yy)return _s;Yy=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _s=t,_s}var js,Zy;function LE(){if(Zy)return js;Zy=1;var t=NE();function e(){}function r(){}return r.resetWarningCache=e,js=function(){function n(o,u,c,s,f,l){if(l!==t){var p=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 p.name="Invariant Violation",p}}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:e};return a.PropTypes=a,a},js}var Jy;function qE(){return Jy||(Jy=1,Ss.exports=LE()()),Ss.exports}var BE=qE();const ee=re(BE),{getOwnPropertyNames:FE,getOwnPropertySymbols:zE}=Object,{hasOwnProperty:KE}=Object.prototype;function Es(t,e){return function(n,i,a){return t(n,i,a)&&e(n,i,a)}}function ki(t){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return t(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 c=t(r,n,i);return a.delete(r),a.delete(n),c}}function WE(t){return t!=null?t[Symbol.toStringTag]:void 0}function Qy(t){return FE(t).concat(zE(t))}const GE=Object.hasOwn||((t,e)=>KE.call(t,e));function ir(t,e){return t===e||!t&&!e&&t!==t&&e!==e}const HE="__v",UE="__o",VE="_owner",{getOwnPropertyDescriptor:em,keys:tm}=Object;function XE(t,e){return t.byteLength===e.byteLength&&ea(new Uint8Array(t),new Uint8Array(e))}function YE(t,e,r){let n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function ZE(t,e){return t.byteLength===e.byteLength&&ea(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function JE(t,e){return ir(t.getTime(),e.getTime())}function QE(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function eT(t,e){return t===e}function rm(t,e,r){const n=t.size;if(n!==e.size)return!1;if(!n)return!0;const i=new Array(n),a=t.entries();let o,u,c=0;for(;(o=a.next())&&!o.done;){const s=e.entries();let f=!1,l=0;for(;(u=s.next())&&!u.done;){if(i[l]){l++;continue}const p=o.value,d=u.value;if(r.equals(p[0],d[0],c,l,t,e,r)&&r.equals(p[1],d[1],p[0],d[0],t,e,r)){f=i[l]=!0;break}l++}if(!f)return!1;c++}return!0}const tT=ir;function rT(t,e,r){const n=tm(t);let i=n.length;if(tm(e).length!==i)return!1;for(;i-- >0;)if(!Ux(t,e,r,n[i]))return!1;return!0}function bn(t,e,r){const n=Qy(t);let i=n.length;if(Qy(e).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!Ux(t,e,r,a)||(o=em(t,a),u=em(e,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function nT(t,e){return ir(t.valueOf(),e.valueOf())}function iT(t,e){return t.source===e.source&&t.flags===e.flags}function nm(t,e,r){const n=t.size;if(n!==e.size)return!1;if(!n)return!0;const i=new Array(n),a=t.values();let o,u;for(;(o=a.next())&&!o.done;){const c=e.values();let s=!1,f=0;for(;(u=c.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,t,e,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function ea(t,e){let r=t.byteLength;if(e.byteLength!==r||t.byteOffset!==e.byteOffset)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function aT(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function Ux(t,e,r,n){return(n===VE||n===UE||n===HE)&&(t.$$typeof||e.$$typeof)?!0:GE(e,n)&&r.equals(t[n],e[n],n,n,t,e,r)}const oT="[object ArrayBuffer]",uT="[object Arguments]",cT="[object Boolean]",sT="[object DataView]",lT="[object Date]",fT="[object Error]",pT="[object Map]",dT="[object Number]",vT="[object Object]",hT="[object RegExp]",yT="[object Set]",mT="[object String]",gT={"[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},bT="[object URL]",xT=Object.prototype.toString;function OT({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:c,arePrimitiveWrappersEqual:s,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:p,areUrlsEqual:d,unknownTagComparators:y}){return function(v,b,g){if(v===b)return!0;if(v==null||b==null)return!1;const x=typeof v;if(x!==typeof b)return!1;if(x!=="object")return x==="number"?u(v,b,g):x==="function"?a(v,b,g):!1;const A=v.constructor;if(A!==b.constructor)return!1;if(A===Object)return c(v,b,g);if(Array.isArray(v))return e(v,b,g);if(A===Date)return n(v,b,g);if(A===RegExp)return f(v,b,g);if(A===Map)return o(v,b,g);if(A===Set)return l(v,b,g);const m=xT.call(v);if(m===lT)return n(v,b,g);if(m===hT)return f(v,b,g);if(m===pT)return o(v,b,g);if(m===yT)return l(v,b,g);if(m===vT)return typeof v.then!="function"&&typeof b.then!="function"&&c(v,b,g);if(m===bT)return d(v,b,g);if(m===fT)return i(v,b,g);if(m===uT)return c(v,b,g);if(gT[m])return p(v,b,g);if(m===oT)return t(v,b,g);if(m===sT)return r(v,b,g);if(m===cT||m===dT||m===mT)return s(v,b,g);if(y){let O=y[m];if(!O){const w=WE(v);w&&(O=y[w])}if(O)return O(v,b,g)}return!1}}function AT({circular:t,createCustomConfig:e,strict:r}){let n={areArrayBuffersEqual:XE,areArraysEqual:r?bn:YE,areDataViewsEqual:ZE,areDatesEqual:JE,areErrorsEqual:QE,areFunctionsEqual:eT,areMapsEqual:r?Es(rm,bn):rm,areNumbersEqual:tT,areObjectsEqual:r?bn:rT,arePrimitiveWrappersEqual:nT,areRegExpsEqual:iT,areSetsEqual:r?Es(nm,bn):nm,areTypedArraysEqual:r?Es(ea,bn):ea,areUrlsEqual:aT,unknownTagComparators:void 0};if(e&&(n=Object.assign({},n,e(n))),t){const i=ki(n.areArraysEqual),a=ki(n.areMapsEqual),o=ki(n.areObjectsEqual),u=ki(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function wT(t){return function(e,r,n,i,a,o,u){return t(e,r,u)}}function PT({circular:t,comparator:e,createState:r,equals:n,strict:i}){if(r)return function(u,c){const{cache:s=t?new WeakMap:void 0,meta:f}=r();return e(u,c,{cache:s,equals:n,meta:f,strict:i})};if(t)return function(u,c){return e(u,c,{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,c){return e(u,c,a)}}const ST=Ct();Ct({strict:!0});Ct({circular:!0});Ct({circular:!0,strict:!0});Ct({createInternalComparator:()=>ir});Ct({strict:!0,createInternalComparator:()=>ir});Ct({circular:!0,createInternalComparator:()=>ir});Ct({circular:!0,createInternalComparator:()=>ir,strict:!0});function Ct(t={}){const{circular:e=!1,createInternalComparator:r,createState:n,strict:i=!1}=t,a=AT(t),o=OT(a),u=r?r(o):wT(o);return PT({circular:e,comparator:o,createState:n,equals:u,strict:i})}function _T(t){typeof requestAnimationFrame<"u"&&requestAnimationFrame(t)}function im(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>e?(t(a),r=-1):_T(i)};requestAnimationFrame(n)}function ql(t){"@babel/helpers - typeof";return ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ql(t)}function jT(t){return IT(t)||$T(t)||TT(t)||ET()}function ET(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
48
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TT(t,e){if(t){if(typeof t=="string")return am(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return am(t,e)}}function am(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function $T(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function IT(t){if(Array.isArray(t))return t}function CT(){var t={},e=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=jT(o),c=u[0],s=u.slice(1);if(typeof c=="number"){im(i.bind(null,s),c);return}i(c),im(i.bind(null,s));return}ql(a)==="object"&&(t=a,e(t)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return e=a,function(){e=function(){return null}}}}}function Yn(t){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(t)}function om(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function um(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?om(Object(r),!0).forEach(function(n){Vx(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):om(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Vx(t,e,r){return e=RT(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function RT(t){var e=kT(t,"string");return Yn(e)==="symbol"?e:String(e)}function kT(t,e){if(Yn(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Yn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var MT=function(e,r){return[Object.keys(e),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},DT=function(e){return e},NT=function(e){return e.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},jn=function(e,r){return Object.keys(r).reduce(function(n,i){return um(um({},n),{},Vx({},i,e(i,r[i])))},{})},cm=function(e,r,n){return e.map(function(i){return"".concat(NT(i)," ").concat(r,"ms ").concat(n)}).join(",")};function LT(t,e){return FT(t)||BT(t,e)||Xx(t,e)||qT()}function qT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
49
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BT(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function FT(t){if(Array.isArray(t))return t}function zT(t){return GT(t)||WT(t)||Xx(t)||KT()}function KT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
50
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xx(t,e){if(t){if(typeof t=="string")return Bl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bl(t,e)}}function WT(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function GT(t){if(Array.isArray(t))return Bl(t)}function Bl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ta=1e-4,Yx=function(e,r){return[0,3*e,3*r-6*e,3*e-3*r+1]},Zx=function(e,r){return e.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},sm=function(e,r){return function(n){var i=Yx(e,r);return Zx(i,n)}},HT=function(e,r){return function(n){var i=Yx(e,r),a=[].concat(zT(i.map(function(o,u){return o*u}).slice(1)),[0]);return Zx(a,n)}},lm=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;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 c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var s=c[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),f=LT(s,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=sm(i,o),p=sm(a,u),d=HT(i,o),y=function(b){return b>1?1:b<0?0:b},h=function(b){for(var g=b>1?1:b,x=g,A=0;A<8;++A){var m=l(x)-g,O=d(x);if(Math.abs(m-g)<ta||O<ta)return p(x);x=y(x-m/O)}return p(x)};return h.isStepper=!1,h},UT=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.stiff,n=r===void 0?100:r,i=e.damping,a=i===void 0?8:i,o=e.dt,u=o===void 0?17:o,c=function(f,l,p){var d=-(f-l)*n,y=p*a,h=p+(d-y)*u/1e3,v=p*u/1e3+f;return Math.abs(v-l)<ta&&Math.abs(h)<ta?[l,0]:[v,h]};return c.isStepper=!0,c.dt=u,c},VT=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;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 lm(i);case"spring":return UT();default:if(i.split("(")[0]==="cubic-bezier")return lm(i)}return typeof i=="function"?i:null};function Zn(t){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zn(t)}function fm(t){return ZT(t)||YT(t)||Jx(t)||XT()}function XT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
51
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YT(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ZT(t){if(Array.isArray(t))return zl(t)}function pm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ae(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pm(Object(r),!0).forEach(function(n){Fl(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Fl(t,e,r){return e=JT(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function JT(t){var e=QT(t,"string");return Zn(e)==="symbol"?e:String(e)}function QT(t,e){if(Zn(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Zn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function e$(t,e){return n$(t)||r$(t,e)||Jx(t,e)||t$()}function t$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
52
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jx(t,e){if(t){if(typeof t=="string")return zl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zl(t,e)}}function zl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function r$(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function n$(t){if(Array.isArray(t))return t}var ra=function(e,r,n){return e+(r-e)*n},Kl=function(e){var r=e.from,n=e.to;return r!==n},i$=function t(e,r,n){var i=jn(function(a,o){if(Kl(o)){var u=e(o.from,o.to,o.velocity),c=e$(u,2),s=c[0],f=c[1];return Ae(Ae({},o),{},{from:s,velocity:f})}return o},r);return n<1?jn(function(a,o){return Kl(o)?Ae(Ae({},o),{},{velocity:ra(o.velocity,i[a].velocity,n),from:ra(o.from,i[a].from,n)}):o},r):t(e,i,n-1)};const a$=(function(t,e,r,n,i){var a=MT(t,e),o=a.reduce(function(v,b){return Ae(Ae({},v),{},Fl({},b,[t[b],e[b]]))},{}),u=a.reduce(function(v,b){return Ae(Ae({},v),{},Fl({},b,{from:t[b],velocity:0,to:e[b]}))},{}),c=-1,s,f,l=function(){return null},p=function(){return jn(function(b,g){return g.from},u)},d=function(){return!Object.values(u).filter(Kl).length},y=function(b){s||(s=b);var g=b-s,x=g/r.dt;u=i$(r,u,x),i(Ae(Ae(Ae({},t),e),p())),s=b,d()||(c=requestAnimationFrame(l))},h=function(b){f||(f=b);var g=(b-f)/n,x=jn(function(m,O){return ra.apply(void 0,fm(O).concat([r(g)]))},o);if(i(Ae(Ae(Ae({},t),e),x)),g<1)c=requestAnimationFrame(l);else{var A=jn(function(m,O){return ra.apply(void 0,fm(O).concat([r(1)]))},o);i(Ae(Ae(Ae({},t),e),A))}};return l=r.isStepper?y:h,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(c)}}});function Ir(t){"@babel/helpers - typeof";return Ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ir(t)}var o$=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function u$(t,e){if(t==null)return{};var r=c$(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function c$(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function Ts(t){return p$(t)||f$(t)||l$(t)||s$()}function s$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
53
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l$(t,e){if(t){if(typeof t=="string")return Wl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wl(t,e)}}function f$(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function p$(t){if(Array.isArray(t))return Wl(t)}function Wl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function dm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?dm(Object(r),!0).forEach(function(n){wn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function wn(t,e,r){return e=Qx(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v$(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Qx(n.key),n)}}function h$(t,e,r){return e&&v$(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qx(t){var e=y$(t,"string");return Ir(e)==="symbol"?e:String(e)}function y$(t,e){if(Ir(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ir(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function m$(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gl(t,e)}function Gl(t,e){return Gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gl(t,e)}function g$(t){var e=b$();return function(){var n=na(t),i;if(e){var a=na(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Hl(this,i)}}function Hl(t,e){if(e&&(Ir(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ul(t)}function Ul(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b$(){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 na(t){return na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},na(t)}var Ee=(function(t){m$(r,t);var e=g$(r);function r(n,i){var a;d$(this,r),a=e.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,s=o.from,f=o.to,l=o.steps,p=o.children,d=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Ul(a)),a.changeStyle=a.changeStyle.bind(Ul(a)),!u||d<=0)return a.state={style:{}},typeof p=="function"&&(a.state={style:f}),Hl(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof p=="function")return a.state={style:s},Hl(a);a.state={style:c?wn({},c,s):s}}else a.state={style:{}};return a}return h$(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,c=a.attributeName,s=a.shouldReAnimate,f=a.to,l=a.from,p=this.state.style;if(u){if(!o){var d={style:c?wn({},c,f):f};this.state&&p&&(c&&p[c]!==f||!c&&p!==f)&&this.setState(d);return}if(!(ST(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var h=y||s?l:i.to;if(this.state&&p){var v={style:c?wn({},c,h):h};(c&&p[c]!==h||!c&&p!==h)&&this.setState(v)}this.runAnimation(Ge(Ge({},this.props),{},{from:h,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,c=i.duration,s=i.easing,f=i.begin,l=i.onAnimationEnd,p=i.onAnimationStart,d=a$(o,u,VT(s),c,this.changeStyle),y=function(){a.stopJSAnimation=d()};this.manager.start([p,f,y,c,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,c=i.onAnimationStart,s=o[0],f=s.style,l=s.duration,p=l===void 0?0:l,d=function(h,v,b){if(b===0)return h;var g=v.duration,x=v.easing,A=x===void 0?"ease":x,m=v.style,O=v.properties,w=v.onAnimationEnd,S=b>0?o[b-1]:v,_=O||Object.keys(m);if(typeof A=="function"||A==="spring")return[].concat(Ts(h),[a.runJSAnimation.bind(a,{from:S.style,to:m,duration:g,easing:A}),g]);var T=cm(_,g,A),j=Ge(Ge(Ge({},S.style),m),{},{transition:T});return[].concat(Ts(h),[j,g,w]).filter(DT)};return this.manager.start([c].concat(Ts(o.reduce(d,[f,Math.max(p,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=CT());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,s=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,p=i.steps,d=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof s=="function"||typeof d=="function"||s==="spring"){this.runJSAnimation(i);return}if(p.length>1){this.runStepAnimation(i);return}var h=u?wn({},u,c):c,v=cm(Object.keys(h),o,s);y.start([f,a,Ge(Ge({},h),{},{transition:v}),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 c=u$(i,o$),s=M.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||s===0||o<=0)return a;var l=function(d){var y=d.props,h=y.style,v=h===void 0?{}:h,b=y.className,g=M.cloneElement(d,Ge(Ge({},c),{},{style:Ge(Ge({},v),f),className:b}));return g};return s===1?l(M.Children.only(a)):P.createElement("div",null,M.Children.map(a,function(p){return l(p)}))}}]),r})(M.PureComponent);Ee.displayName="Animate";Ee.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ee.propTypes={from:ee.oneOfType([ee.object,ee.string]),to:ee.oneOfType([ee.object,ee.string]),attributeName:ee.string,duration:ee.number,begin:ee.number,easing:ee.oneOfType([ee.string,ee.func]),steps:ee.arrayOf(ee.shape({duration:ee.number.isRequired,style:ee.object.isRequired,easing:ee.oneOfType([ee.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ee.func]),properties:ee.arrayOf("string"),onAnimationEnd:ee.func})),children:ee.oneOfType([ee.node,ee.func]),isActive:ee.bool,canBegin:ee.bool,onAnimationEnd:ee.func,shouldReAnimate:ee.bool,onAnimationStart:ee.func,onAnimationReStart:ee.func};function Jn(t){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jn(t)}function ia(){return ia=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ia.apply(this,arguments)}function x$(t,e){return P$(t)||w$(t,e)||A$(t,e)||O$()}function O$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A$(t,e){if(t){if(typeof t=="string")return vm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vm(t,e)}}function vm(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function w$(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function P$(t){if(Array.isArray(t))return t}function hm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ym(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?hm(Object(r),!0).forEach(function(n){S$(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function S$(t,e,r){return e=_$(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _$(t){var e=j$(t,"string");return Jn(e)=="symbol"?e:e+""}function j$(t,e){if(Jn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var mm=function(e,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,c=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],p=0,d=4;p<d;p++)l[p]=a[p]>o?o:a[p];f="M".concat(e,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(e+c*l[0],",").concat(r)),f+="L ".concat(e+n-c*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,`,
55
55
  `).concat(e+n,",").concat(r+u*l[1])),f+="L ".concat(e+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,`,
56
56
  `).concat(e+n-c*l[2],",").concat(r+i)),f+="L ".concat(e+c*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,`,
57
57
  `).concat(e,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(e,",").concat(r+u*y,`
@@ -61,20 +61,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
61
61
  L `).concat(e+n,",").concat(r+i-u*y,`
62
62
  A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(e+n-c*y,",").concat(r+i,`
63
63
  L `).concat(e+c*y,",").concat(r+i,`
64
- A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(e,",").concat(r+i-u*y," Z")}else f="M ".concat(e,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},j$=function(e,r){if(!e||!r)return!1;var n=e.x,i=e.y,a=r.x,o=r.y,u=r.width,c=r.height;if(Math.abs(u)>0&&Math.abs(c)>0){var s=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+c),p=Math.max(o,o+c);return n>=s&&n<=f&&i>=l&&i<=p}return!1},E$={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},cp=function(e){var r=ym(ym({},E$),e),n=M.useRef(),i=M.useState(-1),a=b$(i,2),o=a[0],u=a[1];M.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var A=n.current.getTotalLength();A&&u(A)}catch{}},[]);var c=r.x,s=r.y,f=r.width,l=r.height,p=r.radius,d=r.className,y=r.animationEasing,h=r.animationDuration,v=r.animationBegin,g=r.isAnimationActive,b=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||f===0||l===0)return null;var x=V("recharts-rectangle",d);return b?P.createElement(Ee,{canBegin:o>0,from:{width:f,height:l,x:c,y:s},to:{width:f,height:l,x:c,y:s},duration:h,animationEasing:y,isActive:b},function(A){var m=A.width,O=A.height,w=A.x,S=A.y;return P.createElement(Ee,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:h,isActive:g,easing:y},P.createElement("path",na({},F(r,!0),{className:x,d:mm(w,S,m,O,p),ref:n})))}):P.createElement("path",na({},F(r,!0),{className:x,d:mm(c,s,f,l,p)}))},T$=["points","className","baseLinePoints","connectNulls"];function gr(){return gr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gr.apply(this,arguments)}function $$(t,e){if(t==null)return{};var r=I$(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function I$(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function gm(t){return M$(t)||k$(t)||R$(t)||C$()}function C$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
65
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R$(t,e){if(t){if(typeof t=="string")return Ul(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ul(t,e)}}function k$(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function M$(t){if(Array.isArray(t))return Ul(t)}function Ul(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var bm=function(e){return e&&e.x===+e.x&&e.y===+e.y},D$=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return e.forEach(function(n){bm(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),bm(e[0])&&r[r.length-1].push(e[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},En=function(e,r){var n=D$(e);r&&(n=[n.reduce(function(a,o){return[].concat(gm(a),gm(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,c){return"".concat(o).concat(c===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},N$=function(e,r,n){var i=En(e,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(En(r.reverse(),n).slice(1))},eO=function(e){var r=e.points,n=e.className,i=e.baseLinePoints,a=e.connectNulls,o=$$(e,T$);if(!r||!r.length)return null;var u=V("recharts-polygon",n);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",s=N$(r,i,a);return P.createElement("g",{className:u},P.createElement("path",gr({},F(o,!0),{fill:s.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:s})),c?P.createElement("path",gr({},F(o,!0),{fill:"none",d:En(r,a)})):null,c?P.createElement("path",gr({},F(o,!0),{fill:"none",d:En(i,a)})):null)}var f=En(r,a);return P.createElement("path",gr({},F(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function Vl(){return Vl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Vl.apply(this,arguments)}var on=function(e){var r=e.cx,n=e.cy,i=e.r,a=e.className,o=V("recharts-dot",a);return r===+r&&n===+n&&i===+i?M.createElement("circle",Vl({},F(e,!1),Bi(e),{className:o,cx:r,cy:n,r:i})):null};function Qn(t){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qn(t)}var L$=["x","y","top","left","width","height","className"];function Xl(){return Xl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Xl.apply(this,arguments)}function xm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function q$(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xm(Object(r),!0).forEach(function(n){B$(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function B$(t,e,r){return e=F$(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function F$(t){var e=z$(t,"string");return Qn(e)=="symbol"?e:e+""}function z$(t,e){if(Qn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function K$(t,e){if(t==null)return{};var r=W$(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function W$(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var G$=function(e,r,n,i,a,o){return"M".concat(e,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},H$=function(e){var r=e.x,n=r===void 0?0:r,i=e.y,a=i===void 0?0:i,o=e.top,u=o===void 0?0:o,c=e.left,s=c===void 0?0:c,f=e.width,l=f===void 0?0:f,p=e.height,d=p===void 0?0:p,y=e.className,h=K$(e,L$),v=q$({x:n,y:a,top:u,left:s,width:l,height:d},h);return!L(n)||!L(a)||!L(l)||!L(d)||!L(u)||!L(s)?null:P.createElement("path",Xl({},F(v,!0),{className:V("recharts-cross",y),d:G$(n,a,l,d,u,s)}))},U$=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function ei(t){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ei(t)}function V$(t,e){if(t==null)return{};var r=X$(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function X$(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function ht(){return ht=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ht.apply(this,arguments)}function Om(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ti(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Om(Object(r),!0).forEach(function(n){Y$(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Om(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Y$(t,e,r){return e=Z$(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Z$(t){var e=J$(t,"string");return ei(e)=="symbol"?e:e+""}function J$(t,e){if(ei(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Q$=function(e,r,n,i){var a="";return i.forEach(function(o,u){var c=J(r,n,e,o);u?a+="L ".concat(c.x,",").concat(c.y):a+="M ".concat(c.x,",").concat(c.y)}),a+="Z",a},eI=function(e){var r=e.cx,n=e.cy,i=e.innerRadius,a=e.outerRadius,o=e.polarAngles,u=e.radialLines;if(!o||!o.length||!u)return null;var c=ti({stroke:"#ccc"},F(e,!1));return P.createElement("g",{className:"recharts-polar-grid-angle"},o.map(function(s){var f=J(r,n,i,s),l=J(r,n,a,s);return P.createElement("line",ht({},c,{key:"line-".concat(s),x1:f.x,y1:f.y,x2:l.x,y2:l.y}))}))},tI=function(e){var r=e.cx,n=e.cy,i=e.radius,a=e.index,o=ti(ti({stroke:"#ccc"},F(e,!1)),{},{fill:"none"});return P.createElement("circle",ht({},o,{className:V("recharts-polar-grid-concentric-circle",e.className),key:"circle-".concat(a),cx:r,cy:n,r:i}))},rI=function(e){var r=e.radius,n=e.index,i=ti(ti({stroke:"#ccc"},F(e,!1)),{},{fill:"none"});return P.createElement("path",ht({},i,{className:V("recharts-polar-grid-concentric-polygon",e.className),key:"path-".concat(n),d:Q$(r,e.cx,e.cy,e.polarAngles)}))},nI=function(e){var r=e.polarRadius,n=e.gridType;return!r||!r.length?null:P.createElement("g",{className:"recharts-polar-grid-concentric"},r.map(function(i,a){var o=a;return n==="circle"?P.createElement(tI,ht({key:o},e,{radius:i,index:a})):P.createElement(rI,ht({key:o},e,{radius:i,index:a}))}))},tO=function(e){var r=e.cx,n=r===void 0?0:r,i=e.cy,a=i===void 0?0:i,o=e.innerRadius,u=o===void 0?0:o,c=e.outerRadius,s=c===void 0?0:c,f=e.gridType,l=f===void 0?"polygon":f,p=e.radialLines,d=p===void 0?!0:p,y=V$(e,U$);return s<=0?null:P.createElement("g",{className:"recharts-polar-grid"},P.createElement(eI,ht({cx:n,cy:a,innerRadius:u,outerRadius:s,gridType:l,radialLines:d},y)),P.createElement(nI,ht({cx:n,cy:a,innerRadius:u,outerRadius:s,gridType:l,radialLines:d},y)))};tO.displayName="PolarGrid";var Ts,Am;function iI(){if(Am)return Ts;Am=1;var t=Wa(),e=fx(),r=ut();function n(i,a){return i&&i.length?t(i,r(a,2),e):void 0}return Ts=n,Ts}var aI=iI();const oI=re(aI);var $s,wm;function uI(){if(wm)return $s;wm=1;var t=Wa(),e=ut(),r=px();function n(i,a){return i&&i.length?t(i,e(a,2),r):void 0}return $s=n,$s}var cI=uI();const sI=re(cI);var lI=["cx","cy","angle","ticks","axisLine"],fI=["ticks","tick","angle","tickFormatter","stroke"];function Cr(t){"@babel/helpers - typeof";return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cr(t)}function Tn(){return Tn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Tn.apply(this,arguments)}function Pm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ft(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Pm(Object(r),!0).forEach(function(n){Va(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Sm(t,e){if(t==null)return{};var r=pI(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function pI(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function dI(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,nO(n.key),n)}}function vI(t,e,r){return e&&_m(t.prototype,e),r&&_m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function hI(t,e,r){return e=ia(e),yI(t,rO()?Reflect.construct(e,r||[],ia(t).constructor):e.apply(t,r))}function yI(t,e){if(e&&(Cr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mI(t)}function mI(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rO=function(){return!!t})()}function ia(t){return ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ia(t)}function gI(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yl(t,e)}function Yl(t,e){return Yl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yl(t,e)}function Va(t,e,r){return e=nO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nO(t){var e=bI(t,"string");return Cr(e)=="symbol"?e:e+""}function bI(t,e){if(Cr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var un=(function(t){function e(){return dI(this,e),hI(this,e,arguments)}return gI(e,t),vI(e,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,c=a.cy;return J(u,c,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,c=oI(u,function(f){return f.coordinate||0}),s=sI(u,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:s.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,c=n.axisLine,s=Sm(n,lI),f=u.reduce(function(y,h){return[Math.min(y[0],h.coordinate),Math.max(y[1],h.coordinate)]},[1/0,-1/0]),l=J(i,a,f[0],o),p=J(i,a,f[1],o),d=Ft(Ft(Ft({},F(s,!1)),{},{fill:"none"},F(c,!1)),{},{x1:l.x,y1:l.y,x2:p.x,y2:p.y});return P.createElement("line",Tn({className:"recharts-polar-radius-axis-line"},d))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,c=i.tickFormatter,s=i.stroke,f=Sm(i,fI),l=this.getTickTextAnchor(),p=F(f,!1),d=F(o,!1),y=a.map(function(h,v){var g=n.getTickValueCoord(h),b=Ft(Ft(Ft(Ft({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(g.x,", ").concat(g.y,")")},p),{},{stroke:"none",fill:s},d),{},{index:v},g),{},{payload:h});return P.createElement(X,Tn({className:V("recharts-polar-radius-axis-tick",zx(o)),key:"tick-".concat(h.coordinate)},nt(n.props,h,v)),e.renderTickItem(o,b,c?c(h.value,v):h.value))});return P.createElement(X,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:P.createElement(X,{className:V("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),xe.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):W(n)?o=n(i):o=P.createElement(Jt,Tn({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(M.PureComponent);Va(un,"displayName","PolarRadiusAxis");Va(un,"axisType","radiusAxis");Va(un,"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 Rr(t){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rr(t)}function Wt(){return Wt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Wt.apply(this,arguments)}function jm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function zt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?jm(Object(r),!0).forEach(function(n){Xa(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function xI(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Em(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,aO(n.key),n)}}function OI(t,e,r){return e&&Em(t.prototype,e),r&&Em(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function AI(t,e,r){return e=aa(e),wI(t,iO()?Reflect.construct(e,r||[],aa(t).constructor):e.apply(t,r))}function wI(t,e){if(e&&(Rr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PI(t)}function PI(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function iO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iO=function(){return!!t})()}function aa(t){return aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},aa(t)}function SI(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zl(t,e)}function Zl(t,e){return Zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zl(t,e)}function Xa(t,e,r){return e=aO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aO(t){var e=_I(t,"string");return Rr(e)=="symbol"?e:e+""}function _I(t,e){if(Rr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var jI=Math.PI/180,Tm=1e-5,ar=(function(t){function e(){return xI(this,e),AI(this,e,arguments)}return SI(e,t),OI(e,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,c=i.orientation,s=i.tickSize,f=s||8,l=J(a,o,u,n.coordinate),p=J(a,o,u+(c==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:p.x,y2:p.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*jI),o;return a>Tm?o=i==="outer"?"start":"end":a<-Tm?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,c=n.axisLineType,s=zt(zt({},F(this.props,!1)),{},{fill:"none"},F(u,!1));if(c==="circle")return P.createElement(on,Wt({className:"recharts-polar-angle-axis-line"},s,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(p){return J(i,a,o,p.coordinate)});return P.createElement(eO,Wt({className:"recharts-polar-angle-axis-line"},s,{points:l}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,c=i.tickFormatter,s=i.stroke,f=F(this.props,!1),l=F(o,!1),p=zt(zt({},f),{},{fill:"none"},F(u,!1)),d=a.map(function(y,h){var v=n.getTickLineCoord(y),g=n.getTickTextAnchor(y),b=zt(zt(zt({textAnchor:g},f),{},{stroke:"none",fill:s},l),{},{index:h,payload:y,x:v.x2,y:v.y2});return P.createElement(X,Wt({className:V("recharts-polar-angle-axis-tick",zx(o)),key:"tick-".concat(y.coordinate)},nt(n.props,y,h)),u&&P.createElement("line",Wt({className:"recharts-polar-angle-axis-tick-line"},p,v)),o&&e.renderTickItem(o,b,c?c(y.value,h):y.value))});return P.createElement(X,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:P.createElement(X,{className:V("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):W(n)?o=n(i):o=P.createElement(Jt,Wt({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(M.PureComponent);Xa(ar,"displayName","PolarAngleAxis");Xa(ar,"axisType","angleAxis");Xa(ar,"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 Is,$m;function EI(){if($m)return Is;$m=1;var t=jb(),e=t(Object.getPrototypeOf,Object);return Is=e,Is}var Cs,Im;function TI(){if(Im)return Cs;Im=1;var t=mt(),e=EI(),r=gt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,c=o.call(Object);function s(f){if(!r(f)||t(f)!=n)return!1;var l=e(f);if(l===null)return!0;var p=u.call(l,"constructor")&&l.constructor;return typeof p=="function"&&p instanceof p&&o.call(p)==c}return Cs=s,Cs}var $I=TI();const II=re($I);var Rs,Cm;function CI(){if(Cm)return Rs;Cm=1;var t=mt(),e=gt(),r="[object Boolean]";function n(i){return i===!0||i===!1||e(i)&&t(i)==r}return Rs=n,Rs}var RI=CI();const kI=re(RI);function ri(t){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ri(t)}function oa(){return oa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oa.apply(this,arguments)}function MI(t,e){return qI(t)||LI(t,e)||NI(t,e)||DI()}function DI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
66
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NI(t,e){if(t){if(typeof t=="string")return Rm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rm(t,e)}}function Rm(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function LI(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function qI(t){if(Array.isArray(t))return t}function km(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Mm(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?km(Object(r),!0).forEach(function(n){BI(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):km(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function BI(t,e,r){return e=FI(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FI(t){var e=zI(t,"string");return ri(e)=="symbol"?e:e+""}function zI(t,e){if(ri(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Dm=function(e,r,n,i,a){var o=n-i,u;return u="M ".concat(e,",").concat(r),u+="L ".concat(e+n,",").concat(r),u+="L ".concat(e+n-o/2,",").concat(r+a),u+="L ".concat(e+n-o/2-i,",").concat(r+a),u+="L ".concat(e,",").concat(r," Z"),u},KI={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},WI=function(e){var r=Mm(Mm({},KI),e),n=M.useRef(),i=M.useState(-1),a=MI(i,2),o=a[0],u=a[1];M.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&u(x)}catch{}},[]);var c=r.x,s=r.y,f=r.upperWidth,l=r.lowerWidth,p=r.height,d=r.className,y=r.animationEasing,h=r.animationDuration,v=r.animationBegin,g=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||p!==+p||f===0&&l===0||p===0)return null;var b=V("recharts-trapezoid",d);return g?P.createElement(Ee,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:s},to:{upperWidth:f,lowerWidth:l,height:p,x:c,y:s},duration:h,animationEasing:y,isActive:g},function(x){var A=x.upperWidth,m=x.lowerWidth,O=x.height,w=x.x,S=x.y;return P.createElement(Ee,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:h,easing:y},P.createElement("path",oa({},F(r,!0),{className:b,d:Dm(w,S,A,m,O),ref:n})))}):P.createElement("g",null,P.createElement("path",oa({},F(r,!0),{className:b,d:Dm(c,s,f,l,p)})))},GI=["option","shapeType","propTransformer","activeClassName","isActive"];function ni(t){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ni(t)}function HI(t,e){if(t==null)return{};var r=UI(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function UI(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Nm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ua(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Nm(Object(r),!0).forEach(function(n){VI(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function VI(t,e,r){return e=XI(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XI(t){var e=YI(t,"string");return ni(e)=="symbol"?e:e+""}function YI(t,e){if(ni(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ZI(t,e){return ua(ua({},e),t)}function JI(t,e){return t==="symbols"}function Lm(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return P.createElement(cp,r);case"trapezoid":return P.createElement(WI,r);case"sector":return P.createElement(Hx,r);case"symbols":if(JI(e))return P.createElement(La,r);break;default:return null}}function QI(t){return M.isValidElement(t)?t.props:t}function ii(t){var e=t.option,r=t.shapeType,n=t.propTransformer,i=n===void 0?ZI:n,a=t.activeClassName,o=a===void 0?"recharts-active-shape":a,u=t.isActive,c=HI(t,GI),s;if(M.isValidElement(e))s=M.cloneElement(e,ua(ua({},c),QI(e)));else if(W(e))s=e(c);else if(II(e)&&!kI(e)){var f=i(e,c);s=P.createElement(Lm,{shapeType:r,elementProps:f})}else{var l=c;s=P.createElement(Lm,{shapeType:r,elementProps:l})}return u?P.createElement(X,{className:o},s):s}function Ya(t,e){return e!=null&&"trapezoids"in t.props}function Za(t,e){return e!=null&&"sectors"in t.props}function ai(t,e){return e!=null&&"points"in t.props}function eC(t,e){var r,n,i=t.x===(e==null||(r=e.labelViewBox)===null||r===void 0?void 0:r.x)||t.x===e.x,a=t.y===(e==null||(n=e.labelViewBox)===null||n===void 0?void 0:n.y)||t.y===e.y;return i&&a}function tC(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function rC(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function nC(t,e){var r;return Ya(t,e)?r=eC:Za(t,e)?r=tC:ai(t,e)&&(r=rC),r}function iC(t,e){var r;return Ya(t,e)?r="trapezoids":Za(t,e)?r="sectors":ai(t,e)&&(r="points"),r}function aC(t,e){if(Ya(t,e)){var r;return(r=e.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Za(t,e)){var n;return(n=e.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return ai(t,e)?e.payload:{}}function oC(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=iC(r,e),a=aC(r,e),o=n.filter(function(c,s){var f=it(a,c),l=r.props[i].filter(function(y){var h=nC(r,e);return h(y,e)}),p=r.props[i].indexOf(l[l.length-1]),d=s===p;return f&&d}),u=n.indexOf(o[o.length-1]);return u}var Di;function kr(t){"@babel/helpers - typeof";return kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kr(t)}function br(){return br=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},br.apply(this,arguments)}function qm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function oe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qm(Object(r),!0).forEach(function(n){ze(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function uC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bm(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,uO(n.key),n)}}function cC(t,e,r){return e&&Bm(t.prototype,e),r&&Bm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function sC(t,e,r){return e=ca(e),lC(t,oO()?Reflect.construct(e,r||[],ca(t).constructor):e.apply(t,r))}function lC(t,e){if(e&&(kr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fC(t)}function fC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oO=function(){return!!t})()}function ca(t){return ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ca(t)}function pC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jl(t,e)}function Jl(t,e){return Jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jl(t,e)}function ze(t,e,r){return e=uO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uO(t){var e=dC(t,"string");return kr(e)=="symbol"?e:e+""}function dC(t,e){if(kr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var bt=(function(t){function e(r){var n;return uC(this,e),n=sC(this,e,[r]),ze(n,"pieRef",null),ze(n,"sectorRefs",[]),ze(n,"id",$t("recharts-pie-")),ze(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),W(i)&&i()}),ze(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),W(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return pC(e,t),cC(e,[{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,c=a.dataKey,s=a.valueKey,f=F(this.props,!1),l=F(o,!1),p=F(u,!1),d=o&&o.offsetRadius||20,y=n.map(function(h,v){var g=(h.startAngle+h.endAngle)/2,b=J(h.cx,h.cy,h.outerRadius+d,g),x=oe(oe(oe(oe({},f),h),{},{stroke:"none"},l),{},{index:v,textAnchor:e.getTextAnchor(b.x,h.cx)},b),A=oe(oe(oe(oe({},f),h),{},{fill:"none",stroke:h.fill},p),{},{index:v,points:[J(h.cx,h.cy,h.outerRadius,g),b]}),m=c;return H(c)&&H(s)?m="value":H(c)&&(m=s),P.createElement(X,{key:"label-".concat(h.startAngle,"-").concat(h.endAngle,"-").concat(h.midAngle,"-").concat(v)},u&&e.renderLabelLineItem(u,A,"line"),e.renderLabelItem(o,x,ie(h,m)))});return P.createElement(X,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,c=a.inactiveShape;return n.map(function(s,f){if((s==null?void 0:s.startAngle)===0&&(s==null?void 0:s.endAngle)===0&&n.length!==1)return null;var l=i.isActiveIndex(f),p=c&&i.hasActiveIndex()?c:null,d=l?o:p,y=oe(oe({},s),{},{stroke:u?s.fill:s.stroke,tabIndex:-1});return P.createElement(X,br({ref:function(v){v&&!i.sectorRefs.includes(v)&&i.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},nt(i.props,s,f),{key:"sector-".concat(s==null?void 0:s.startAngle,"-").concat(s==null?void 0:s.endAngle,"-").concat(s.midAngle,"-").concat(f)}),P.createElement(ii,br({option:d,isActive:l,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,s=i.animationEasing,f=i.animationId,l=this.state,p=l.prevSectors,d=l.prevIsAnimationActive;return P.createElement(Ee,{begin:u,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(d),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var h=y.t,v=[],g=a&&a[0],b=g.startAngle;return a.forEach(function(x,A){var m=p&&p[A],O=A>0?ke(x,"paddingAngle",0):0;if(m){var w=te(m.endAngle-m.startAngle,x.endAngle-x.startAngle),S=oe(oe({},x),{},{startAngle:b+O,endAngle:b+w(h)+O});v.push(S),b=S.endAngle}else{var _=x.endAngle,T=x.startAngle,j=te(0,_-T),E=j(h),$=oe(oe({},x),{},{startAngle:b+O,endAngle:b+E+O});v.push($),b=$.endAngle}}),P.createElement(X,null,n.renderSectorsStatically(v))})}},{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||!it(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,c=i.label,s=i.cx,f=i.cy,l=i.innerRadius,p=i.outerRadius,d=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!L(s)||!L(f)||!L(l)||!L(p))return null;var h=V("recharts-pie",u);return P.createElement(X,{tabIndex:this.props.rootTabIndex,className:h,ref:function(g){n.pieRef=g}},this.renderSectors(),c&&this.renderLabels(o),xe.renderCallByParent(this.props,null,!1),(!d||y)&&Me.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(P.isValidElement(n))return P.cloneElement(n,i);if(W(n))return n(i);var o=V("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return P.createElement(_t,br({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(P.isValidElement(n))return P.cloneElement(n,i);var o=a;if(W(n)&&(o=n(i),P.isValidElement(o)))return o;var u=V("recharts-pie-label-text",typeof n!="boolean"&&!W(n)?n.className:"");return P.createElement(Jt,br({},i,{alignmentBaseline:"middle",className:u}),o)}}])})(M.PureComponent);Di=bt;ze(bt,"displayName","Pie");ze(bt,"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:!Je.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});ze(bt,"parseDeltaAngle",function(t,e){var r=Oe(e-t),n=Math.min(Math.abs(e-t),360);return r*n});ze(bt,"getRealPieData",function(t){var e=t.data,r=t.children,n=F(t,!1),i=Se(r,hi);return e&&e.length?e.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)}):[]});ze(bt,"parseCoordinateOfPie",function(t,e){var r=e.top,n=e.left,i=e.width,a=e.height,o=Fx(i,a),u=n+je(t.cx,i,i/2),c=r+je(t.cy,a,a/2),s=je(t.innerRadius,o,0),f=je(t.outerRadius,o,o*.8),l=t.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:c,innerRadius:s,outerRadius:f,maxRadius:l}});ze(bt,"getComposedData",function(t){var e=t.item,r=t.offset,n=e.type.defaultProps!==void 0?oe(oe({},e.type.defaultProps),e.props):e.props,i=Di.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,c=n.paddingAngle,s=n.dataKey,f=n.nameKey,l=n.valueKey,p=n.tooltipType,d=Math.abs(n.minAngle),y=Di.parseCoordinateOfPie(n,r),h=Di.parseDeltaAngle(o,u),v=Math.abs(h),g=s;H(s)&&H(l)?(Ve(!1,`Use "dataKey" to specify the value of pie,
67
- the props "valueKey" will be deprecated in 1.1.0`),g="value"):H(s)&&(Ve(!1,`Use "dataKey" to specify the value of pie,
68
- the props "valueKey" will be deprecated in 1.1.0`),g=l);var b=i.filter(function(S){return ie(S,g,0)!==0}).length,x=(v>=360?b:b-1)*c,A=v-b*d-x,m=i.reduce(function(S,_){var T=ie(_,g,0);return S+(L(T)?T:0)},0),O;if(m>0){var w;O=i.map(function(S,_){var T=ie(S,g,0),j=ie(S,f,_),E=(L(T)?T:0)/m,$;_?$=w.endAngle+Oe(h)*c*(T!==0?1:0):$=o;var C=$+Oe(h)*((T!==0?d:0)+E*A),I=($+C)/2,k=(y.innerRadius+y.outerRadius)/2,N=[{name:j,value:T,payload:S,dataKey:g,type:p}],q=J(y.cx,y.cy,k,I);return w=oe(oe(oe({percent:E,cornerRadius:a,name:j,tooltipPayload:N,midAngle:I,middleRadius:k,tooltipPosition:q},S),y),{},{value:ie(S,g),startAngle:$,endAngle:C,payload:S,paddingAngle:Oe(h)*c}),w})}return oe(oe({},y),{},{sectors:O,data:i})});var ks,Fm;function vC(){if(Fm)return ks;Fm=1;function t(e){return e&&e.length?e[0]:void 0}return ks=t,ks}var Ms,zm;function hC(){return zm||(zm=1,Ms=vC()),Ms}var yC=hC();const mC=re(yC);var gC=["key"];function Mr(t){"@babel/helpers - typeof";return Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mr(t)}function bC(t,e){if(t==null)return{};var r=xC(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function xC(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function sa(){return sa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},sa.apply(this,arguments)}function Km(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function _e(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Km(Object(r),!0).forEach(function(n){lt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Km(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function OC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wm(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sO(n.key),n)}}function AC(t,e,r){return e&&Wm(t.prototype,e),r&&Wm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function wC(t,e,r){return e=la(e),PC(t,cO()?Reflect.construct(e,r||[],la(t).constructor):e.apply(t,r))}function PC(t,e){if(e&&(Mr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SC(t)}function SC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cO=function(){return!!t})()}function la(t){return la=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},la(t)}function _C(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ql(t,e)}function Ql(t,e){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ql(t,e)}function lt(t,e,r){return e=sO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sO(t){var e=jC(t,"string");return Mr(e)=="symbol"?e:e+""}function jC(t,e){if(Mr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var yi=(function(t){function e(){var r;OC(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=wC(this,e,[].concat(i)),lt(r,"state",{isAnimationFinished:!1}),lt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),W(o)&&o()}),lt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),W(o)&&o()}),lt(r,"handleMouseEnter",function(o){var u=r.props.onMouseEnter;u&&u(r.props,o)}),lt(r,"handleMouseLeave",function(o){var u=r.props.onMouseLeave;u&&u(r.props,o)}),r}return _C(e,t),AC(e,[{key:"renderDots",value:function(n){var i=this.props,a=i.dot,o=i.dataKey,u=F(this.props,!1),c=F(a,!0),s=n.map(function(f,l){var p=_e(_e(_e({key:"dot-".concat(l),r:3},u),c),{},{dataKey:o,cx:f.x,cy:f.y,index:l,payload:f});return e.renderDotItem(a,p)});return P.createElement(X,{className:"recharts-radar-dots"},s)}},{key:"renderPolygonStatically",value:function(n){var i=this.props,a=i.shape,o=i.dot,u=i.isRange,c=i.baseLinePoints,s=i.connectNulls,f;return P.isValidElement(a)?f=P.cloneElement(a,_e(_e({},this.props),{},{points:n})):W(a)?f=a(_e(_e({},this.props),{},{points:n})):f=P.createElement(eO,sa({},F(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:n,baseLinePoints:u?c:null,connectNulls:s})),P.createElement(X,{className:"recharts-radar-polygon"},f,o?this.renderDots(n):null)}},{key:"renderPolygonWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,s=i.animationEasing,f=i.animationId,l=this.state.prevPoints;return P.createElement(Ee,{begin:u,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var d=p.t,y=l&&l.length/a.length,h=a.map(function(v,g){var b=l&&l[Math.floor(g*y)];if(b){var x=te(b.x,v.x),A=te(b.y,v.y);return _e(_e({},v),{},{x:x(d),y:A(d)})}var m=te(v.cx,v.x),O=te(v.cy,v.y);return _e(_e({},v),{},{x:m(d),y:O(d)})});return n.renderPolygonStatically(h)})}},{key:"renderPolygon",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=n.isRange,u=this.state.prevPoints;return a&&i&&i.length&&!o&&(!u||!it(u,i))?this.renderPolygonWithAnimation():this.renderPolygonStatically(i)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.className,o=n.points,u=n.isAnimationActive;if(i||!o||!o.length)return null;var c=this.state.isAnimationFinished,s=V("recharts-radar",a);return P.createElement(X,{className:s},this.renderPolygon(),(!u||c)&&Me.renderCallByParent(this.props,o))}}],[{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:"renderDotItem",value:function(n,i){var a;if(P.isValidElement(n))a=P.cloneElement(n,i);else if(W(n))a=n(i);else{var o=i.key,u=bC(i,gC);a=P.createElement(on,sa({},u,{key:o,className:V("recharts-radar-dot",typeof n!="boolean"?n.className:"")}))}return a}}])})(M.PureComponent);lt(yi,"displayName","Radar");lt(yi,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Je.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});lt(yi,"getComposedData",function(t){var e=t.radiusAxis,r=t.angleAxis,n=t.displayedData,i=t.dataKey,a=t.bandSize,o=r.cx,u=r.cy,c=!1,s=[],f=r.type!=="number"?a??0:0;n.forEach(function(p,d){var y=ie(p,r.dataKey,d),h=ie(p,i),v=r.scale(y)+f,g=Array.isArray(h)?Wx(h):h,b=H(g)?void 0:e.scale(g);Array.isArray(h)&&h.length>=2&&(c=!0),s.push(_e(_e({},J(o,u,b,v)),{},{name:y,value:h,cx:o,cy:u,radius:b,angle:v,payload:p}))});var l=[];return c&&s.forEach(function(p){if(Array.isArray(p.value)){var d=mC(p.value),y=H(d)?void 0:e.scale(d);l.push(_e(_e({},p),{},{radius:y},J(o,u,y,p.angle)))}else l.push(p)}),{points:s,isRange:c,baseLinePoints:l}});function oi(t){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oi(t)}function ef(){return ef=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ef.apply(this,arguments)}function Gm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ds(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Gm(Object(r),!0).forEach(function(n){EC(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function EC(t,e,r){return e=TC(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function TC(t){var e=$C(t,"string");return oi(e)=="symbol"?e:e+""}function $C(t,e){if(oi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hm(t){return typeof t=="string"?parseInt(t,10):t}function IC(t,e){var r="".concat(e.cx||t.cx),n=Number(r),i="".concat(e.cy||t.cy),a=Number(i);return Ds(Ds(Ds({},e),t),{},{cx:n,cy:a})}function Um(t){return P.createElement(ii,ef({shapeType:"sector",propTransformer:IC},t))}var CC=["shape","activeShape","activeIndex","cornerRadius"],RC=["value","background"];function Dr(t){"@babel/helpers - typeof";return Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dr(t)}function fa(){return fa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fa.apply(this,arguments)}function Vm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Vm(Object(r),!0).forEach(function(n){Yt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Xm(t,e){if(t==null)return{};var r=kC(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function kC(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function MC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ym(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,fO(n.key),n)}}function DC(t,e,r){return e&&Ym(t.prototype,e),r&&Ym(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function NC(t,e,r){return e=pa(e),LC(t,lO()?Reflect.construct(e,r||[],pa(t).constructor):e.apply(t,r))}function LC(t,e){if(e&&(Dr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qC(t)}function qC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lO=function(){return!!t})()}function pa(t){return pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pa(t)}function BC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tf(t,e)}function tf(t,e){return tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tf(t,e)}function Yt(t,e,r){return e=fO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fO(t){var e=FC(t,"string");return Dr(e)=="symbol"?e:e+""}function FC(t,e){if(Dr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var mi=(function(t){function e(){var r;MC(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=NC(this,e,[].concat(i)),Yt(r,"state",{isAnimationFinished:!1}),Yt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),W(o)&&o()}),Yt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),W(o)&&o()}),r}return BC(e,t),DC(e,[{key:"getDeltaAngle",value:function(){var n=this.props,i=n.startAngle,a=n.endAngle,o=Oe(a-i),u=Math.min(Math.abs(a-i),360);return o*u}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.activeShape,c=a.activeIndex,s=a.cornerRadius,f=Xm(a,CC),l=F(f,!1);return n.map(function(p,d){var y=d===c,h=ge(ge(ge(ge({},l),{},{cornerRadius:Hm(s)},p),nt(i.props,p,d)),{},{className:"recharts-radial-bar-sector ".concat(p.className),forceCornerRadius:f.forceCornerRadius,cornerIsExternal:f.cornerIsExternal,isActive:y,option:y?u:o});return P.createElement(Um,fa({},h,{key:"sector-".concat(d)}))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,s=i.animationEasing,f=i.animationId,l=this.state.prevData;return P.createElement(Ee,{begin:u,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radialBar-".concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(p){var d=p.t,y=a.map(function(h,v){var g=l&&l[v];if(g){var b=te(g.startAngle,h.startAngle),x=te(g.endAngle,h.endAngle);return ge(ge({},h),{},{startAngle:b(d),endAngle:x(d)})}var A=h.endAngle,m=h.startAngle,O=te(m,A);return ge(ge({},h),{},{endAngle:O(d)})});return P.createElement(X,null,n.renderSectorsStatically(y))})}},{key:"renderSectors",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!it(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"renderBackground",value:function(n){var i=this,a=this.props.cornerRadius,o=F(this.props.background,!1);return n.map(function(u,c){u.value;var s=u.background,f=Xm(u,RC);if(!s)return null;var l=ge(ge(ge(ge(ge({cornerRadius:Hm(a)},f),{},{fill:"#eee"},s),o),nt(i.props,u,c)),{},{index:c,className:V("recharts-radial-bar-background-sector",o==null?void 0:o.className),option:s,isActive:!1});return P.createElement(Um,fa({},l,{key:"sector-".concat(c)}))})}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.background,c=n.isAnimationActive;if(i||!a||!a.length)return null;var s=this.state.isAnimationFinished,f=V("recharts-area",o);return P.createElement(X,{className:f},u&&P.createElement(X,{className:"recharts-radial-bar-background"},this.renderBackground(a)),P.createElement(X,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!c||s)&&Me.renderCallByParent(ge({},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}}])})(M.PureComponent);Yt(mi,"displayName","RadialBar");Yt(mi,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!Je.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1});Yt(mi,"getComposedData",function(t){var e=t.item,r=t.props,n=t.radiusAxis,i=t.radiusAxisTicks,a=t.angleAxis,o=t.angleAxisTicks,u=t.displayedData,c=t.dataKey,s=t.stackedData,f=t.barPosition,l=t.bandSize,p=t.dataStartIndex,d=Mx(f,e);if(!d)return null;var y=a.cx,h=a.cy,v=r.layout,g=e.props,b=g.children,x=g.minPointSize,A=v==="radial"?a:n,m=s?A.scale.domain():null,O=Lx({numericAxis:A}),w=Se(b,hi),S=u.map(function(_,T){var j,E,$,C,I,k;if(s?j=Dx(s[p+T],m):(j=ie(_,c),Array.isArray(j)||(j=[O,j])),v==="radial"){E=Xi({axis:n,ticks:i,bandSize:l,offset:d.offset,entry:_,index:T}),I=a.scale(j[1]),C=a.scale(j[0]),$=E+d.size;var N=I-C;if(Math.abs(x)>0&&Math.abs(N)<Math.abs(x)){var q=Oe(N||x)*(Math.abs(x)-Math.abs(N));I+=q}k={background:{cx:y,cy:h,innerRadius:E,outerRadius:$,startAngle:r.startAngle,endAngle:r.endAngle}}}else{E=n.scale(j[0]),$=n.scale(j[1]),C=Xi({axis:a,ticks:o,bandSize:l,offset:d.offset,entry:_,index:T}),I=C+d.size;var B=$-E;if(Math.abs(x)>0&&Math.abs(B)<Math.abs(x)){var G=Oe(B||x)*(Math.abs(x)-Math.abs(B));$+=G}}return ge(ge(ge(ge({},_),k),{},{payload:_,value:s?j:j[1],cx:y,cy:h,innerRadius:E,outerRadius:$,startAngle:C,endAngle:I},w&&w[T]&&w[T].props),{},{tooltipPayload:[op(e,_)],tooltipPosition:J(y,h,(E+$)/2,(C+I)/2)})});return{data:S,layout:v}});var Ns,Zm;function zC(){if(Zm)return Ns;Zm=1;var t=Math.ceil,e=Math.max;function r(n,i,a,o){for(var u=-1,c=e(t((i-n)/(a||1)),0),s=Array(c);c--;)s[o?c:++u]=n,n+=a;return s}return Ns=r,Ns}var Ls,Jm;function pO(){if(Jm)return Ls;Jm=1;var t=Kb(),e=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=t(i),i===e||i===-e){var a=i<0?-1:1;return a*r}return i===i?i:0}return Ls=n,Ls}var qs,Qm;function KC(){if(Qm)return qs;Qm=1;var t=zC(),e=Fa(),r=pO();function n(i){return function(a,o,u){return u&&typeof u!="number"&&e(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),t(a,o,u,i)}}return qs=n,qs}var Bs,eg;function WC(){if(eg)return Bs;eg=1;var t=KC(),e=t();return Bs=e,Bs}var GC=WC();const da=re(GC);function ui(t){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ui(t)}function tg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function rg(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?tg(Object(r),!0).forEach(function(n){dO(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function dO(t,e,r){return e=HC(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function HC(t){var e=UC(t,"string");return ui(e)=="symbol"?e:e+""}function UC(t,e){if(ui(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var VC=["Webkit","Moz","O","ms"],XC=function(e,r){var n=e.replace(/(\w)/,function(a){return a.toUpperCase()}),i=VC.reduce(function(a,o){return rg(rg({},a),{},dO({},o+n,r))},{});return i[e]=r,i};function Nr(t){"@babel/helpers - typeof";return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nr(t)}function va(){return va=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},va.apply(this,arguments)}function ng(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Fs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ng(Object(r),!0).forEach(function(n){Ie(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ng(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function YC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ig(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,hO(n.key),n)}}function ZC(t,e,r){return e&&ig(t.prototype,e),r&&ig(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function JC(t,e,r){return e=ha(e),QC(t,vO()?Reflect.construct(e,r||[],ha(t).constructor):e.apply(t,r))}function QC(t,e){if(e&&(Nr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eR(t)}function eR(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vO=function(){return!!t})()}function ha(t){return ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ha(t)}function tR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rf(t,e)}function rf(t,e){return rf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rf(t,e)}function Ie(t,e,r){return e=hO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hO(t){var e=rR(t,"string");return Nr(e)=="symbol"?e:e+""}function rR(t,e){if(Nr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var nR=function(e){var r=e.data,n=e.startIndex,i=e.endIndex,a=e.x,o=e.width,u=e.travellerWidth;if(!r||!r.length)return{};var c=r.length,s=Pn().domain(da(0,c)).range([a,a+o-u]),f=s.domain().map(function(l){return s(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(n),endX:s(i),scale:s,scaleValues:f}},ag=function(e){return e.changedTouches&&!!e.changedTouches.length},Lr=(function(t){function e(r){var n;return YC(this,e),n=JC(this,e,[r]),Ie(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ie(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ie(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Ie(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ie(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ie(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ie(n,"handleSlideDragStart",function(i){var a=ag(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 tR(e,t),ZC(e,[{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,c=u.gap,s=u.data,f=s.length-1,l=Math.min(i,a),p=Math.max(i,a),d=e.getIndexInRange(o,l),y=e.getIndexInRange(o,p);return{startIndex:d-d%c,endIndex:y===f?f:y-y%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=ie(a[n],u,n);return W(o)?o(c,n):c}},{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,c=this.props,s=c.x,f=c.width,l=c.travellerWidth,p=c.startIndex,d=c.endIndex,y=c.onChange,h=n.pageX-a;h>0?h=Math.min(h,s+f-l-u,s+f-l-o):h<0&&(h=Math.max(h,s-o,s-u));var v=this.getIndex({startX:o+h,endX:u+h});(v.startIndex!==p||v.endIndex!==d)&&y&&y(v),this.setState({startX:o+h,endX:u+h,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=ag(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,c=i.startX,s=this.state[o],f=this.props,l=f.x,p=f.width,d=f.travellerWidth,y=f.onChange,h=f.gap,v=f.data,g={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,l+p-d-s):b<0&&(b=Math.max(b,l-s)),g[o]=s+b;var x=this.getIndex(g),A=x.startIndex,m=x.endIndex,O=function(){var S=v.length-1;return o==="startX"&&(u>c?A%h===0:m%h===0)||u<c&&m===S||o==="endX"&&(u>c?m%h===0:A%h===0)||u>c&&m===S};this.setState(Ie(Ie({},o,s+b),"brushMoveStartX",n.pageX),function(){y&&O()&&y(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,s=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var p=l+n;if(!(p===-1||p>=u.length)){var d=u[p];i==="startX"&&d>=s||i==="endX"&&d<=c||this.setState(Ie({},i,d),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,c=n.fill,s=n.stroke;return P.createElement("rect",{stroke:s,fill:c,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,c=n.data,s=n.children,f=n.padding,l=M.Children.only(s);return l?P.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,c=this.props,s=c.y,f=c.travellerWidth,l=c.height,p=c.traveller,d=c.ariaLabel,y=c.data,h=c.startIndex,v=c.endIndex,g=Math.max(n,this.props.x),b=Fs(Fs({},F(this.props,!1)),{},{x:g,y:s,width:f,height:l}),x=d||"Min value: ".concat((a=y[h])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[v])===null||o===void 0?void 0:o.name);return P.createElement(X,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(p,b))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,c=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,l=Math.max(Math.abs(i-n)-s,0);return P.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,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,c=n.travellerWidth,s=n.stroke,f=this.state,l=f.startX,p=f.endX,d=5,y={pointerEvents:"none",fill:s};return P.createElement(X,{className:"recharts-brush-texts"},P.createElement(Jt,va({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,p)-d,y:o+u/2},y),this.getTextOfTick(i)),P.createElement(Jt,va({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,p)+c+d,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,c=n.y,s=n.width,f=n.height,l=n.alwaysShowText,p=this.state,d=p.startX,y=p.endX,h=p.isTextActive,v=p.isSlideMoving,g=p.isTravellerMoving,b=p.isTravellerFocused;if(!i||!i.length||!L(u)||!L(c)||!L(s)||!L(f)||s<=0||f<=0)return null;var x=V("recharts-brush",a),A=P.Children.count(o)===1,m=XC("userSelect","none");return P.createElement(X,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),A&&this.renderPanorama(),this.renderSlide(d,y),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(y,"endX"),(h||v||g||b||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,c=n.stroke,s=Math.floor(a+u/2)-1;return P.createElement(P.Fragment,null,P.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),P.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),P.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return P.isValidElement(n)?a=P.cloneElement(n,i):W(n)?a=n(i):a=e.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,s=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return Fs({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?nR({data:a,width:o,x:u,travellerWidth:c,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var p=i.scale.domain().map(function(d){return i.scale(d)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}])})(M.PureComponent);Ie(Lr,"displayName","Brush");Ie(Lr,"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 zs,og;function iR(){if(og)return zs;og=1;var t=Vf();function e(r,n){var i;return t(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return zs=e,zs}var Ks,ug;function aR(){if(ug)return Ks;ug=1;var t=xb(),e=ut(),r=iR(),n=Te(),i=Fa();function a(o,u,c){var s=n(o)?t:r;return c&&i(o,u,c)&&(u=void 0),s(o,e(u,3))}return Ks=a,Ks}var oR=aR();const uR=re(oR);var rt=function(e,r){var n=e.alwaysShow,i=e.ifOverflow;return n&&(i="extendDomain"),i===r},Ws,cg;function cR(){if(cg)return Ws;cg=1;var t=Lb();function e(r,n,i){n=="__proto__"&&t?t(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Ws=e,Ws}var Gs,sg;function sR(){if(sg)return Gs;sg=1;var t=cR(),e=Db(),r=ut();function n(i,a){var o={};return a=r(a,3),e(i,function(u,c,s){t(o,c,a(u,c,s))}),o}return Gs=n,Gs}var lR=sR();const fR=re(lR);var Hs,lg;function pR(){if(lg)return Hs;lg=1;function t(e,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(!r(e[n],n,e))return!1;return!0}return Hs=t,Hs}var Us,fg;function dR(){if(fg)return Us;fg=1;var t=Vf();function e(r,n){var i=!0;return t(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Us=e,Us}var Vs,pg;function vR(){if(pg)return Vs;pg=1;var t=pR(),e=dR(),r=ut(),n=Te(),i=Fa();function a(o,u,c){var s=n(o)?t:e;return c&&i(o,u,c)&&(u=void 0),s(o,r(u,3))}return Vs=a,Vs}var hR=vR();const yO=re(hR);var yR=["x","y"];function ci(t){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ci(t)}function nf(){return nf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},nf.apply(this,arguments)}function dg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function xn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?dg(Object(r),!0).forEach(function(n){mR(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function mR(t,e,r){return e=gR(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gR(t){var e=bR(t,"string");return ci(e)=="symbol"?e:e+""}function bR(t,e){if(ci(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xR(t,e){if(t==null)return{};var r=OR(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function OR(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function AR(t,e){var r=t.x,n=t.y,i=xR(t,yR),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),s="".concat(e.height||i.height),f=parseInt(s,10),l="".concat(e.width||i.width),p=parseInt(l,10);return xn(xn(xn(xn(xn({},e),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:p,name:e.name,radius:e.radius})}function vg(t){return P.createElement(ii,nf({shapeType:"rectangle",propTransformer:AR,activeClassName:"recharts-active-bar"},t))}var wR=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof e=="number")return e;var a=L(n)||MA(n);return a?e(n,i):(a||er(),r)}},PR=["value","background"],mO;function qr(t){"@babel/helpers - typeof";return qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qr(t)}function SR(t,e){if(t==null)return{};var r=_R(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function _R(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function ya(){return ya=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ya.apply(this,arguments)}function hg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function fe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?hg(Object(r),!0).forEach(function(n){Pt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function jR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,bO(n.key),n)}}function ER(t,e,r){return e&&yg(t.prototype,e),r&&yg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function TR(t,e,r){return e=ma(e),$R(t,gO()?Reflect.construct(e,r||[],ma(t).constructor):e.apply(t,r))}function $R(t,e){if(e&&(qr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IR(t)}function IR(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gO=function(){return!!t})()}function ma(t){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ma(t)}function CR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&af(t,e)}function af(t,e){return af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},af(t,e)}function Pt(t,e,r){return e=bO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bO(t){var e=RR(t,"string");return qr(e)=="symbol"?e:e+""}function RR(t,e){if(qr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var or=(function(t){function e(){var r;jR(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=TR(this,e,[].concat(i)),Pt(r,"state",{isAnimationFinished:!1}),Pt(r,"id",$t("recharts-bar-")),Pt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Pt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return CR(e,t),ER(e,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,c=a.activeIndex,s=a.activeBar,f=F(this.props,!1);return n&&n.map(function(l,p){var d=p===c,y=d?s:o,h=fe(fe(fe({},f),l),{},{isActive:d,option:y,index:p,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return P.createElement(X,ya({className:"recharts-bar-rectangle"},nt(i.props,l,p),{key:"rectangle-".concat(l==null?void 0:l.x,"-").concat(l==null?void 0:l.y,"-").concat(l==null?void 0:l.value,"-").concat(p)}),P.createElement(vg,h))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,c=i.animationBegin,s=i.animationDuration,f=i.animationEasing,l=i.animationId,p=this.state.prevData;return P.createElement(Ee,{begin:c,duration:s,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var y=d.t,h=a.map(function(v,g){var b=p&&p[g];if(b){var x=te(b.x,v.x),A=te(b.y,v.y),m=te(b.width,v.width),O=te(b.height,v.height);return fe(fe({},v),{},{x:x(y),y:A(y),width:m(y),height:O(y)})}if(o==="horizontal"){var w=te(0,v.height),S=w(y);return fe(fe({},v),{},{y:v.y+v.height-S,height:S})}var _=te(0,v.width),T=_(y);return fe(fe({},v),{},{width:T})});return P.createElement(X,null,n.renderRectanglesStatically(h))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!it(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,c=F(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,p=SR(s,PR);if(!l)return null;var d=fe(fe(fe(fe(fe({},p),{},{fill:"#eee"},l),c),nt(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return P.createElement(vg,ya({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},d))})}},{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,c=a.yAxis,s=a.layout,f=a.children,l=Se(f,an);if(!l)return null;var p=s==="vertical"?o[0].height/2:o[0].width/2,d=function(v,g){var b=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:b,errorVal:ie(v,g)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(X,y,l.map(function(h){return P.cloneElement(h,{key:"error-bar-".concat(i,"-").concat(h.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,offset:p,dataPointFormatter:d})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,c=n.yAxis,s=n.left,f=n.top,l=n.width,p=n.height,d=n.isAnimationActive,y=n.background,h=n.id;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,g=V("recharts-bar",o),b=u&&u.allowDataOverflow,x=c&&c.allowDataOverflow,A=b||x,m=H(h)?this.id:h;return P.createElement(X,{className:g},b||x?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(m)},P.createElement("rect",{x:b?s:s-l/2,y:x?f:f-p/2,width:b?l:l*2,height:x?p:p*2}))):null,P.createElement(X,{className:"recharts-bar-rectangles",clipPath:A?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(A,m),(!d||v)&&Me.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}}])})(M.PureComponent);mO=or;Pt(or,"displayName","Bar");Pt(or,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Je.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Pt(or,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,a=t.xAxis,o=t.yAxis,u=t.xAxisTicks,c=t.yAxisTicks,s=t.stackedData,f=t.dataStartIndex,l=t.displayedData,p=t.offset,d=Mx(n,r);if(!d)return null;var y=e.layout,h=r.type.defaultProps,v=h!==void 0?fe(fe({},h),r.props):r.props,g=v.dataKey,b=v.children,x=v.minPointSize,A=y==="horizontal"?o:a,m=s?A.scale.domain():null,O=Lx({numericAxis:A}),w=Se(b,hi),S=l.map(function(_,T){var j,E,$,C,I,k;s?j=Dx(s[f+T],m):(j=ie(_,g),Array.isArray(j)||(j=[O,j]));var N=wR(x,mO.defaultProps.minPointSize)(j[1],T);if(y==="horizontal"){var q,B=[o.scale(j[0]),o.scale(j[1])],G=B[0],Y=B[1];E=Xi({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:_,index:T}),$=(q=Y??G)!==null&&q!==void 0?q:void 0,C=d.size;var z=G-Y;if(I=Number.isNaN(z)?0:z,k={x:E,y:o.y,width:C,height:o.height},Math.abs(N)>0&&Math.abs(I)<Math.abs(N)){var Z=Oe(I||N)*(Math.abs(N)-Math.abs(I));$-=Z,I+=Z}}else{var se=[a.scale(j[0]),a.scale(j[1])],me=se[0],We=se[1];if(E=me,$=Xi({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:_,index:T}),C=We-me,I=d.size,k={x:a.x,y:$,width:a.width,height:I},Math.abs(N)>0&&Math.abs(C)<Math.abs(N)){var ln=Oe(C||N)*(Math.abs(N)-Math.abs(C));C+=ln}}return fe(fe(fe({},_),{},{x:E,y:$,width:C,height:I,value:s?j:j[1],payload:_,background:k},w&&w[T]&&w[T].props),{},{tooltipPayload:[op(r,_)],tooltipPosition:{x:E+C/2,y:$+I/2}})});return fe({data:S,layout:y},p)});function si(t){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},si(t)}function kR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xO(n.key),n)}}function MR(t,e,r){return e&&mg(t.prototype,e),r&&mg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function gg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?gg(Object(r),!0).forEach(function(n){Ja(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ja(t,e,r){return e=xO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xO(t){var e=DR(t,"string");return si(e)=="symbol"?e:e+""}function DR(t,e){if(si(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Qa=function(e,r,n,i,a){var o=e.width,u=e.height,c=e.layout,s=e.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},p=!!Ce(s,or);return f.reduce(function(d,y){var h=r[y],v=h.orientation,g=h.domain,b=h.padding,x=b===void 0?{}:b,A=h.mirror,m=h.reversed,O="".concat(v).concat(A?"Mirror":""),w,S,_,T,j;if(h.type==="number"&&(h.padding==="gap"||h.padding==="no-gap")){var E=g[1]-g[0],$=1/0,C=h.categoricalDomain.sort(qA);if(C.forEach(function(se,me){me>0&&($=Math.min((se||0)-(C[me-1]||0),$))}),Number.isFinite($)){var I=$/E,k=h.layout==="vertical"?n.height:n.width;if(h.padding==="gap"&&(w=I*k/2),h.padding==="no-gap"){var N=je(e.barCategoryGap,I*k),q=I*k/2;w=q-N-(q-N)/k*N}}}i==="xAxis"?S=[n.left+(x.left||0)+(w||0),n.left+n.width-(x.right||0)-(w||0)]:i==="yAxis"?S=c==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(w||0),n.top+n.height-(x.bottom||0)-(w||0)]:S=h.range,m&&(S=[S[1],S[0]]);var B=Rx(h,a,p),G=B.scale,Y=B.realScaleType;G.domain(g).range(S),kx(G);var z=Nx(G,He(He({},h),{},{realScaleType:Y}));i==="xAxis"?(j=v==="top"&&!A||v==="bottom"&&A,_=n.left,T=l[O]-j*h.height):i==="yAxis"&&(j=v==="left"&&!A||v==="right"&&A,_=l[O]-j*h.width,T=n.top);var Z=He(He(He({},h),z),{},{realScaleType:Y,x:_,y:T,scale:G,width:i==="xAxis"?n.width:h.width,height:i==="yAxis"?n.height:h.height});return Z.bandSize=Yi(Z,z),!h.hide&&i==="xAxis"?l[O]+=(j?-1:1)*Z.height:h.hide||(l[O]+=(j?-1:1)*Z.width),He(He({},d),{},Ja({},y,Z))},{})},OO=function(e,r){var n=e.x,i=e.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)}},NR=function(e){var r=e.x1,n=e.y1,i=e.x2,a=e.y2;return OO({x:r,y:n},{x:i,y:a})},AO=(function(){function t(e){kR(this,t),this.scale=e}return MR(t,[{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 c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}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 t(r)}}])})();Ja(AO,"EPS",1e-4);var sp=function(e){var r=Object.keys(e).reduce(function(n,i){return He(He({},n),{},Ja({},i,AO.create(e[i])))},{});return He(He({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return fR(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return yO(i,function(a,o){return r[o].isInRange(a)})}})};function LR(t){return(t%180+180)%180}var qR=function(e){var r=e.width,n=e.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=LR(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},Xs,bg;function BR(){if(bg)return Xs;bg=1;var t=ut(),e=vi(),r=qa();function n(i){return function(a,o,u){var c=Object(a);if(!e(a)){var s=t(o,3);a=r(a),o=function(l){return s(c[l],l,c)}}var f=i(a,o,u);return f>-1?c[s?a[f]:f]:void 0}}return Xs=n,Xs}var Ys,xg;function FR(){if(xg)return Ys;xg=1;var t=pO();function e(r){var n=t(r),i=n%1;return n===n?i?n-i:n:0}return Ys=e,Ys}var Zs,Og;function zR(){if(Og)return Zs;Og=1;var t=Ib(),e=ut(),r=FR(),n=Math.max;function i(a,o,u){var c=a==null?0:a.length;if(!c)return-1;var s=u==null?0:r(u);return s<0&&(s=n(c+s,0)),t(a,e(o,3),s)}return Zs=i,Zs}var Js,Ag;function KR(){if(Ag)return Js;Ag=1;var t=BR(),e=zR(),r=t(e);return Js=r,Js}var WR=KR();const GR=re(WR);var HR=ob();const UR=re(HR);var VR=UR(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),lp=M.createContext(void 0),fp=M.createContext(void 0),wO=M.createContext(void 0),PO=M.createContext({}),SO=M.createContext(void 0),_O=M.createContext(0),jO=M.createContext(0),wg=function(e){var r=e.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=e.clipPathId,u=e.children,c=e.width,s=e.height,f=VR(a);return P.createElement(lp.Provider,{value:n},P.createElement(fp.Provider,{value:i},P.createElement(PO.Provider,{value:a},P.createElement(wO.Provider,{value:f},P.createElement(SO.Provider,{value:o},P.createElement(_O.Provider,{value:s},P.createElement(jO.Provider,{value:c},u)))))))},XR=function(){return M.useContext(SO)},EO=function(e){var r=M.useContext(lp);r==null&&er();var n=r[e];return n==null&&er(),n},YR=function(){var e=M.useContext(lp);return At(e)},ZR=function(){var e=M.useContext(fp),r=GR(e,function(n){return yO(n.domain,Number.isFinite)});return r||At(e)},TO=function(e){var r=M.useContext(fp);r==null&&er();var n=r[e];return n==null&&er(),n},JR=function(){var e=M.useContext(wO);return e},QR=function(){return M.useContext(PO)},pp=function(){return M.useContext(jO)},dp=function(){return M.useContext(_O)};function Br(t){"@babel/helpers - typeof";return Br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Br(t)}function ek(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,IO(n.key),n)}}function rk(t,e,r){return e&&tk(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function nk(t,e,r){return e=ga(e),ik(t,$O()?Reflect.construct(e,r||[],ga(t).constructor):e.apply(t,r))}function ik(t,e){if(e&&(Br(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ak(t)}function ak(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($O=function(){return!!t})()}function ga(t){return ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ga(t)}function ok(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&of(t,e)}function of(t,e){return of=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},of(t,e)}function Pg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Sg(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Pg(Object(r),!0).forEach(function(n){vp(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function vp(t,e,r){return e=IO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function IO(t){var e=uk(t,"string");return Br(e)=="symbol"?e:e+""}function uk(t,e){if(Br(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function ck(t,e){return pk(t)||fk(t,e)||lk(t,e)||sk()}function sk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
69
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lk(t,e){if(t){if(typeof t=="string")return _g(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _g(t,e)}}function _g(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function fk(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function pk(t){if(Array.isArray(t))return t}function uf(){return uf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},uf.apply(this,arguments)}var dk=function(e,r){var n;return P.isValidElement(e)?n=P.cloneElement(e,r):W(e)?n=e(r):n=P.createElement("line",uf({},r,{className:"recharts-reference-line-line"})),n},vk=function(e,r,n,i,a,o,u,c,s){var f=a.x,l=a.y,p=a.width,d=a.height;if(n){var y=s.y,h=e.y.apply(y,{position:o});if(rt(s,"discard")&&!e.y.isInRange(h))return null;var v=[{x:f+p,y:h},{x:f,y:h}];return c==="left"?v.reverse():v}if(r){var g=s.x,b=e.x.apply(g,{position:o});if(rt(s,"discard")&&!e.x.isInRange(b))return null;var x=[{x:b,y:l+d},{x:b,y:l}];return u==="top"?x.reverse():x}if(i){var A=s.segment,m=A.map(function(O){return e.apply(O,{position:o})});return rt(s,"discard")&&uR(m,function(O){return!e.isInRange(O)})?null:m}return null};function hk(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,a=t.yAxisId,o=t.shape,u=t.className,c=t.alwaysShow,s=XR(),f=EO(i),l=TO(a),p=JR();if(!s||!p)return null;Ve(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=sp({x:f.scale,y:l.scale}),y=ye(e),h=ye(r),v=n&&n.length===2,g=vk(d,y,h,v,p,t.position,f.orientation,l.orientation,t);if(!g)return null;var b=ck(g,2),x=b[0],A=x.x,m=x.y,O=b[1],w=O.x,S=O.y,_=rt(t,"hidden")?"url(#".concat(s,")"):void 0,T=Sg(Sg({clipPath:_},F(t,!0)),{},{x1:A,y1:m,x2:w,y2:S});return P.createElement(X,{className:V("recharts-reference-line",u)},dk(o,T),xe.renderCallByParent(t,NR({x1:A,y1:m,x2:w,y2:S})))}var hp=(function(t){function e(){return ek(this,e),nk(this,e,arguments)}return ok(e,t),rk(e,[{key:"render",value:function(){return P.createElement(hk,this.props)}}])})(P.Component);vp(hp,"displayName","ReferenceLine");vp(hp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function cf(){return cf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},cf.apply(this,arguments)}function Fr(t){"@babel/helpers - typeof";return Fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fr(t)}function jg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Eg(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?jg(Object(r),!0).forEach(function(n){eo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function yk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,RO(n.key),n)}}function gk(t,e,r){return e&&mk(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function bk(t,e,r){return e=ba(e),xk(t,CO()?Reflect.construct(e,r||[],ba(t).constructor):e.apply(t,r))}function xk(t,e){if(e&&(Fr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ok(t)}function Ok(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function CO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CO=function(){return!!t})()}function ba(t){return ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ba(t)}function Ak(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sf(t,e)}function sf(t,e){return sf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sf(t,e)}function eo(t,e,r){return e=RO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function RO(t){var e=wk(t,"string");return Fr(e)=="symbol"?e:e+""}function wk(t,e){if(Fr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Pk=function(e){var r=e.x,n=e.y,i=e.xAxis,a=e.yAxis,o=sp({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return rt(e,"discard")&&!o.isInRange(u)?null:u},to=(function(t){function e(){return yk(this,e),bk(this,e,arguments)}return Ak(e,t),gk(e,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,c=n.clipPathId,s=ye(i),f=ye(a);if(Ve(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=Pk(this.props);if(!l)return null;var p=l.x,d=l.y,y=this.props,h=y.shape,v=y.className,g=rt(this.props,"hidden")?"url(#".concat(c,")"):void 0,b=Eg(Eg({clipPath:g},F(this.props,!0)),{},{cx:p,cy:d});return P.createElement(X,{className:V("recharts-reference-dot",v)},e.renderDot(h,b),xe.renderCallByParent(this.props,{x:p-o,y:d-o,width:2*o,height:2*o}))}}])})(P.Component);eo(to,"displayName","ReferenceDot");eo(to,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});eo(to,"renderDot",function(t,e){var r;return P.isValidElement(t)?r=P.cloneElement(t,e):W(t)?r=t(e):r=P.createElement(on,cf({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"})),r});function lf(){return lf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},lf.apply(this,arguments)}function zr(t){"@babel/helpers - typeof";return zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zr(t)}function Tg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function $g(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Tg(Object(r),!0).forEach(function(n){ro(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Sk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _k(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,MO(n.key),n)}}function jk(t,e,r){return e&&_k(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ek(t,e,r){return e=xa(e),Tk(t,kO()?Reflect.construct(e,r||[],xa(t).constructor):e.apply(t,r))}function Tk(t,e){if(e&&(zr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $k(t)}function $k(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kO=function(){return!!t})()}function xa(t){return xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xa(t)}function Ik(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ff(t,e)}function ff(t,e){return ff=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ff(t,e)}function ro(t,e,r){return e=MO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function MO(t){var e=Ck(t,"string");return zr(e)=="symbol"?e:e+""}function Ck(t,e){if(zr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Rk=function(e,r,n,i,a){var o=a.x1,u=a.x2,c=a.y1,s=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var p=sp({x:f.scale,y:l.scale}),d={x:e?p.x.apply(o,{position:"start"}):p.x.rangeMin,y:n?p.y.apply(c,{position:"start"}):p.y.rangeMin},y={x:r?p.x.apply(u,{position:"end"}):p.x.rangeMax,y:i?p.y.apply(s,{position:"end"}):p.y.rangeMax};return rt(a,"discard")&&(!p.isInRange(d)||!p.isInRange(y))?null:OO(d,y)},no=(function(t){function e(){return Sk(this,e),Ek(this,e,arguments)}return Ik(e,t),jk(e,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,c=n.className,s=n.alwaysShow,f=n.clipPathId;Ve(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=ye(i),p=ye(a),d=ye(o),y=ye(u),h=this.props.shape;if(!l&&!p&&!d&&!y&&!h)return null;var v=Rk(l,p,d,y,this.props);if(!v&&!h)return null;var g=rt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return P.createElement(X,{className:V("recharts-reference-area",c)},e.renderRect(h,$g($g({clipPath:g},F(this.props,!0)),v)),xe.renderCallByParent(this.props,v))}}])})(P.Component);ro(no,"displayName","ReferenceArea");ro(no,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});ro(no,"renderRect",function(t,e){var r;return P.isValidElement(t)?r=P.cloneElement(t,e):W(t)?r=t(e):r=P.createElement(cp,lf({},e,{className:"recharts-reference-area-rect"})),r});function DO(t,e,r){if(e<1)return[];if(e===1&&r===void 0)return t;for(var n=[],i=0;i<t.length;i+=e)n.push(t[i]);return n}function kk(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return qR(n,r)}function Mk(t,e,r){var n=r==="width",i=t.x,a=t.y,o=t.width,u=t.height;return e===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function Oa(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var a=r();return t*(e-t*a/2-n)>=0&&t*(e+t*a/2-i)<=0}function Dk(t,e){return DO(t,e+1)}function Nk(t,e,r,n,i){for(var a=(n||[]).slice(),o=e.start,u=e.end,c=0,s=1,f=o,l=function(){var y=n==null?void 0:n[c];if(y===void 0)return{v:DO(n,s)};var h=c,v,g=function(){return v===void 0&&(v=r(y,h)),v},b=y.coordinate,x=c===0||Oa(t,b,g,f,u);x||(c=0,f=o,s+=1),x&&(f=b+t*(g()/2+i),c+=s)},p;s<=a.length;)if(p=l(),p)return p.v;return[]}function li(t){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},li(t)}function Ig(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function we(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ig(Object(r),!0).forEach(function(n){Lk(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ig(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Lk(t,e,r){return e=qk(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qk(t){var e=Bk(t,"string");return li(e)=="symbol"?e:e+""}function Bk(t,e){if(li(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fk(t,e,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=e.start,c=e.end,s=function(p){var d=a[p],y,h=function(){return y===void 0&&(y=r(d,p)),y};if(p===o-1){var v=t*(d.coordinate+t*h()/2-c);a[p]=d=we(we({},d),{},{tickCoord:v>0?d.coordinate-v*t:d.coordinate})}else a[p]=d=we(we({},d),{},{tickCoord:d.coordinate});var g=Oa(t,d.tickCoord,h,u,c);g&&(c=d.tickCoord-t*(h()/2+i),a[p]=we(we({},d),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function zk(t,e,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=e.start,s=e.end;if(a){var f=n[u-1],l=r(f,u-1),p=t*(f.coordinate+t*l/2-s);o[u-1]=f=we(we({},f),{},{tickCoord:p>0?f.coordinate-p*t:f.coordinate});var d=Oa(t,f.tickCoord,function(){return l},c,s);d&&(s=f.tickCoord-t*(l/2+i),o[u-1]=we(we({},f),{},{isShow:!0}))}for(var y=a?u-1:u,h=function(b){var x=o[b],A,m=function(){return A===void 0&&(A=r(x,b)),A};if(b===0){var O=t*(x.coordinate-t*m()/2-c);o[b]=x=we(we({},x),{},{tickCoord:O<0?x.coordinate-O*t:x.coordinate})}else o[b]=x=we(we({},x),{},{tickCoord:x.coordinate});var w=Oa(t,x.tickCoord,m,c,s);w&&(c=x.tickCoord+t*(m()/2+i),o[b]=we(we({},x),{},{isShow:!0}))},v=0;v<y;v++)h(v);return o}function yp(t,e,r){var n=t.tick,i=t.ticks,a=t.viewBox,o=t.minTickGap,u=t.orientation,c=t.interval,s=t.tickFormatter,f=t.unit,l=t.angle;if(!i||!i.length||!n)return[];if(L(c)||Je.isSsr)return Dk(i,typeof c=="number"&&L(c)?c:0);var p=[],d=u==="top"||u==="bottom"?"width":"height",y=f&&d==="width"?Sn(f,{fontSize:e,letterSpacing:r}):{width:0,height:0},h=function(x,A){var m=W(s)?s(x.value,A):x.value;return d==="width"?kk(Sn(m,{fontSize:e,letterSpacing:r}),y,l):Sn(m,{fontSize:e,letterSpacing:r})[d]},v=i.length>=2?Oe(i[1].coordinate-i[0].coordinate):1,g=Mk(a,v,d);return c==="equidistantPreserveStart"?Nk(v,g,h,i,o):(c==="preserveStart"||c==="preserveStartEnd"?p=zk(v,g,h,i,o,c==="preserveStartEnd"):p=Fk(v,g,h,i,o),p.filter(function(b){return b.isShow}))}var Kk=["viewBox"],Wk=["viewBox"],Gk=["ticks"];function Kr(t){"@babel/helpers - typeof";return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kr(t)}function xr(){return xr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xr.apply(this,arguments)}function Cg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ve(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Cg(Object(r),!0).forEach(function(n){mp(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Qs(t,e){if(t==null)return{};var r=Hk(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Hk(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Uk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,LO(n.key),n)}}function Vk(t,e,r){return e&&Rg(t.prototype,e),r&&Rg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Xk(t,e,r){return e=Aa(e),Yk(t,NO()?Reflect.construct(e,r||[],Aa(t).constructor):e.apply(t,r))}function Yk(t,e){if(e&&(Kr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zk(t)}function Zk(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function NO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NO=function(){return!!t})()}function Aa(t){return Aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Aa(t)}function Jk(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pf(t,e)}function pf(t,e){return pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pf(t,e)}function mp(t,e,r){return e=LO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function LO(t){var e=Qk(t,"string");return Kr(e)=="symbol"?e:e+""}function Qk(t,e){if(Kr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var cn=(function(t){function e(r){var n;return Uk(this,e),n=Xk(this,e,[r]),n.state={fontSize:"",letterSpacing:""},n}return Jk(e,t),Vk(e,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Qs(n,Kk),u=this.props,c=u.viewBox,s=Qs(u,Wk);return!Ar(a,c)||!Ar(o,s)||!Ar(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,c=i.height,s=i.orientation,f=i.tickSize,l=i.mirror,p=i.tickMargin,d,y,h,v,g,b,x=l?-1:1,A=n.tickSize||f,m=L(n.tickCoord)?n.tickCoord:n.coordinate;switch(s){case"top":d=y=n.coordinate,v=o+ +!l*c,h=v-x*A,b=h-x*p,g=m;break;case"left":h=v=n.coordinate,y=a+ +!l*u,d=y-x*A,g=d-x*p,b=m;break;case"right":h=v=n.coordinate,y=a+ +l*u,d=y+x*A,g=d+x*p,b=m;break;default:d=y=n.coordinate,v=o+ +l*c,h=v+x*A,b=h+x*p,g=m;break}return{line:{x1:d,y1:h,x2:y,y2:v},tick:{x:g,y:b}}}},{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,c=n.orientation,s=n.mirror,f=n.axisLine,l=ve(ve(ve({},F(this.props,!1)),F(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var p=+(c==="top"&&!s||c==="bottom"&&s);l=ve(ve({},l),{},{x1:i,y1:a+p*u,x2:i+o,y2:a+p*u})}else{var d=+(c==="left"&&!s||c==="right"&&s);l=ve(ve({},l),{},{x1:i+d*o,y1:a,x2:i+d*o,y2:a+u})}return P.createElement("line",xr({},l,{className:V("recharts-cartesian-axis-line",ke(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,c=u.tickLine,s=u.stroke,f=u.tick,l=u.tickFormatter,p=u.unit,d=yp(ve(ve({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),v=F(this.props,!1),g=F(f,!1),b=ve(ve({},v),{},{fill:"none"},F(c,!1)),x=d.map(function(A,m){var O=o.getTickLineCoord(A),w=O.line,S=O.tick,_=ve(ve(ve(ve({textAnchor:y,verticalAnchor:h},v),{},{stroke:"none",fill:s},g),S),{},{index:m,payload:A,visibleTicksCount:d.length,tickFormatter:l});return P.createElement(X,xr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(A.value,"-").concat(A.coordinate,"-").concat(A.tickCoord)},nt(o.props,A,m)),c&&P.createElement("line",xr({},b,w,{className:V("recharts-cartesian-axis-tick-line",ke(c,"className"))})),f&&e.renderTickItem(f,_,"".concat(W(l)?l(A.value,m):A.value).concat(p||"")))});return P.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,c=i.ticksGenerator,s=i.className,f=i.hide;if(f)return null;var l=this.props,p=l.ticks,d=Qs(l,Gk),y=p;return W(c)&&(y=p&&p.length>0?c(this.props):c(d)),o<=0||u<=0||!y||!y.length?null:P.createElement(X,{className:V("recharts-cartesian-axis",s),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),xe.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=V(i.className,"recharts-cartesian-axis-tick-value");return P.isValidElement(n)?o=P.cloneElement(n,ve(ve({},i),{},{className:u})):W(n)?o=n(ve(ve({},i),{},{className:u})):o=P.createElement(Jt,xr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(M.Component);mp(cn,"displayName","CartesianAxis");mp(cn,"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 eM=["x1","y1","x2","y2","key"],tM=["offset"];function tr(t){"@babel/helpers - typeof";return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tr(t)}function kg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Pe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?kg(Object(r),!0).forEach(function(n){rM(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function rM(t,e,r){return e=nM(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nM(t){var e=iM(t,"string");return tr(e)=="symbol"?e:e+""}function iM(t,e){if(tr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ht(){return Ht=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ht.apply(this,arguments)}function Mg(t,e){if(t==null)return{};var r=aM(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function aM(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var oM=function(e){var r=e.fill;if(!r||r==="none")return null;var n=e.fillOpacity,i=e.x,a=e.y,o=e.width,u=e.height,c=e.ry;return P.createElement("rect",{x:i,y:a,ry:c,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function qO(t,e){var r;if(P.isValidElement(t))r=P.cloneElement(t,e);else if(W(t))r=t(e);else{var n=e.x1,i=e.y1,a=e.x2,o=e.y2,u=e.key,c=Mg(e,eM),s=F(c,!1);s.offset;var f=Mg(s,tM);r=P.createElement("line",Ht({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function uM(t){var e=t.x,r=t.width,n=t.horizontal,i=n===void 0?!0:n,a=t.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=Pe(Pe({},t),{},{x1:e,y1:u,x2:e+r,y2:u,key:"line-".concat(c),index:c});return qO(i,s)});return P.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function cM(t){var e=t.y,r=t.height,n=t.vertical,i=n===void 0?!0:n,a=t.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=Pe(Pe({},t),{},{x1:u,y1:e,x2:u,y2:e+r,key:"line-".concat(c),index:c});return qO(i,s)});return P.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function sM(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,i=t.y,a=t.width,o=t.height,u=t.horizontalPoints,c=t.horizontal,s=c===void 0?!0:c;if(!s||!e||!e.length)return null;var f=u.map(function(p){return Math.round(p+i-i)}).sort(function(p,d){return p-d});i!==f[0]&&f.unshift(0);var l=f.map(function(p,d){var y=!f[d+1],h=y?i+o-p:f[d+1]-p;if(h<=0)return null;var v=d%e.length;return P.createElement("rect",{key:"react-".concat(d),y:p,x:n,height:h,width:a,stroke:"none",fill:e[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function lM(t){var e=t.vertical,r=e===void 0?!0:e,n=t.verticalFill,i=t.fillOpacity,a=t.x,o=t.y,u=t.width,c=t.height,s=t.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(p){return Math.round(p+a-a)}).sort(function(p,d){return p-d});a!==f[0]&&f.unshift(0);var l=f.map(function(p,d){var y=!f[d+1],h=y?a+u-p:f[d+1]-p;if(h<=0)return null;var v=d%n.length;return P.createElement("rect",{key:"react-".concat(d),x:p,y:o,width:h,height:c,stroke:"none",fill:n[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var fM=function(e,r){var n=e.xAxis,i=e.width,a=e.height,o=e.offset;return Cx(yp(Pe(Pe(Pe({},cn.defaultProps),n),{},{ticks:pt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},pM=function(e,r){var n=e.yAxis,i=e.width,a=e.height,o=e.offset;return Cx(yp(Pe(Pe(Pe({},cn.defaultProps),n),{},{ticks:pt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},hr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function gi(t){var e,r,n,i,a,o,u=pp(),c=dp(),s=QR(),f=Pe(Pe({},t),{},{stroke:(e=t.stroke)!==null&&e!==void 0?e:hr.stroke,fill:(r=t.fill)!==null&&r!==void 0?r:hr.fill,horizontal:(n=t.horizontal)!==null&&n!==void 0?n:hr.horizontal,horizontalFill:(i=t.horizontalFill)!==null&&i!==void 0?i:hr.horizontalFill,vertical:(a=t.vertical)!==null&&a!==void 0?a:hr.vertical,verticalFill:(o=t.verticalFill)!==null&&o!==void 0?o:hr.verticalFill,x:L(t.x)?t.x:s.left,y:L(t.y)?t.y:s.top,width:L(t.width)?t.width:s.width,height:L(t.height)?t.height:s.height}),l=f.x,p=f.y,d=f.width,y=f.height,h=f.syncWithTicks,v=f.horizontalValues,g=f.verticalValues,b=YR(),x=ZR();if(!L(d)||d<=0||!L(y)||y<=0||!L(l)||l!==+l||!L(p)||p!==+p)return null;var A=f.verticalCoordinatesGenerator||fM,m=f.horizontalCoordinatesGenerator||pM,O=f.horizontalPoints,w=f.verticalPoints;if((!O||!O.length)&&W(m)){var S=v&&v.length,_=m({yAxis:x?Pe(Pe({},x),{},{ticks:S?v:x.ticks}):void 0,width:u,height:c,offset:s},S?!0:h);Ve(Array.isArray(_),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(tr(_),"]")),Array.isArray(_)&&(O=_)}if((!w||!w.length)&&W(A)){var T=g&&g.length,j=A({xAxis:b?Pe(Pe({},b),{},{ticks:T?g:b.ticks}):void 0,width:u,height:c,offset:s},T?!0:h);Ve(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(tr(j),"]")),Array.isArray(j)&&(w=j)}return P.createElement("g",{className:"recharts-cartesian-grid"},P.createElement(oM,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),P.createElement(uM,Ht({},f,{offset:s,horizontalPoints:O,xAxis:b,yAxis:x})),P.createElement(cM,Ht({},f,{offset:s,verticalPoints:w,xAxis:b,yAxis:x})),P.createElement(sM,Ht({},f,{horizontalPoints:O})),P.createElement(lM,Ht({},f,{verticalPoints:w})))}gi.displayName="CartesianGrid";var dM=["type","layout","connectNulls","ref"],vM=["key"];function Wr(t){"@babel/helpers - typeof";return Wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wr(t)}function Dg(t,e){if(t==null)return{};var r=hM(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function hM(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function $n(){return $n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$n.apply(this,arguments)}function Ng(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function $e(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ng(Object(r),!0).forEach(function(n){Ue(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ng(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function yr(t){return bM(t)||gM(t)||mM(t)||yM()}function yM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
70
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mM(t,e){if(t){if(typeof t=="string")return df(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return df(t,e)}}function gM(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function bM(t){if(Array.isArray(t))return df(t)}function df(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,FO(n.key),n)}}function OM(t,e,r){return e&&Lg(t.prototype,e),r&&Lg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function AM(t,e,r){return e=wa(e),wM(t,BO()?Reflect.construct(e,r||[],wa(t).constructor):e.apply(t,r))}function wM(t,e){if(e&&(Wr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PM(t)}function PM(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function BO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BO=function(){return!!t})()}function wa(t){return wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wa(t)}function SM(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vf(t,e)}function vf(t,e){return vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vf(t,e)}function Ue(t,e,r){return e=FO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FO(t){var e=_M(t,"string");return Wr(e)=="symbol"?e:e+""}function _M(t,e){if(Wr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var bi=(function(t){function e(){var r;xM(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=AM(this,e,[].concat(i)),Ue(r,"state",{isAnimationFinished:!0,totalLength:0}),Ue(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),Ue(r,"getStrokeDasharray",function(o,u,c){var s=c.reduce(function(g,b){return g+b});if(!s)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/s),l=o%s,p=u-o,d=[],y=0,h=0;y<c.length;h+=c[y],++y)if(h+c[y]>l){d=[].concat(yr(c.slice(0,y)),[l-h]);break}var v=d.length%2===0?[0,p]:[p];return[].concat(yr(e.repeat(c,f)),yr(d),v).map(function(g){return"".concat(g,"px")}).join(", ")}),Ue(r,"id",$t("recharts-line-")),Ue(r,"pathRef",function(o){r.mainCurve=o}),Ue(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Ue(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return SM(e,t),OM(e,[{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,c=a.yAxis,s=a.layout,f=a.children,l=Se(f,an);if(!l)return null;var p=function(h,v){return{x:h.x,y:h.y,value:h.value,errorVal:ie(h.payload,v)}},d={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(X,d,l.map(function(y){return P.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,dataPointFormatter:p})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,c=u.dot,s=u.points,f=u.dataKey,l=F(this.props,!1),p=F(c,!0),d=s.map(function(h,v){var g=$e($e($e({key:"dot-".concat(v),r:3},l),p),{},{index:v,cx:h.x,cy:h.y,value:h.value,dataKey:f,payload:h.payload,points:s});return e.renderDotItem(c,g)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(X,$n({className:"recharts-line-dots",key:"dots"},y),d)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,c=u.type,s=u.layout,f=u.connectNulls;u.ref;var l=Dg(u,dM),p=$e($e($e({},F(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:c,layout:s,connectNulls:f});return P.createElement(_t,$n({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.strokeDasharray,s=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,p=o.animationEasing,d=o.animationId,y=o.animateNewValues,h=o.width,v=o.height,g=this.state,b=g.prevPoints,x=g.totalLength;return P.createElement(Ee,{begin:f,duration:l,isActive:s,easing:p,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(A){var m=A.t;if(b){var O=b.length/u.length,w=u.map(function(E,$){var C=Math.floor($*O);if(b[C]){var I=b[C],k=te(I.x,E.x),N=te(I.y,E.y);return $e($e({},E),{},{x:k(m),y:N(m)})}if(y){var q=te(h*2,E.x),B=te(v/2,E.y);return $e($e({},E),{},{x:q(m),y:B(m)})}return $e($e({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(w,n,i)}var S=te(0,x),_=S(m),T;if(c){var j="".concat(c).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});T=a.getStrokeDasharray(_,x,j)}else T=a.generateSimpleStrokeDasharray(x,_);return a.renderCurveStatically(u,n,i,{strokeDasharray:T})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,c=this.state,s=c.prevPoints,f=c.totalLength;return u&&o&&o.length&&(!s&&f>0||!it(s,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,c=i.className,s=i.xAxis,f=i.yAxis,l=i.top,p=i.left,d=i.width,y=i.height,h=i.isAnimationActive,v=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,b=u.length===1,x=V("recharts-line",c),A=s&&s.allowDataOverflow,m=f&&f.allowDataOverflow,O=A||m,w=H(v)?this.id:v,S=(n=F(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},_=S.r,T=_===void 0?3:_,j=S.strokeWidth,E=j===void 0?2:j,$=fb(o)?o:{},C=$.clipDot,I=C===void 0?!0:C,k=T*2+E;return P.createElement(X,{className:x},A||m?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(w)},P.createElement("rect",{x:A?p:p-d/2,y:m?l:l-y/2,width:A?d:d*2,height:m?y:y*2})),!I&&P.createElement("clipPath",{id:"clipPath-dots-".concat(w)},P.createElement("rect",{x:p-k/2,y:l-k/2,width:d+k,height:y+k}))):null,!b&&this.renderCurve(O,w),this.renderErrorBar(O,w),(b||o)&&this.renderDots(O,I,w),(!h||g)&&Me.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(yr(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(yr(o),yr(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(P.isValidElement(n))a=P.cloneElement(n,i);else if(W(n))a=n(i);else{var o=i.key,u=Dg(i,vM),c=V("recharts-line-dot",typeof n!="boolean"?n.className:"");a=P.createElement(on,$n({key:o},u,{className:c}))}return a}}])})(M.PureComponent);Ue(bi,"displayName","Line");Ue(bi,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Je.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ue(bi,"getComposedData",function(t){var e=t.props,r=t.xAxis,n=t.yAxis,i=t.xAxisTicks,a=t.yAxisTicks,o=t.dataKey,u=t.bandSize,c=t.displayedData,s=t.offset,f=e.layout,l=c.map(function(p,d){var y=ie(p,o);return f==="horizontal"?{x:$r({axis:r,ticks:i,bandSize:u,entry:p,index:d}),y:H(y)?null:n.scale(y),value:y,payload:p}:{x:H(y)?null:r.scale(y),y:$r({axis:n,ticks:a,bandSize:u,entry:p,index:d}),value:y,payload:p}});return $e({points:l,layout:f},s)});var jM=["layout","type","stroke","connectNulls","isRange","ref"],EM=["key"],zO;function Gr(t){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gr(t)}function KO(t,e){if(t==null)return{};var r=TM(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function TM(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Ut(){return Ut=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ut.apply(this,arguments)}function qg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function xt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qg(Object(r),!0).forEach(function(n){tt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function $M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,GO(n.key),n)}}function IM(t,e,r){return e&&Bg(t.prototype,e),r&&Bg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function CM(t,e,r){return e=Pa(e),RM(t,WO()?Reflect.construct(e,r||[],Pa(t).constructor):e.apply(t,r))}function RM(t,e){if(e&&(Gr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kM(t)}function kM(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function WO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WO=function(){return!!t})()}function Pa(t){return Pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pa(t)}function MM(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hf(t,e)}function hf(t,e){return hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hf(t,e)}function tt(t,e,r){return e=GO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function GO(t){var e=DM(t,"string");return Gr(e)=="symbol"?e:e+""}function DM(t,e){if(Gr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Rt=(function(t){function e(){var r;$M(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=CM(this,e,[].concat(i)),tt(r,"state",{isAnimationFinished:!0}),tt(r,"id",$t("recharts-area-")),tt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),W(o)&&o()}),tt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),W(o)&&o()}),r}return MM(e,t),IM(e,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var c=this.props,s=c.dot,f=c.points,l=c.dataKey,p=F(this.props,!1),d=F(s,!0),y=f.map(function(v,g){var b=xt(xt(xt({key:"dot-".concat(g),r:3},p),d),{},{index:g,cx:v.x,cy:v.y,dataKey:l,value:v.value,payload:v.payload,points:f});return e.renderDotItem(s,b)}),h={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(X,Ut({className:"recharts-area-dots"},h),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,c=o[0].x,s=o[o.length-1].x,f=n*Math.abs(c-s),l=wt(o.map(function(p){return p.y||0}));return L(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(wt(a.map(function(p){return p.y||0})),l)),L(l)?P.createElement("rect",{x:c<s?c:c-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,c=o[0].y,s=o[o.length-1].y,f=n*Math.abs(c-s),l=wt(o.map(function(p){return p.x||0}));return L(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(wt(a.map(function(p){return p.x||0})),l)),L(l)?P.createElement("rect",{x:0,y:c<s?c:c-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,c=u.layout,s=u.type,f=u.stroke,l=u.connectNulls,p=u.isRange;u.ref;var d=KO(u,jM);return P.createElement(X,{clipPath:a?"url(#clipPath-".concat(o,")"):null},P.createElement(_t,Ut({},F(d,!0),{points:n,connectNulls:l,type:s,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),f!=="none"&&P.createElement(_t,Ut({},F(this.props,!1),{className:"recharts-area-curve",layout:c,type:s,connectNulls:l,fill:"none",points:n})),f!=="none"&&p&&P.createElement(_t,Ut({},F(this.props,!1),{className:"recharts-area-curve",layout:c,type:s,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.baseLine,s=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,p=o.animationEasing,d=o.animationId,y=this.state,h=y.prevPoints,v=y.prevBaseLine;return P.createElement(Ee,{begin:f,duration:l,isActive:s,easing:p,from:{t:0},to:{t:1},key:"area-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var b=g.t;if(h){var x=h.length/u.length,A=u.map(function(S,_){var T=Math.floor(_*x);if(h[T]){var j=h[T],E=te(j.x,S.x),$=te(j.y,S.y);return xt(xt({},S),{},{x:E(b),y:$(b)})}return S}),m;if(L(c)&&typeof c=="number"){var O=te(v,c);m=O(b)}else if(H(c)||en(c)){var w=te(v,0);m=w(b)}else m=c.map(function(S,_){var T=Math.floor(_*x);if(v[T]){var j=v[T],E=te(j.x,S.x),$=te(j.y,S.y);return xt(xt({},S),{},{x:E(b),y:$(b)})}return S});return a.renderAreaStatically(A,m,n,i)}return P.createElement(X,null,P.createElement("defs",null,P.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(b))),P.createElement(X,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,c,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,c=a.isAnimationActive,s=this.state,f=s.prevPoints,l=s.prevBaseLine,p=s.totalLength;return c&&o&&o.length&&(!f&&p>0||!it(f,o)||!it(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,c=i.className,s=i.top,f=i.left,l=i.xAxis,p=i.yAxis,d=i.width,y=i.height,h=i.isAnimationActive,v=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,b=u.length===1,x=V("recharts-area",c),A=l&&l.allowDataOverflow,m=p&&p.allowDataOverflow,O=A||m,w=H(v)?this.id:v,S=(n=F(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},_=S.r,T=_===void 0?3:_,j=S.strokeWidth,E=j===void 0?2:j,$=fb(o)?o:{},C=$.clipDot,I=C===void 0?!0:C,k=T*2+E;return P.createElement(X,{className:x},A||m?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(w)},P.createElement("rect",{x:A?f:f-d/2,y:m?s:s-y/2,width:A?d:d*2,height:m?y:y*2})),!I&&P.createElement("clipPath",{id:"clipPath-dots-".concat(w)},P.createElement("rect",{x:f-k/2,y:s-k/2,width:d+k,height:y+k}))):null,b?null:this.renderArea(O,w),(o||b)&&this.renderDots(O,I,w),(!h||g)&&Me.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}}])})(M.PureComponent);zO=Rt;tt(Rt,"displayName","Area");tt(Rt,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Je.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});tt(Rt,"getBaseValue",function(t,e,r,n){var i=t.layout,a=t.baseValue,o=e.props.baseValue,u=o??a;if(L(u)&&typeof u=="number")return u;var c=i==="horizontal"?n:r,s=c.scale.domain();if(c.type==="number"){var f=Math.max(s[0],s[1]),l=Math.min(s[0],s[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(s[0],s[1]),0)}return u==="dataMin"?s[0]:u==="dataMax"?s[1]:s[0]});tt(Rt,"getComposedData",function(t){var e=t.props,r=t.item,n=t.xAxis,i=t.yAxis,a=t.xAxisTicks,o=t.yAxisTicks,u=t.bandSize,c=t.dataKey,s=t.stackedData,f=t.dataStartIndex,l=t.displayedData,p=t.offset,d=e.layout,y=s&&s.length,h=zO.getBaseValue(e,r,n,i),v=d==="horizontal",g=!1,b=l.map(function(A,m){var O;y?O=s[f+m]:(O=ie(A,c),Array.isArray(O)?g=!0:O=[h,O]);var w=O[1]==null||y&&ie(A,c)==null;return v?{x:$r({axis:n,ticks:a,bandSize:u,entry:A,index:m}),y:w?null:i.scale(O[1]),value:O,payload:A}:{x:w?null:n.scale(O[1]),y:$r({axis:i,ticks:o,bandSize:u,entry:A,index:m}),value:O,payload:A}}),x;return y||g?x=b.map(function(A){var m=Array.isArray(A.value)?A.value[0]:null;return v?{x:A.x,y:m!=null&&A.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:A.y}}):x=v?i.scale(h):n.scale(h),xt({points:b,baseLine:x,layout:d,isRange:g},p)});tt(Rt,"renderDotItem",function(t,e){var r;if(P.isValidElement(t))r=P.cloneElement(t,e);else if(W(t))r=t(e);else{var n=V("recharts-area-dot",typeof t!="boolean"?t.className:""),i=e.key,a=KO(e,EM);r=P.createElement(on,Ut({},a,{key:i,className:n}))}return r});function Hr(t){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hr(t)}function NM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function LM(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,VO(n.key),n)}}function qM(t,e,r){return e&&LM(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function BM(t,e,r){return e=Sa(e),FM(t,HO()?Reflect.construct(e,r||[],Sa(t).constructor):e.apply(t,r))}function FM(t,e){if(e&&(Hr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zM(t)}function zM(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function HO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HO=function(){return!!t})()}function Sa(t){return Sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sa(t)}function KM(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yf(t,e)}function yf(t,e){return yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yf(t,e)}function UO(t,e,r){return e=VO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function VO(t){var e=WM(t,"string");return Hr(e)=="symbol"?e:e+""}function WM(t,e){if(Hr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var xi=(function(t){function e(){return NM(this,e),BM(this,e,arguments)}return KM(e,t),qM(e,[{key:"render",value:function(){return null}}])})(M.Component);UO(xi,"displayName","ZAxis");UO(xi,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var GM=["option","isActive"];function In(){return In=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},In.apply(this,arguments)}function HM(t,e){if(t==null)return{};var r=UM(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function UM(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function VM(t){var e=t.option,r=t.isActive,n=HM(t,GM);return typeof e=="string"?M.createElement(ii,In({option:M.createElement(La,In({type:e},n)),isActive:r,shapeType:"symbols"},n)):M.createElement(ii,In({option:e,isActive:r,shapeType:"symbols"},n))}function Ur(t){"@babel/helpers - typeof";return Ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ur(t)}function Cn(){return Cn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Cn.apply(this,arguments)}function Fg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Be(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Fg(Object(r),!0).forEach(function(n){St(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function XM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,YO(n.key),n)}}function YM(t,e,r){return e&&zg(t.prototype,e),r&&zg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ZM(t,e,r){return e=_a(e),JM(t,XO()?Reflect.construct(e,r||[],_a(t).constructor):e.apply(t,r))}function JM(t,e){if(e&&(Ur(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QM(t)}function QM(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function XO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XO=function(){return!!t})()}function _a(t){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_a(t)}function eD(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mf(t,e)}function mf(t,e){return mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mf(t,e)}function St(t,e,r){return e=YO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function YO(t){var e=tD(t,"string");return Ur(e)=="symbol"?e:e+""}function tD(t,e){if(Ur(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Oi=(function(t){function e(){var r;XM(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=ZM(this,e,[].concat(i)),St(r,"state",{isAnimationFinished:!1}),St(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),St(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),St(r,"id",$t("recharts-scatter-")),r}return eD(e,t),YM(e,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.activeShape,c=a.activeIndex,s=F(this.props,!1);return n.map(function(f,l){var p=c===l,d=p?u:o,y=Be(Be({},s),f);return P.createElement(X,Cn({className:"recharts-scatter-symbol",key:"symbol-".concat(f==null?void 0:f.cx,"-").concat(f==null?void 0:f.cy,"-").concat(f==null?void 0:f.size,"-").concat(l)},nt(i.props,f,l),{role:"img"}),P.createElement(VM,Cn({option:d,isActive:p,key:"symbol-".concat(l)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,s=i.animationEasing,f=i.animationId,l=this.state.prevPoints;return P.createElement(Ee,{begin:u,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var d=p.t,y=a.map(function(h,v){var g=l&&l[v];if(g){var b=te(g.cx,h.cx),x=te(g.cy,h.cy),A=te(g.size,h.size);return Be(Be({},h),{},{cx:b(d),cy:x(d),size:A(d)})}var m=te(0,h.size);return Be(Be({},h),{},{size:m(d)})});return P.createElement(X,null,n.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!it(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,u=i.yAxis,c=i.children,s=Se(c,an);return s?s.map(function(f,l){var p=f.props,d=p.direction,y=p.dataKey;return P.cloneElement(f,{key:"".concat(d,"-").concat(y,"-").concat(a[l]),data:a,xAxis:o,yAxis:u,layout:d==="x"?"vertical":"horizontal",dataPointFormatter:function(v,g){return{x:v.cx,y:v.cy,value:d==="x"?+v.node.x:+v.node.y,errorVal:ie(v,g)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,u=n.lineJointType,c=F(this.props,!1),s=F(a,!1),f,l;if(o==="joint")f=i.map(function(x){return{x:x.cx,y:x.cy}});else if(o==="fitting"){var p=LA(i),d=p.xmin,y=p.xmax,h=p.a,v=p.b,g=function(A){return h*A+v};f=[{x:d,y:g(d)},{x:y,y:g(y)}]}var b=Be(Be(Be({},c),{},{fill:"none",stroke:c&&c.fill},s),{},{points:f});return P.isValidElement(a)?l=P.cloneElement(a,b):W(a)?l=a(b):l=P.createElement(_t,Cn({},b,{type:u})),P.createElement(X,{className:"recharts-scatter-line",key:"recharts-scatter-line"},l)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,u=n.className,c=n.xAxis,s=n.yAxis,f=n.left,l=n.top,p=n.width,d=n.height,y=n.id,h=n.isAnimationActive;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,g=V("recharts-scatter",u),b=c&&c.allowDataOverflow,x=s&&s.allowDataOverflow,A=b||x,m=H(y)?this.id:y;return P.createElement(X,{className:g,clipPath:A?"url(#clipPath-".concat(m,")"):null},b||x?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(m)},P.createElement("rect",{x:b?f:f-p/2,y:x?l:l-d/2,width:b?p:p*2,height:x?d:d*2}))):null,o&&this.renderLine(),this.renderErrorBar(),P.createElement(X,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!h||v)&&Me.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(M.PureComponent);St(Oi,"displayName","Scatter");St(Oi,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Je.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});St(Oi,"getComposedData",function(t){var e=t.xAxis,r=t.yAxis,n=t.zAxis,i=t.item,a=t.displayedData,o=t.xAxisTicks,u=t.yAxisTicks,c=t.offset,s=i.props.tooltipType,f=Se(i.props.children,hi),l=H(e.dataKey)?i.props.dataKey:e.dataKey,p=H(r.dataKey)?i.props.dataKey:r.dataKey,d=n&&n.dataKey,y=n?n.range:xi.defaultProps.range,h=y&&y[0],v=e.scale.bandwidth?e.scale.bandwidth():0,g=r.scale.bandwidth?r.scale.bandwidth():0,b=a.map(function(x,A){var m=ie(x,l),O=ie(x,p),w=!H(d)&&ie(x,d)||"-",S=[{name:H(e.dataKey)?i.props.name:e.name||e.dataKey,unit:e.unit||"",value:m,payload:x,dataKey:l,type:s},{name:H(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:O,payload:x,dataKey:p,type:s}];w!=="-"&&S.push({name:n.name||n.dataKey,unit:n.unit||"",value:w,payload:x,dataKey:d,type:s});var _=$r({axis:e,ticks:o,bandSize:v,entry:x,index:A,dataKey:l}),T=$r({axis:r,ticks:u,bandSize:g,entry:x,index:A,dataKey:p}),j=w!=="-"?n.scale(w):h,E=Math.sqrt(Math.max(j,0)/Math.PI);return Be(Be({},x),{},{cx:_,cy:T,x:_-E,y:T-E,xAxis:e,yAxis:r,zAxis:n,width:2*E,height:2*E,size:j,node:{x:m,y:O,z:w},tooltipPayload:S,tooltipPosition:{x:_,y:T},payload:x},f&&f[A]&&f[A].props)});return Be({points:b},c)});function Vr(t){"@babel/helpers - typeof";return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vr(t)}function rD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,QO(n.key),n)}}function iD(t,e,r){return e&&nD(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function aD(t,e,r){return e=ja(e),oD(t,ZO()?Reflect.construct(e,r||[],ja(t).constructor):e.apply(t,r))}function oD(t,e){if(e&&(Vr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uD(t)}function uD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ZO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZO=function(){return!!t})()}function ja(t){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ja(t)}function cD(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gf(t,e)}function gf(t,e){return gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gf(t,e)}function JO(t,e,r){return e=QO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QO(t){var e=sD(t,"string");return Vr(e)=="symbol"?e:e+""}function sD(t,e){if(Vr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function bf(){return bf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},bf.apply(this,arguments)}function lD(t){var e=t.xAxisId,r=pp(),n=dp(),i=EO(e);return i==null?null:M.createElement(cn,bf({},i,{className:V("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return pt(o,!0)}}))}var Xe=(function(t){function e(){return rD(this,e),aD(this,e,arguments)}return cD(e,t),iD(e,[{key:"render",value:function(){return M.createElement(lD,this.props)}}])})(M.Component);JO(Xe,"displayName","XAxis");JO(Xe,"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 Xr(t){"@babel/helpers - typeof";return Xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xr(t)}function fD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,r0(n.key),n)}}function dD(t,e,r){return e&&pD(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function vD(t,e,r){return e=Ea(e),hD(t,e0()?Reflect.construct(e,r||[],Ea(t).constructor):e.apply(t,r))}function hD(t,e){if(e&&(Xr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yD(t)}function yD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e0(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e0=function(){return!!t})()}function Ea(t){return Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ea(t)}function mD(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xf(t,e)}function xf(t,e){return xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xf(t,e)}function t0(t,e,r){return e=r0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function r0(t){var e=gD(t,"string");return Xr(e)=="symbol"?e:e+""}function gD(t,e){if(Xr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Of(){return Of=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Of.apply(this,arguments)}var bD=function(e){var r=e.yAxisId,n=pp(),i=dp(),a=TO(r);return a==null?null:M.createElement(cn,Of({},a,{className:V("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return pt(u,!0)}}))},Ye=(function(t){function e(){return fD(this,e),vD(this,e,arguments)}return mD(e,t),dD(e,[{key:"render",value:function(){return M.createElement(bD,this.props)}}])})(M.Component);t0(Ye,"displayName","YAxis");t0(Ye,"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 Kg(t){return wD(t)||AD(t)||OD(t)||xD()}function xD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
71
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OD(t,e){if(t){if(typeof t=="string")return Af(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Af(t,e)}}function AD(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function wD(t){if(Array.isArray(t))return Af(t)}function Af(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var wf=function(e,r,n,i,a){var o=Se(e,hp),u=Se(e,to),c=[].concat(Kg(o),Kg(u)),s=Se(e,no),f="".concat(i,"Id"),l=i[0],p=r;if(c.length&&(p=c.reduce(function(h,v){if(v.props[f]===n&&rt(v.props,"extendDomain")&&L(v.props[l])){var g=v.props[l];return[Math.min(h[0],g),Math.max(h[1],g)]}return h},p)),s.length){var d="".concat(l,"1"),y="".concat(l,"2");p=s.reduce(function(h,v){if(v.props[f]===n&&rt(v.props,"extendDomain")&&L(v.props[d])&&L(v.props[y])){var g=v.props[d],b=v.props[y];return[Math.min(h[0],g,b),Math.max(h[1],g,b)]}return h},p)}return a&&a.length&&(p=a.reduce(function(h,v){return L(v)?[Math.min(h[0],v),Math.max(h[1],v)]:h},p)),p},el={exports:{}},Wg;function PD(){return Wg||(Wg=1,(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,s,f){this.fn=c,this.context=s,this.once=f||!1}function a(c,s,f,l,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var d=new i(f,l||c,p),y=r?r+s:s;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],d]:c._events[y].push(d):(c._events[y]=d,c._eventsCount++),c}function o(c,s){--c._eventsCount===0?c._events=new n:delete c._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],f,l;if(this._eventsCount===0)return s;for(l in f=this._events)e.call(f,l)&&s.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},u.prototype.listeners=function(s){var f=r?r+s:s,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var p=0,d=l.length,y=new Array(d);p<d;p++)y[p]=l[p].fn;return y},u.prototype.listenerCount=function(s){var f=r?r+s:s,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(s,f,l,p,d,y){var h=r?r+s:s;if(!this._events[h])return!1;var v=this._events[h],g=arguments.length,b,x;if(v.fn){switch(v.once&&this.removeListener(s,v.fn,void 0,!0),g){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,f),!0;case 3:return v.fn.call(v.context,f,l),!0;case 4:return v.fn.call(v.context,f,l,p),!0;case 5:return v.fn.call(v.context,f,l,p,d),!0;case 6:return v.fn.call(v.context,f,l,p,d,y),!0}for(x=1,b=new Array(g-1);x<g;x++)b[x-1]=arguments[x];v.fn.apply(v.context,b)}else{var A=v.length,m;for(x=0;x<A;x++)switch(v[x].once&&this.removeListener(s,v[x].fn,void 0,!0),g){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,f);break;case 3:v[x].fn.call(v[x].context,f,l);break;case 4:v[x].fn.call(v[x].context,f,l,p);break;default:if(!b)for(m=1,b=new Array(g-1);m<g;m++)b[m-1]=arguments[m];v[x].fn.apply(v[x].context,b)}}return!0},u.prototype.on=function(s,f,l){return a(this,s,f,l,!1)},u.prototype.once=function(s,f,l){return a(this,s,f,l,!0)},u.prototype.removeListener=function(s,f,l,p){var d=r?r+s:s;if(!this._events[d])return this;if(!f)return o(this,d),this;var y=this._events[d];if(y.fn)y.fn===f&&(!p||y.once)&&(!l||y.context===l)&&o(this,d);else{for(var h=0,v=[],g=y.length;h<g;h++)(y[h].fn!==f||p&&!y[h].once||l&&y[h].context!==l)&&v.push(y[h]);v.length?this._events[d]=v.length===1?v[0]:v:o(this,d)}return this},u.prototype.removeAllListeners=function(s){var f;return s?(f=r?r+s:s,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,t.exports=u})(el)),el.exports}var SD=PD();const _D=re(SD);var tl=new _D,rl="recharts.syncMouseEvents";function fi(t){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fi(t)}function jD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ED(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n0(n.key),n)}}function TD(t,e,r){return e&&ED(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function nl(t,e,r){return e=n0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function n0(t){var e=$D(t,"string");return fi(e)=="symbol"?e:e+""}function $D(t,e){if(fi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var ID=(function(){function t(){jD(this,t),nl(this,"activeIndex",0),nl(this,"coordinateList",[]),nl(this,"layout","horizontal")}return TD(t,[{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,c=r.layout,s=c===void 0?null:c,f=r.offset,l=f===void 0?null:f,p=r.mouseHandlerCallback,d=p===void 0?null:p;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=s??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=d??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,c=this.coordinateList[this.activeIndex].coordinate,s=((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+c+s,p=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:p})}}}])})();function CD(t,e,r){if(r==="number"&&e===!0&&Array.isArray(t)){var n=t==null?void 0:t[0],i=t==null?void 0:t[1];if(n&&i&&L(n)&&L(i))return!0}return!1}function RD(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:t==="horizontal"?e.x-i:r.left+.5,y:t==="horizontal"?r.top+.5:e.y-i,width:t==="horizontal"?n:r.width-1,height:t==="horizontal"?r.height-1:n}}function i0(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,a=t.endAngle,o=J(e,r,n,i),u=J(e,r,n,a);return{points:[o,u],cx:e,cy:r,radius:n,startAngle:i,endAngle:a}}function kD(t,e,r){var n,i,a,o;if(t==="horizontal")n=e.x,a=n,i=r.top,o=r.top+r.height;else if(t==="vertical")i=e.y,o=i,n=r.left,a=r.left+r.width;else if(e.cx!=null&&e.cy!=null)if(t==="centric"){var u=e.cx,c=e.cy,s=e.innerRadius,f=e.outerRadius,l=e.angle,p=J(u,c,s,l),d=J(u,c,f,l);n=p.x,i=p.y,a=d.x,o=d.y}else return i0(e);return[{x:n,y:i},{x:a,y:o}]}function pi(t){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pi(t)}function Gg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ki(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Gg(Object(r),!0).forEach(function(n){MD(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function MD(t,e,r){return e=DD(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function DD(t){var e=ND(t,"string");return pi(e)=="symbol"?e:e+""}function ND(t,e){if(pi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function LD(t){var e,r,n=t.element,i=t.tooltipEventType,a=t.isActive,o=t.activeCoordinate,u=t.activePayload,c=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,l=t.layout,p=t.chartName,d=(e=n.props.cursor)!==null&&e!==void 0?e:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!d||!a||!o||p!=="ScatterChart"&&i!=="axis")return null;var y,h=_t;if(p==="ScatterChart")y=o,h=H$;else if(p==="BarChart")y=RD(l,o,c,f),h=cp;else if(l==="radial"){var v=i0(o),g=v.cx,b=v.cy,x=v.radius,A=v.startAngle,m=v.endAngle;y={cx:g,cy:b,startAngle:A,endAngle:m,innerRadius:x,outerRadius:x},h=Hx}else y={points:kD(l,o,c)},h=_t;var O=ki(ki(ki(ki({stroke:"#ccc",pointerEvents:"none"},c),y),F(d,!1)),{},{payload:u,payloadIndex:s,className:V("recharts-tooltip-cursor",d.className)});return M.isValidElement(d)?M.cloneElement(d,O):M.createElement(h,O)}var qD=["item"],BD=["children","className","width","height","style","compact","title","desc"];function Yr(t){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yr(t)}function Or(){return Or=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Or.apply(this,arguments)}function Hg(t,e){return KD(t)||zD(t,e)||o0(t,e)||FD()}function FD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
72
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zD(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function KD(t){if(Array.isArray(t))return t}function Ug(t,e){if(t==null)return{};var r=WD(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function WD(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function GD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u0(n.key),n)}}function UD(t,e,r){return e&&HD(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function VD(t,e,r){return e=Ta(e),XD(t,a0()?Reflect.construct(e,r||[],Ta(t).constructor):e.apply(t,r))}function XD(t,e){if(e&&(Yr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YD(t)}function YD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a0(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a0=function(){return!!t})()}function Ta(t){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ta(t)}function ZD(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pf(t,e)}function Pf(t,e){return Pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pf(t,e)}function Zr(t){return eN(t)||QD(t)||o0(t)||JD()}function JD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
73
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o0(t,e){if(t){if(typeof t=="string")return Sf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sf(t,e)}}function QD(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function eN(t){if(Array.isArray(t))return Sf(t)}function Sf(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Vg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function R(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Vg(Object(r),!0).forEach(function(n){U(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function U(t,e,r){return e=u0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u0(t){var e=tN(t,"string");return Yr(e)=="symbol"?e:e+""}function tN(t,e){if(Yr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Yr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var rN={xAxis:["bottom","top"],yAxis:["left","right"]},nN={width:"100%",height:"100%"},c0={x:0,y:0};function Mi(t){return t}var iN=function(e,r){return r==="horizontal"?e.x:r==="vertical"?e.y:r==="centric"?e.angle:e.radius},aN=function(e,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(e==="horizontal")return{x:a.coordinate,y:i.y};if(e==="vertical")return{x:i.x,y:a.coordinate};if(e==="centric"){var o=a.coordinate,u=i.radius;return R(R(R({},i),J(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return R(R(R({},i),J(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return c0},io=function(e,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,c){var s=c.props.data;return s&&s.length?[].concat(Zr(u),Zr(s)):u},[]);return o.length>0?o:e&&e.length&&L(i)&&L(a)?e.slice(i,a+1):[]};function s0(t){return t==="number"?[0,"auto"]:void 0}var _f=function(e,r,n,i){var a=e.graphicalItems,o=e.tooltipAxis,u=io(r,e);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,s){var f,l=(f=s.props.data)!==null&&f!==void 0?f:r;l&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(l=l.slice(e.dataStartIndex,e.dataEndIndex+1));var p;if(o.dataKey&&!o.allowDuplicatedCategory){var d=l===void 0?u:l;p=qi(d,o.dataKey,i)}else p=l&&l[n]||u[n];return p?[].concat(Zr(c),[op(s,p)]):c},[])},Xg=function(e,r,n,i){var a=i||{x:e.chartX,y:e.chartY},o=iN(a,n),u=e.orderedTooltipTicks,c=e.tooltipAxis,s=e.tooltipTicks,f=bj(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,p=_f(e,r,f,l),d=aN(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:p,activeCoordinate:d}}return null},oN=function(e,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=e.layout,l=e.children,p=e.stackOffset,d=Ix(f,a);return n.reduce(function(y,h){var v,g=h.type.defaultProps!==void 0?R(R({},h.type.defaultProps),h.props):h.props,b=g.type,x=g.dataKey,A=g.allowDataOverflow,m=g.allowDuplicatedCategory,O=g.scale,w=g.ticks,S=g.includeHidden,_=g[o];if(y[_])return y;var T=io(e.data,{graphicalItems:i.filter(function(z){var Z,se=o in z.props?z.props[o]:(Z=z.type.defaultProps)===null||Z===void 0?void 0:Z[o];return se===_}),dataStartIndex:c,dataEndIndex:s}),j=T.length,E,$,C;CD(g.domain,A,b)&&(E=Rl(g.domain,null,A),d&&(b==="number"||O!=="auto")&&(C=_n(T,x,"category")));var I=s0(b);if(!E||E.length===0){var k,N=(k=g.domain)!==null&&k!==void 0?k:I;if(x){if(E=_n(T,x,b),b==="category"&&d){var q=NA(E);m&&q?($=E,E=da(0,j)):m||(E=Dy(N,E,h).reduce(function(z,Z){return z.indexOf(Z)>=0?z:[].concat(Zr(z),[Z])},[]))}else if(b==="category")m?E=E.filter(function(z){return z!==""&&!H(z)}):E=Dy(N,E,h).reduce(function(z,Z){return z.indexOf(Z)>=0||Z===""||H(Z)?z:[].concat(Zr(z),[Z])},[]);else if(b==="number"){var B=Pj(T,i.filter(function(z){var Z,se,me=o in z.props?z.props[o]:(Z=z.type.defaultProps)===null||Z===void 0?void 0:Z[o],We="hide"in z.props?z.props.hide:(se=z.type.defaultProps)===null||se===void 0?void 0:se.hide;return me===_&&(S||!We)}),x,a,f);B&&(E=B)}d&&(b==="number"||O!=="auto")&&(C=_n(T,x,"category"))}else d?E=da(0,j):u&&u[_]&&u[_].hasStack&&b==="number"?E=p==="expand"?[0,1]:qx(u[_].stackGroups,c,s):E=$x(T,i.filter(function(z){var Z=o in z.props?z.props[o]:z.type.defaultProps[o],se="hide"in z.props?z.props.hide:z.type.defaultProps.hide;return Z===_&&(S||!se)}),b,f,!0);if(b==="number")E=wf(l,E,_,a,w),N&&(E=Rl(N,E,A));else if(b==="category"&&N){var G=N,Y=E.every(function(z){return G.indexOf(z)>=0});Y&&(E=G)}}return R(R({},y),{},U({},_,R(R({},g),{},{axisType:a,domain:E,categoricalDomain:C,duplicateDomain:$,originalDomain:(v=g.domain)!==null&&v!==void 0?v:I,isCategorical:d,layout:f})))},{})},uN=function(e,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=e.layout,l=e.children,p=io(e.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),d=p.length,y=Ix(f,a),h=-1;return n.reduce(function(v,g){var b=g.type.defaultProps!==void 0?R(R({},g.type.defaultProps),g.props):g.props,x=b[o],A=s0("number");if(!v[x]){h++;var m;return y?m=da(0,d):u&&u[x]&&u[x].hasStack?(m=qx(u[x].stackGroups,c,s),m=wf(l,m,x,a)):(m=Rl(A,$x(p,n.filter(function(O){var w,S,_=o in O.props?O.props[o]:(w=O.type.defaultProps)===null||w===void 0?void 0:w[o],T="hide"in O.props?O.props.hide:(S=O.type.defaultProps)===null||S===void 0?void 0:S.hide;return _===x&&!T}),"number",f),i.defaultProps.allowDataOverflow),m=wf(l,m,x,a)),R(R({},v),{},U({},x,R(R({axisType:a},i.defaultProps),{},{hide:!0,orientation:ke(rN,"".concat(a,".").concat(h%2),null),domain:m,originalDomain:A,isCategorical:y,layout:f})))}return v},{})},cN=function(e,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=e.children,l="".concat(i,"Id"),p=Se(f,a),d={};return p&&p.length?d=oN(e,{axes:p,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(d=uN(e,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),d},sN=function(e){var r=At(e),n=pt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Xf(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Yi(r,n)}},Yg=function(e){var r=e.children,n=e.defaultShowTooltip,i=Ce(r,Lr),a=0,o=0;return e.data&&e.data.length!==0&&(o=e.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}},lN=function(e){return!e||!e.length?!1:e.some(function(r){var n=dt(r&&r.type);return n&&n.indexOf("Bar")>=0})},Zg=function(e){return e==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:e==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:e==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},fN=function(e,r){var n=e.props,i=e.graphicalItems,a=e.xAxisMap,o=a===void 0?{}:a,u=e.yAxisMap,c=u===void 0?{}:u,s=n.width,f=n.height,l=n.children,p=n.margin||{},d=Ce(l,Lr),y=Ce(l,Vt),h=Object.keys(c).reduce(function(m,O){var w=c[O],S=w.orientation;return!w.mirror&&!w.hide?R(R({},m),{},U({},S,m[S]+w.width)):m},{left:p.left||0,right:p.right||0}),v=Object.keys(o).reduce(function(m,O){var w=o[O],S=w.orientation;return!w.mirror&&!w.hide?R(R({},m),{},U({},S,ke(m,"".concat(S))+w.height)):m},{top:p.top||0,bottom:p.bottom||0}),g=R(R({},v),h),b=g.bottom;d&&(g.bottom+=d.props.height||Lr.defaultProps.height),y&&r&&(g=Aj(g,i,n,r));var x=s-g.left-g.right,A=f-g.top-g.bottom;return R(R({brushBottom:b},g),{},{width:Math.max(x,0),height:Math.max(A,0)})},pN=function(e,r){if(r==="xAxis")return e[r].width;if(r==="yAxis")return e[r].height},ur=function(e){var r=e.chartName,n=e.GraphicalChild,i=e.defaultTooltipEventType,a=i===void 0?"axis":i,o=e.validateTooltipEventTypes,u=o===void 0?["axis"]:o,c=e.axisComponents,s=e.legendContent,f=e.formatAxisMap,l=e.defaultProps,p=function(g,b){var x=b.graphicalItems,A=b.stackGroups,m=b.offset,O=b.updateId,w=b.dataStartIndex,S=b.dataEndIndex,_=g.barSize,T=g.layout,j=g.barGap,E=g.barCategoryGap,$=g.maxBarSize,C=Zg(T),I=C.numericAxisName,k=C.cateAxisName,N=lN(x),q=[];return x.forEach(function(B,G){var Y=io(g.data,{graphicalItems:[B],dataStartIndex:w,dataEndIndex:S}),z=B.type.defaultProps!==void 0?R(R({},B.type.defaultProps),B.props):B.props,Z=z.dataKey,se=z.maxBarSize,me=z["".concat(I,"Id")],We=z["".concat(k,"Id")],ln={},De=c.reduce(function(Lt,qt){var ao=b["".concat(qt.axisType,"Map")],bp=z["".concat(qt.axisType,"Id")];ao&&ao[bp]||qt.axisType==="zAxis"||er();var xp=ao[bp];return R(R({},Lt),{},U(U({},qt.axisType,xp),"".concat(qt.axisType,"Ticks"),pt(xp)))},ln),Dt=De[k],wi=De["".concat(k,"Ticks")],lr=A&&A[me]&&A[me].hasStack&&$j(B,A[me].stackGroups),fn=dt(B.type).indexOf("Bar")>=0,Nt=Yi(Dt,wi),fr=[],pn=N&&xj({barSize:_,stackGroups:A,totalSize:pN(De,k)});if(fn){var dn,pr,vn=H(se)?$:se,dr=(dn=(pr=Yi(Dt,wi,!0))!==null&&pr!==void 0?pr:vn)!==null&&dn!==void 0?dn:0;fr=Oj({barGap:j,barCategoryGap:E,bandSize:dr!==Nt?dr:Nt,sizeList:pn[We],maxBarSize:vn}),dr!==Nt&&(fr=fr.map(function(Lt){return R(R({},Lt),{},{position:R(R({},Lt.position),{},{offset:Lt.position.offset-dr/2})})}))}var Pi=B&&B.type&&B.type.getComposedData;Pi&&q.push({props:R(R({},Pi(R(R({},De),{},{displayedData:Y,props:g,dataKey:Z,item:B,bandSize:Nt,barPosition:fr,offset:m,stackedData:lr,layout:T,dataStartIndex:w,dataEndIndex:S}))),{},U(U(U({key:B.key||"item-".concat(G)},I,De[I]),k,De[k]),"animationId",O)),childIndex:YA(B,g.children),item:B})}),q},d=function(g,b){var x=g.props,A=g.dataStartIndex,m=g.dataEndIndex,O=g.updateId;if(!Cd({props:x}))return null;var w=x.children,S=x.layout,_=x.stackOffset,T=x.data,j=x.reverseStackOrder,E=Zg(S),$=E.numericAxisName,C=E.cateAxisName,I=Se(w,n),k=Tj(T,I,"".concat($,"Id"),"".concat(C,"Id"),_,j),N=c.reduce(function(z,Z){var se="".concat(Z.axisType,"Map");return R(R({},z),{},U({},se,cN(x,R(R({},Z),{},{graphicalItems:I,stackGroups:Z.axisType===$&&k,dataStartIndex:A,dataEndIndex:m}))))},{}),q=fN(R(R({},N),{},{props:x,graphicalItems:I}),b==null?void 0:b.legendBBox);Object.keys(N).forEach(function(z){N[z]=f(x,N[z],q,z.replace("Map",""),r)});var B=N["".concat(C,"Map")],G=sN(B),Y=p(x,R(R({},N),{},{dataStartIndex:A,dataEndIndex:m,updateId:O,graphicalItems:I,stackGroups:k,offset:q}));return R(R({formattedGraphicalItems:Y,graphicalItems:I,offset:q,stackGroups:k},G),N)},y=(function(v){function g(b){var x,A,m;return GD(this,g),m=VD(this,g,[b]),U(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),U(m,"accessibilityManager",new ID),U(m,"handleLegendBBoxUpdate",function(O){if(O){var w=m.state,S=w.dataStartIndex,_=w.dataEndIndex,T=w.updateId;m.setState(R({legendBBox:O},d({props:m.props,dataStartIndex:S,dataEndIndex:_,updateId:T},R(R({},m.state),{},{legendBBox:O}))))}}),U(m,"handleReceiveSyncEvent",function(O,w,S){if(m.props.syncId===O){if(S===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(w)}}),U(m,"handleBrushChange",function(O){var w=O.startIndex,S=O.endIndex;if(w!==m.state.dataStartIndex||S!==m.state.dataEndIndex){var _=m.state.updateId;m.setState(function(){return R({dataStartIndex:w,dataEndIndex:S},d({props:m.props,dataStartIndex:w,dataEndIndex:S,updateId:_},m.state))}),m.triggerSyncEvent({dataStartIndex:w,dataEndIndex:S})}}),U(m,"handleMouseEnter",function(O){var w=m.getMouseInfo(O);if(w){var S=R(R({},w),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var _=m.props.onMouseEnter;W(_)&&_(S,O)}}),U(m,"triggeredAfterMouseMove",function(O){var w=m.getMouseInfo(O),S=w?R(R({},w),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var _=m.props.onMouseMove;W(_)&&_(S,O)}),U(m,"handleItemMouseEnter",function(O){m.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),U(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),U(m,"handleMouseMove",function(O){O.persist(),m.throttleTriggeredAfterMouseMove(O)}),U(m,"handleMouseLeave",function(O){m.throttleTriggeredAfterMouseMove.cancel();var w={isTooltipActive:!1};m.setState(w),m.triggerSyncEvent(w);var S=m.props.onMouseLeave;W(S)&&S(w,O)}),U(m,"handleOuterEvent",function(O){var w=XA(O),S=ke(m.props,"".concat(w));if(w&&W(S)){var _,T;/.*touch.*/i.test(w)?T=m.getMouseInfo(O.changedTouches[0]):T=m.getMouseInfo(O),S((_=T)!==null&&_!==void 0?_:{},O)}}),U(m,"handleClick",function(O){var w=m.getMouseInfo(O);if(w){var S=R(R({},w),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var _=m.props.onClick;W(_)&&_(S,O)}}),U(m,"handleMouseDown",function(O){var w=m.props.onMouseDown;if(W(w)){var S=m.getMouseInfo(O);w(S,O)}}),U(m,"handleMouseUp",function(O){var w=m.props.onMouseUp;if(W(w)){var S=m.getMouseInfo(O);w(S,O)}}),U(m,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),U(m,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&m.handleMouseDown(O.changedTouches[0])}),U(m,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&m.handleMouseUp(O.changedTouches[0])}),U(m,"handleDoubleClick",function(O){var w=m.props.onDoubleClick;if(W(w)){var S=m.getMouseInfo(O);w(S,O)}}),U(m,"handleContextMenu",function(O){var w=m.props.onContextMenu;if(W(w)){var S=m.getMouseInfo(O);w(S,O)}}),U(m,"triggerSyncEvent",function(O){m.props.syncId!==void 0&&tl.emit(rl,m.props.syncId,O,m.eventEmitterSymbol)}),U(m,"applySyncEvent",function(O){var w=m.props,S=w.layout,_=w.syncMethod,T=m.state.updateId,j=O.dataStartIndex,E=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)m.setState(R({dataStartIndex:j,dataEndIndex:E},d({props:m.props,dataStartIndex:j,dataEndIndex:E,updateId:T},m.state)));else if(O.activeTooltipIndex!==void 0){var $=O.chartX,C=O.chartY,I=O.activeTooltipIndex,k=m.state,N=k.offset,q=k.tooltipTicks;if(!N)return;if(typeof _=="function")I=_(q,O);else if(_==="value"){I=-1;for(var B=0;B<q.length;B++)if(q[B].value===O.activeLabel){I=B;break}}var G=R(R({},N),{},{x:N.left,y:N.top}),Y=Math.min($,G.x+G.width),z=Math.min(C,G.y+G.height),Z=q[I]&&q[I].value,se=_f(m.state,m.props.data,I),me=q[I]?{x:S==="horizontal"?q[I].coordinate:Y,y:S==="horizontal"?z:q[I].coordinate}:c0;m.setState(R(R({},O),{},{activeLabel:Z,activeCoordinate:me,activePayload:se,activeTooltipIndex:I}))}else m.setState(O)}),U(m,"renderCursor",function(O){var w,S=m.state,_=S.isTooltipActive,T=S.activeCoordinate,j=S.activePayload,E=S.offset,$=S.activeTooltipIndex,C=S.tooltipAxisBandSize,I=m.getTooltipEventType(),k=(w=O.props.active)!==null&&w!==void 0?w:_,N=m.props.layout,q=O.key||"_recharts-cursor";return P.createElement(LD,{key:q,activeCoordinate:T,activePayload:j,activeTooltipIndex:$,chartName:r,element:O,isActive:k,layout:N,offset:E,tooltipAxisBandSize:C,tooltipEventType:I})}),U(m,"renderPolarAxis",function(O,w,S){var _=ke(O,"type.axisType"),T=ke(m.state,"".concat(_,"Map")),j=O.type.defaultProps,E=j!==void 0?R(R({},j),O.props):O.props,$=T&&T[E["".concat(_,"Id")]];return M.cloneElement(O,R(R({},$),{},{className:V(_,$.className),key:O.key||"".concat(w,"-").concat(S),ticks:pt($,!0)}))}),U(m,"renderPolarGrid",function(O){var w=O.props,S=w.radialLines,_=w.polarAngles,T=w.polarRadius,j=m.state,E=j.radiusAxisMap,$=j.angleAxisMap,C=At(E),I=At($),k=I.cx,N=I.cy,q=I.innerRadius,B=I.outerRadius;return M.cloneElement(O,{polarAngles:Array.isArray(_)?_:pt(I,!0).map(function(G){return G.coordinate}),polarRadius:Array.isArray(T)?T:pt(C,!0).map(function(G){return G.coordinate}),cx:k,cy:N,innerRadius:q,outerRadius:B,key:O.key||"polar-grid",radialLines:S})}),U(m,"renderLegend",function(){var O=m.state.formattedGraphicalItems,w=m.props,S=w.children,_=w.width,T=w.height,j=m.props.margin||{},E=_-(j.left||0)-(j.right||0),$=Ex({children:S,formattedGraphicalItems:O,legendWidth:E,legendContent:s});if(!$)return null;var C=$.item,I=Ug($,qD);return M.cloneElement(C,R(R({},I),{},{chartWidth:_,chartHeight:T,margin:j,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),U(m,"renderTooltip",function(){var O,w=m.props,S=w.children,_=w.accessibilityLayer,T=Ce(S,Qe);if(!T)return null;var j=m.state,E=j.isTooltipActive,$=j.activeCoordinate,C=j.activePayload,I=j.activeLabel,k=j.offset,N=(O=T.props.active)!==null&&O!==void 0?O:E;return M.cloneElement(T,{viewBox:R(R({},k),{},{x:k.left,y:k.top}),active:N,label:I,payload:N?C:[],coordinate:$,accessibilityLayer:_})}),U(m,"renderBrush",function(O){var w=m.props,S=w.margin,_=w.data,T=m.state,j=T.offset,E=T.dataStartIndex,$=T.dataEndIndex,C=T.updateId;return M.cloneElement(O,{key:O.key||"_recharts-brush",onChange:$i(m.handleBrushChange,O.props.onChange),data:_,x:L(O.props.x)?O.props.x:j.left,y:L(O.props.y)?O.props.y:j.top+j.height+j.brushBottom-(S.bottom||0),width:L(O.props.width)?O.props.width:j.width,startIndex:E,endIndex:$,updateId:"brush-".concat(C)})}),U(m,"renderReferenceElement",function(O,w,S){if(!O)return null;var _=m,T=_.clipPathId,j=m.state,E=j.xAxisMap,$=j.yAxisMap,C=j.offset,I=O.type.defaultProps||{},k=O.props,N=k.xAxisId,q=N===void 0?I.xAxisId:N,B=k.yAxisId,G=B===void 0?I.yAxisId:B;return M.cloneElement(O,{key:O.key||"".concat(w,"-").concat(S),xAxis:E[q],yAxis:$[G],viewBox:{x:C.left,y:C.top,width:C.width,height:C.height},clipPathId:T})}),U(m,"renderActivePoints",function(O){var w=O.item,S=O.activePoint,_=O.basePoint,T=O.childIndex,j=O.isRange,E=[],$=w.props.key,C=w.item.type.defaultProps!==void 0?R(R({},w.item.type.defaultProps),w.item.props):w.item.props,I=C.activeDot,k=C.dataKey,N=R(R({index:T,dataKey:k,cx:S.x,cy:S.y,r:4,fill:ap(w.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},F(I,!1)),Bi(I));return E.push(g.renderActiveDot(I,N,"".concat($,"-activePoint-").concat(T))),_?E.push(g.renderActiveDot(I,R(R({},N),{},{cx:_.x,cy:_.y}),"".concat($,"-basePoint-").concat(T))):j&&E.push(null),E}),U(m,"renderGraphicChild",function(O,w,S){var _=m.filterFormatItem(O,w,S);if(!_)return null;var T=m.getTooltipEventType(),j=m.state,E=j.isTooltipActive,$=j.tooltipAxis,C=j.activeTooltipIndex,I=j.activeLabel,k=m.props.children,N=Ce(k,Qe),q=_.props,B=q.points,G=q.isRange,Y=q.baseLine,z=_.item.type.defaultProps!==void 0?R(R({},_.item.type.defaultProps),_.item.props):_.item.props,Z=z.activeDot,se=z.hide,me=z.activeBar,We=z.activeShape,ln=!!(!se&&E&&N&&(Z||me||We)),De={};T!=="axis"&&N&&N.props.trigger==="click"?De={onClick:$i(m.handleItemMouseEnter,O.props.onClick)}:T!=="axis"&&(De={onMouseLeave:$i(m.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:$i(m.handleItemMouseEnter,O.props.onMouseEnter)});var Dt=M.cloneElement(O,R(R({},_.props),De));function wi(qt){return typeof $.dataKey=="function"?$.dataKey(qt.payload):null}if(ln)if(C>=0){var lr,fn;if($.dataKey&&!$.allowDuplicatedCategory){var Nt=typeof $.dataKey=="function"?wi:"payload.".concat($.dataKey.toString());lr=qi(B,Nt,I),fn=G&&Y&&qi(Y,Nt,I)}else lr=B==null?void 0:B[C],fn=G&&Y&&Y[C];if(We||me){var fr=O.props.activeIndex!==void 0?O.props.activeIndex:C;return[M.cloneElement(O,R(R(R({},_.props),De),{},{activeIndex:fr})),null,null]}if(!H(lr))return[Dt].concat(Zr(m.renderActivePoints({item:_,activePoint:lr,basePoint:fn,childIndex:C,isRange:G})))}else{var pn,dn=(pn=m.getItemByXY(m.state.activeCoordinate))!==null&&pn!==void 0?pn:{graphicalItem:Dt},pr=dn.graphicalItem,vn=pr.item,dr=vn===void 0?O:vn,Pi=pr.childIndex,Lt=R(R(R({},_.props),De),{},{activeIndex:Pi});return[M.cloneElement(dr,Lt),null,null]}return G?[Dt,null,null]:[Dt,null]}),U(m,"renderCustomized",function(O,w,S){return M.cloneElement(O,R(R({key:"recharts-customized-".concat(S)},m.props),m.state))}),U(m,"renderMap",{CartesianGrid:{handler:Mi,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:Mi},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:Mi},YAxis:{handler:Mi},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((x=b.id)!==null&&x!==void 0?x:$t("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=Wb(m.triggeredAfterMouseMove,(A=b.throttleDelay)!==null&&A!==void 0?A:1e3/60),m.state={},m}return ZD(g,v),UD(g,[{key:"componentDidMount",value:function(){var x,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,A=x.children,m=x.data,O=x.height,w=x.layout,S=Ce(A,Qe);if(S){var _=S.props.defaultIndex;if(!(typeof _!="number"||_<0||_>this.state.tooltipTicks.length-1)){var T=this.state.tooltipTicks[_]&&this.state.tooltipTicks[_].value,j=_f(this.state,m,_,T),E=this.state.tooltipTicks[_].coordinate,$=(this.state.offset.top+O)/2,C=w==="horizontal",I=C?{x:E,y:$}:{y:E,x:$},k=this.state.formattedGraphicalItems.find(function(q){var B=q.item;return B.type.name==="Scatter"});k&&(I=R(R({},I),k.props.points[_].tooltipPosition),j=k.props.points[_].tooltipPayload);var N={activeTooltipIndex:_,isTooltipActive:!0,activeLabel:T,activePayload:j,activeCoordinate:I};this.setState(N),this.renderCursor(S),this.accessibilityManager.setIndex(_)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var m,O;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(x){ll([Ce(x.children,Qe)],[Ce(this.props.children,Qe)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Ce(this.props.children,Qe);if(x&&typeof x.props.shared=="boolean"){var A=x.props.shared?"axis":"item";return u.indexOf(A)>=0?A:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var A=this.container,m=A.getBoundingClientRect(),O=A_(m),w={chartX:Math.round(x.pageX-O.left),chartY:Math.round(x.pageY-O.top)},S=m.width/A.offsetWidth||1,_=this.inRange(w.chartX,w.chartY,S);if(!_)return null;var T=this.state,j=T.xAxisMap,E=T.yAxisMap,$=this.getTooltipEventType(),C=Xg(this.state,this.props.data,this.props.layout,_);if($!=="axis"&&j&&E){var I=At(j).scale,k=At(E).scale,N=I&&I.invert?I.invert(w.chartX):null,q=k&&k.invert?k.invert(w.chartY):null;return R(R({},w),{},{xValue:N,yValue:q},C)}return C?R(R({},w),C):null}},{key:"inRange",value:function(x,A){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,w=x/m,S=A/m;if(O==="horizontal"||O==="vertical"){var _=this.state.offset,T=w>=_.left&&w<=_.left+_.width&&S>=_.top&&S<=_.top+_.height;return T?{x:w,y:S}:null}var j=this.state,E=j.angleAxisMap,$=j.radiusAxisMap;if(E&&$){var C=At(E);return qy({x:w,y:S},C)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,A=this.getTooltipEventType(),m=Ce(x,Qe),O={};m&&A==="axis"&&(m.props.trigger==="click"?O={onClick:this.handleClick}:O={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 w=Bi(this.props,this.handleOuterEvent);return R(R({},w),O)}},{key:"addListener",value:function(){tl.on(rl,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){tl.removeListener(rl,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,A,m){for(var O=this.state.formattedGraphicalItems,w=0,S=O.length;w<S;w++){var _=O[w];if(_.item===x||_.props.key===x.key||A===dt(_.item.type)&&m===_.childIndex)return _}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,A=this.state.offset,m=A.left,O=A.top,w=A.height,S=A.width;return P.createElement("defs",null,P.createElement("clipPath",{id:x},P.createElement("rect",{x:m,y:O,height:w,width:S})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(A,m){var O=Hg(m,2),w=O[0],S=O[1];return R(R({},A),{},U({},w,S.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(A,m){var O=Hg(m,2),w=O[0],S=O[1];return R(R({},A),{},U({},w,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var A;return(A=this.state.xAxisMap)===null||A===void 0||(A=A[x])===null||A===void 0?void 0:A.scale}},{key:"getYScaleByAxisId",value:function(x){var A;return(A=this.state.yAxisMap)===null||A===void 0||(A=A[x])===null||A===void 0?void 0:A.scale}},{key:"getItemByXY",value:function(x){var A=this.state,m=A.formattedGraphicalItems,O=A.activeItem;if(m&&m.length)for(var w=0,S=m.length;w<S;w++){var _=m[w],T=_.props,j=_.item,E=j.type.defaultProps!==void 0?R(R({},j.type.defaultProps),j.props):j.props,$=dt(j.type);if($==="Bar"){var C=(T.data||[]).find(function(q){return j$(x,q)});if(C)return{graphicalItem:_,payload:C}}else if($==="RadialBar"){var I=(T.data||[]).find(function(q){return qy(x,q)});if(I)return{graphicalItem:_,payload:I}}else if(Ya(_,O)||Za(_,O)||ai(_,O)){var k=oC({graphicalItem:_,activeTooltipItem:O,itemData:E.data}),N=E.activeIndex===void 0?k:E.activeIndex;return{graphicalItem:R(R({},_),{},{childIndex:N}),payload:ai(_,O)?E.data[k]:_.props.data[k]}}}return null}},{key:"render",value:function(){var x=this;if(!Cd(this))return null;var A=this.props,m=A.children,O=A.className,w=A.width,S=A.height,_=A.style,T=A.compact,j=A.title,E=A.desc,$=Ug(A,BD),C=F($,!1);if(T)return P.createElement(wg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement(pl,Or({},C,{width:w,height:S,title:j,desc:E}),this.renderClipPath(),kd(m,this.renderMap)));if(this.props.accessibilityLayer){var I,k;C.tabIndex=(I=this.props.tabIndex)!==null&&I!==void 0?I:0,C.role=(k=this.props.role)!==null&&k!==void 0?k:"application",C.onKeyDown=function(q){x.accessibilityManager.keyboardEvent(q)},C.onFocus=function(){x.accessibilityManager.focus()}}var N=this.parseEventsOfWrapper();return P.createElement(wg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement("div",Or({className:V("recharts-wrapper",O),style:R({position:"relative",cursor:"default",width:w,height:S},_)},N,{ref:function(B){x.container=B}}),P.createElement(pl,Or({},C,{width:w,height:S,title:j,desc:E,style:nN}),this.renderClipPath(),kd(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(M.Component);U(y,"displayName",r),U(y,"defaultProps",R({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),U(y,"getDerivedStateFromProps",function(v,g){var b=v.dataKey,x=v.data,A=v.children,m=v.width,O=v.height,w=v.layout,S=v.stackOffset,_=v.margin,T=g.dataStartIndex,j=g.dataEndIndex;if(g.updateId===void 0){var E=Yg(v);return R(R(R({},E),{},{updateId:0},d(R(R({props:v},E),{},{updateId:0}),g)),{},{prevDataKey:b,prevData:x,prevWidth:m,prevHeight:O,prevLayout:w,prevStackOffset:S,prevMargin:_,prevChildren:A})}if(b!==g.prevDataKey||x!==g.prevData||m!==g.prevWidth||O!==g.prevHeight||w!==g.prevLayout||S!==g.prevStackOffset||!Ar(_,g.prevMargin)){var $=Yg(v),C={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},I=R(R({},Xg(g,x,w)),{},{updateId:g.updateId+1}),k=R(R(R({},$),C),I);return R(R(R({},k),d(R({props:v},k),g)),{},{prevDataKey:b,prevData:x,prevWidth:m,prevHeight:O,prevLayout:w,prevStackOffset:S,prevMargin:_,prevChildren:A})}if(!ll(A,g.prevChildren)){var N,q,B,G,Y=Ce(A,Lr),z=Y&&(N=(q=Y.props)===null||q===void 0?void 0:q.startIndex)!==null&&N!==void 0?N:T,Z=Y&&(B=(G=Y.props)===null||G===void 0?void 0:G.endIndex)!==null&&B!==void 0?B:j,se=z!==T||Z!==j,me=!H(x),We=me&&!se?g.updateId:g.updateId+1;return R(R({updateId:We},d(R(R({props:v},g),{},{updateId:We,dataStartIndex:z,dataEndIndex:Z}),g)),{},{prevChildren:A,dataStartIndex:z,dataEndIndex:Z})}return null}),U(y,"renderActiveDot",function(v,g,b){var x;return M.isValidElement(v)?x=M.cloneElement(v,g):W(v)?x=v(g):x=P.createElement(on,g),P.createElement(X,{className:"recharts-active-dot",key:b},x)});var h=M.forwardRef(function(g,b){return P.createElement(y,Or({},g,{ref:b}))});return h.displayName=y.displayName,h},dN=ur({chartName:"LineChart",GraphicalChild:bi,axisComponents:[{axisType:"xAxis",AxisComp:Xe},{axisType:"yAxis",AxisComp:Ye}],formatAxisMap:Qa}),vN=ur({chartName:"BarChart",GraphicalChild:or,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Xe},{axisType:"yAxis",AxisComp:Ye}],formatAxisMap:Qa}),hN=ur({chartName:"PieChart",GraphicalChild:bt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:ar},{axisType:"radiusAxis",AxisComp:un}],formatAxisMap:up,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),yN=ur({chartName:"RadarChart",GraphicalChild:yi,axisComponents:[{axisType:"angleAxis",AxisComp:ar},{axisType:"radiusAxis",AxisComp:un}],formatAxisMap:up,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),mN=ur({chartName:"ScatterChart",GraphicalChild:Oi,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:Xe},{axisType:"yAxis",AxisComp:Ye},{axisType:"zAxis",AxisComp:xi}],formatAxisMap:Qa}),gN=ur({chartName:"AreaChart",GraphicalChild:Rt,axisComponents:[{axisType:"xAxis",AxisComp:Xe},{axisType:"yAxis",AxisComp:Ye}],formatAxisMap:Qa}),bN=ur({chartName:"RadialBarChart",GraphicalChild:mi,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:ar},{axisType:"radiusAxis",AxisComp:un}],formatAxisMap:up,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const xN={light:"",dark:".dark"},l0=M.createContext(null);function f0(){const t=M.useContext(l0);if(!t)throw new Error("useChart must be used within a <ChartContainer />");return t}const kt=M.forwardRef(({id:t,className:e,children:r,config:n,...i},a)=>{const o=M.useId(),u=`chart-${t||o.replace(/:/g,"")}`;return M.useEffect(()=>{const c=requestAnimationFrame(()=>{window.dispatchEvent(new Event("resize"))});return()=>cancelAnimationFrame(c)},[]),D.jsx(l0.Provider,{value:{config:n},children:D.jsxs("div",{"data-chart":u,ref:a,className:Fe("flex w-full min-w-0 aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-layer]:outline-none [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",e),...i,children:[D.jsx(AN,{}),D.jsx(wN,{id:u,config:n}),D.jsx(h_,{children:r})]})})});kt.displayName="Chart";const ON=["[data-chart] .recharts-cartesian-grid line[stroke='#ccc'] { stroke: color-mix(in oklch, var(--color-border) 50%, transparent); }","[data-chart] .recharts-dot[stroke='#fff'] { stroke: transparent; }","[data-chart] .recharts-polar-grid [stroke='#ccc'] { stroke: var(--color-border); }","[data-chart] .recharts-reference-line [stroke='#ccc'] { stroke: var(--color-border); }","[data-chart] .recharts-sector[stroke='#fff'] { stroke: transparent; }"].join(`
74
- `);function AN(){return D.jsx("style",{dangerouslySetInnerHTML:{__html:ON}})}const wN=({id:t,config:e})=>{const r=Object.entries(e).filter(([,n])=>n.theme||n.color);return r.length?D.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(xN).map(([n,i])=>`
64
+ A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(e,",").concat(r+i-u*y," Z")}else f="M ".concat(e,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},E$=function(e,r){if(!e||!r)return!1;var n=e.x,i=e.y,a=r.x,o=r.y,u=r.width,c=r.height;if(Math.abs(u)>0&&Math.abs(c)>0){var s=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+c),p=Math.max(o,o+c);return n>=s&&n<=f&&i>=l&&i<=p}return!1},T$={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},sp=function(e){var r=ym(ym({},T$),e),n=M.useRef(),i=M.useState(-1),a=x$(i,2),o=a[0],u=a[1];M.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var A=n.current.getTotalLength();A&&u(A)}catch{}},[]);var c=r.x,s=r.y,f=r.width,l=r.height,p=r.radius,d=r.className,y=r.animationEasing,h=r.animationDuration,v=r.animationBegin,b=r.isAnimationActive,g=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||f===0||l===0)return null;var x=V("recharts-rectangle",d);return g?P.createElement(Ee,{canBegin:o>0,from:{width:f,height:l,x:c,y:s},to:{width:f,height:l,x:c,y:s},duration:h,animationEasing:y,isActive:g},function(A){var m=A.width,O=A.height,w=A.x,S=A.y;return P.createElement(Ee,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:h,isActive:b,easing:y},P.createElement("path",ia({},F(r,!0),{className:x,d:mm(w,S,m,O,p),ref:n})))}):P.createElement("path",ia({},F(r,!0),{className:x,d:mm(c,s,f,l,p)}))},$$=["points","className","baseLinePoints","connectNulls"];function gr(){return gr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gr.apply(this,arguments)}function I$(t,e){if(t==null)return{};var r=C$(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function C$(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function gm(t){return D$(t)||M$(t)||k$(t)||R$()}function R$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
65
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k$(t,e){if(t){if(typeof t=="string")return Vl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vl(t,e)}}function M$(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function D$(t){if(Array.isArray(t))return Vl(t)}function Vl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var bm=function(e){return e&&e.x===+e.x&&e.y===+e.y},N$=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return e.forEach(function(n){bm(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),bm(e[0])&&r[r.length-1].push(e[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},En=function(e,r){var n=N$(e);r&&(n=[n.reduce(function(a,o){return[].concat(gm(a),gm(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,c){return"".concat(o).concat(c===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},L$=function(e,r,n){var i=En(e,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(En(r.reverse(),n).slice(1))},eO=function(e){var r=e.points,n=e.className,i=e.baseLinePoints,a=e.connectNulls,o=I$(e,$$);if(!r||!r.length)return null;var u=V("recharts-polygon",n);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",s=L$(r,i,a);return P.createElement("g",{className:u},P.createElement("path",gr({},F(o,!0),{fill:s.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:s})),c?P.createElement("path",gr({},F(o,!0),{fill:"none",d:En(r,a)})):null,c?P.createElement("path",gr({},F(o,!0),{fill:"none",d:En(i,a)})):null)}var f=En(r,a);return P.createElement("path",gr({},F(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function Xl(){return Xl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Xl.apply(this,arguments)}var on=function(e){var r=e.cx,n=e.cy,i=e.r,a=e.className,o=V("recharts-dot",a);return r===+r&&n===+n&&i===+i?M.createElement("circle",Xl({},F(e,!1),Fi(e),{className:o,cx:r,cy:n,r:i})):null};function Qn(t){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qn(t)}var q$=["x","y","top","left","width","height","className"];function Yl(){return Yl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Yl.apply(this,arguments)}function xm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function B$(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xm(Object(r),!0).forEach(function(n){F$(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function F$(t,e,r){return e=z$(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z$(t){var e=K$(t,"string");return Qn(e)=="symbol"?e:e+""}function K$(t,e){if(Qn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function W$(t,e){if(t==null)return{};var r=G$(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function G$(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var H$=function(e,r,n,i,a,o){return"M".concat(e,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},U$=function(e){var r=e.x,n=r===void 0?0:r,i=e.y,a=i===void 0?0:i,o=e.top,u=o===void 0?0:o,c=e.left,s=c===void 0?0:c,f=e.width,l=f===void 0?0:f,p=e.height,d=p===void 0?0:p,y=e.className,h=W$(e,q$),v=B$({x:n,y:a,top:u,left:s,width:l,height:d},h);return!L(n)||!L(a)||!L(l)||!L(d)||!L(u)||!L(s)?null:P.createElement("path",Yl({},F(v,!0),{className:V("recharts-cross",y),d:H$(n,a,l,d,u,s)}))},V$=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function ei(t){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ei(t)}function X$(t,e){if(t==null)return{};var r=Y$(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Y$(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function ht(){return ht=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ht.apply(this,arguments)}function Om(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ti(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Om(Object(r),!0).forEach(function(n){Z$(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Om(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Z$(t,e,r){return e=J$(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function J$(t){var e=Q$(t,"string");return ei(e)=="symbol"?e:e+""}function Q$(t,e){if(ei(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var eI=function(e,r,n,i){var a="";return i.forEach(function(o,u){var c=J(r,n,e,o);u?a+="L ".concat(c.x,",").concat(c.y):a+="M ".concat(c.x,",").concat(c.y)}),a+="Z",a},tI=function(e){var r=e.cx,n=e.cy,i=e.innerRadius,a=e.outerRadius,o=e.polarAngles,u=e.radialLines;if(!o||!o.length||!u)return null;var c=ti({stroke:"#ccc"},F(e,!1));return P.createElement("g",{className:"recharts-polar-grid-angle"},o.map(function(s){var f=J(r,n,i,s),l=J(r,n,a,s);return P.createElement("line",ht({},c,{key:"line-".concat(s),x1:f.x,y1:f.y,x2:l.x,y2:l.y}))}))},rI=function(e){var r=e.cx,n=e.cy,i=e.radius,a=e.index,o=ti(ti({stroke:"#ccc"},F(e,!1)),{},{fill:"none"});return P.createElement("circle",ht({},o,{className:V("recharts-polar-grid-concentric-circle",e.className),key:"circle-".concat(a),cx:r,cy:n,r:i}))},nI=function(e){var r=e.radius,n=e.index,i=ti(ti({stroke:"#ccc"},F(e,!1)),{},{fill:"none"});return P.createElement("path",ht({},i,{className:V("recharts-polar-grid-concentric-polygon",e.className),key:"path-".concat(n),d:eI(r,e.cx,e.cy,e.polarAngles)}))},iI=function(e){var r=e.polarRadius,n=e.gridType;return!r||!r.length?null:P.createElement("g",{className:"recharts-polar-grid-concentric"},r.map(function(i,a){var o=a;return n==="circle"?P.createElement(rI,ht({key:o},e,{radius:i,index:a})):P.createElement(nI,ht({key:o},e,{radius:i,index:a}))}))},tO=function(e){var r=e.cx,n=r===void 0?0:r,i=e.cy,a=i===void 0?0:i,o=e.innerRadius,u=o===void 0?0:o,c=e.outerRadius,s=c===void 0?0:c,f=e.gridType,l=f===void 0?"polygon":f,p=e.radialLines,d=p===void 0?!0:p,y=X$(e,V$);return s<=0?null:P.createElement("g",{className:"recharts-polar-grid"},P.createElement(tI,ht({cx:n,cy:a,innerRadius:u,outerRadius:s,gridType:l,radialLines:d},y)),P.createElement(iI,ht({cx:n,cy:a,innerRadius:u,outerRadius:s,gridType:l,radialLines:d},y)))};tO.displayName="PolarGrid";var $s,Am;function aI(){if(Am)return $s;Am=1;var t=Ga(),e=fx(),r=ut();function n(i,a){return i&&i.length?t(i,r(a,2),e):void 0}return $s=n,$s}var oI=aI();const uI=re(oI);var Is,wm;function cI(){if(wm)return Is;wm=1;var t=Ga(),e=ut(),r=px();function n(i,a){return i&&i.length?t(i,e(a,2),r):void 0}return Is=n,Is}var sI=cI();const lI=re(sI);var fI=["cx","cy","angle","ticks","axisLine"],pI=["ticks","tick","angle","tickFormatter","stroke"];function Cr(t){"@babel/helpers - typeof";return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cr(t)}function Tn(){return Tn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Tn.apply(this,arguments)}function Pm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ft(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Pm(Object(r),!0).forEach(function(n){Xa(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Sm(t,e){if(t==null)return{};var r=dI(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function dI(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function vI(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,nO(n.key),n)}}function hI(t,e,r){return e&&_m(t.prototype,e),r&&_m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function yI(t,e,r){return e=aa(e),mI(t,rO()?Reflect.construct(e,r||[],aa(t).constructor):e.apply(t,r))}function mI(t,e){if(e&&(Cr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gI(t)}function gI(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rO=function(){return!!t})()}function aa(t){return aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},aa(t)}function bI(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zl(t,e)}function Zl(t,e){return Zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zl(t,e)}function Xa(t,e,r){return e=nO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nO(t){var e=xI(t,"string");return Cr(e)=="symbol"?e:e+""}function xI(t,e){if(Cr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var un=(function(t){function e(){return vI(this,e),yI(this,e,arguments)}return bI(e,t),hI(e,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,c=a.cy;return J(u,c,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,c=uI(u,function(f){return f.coordinate||0}),s=lI(u,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:s.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,c=n.axisLine,s=Sm(n,fI),f=u.reduce(function(y,h){return[Math.min(y[0],h.coordinate),Math.max(y[1],h.coordinate)]},[1/0,-1/0]),l=J(i,a,f[0],o),p=J(i,a,f[1],o),d=Ft(Ft(Ft({},F(s,!1)),{},{fill:"none"},F(c,!1)),{},{x1:l.x,y1:l.y,x2:p.x,y2:p.y});return P.createElement("line",Tn({className:"recharts-polar-radius-axis-line"},d))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,c=i.tickFormatter,s=i.stroke,f=Sm(i,pI),l=this.getTickTextAnchor(),p=F(f,!1),d=F(o,!1),y=a.map(function(h,v){var b=n.getTickValueCoord(h),g=Ft(Ft(Ft(Ft({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(b.x,", ").concat(b.y,")")},p),{},{stroke:"none",fill:s},d),{},{index:v},b),{},{payload:h});return P.createElement(X,Tn({className:V("recharts-polar-radius-axis-tick",zx(o)),key:"tick-".concat(h.coordinate)},nt(n.props,h,v)),e.renderTickItem(o,g,c?c(h.value,v):h.value))});return P.createElement(X,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:P.createElement(X,{className:V("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),xe.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):W(n)?o=n(i):o=P.createElement(Jt,Tn({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(M.PureComponent);Xa(un,"displayName","PolarRadiusAxis");Xa(un,"axisType","radiusAxis");Xa(un,"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 Rr(t){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rr(t)}function Wt(){return Wt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Wt.apply(this,arguments)}function jm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function zt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?jm(Object(r),!0).forEach(function(n){Ya(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function OI(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Em(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,aO(n.key),n)}}function AI(t,e,r){return e&&Em(t.prototype,e),r&&Em(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function wI(t,e,r){return e=oa(e),PI(t,iO()?Reflect.construct(e,r||[],oa(t).constructor):e.apply(t,r))}function PI(t,e){if(e&&(Rr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SI(t)}function SI(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function iO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iO=function(){return!!t})()}function oa(t){return oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oa(t)}function _I(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jl(t,e)}function Jl(t,e){return Jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jl(t,e)}function Ya(t,e,r){return e=aO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aO(t){var e=jI(t,"string");return Rr(e)=="symbol"?e:e+""}function jI(t,e){if(Rr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var EI=Math.PI/180,Tm=1e-5,ar=(function(t){function e(){return OI(this,e),wI(this,e,arguments)}return _I(e,t),AI(e,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,c=i.orientation,s=i.tickSize,f=s||8,l=J(a,o,u,n.coordinate),p=J(a,o,u+(c==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:p.x,y2:p.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*EI),o;return a>Tm?o=i==="outer"?"start":"end":a<-Tm?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,c=n.axisLineType,s=zt(zt({},F(this.props,!1)),{},{fill:"none"},F(u,!1));if(c==="circle")return P.createElement(on,Wt({className:"recharts-polar-angle-axis-line"},s,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(p){return J(i,a,o,p.coordinate)});return P.createElement(eO,Wt({className:"recharts-polar-angle-axis-line"},s,{points:l}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,c=i.tickFormatter,s=i.stroke,f=F(this.props,!1),l=F(o,!1),p=zt(zt({},f),{},{fill:"none"},F(u,!1)),d=a.map(function(y,h){var v=n.getTickLineCoord(y),b=n.getTickTextAnchor(y),g=zt(zt(zt({textAnchor:b},f),{},{stroke:"none",fill:s},l),{},{index:h,payload:y,x:v.x2,y:v.y2});return P.createElement(X,Wt({className:V("recharts-polar-angle-axis-tick",zx(o)),key:"tick-".concat(y.coordinate)},nt(n.props,y,h)),u&&P.createElement("line",Wt({className:"recharts-polar-angle-axis-tick-line"},p,v)),o&&e.renderTickItem(o,g,c?c(y.value,h):y.value))});return P.createElement(X,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:P.createElement(X,{className:V("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):W(n)?o=n(i):o=P.createElement(Jt,Wt({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(M.PureComponent);Ya(ar,"displayName","PolarAngleAxis");Ya(ar,"axisType","angleAxis");Ya(ar,"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 Cs,$m;function TI(){if($m)return Cs;$m=1;var t=jb(),e=t(Object.getPrototypeOf,Object);return Cs=e,Cs}var Rs,Im;function $I(){if(Im)return Rs;Im=1;var t=mt(),e=TI(),r=gt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,c=o.call(Object);function s(f){if(!r(f)||t(f)!=n)return!1;var l=e(f);if(l===null)return!0;var p=u.call(l,"constructor")&&l.constructor;return typeof p=="function"&&p instanceof p&&o.call(p)==c}return Rs=s,Rs}var II=$I();const CI=re(II);var ks,Cm;function RI(){if(Cm)return ks;Cm=1;var t=mt(),e=gt(),r="[object Boolean]";function n(i){return i===!0||i===!1||e(i)&&t(i)==r}return ks=n,ks}var kI=RI();const MI=re(kI);function ri(t){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ri(t)}function ua(){return ua=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ua.apply(this,arguments)}function DI(t,e){return BI(t)||qI(t,e)||LI(t,e)||NI()}function NI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
66
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LI(t,e){if(t){if(typeof t=="string")return Rm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rm(t,e)}}function Rm(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function qI(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function BI(t){if(Array.isArray(t))return t}function km(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Mm(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?km(Object(r),!0).forEach(function(n){FI(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):km(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function FI(t,e,r){return e=zI(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zI(t){var e=KI(t,"string");return ri(e)=="symbol"?e:e+""}function KI(t,e){if(ri(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Dm=function(e,r,n,i,a){var o=n-i,u;return u="M ".concat(e,",").concat(r),u+="L ".concat(e+n,",").concat(r),u+="L ".concat(e+n-o/2,",").concat(r+a),u+="L ".concat(e+n-o/2-i,",").concat(r+a),u+="L ".concat(e,",").concat(r," Z"),u},WI={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},GI=function(e){var r=Mm(Mm({},WI),e),n=M.useRef(),i=M.useState(-1),a=DI(i,2),o=a[0],u=a[1];M.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&u(x)}catch{}},[]);var c=r.x,s=r.y,f=r.upperWidth,l=r.lowerWidth,p=r.height,d=r.className,y=r.animationEasing,h=r.animationDuration,v=r.animationBegin,b=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||p!==+p||f===0&&l===0||p===0)return null;var g=V("recharts-trapezoid",d);return b?P.createElement(Ee,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:s},to:{upperWidth:f,lowerWidth:l,height:p,x:c,y:s},duration:h,animationEasing:y,isActive:b},function(x){var A=x.upperWidth,m=x.lowerWidth,O=x.height,w=x.x,S=x.y;return P.createElement(Ee,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:h,easing:y},P.createElement("path",ua({},F(r,!0),{className:g,d:Dm(w,S,A,m,O),ref:n})))}):P.createElement("g",null,P.createElement("path",ua({},F(r,!0),{className:g,d:Dm(c,s,f,l,p)})))},HI=["option","shapeType","propTransformer","activeClassName","isActive"];function ni(t){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ni(t)}function UI(t,e){if(t==null)return{};var r=VI(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function VI(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Nm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ca(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Nm(Object(r),!0).forEach(function(n){XI(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function XI(t,e,r){return e=YI(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function YI(t){var e=ZI(t,"string");return ni(e)=="symbol"?e:e+""}function ZI(t,e){if(ni(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function JI(t,e){return ca(ca({},e),t)}function QI(t,e){return t==="symbols"}function Lm(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return P.createElement(sp,r);case"trapezoid":return P.createElement(GI,r);case"sector":return P.createElement(Hx,r);case"symbols":if(QI(e))return P.createElement(qa,r);break;default:return null}}function eC(t){return M.isValidElement(t)?t.props:t}function ii(t){var e=t.option,r=t.shapeType,n=t.propTransformer,i=n===void 0?JI:n,a=t.activeClassName,o=a===void 0?"recharts-active-shape":a,u=t.isActive,c=UI(t,HI),s;if(M.isValidElement(e))s=M.cloneElement(e,ca(ca({},c),eC(e)));else if(W(e))s=e(c);else if(CI(e)&&!MI(e)){var f=i(e,c);s=P.createElement(Lm,{shapeType:r,elementProps:f})}else{var l=c;s=P.createElement(Lm,{shapeType:r,elementProps:l})}return u?P.createElement(X,{className:o},s):s}function Za(t,e){return e!=null&&"trapezoids"in t.props}function Ja(t,e){return e!=null&&"sectors"in t.props}function ai(t,e){return e!=null&&"points"in t.props}function tC(t,e){var r,n,i=t.x===(e==null||(r=e.labelViewBox)===null||r===void 0?void 0:r.x)||t.x===e.x,a=t.y===(e==null||(n=e.labelViewBox)===null||n===void 0?void 0:n.y)||t.y===e.y;return i&&a}function rC(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function nC(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function iC(t,e){var r;return Za(t,e)?r=tC:Ja(t,e)?r=rC:ai(t,e)&&(r=nC),r}function aC(t,e){var r;return Za(t,e)?r="trapezoids":Ja(t,e)?r="sectors":ai(t,e)&&(r="points"),r}function oC(t,e){if(Za(t,e)){var r;return(r=e.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Ja(t,e)){var n;return(n=e.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return ai(t,e)?e.payload:{}}function uC(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=aC(r,e),a=oC(r,e),o=n.filter(function(c,s){var f=it(a,c),l=r.props[i].filter(function(y){var h=iC(r,e);return h(y,e)}),p=r.props[i].indexOf(l[l.length-1]),d=s===p;return f&&d}),u=n.indexOf(o[o.length-1]);return u}var Ni;function kr(t){"@babel/helpers - typeof";return kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kr(t)}function br(){return br=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},br.apply(this,arguments)}function qm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function oe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qm(Object(r),!0).forEach(function(n){ze(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function cC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bm(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,uO(n.key),n)}}function sC(t,e,r){return e&&Bm(t.prototype,e),r&&Bm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function lC(t,e,r){return e=sa(e),fC(t,oO()?Reflect.construct(e,r||[],sa(t).constructor):e.apply(t,r))}function fC(t,e){if(e&&(kr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pC(t)}function pC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oO=function(){return!!t})()}function sa(t){return sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sa(t)}function dC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ql(t,e)}function Ql(t,e){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ql(t,e)}function ze(t,e,r){return e=uO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uO(t){var e=vC(t,"string");return kr(e)=="symbol"?e:e+""}function vC(t,e){if(kr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var bt=(function(t){function e(r){var n;return cC(this,e),n=lC(this,e,[r]),ze(n,"pieRef",null),ze(n,"sectorRefs",[]),ze(n,"id",$t("recharts-pie-")),ze(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),W(i)&&i()}),ze(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),W(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return dC(e,t),sC(e,[{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,c=a.dataKey,s=a.valueKey,f=F(this.props,!1),l=F(o,!1),p=F(u,!1),d=o&&o.offsetRadius||20,y=n.map(function(h,v){var b=(h.startAngle+h.endAngle)/2,g=J(h.cx,h.cy,h.outerRadius+d,b),x=oe(oe(oe(oe({},f),h),{},{stroke:"none"},l),{},{index:v,textAnchor:e.getTextAnchor(g.x,h.cx)},g),A=oe(oe(oe(oe({},f),h),{},{fill:"none",stroke:h.fill},p),{},{index:v,points:[J(h.cx,h.cy,h.outerRadius,b),g]}),m=c;return H(c)&&H(s)?m="value":H(c)&&(m=s),P.createElement(X,{key:"label-".concat(h.startAngle,"-").concat(h.endAngle,"-").concat(h.midAngle,"-").concat(v)},u&&e.renderLabelLineItem(u,A,"line"),e.renderLabelItem(o,x,ie(h,m)))});return P.createElement(X,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,c=a.inactiveShape;return n.map(function(s,f){if((s==null?void 0:s.startAngle)===0&&(s==null?void 0:s.endAngle)===0&&n.length!==1)return null;var l=i.isActiveIndex(f),p=c&&i.hasActiveIndex()?c:null,d=l?o:p,y=oe(oe({},s),{},{stroke:u?s.fill:s.stroke,tabIndex:-1});return P.createElement(X,br({ref:function(v){v&&!i.sectorRefs.includes(v)&&i.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},nt(i.props,s,f),{key:"sector-".concat(s==null?void 0:s.startAngle,"-").concat(s==null?void 0:s.endAngle,"-").concat(s.midAngle,"-").concat(f)}),P.createElement(ii,br({option:d,isActive:l,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,s=i.animationEasing,f=i.animationId,l=this.state,p=l.prevSectors,d=l.prevIsAnimationActive;return P.createElement(Ee,{begin:u,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(d),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var h=y.t,v=[],b=a&&a[0],g=b.startAngle;return a.forEach(function(x,A){var m=p&&p[A],O=A>0?ke(x,"paddingAngle",0):0;if(m){var w=te(m.endAngle-m.startAngle,x.endAngle-x.startAngle),S=oe(oe({},x),{},{startAngle:g+O,endAngle:g+w(h)+O});v.push(S),g=S.endAngle}else{var _=x.endAngle,T=x.startAngle,j=te(0,_-T),E=j(h),$=oe(oe({},x),{},{startAngle:g+O,endAngle:g+E+O});v.push($),g=$.endAngle}}),P.createElement(X,null,n.renderSectorsStatically(v))})}},{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||!it(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,c=i.label,s=i.cx,f=i.cy,l=i.innerRadius,p=i.outerRadius,d=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!L(s)||!L(f)||!L(l)||!L(p))return null;var h=V("recharts-pie",u);return P.createElement(X,{tabIndex:this.props.rootTabIndex,className:h,ref:function(b){n.pieRef=b}},this.renderSectors(),c&&this.renderLabels(o),xe.renderCallByParent(this.props,null,!1),(!d||y)&&Me.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(P.isValidElement(n))return P.cloneElement(n,i);if(W(n))return n(i);var o=V("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return P.createElement(_t,br({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(P.isValidElement(n))return P.cloneElement(n,i);var o=a;if(W(n)&&(o=n(i),P.isValidElement(o)))return o;var u=V("recharts-pie-label-text",typeof n!="boolean"&&!W(n)?n.className:"");return P.createElement(Jt,br({},i,{alignmentBaseline:"middle",className:u}),o)}}])})(M.PureComponent);Ni=bt;ze(bt,"displayName","Pie");ze(bt,"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:!Je.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});ze(bt,"parseDeltaAngle",function(t,e){var r=Oe(e-t),n=Math.min(Math.abs(e-t),360);return r*n});ze(bt,"getRealPieData",function(t){var e=t.data,r=t.children,n=F(t,!1),i=Se(r,hi);return e&&e.length?e.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)}):[]});ze(bt,"parseCoordinateOfPie",function(t,e){var r=e.top,n=e.left,i=e.width,a=e.height,o=Fx(i,a),u=n+je(t.cx,i,i/2),c=r+je(t.cy,a,a/2),s=je(t.innerRadius,o,0),f=je(t.outerRadius,o,o*.8),l=t.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:c,innerRadius:s,outerRadius:f,maxRadius:l}});ze(bt,"getComposedData",function(t){var e=t.item,r=t.offset,n=e.type.defaultProps!==void 0?oe(oe({},e.type.defaultProps),e.props):e.props,i=Ni.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,c=n.paddingAngle,s=n.dataKey,f=n.nameKey,l=n.valueKey,p=n.tooltipType,d=Math.abs(n.minAngle),y=Ni.parseCoordinateOfPie(n,r),h=Ni.parseDeltaAngle(o,u),v=Math.abs(h),b=s;H(s)&&H(l)?(Ve(!1,`Use "dataKey" to specify the value of pie,
67
+ the props "valueKey" will be deprecated in 1.1.0`),b="value"):H(s)&&(Ve(!1,`Use "dataKey" to specify the value of pie,
68
+ the props "valueKey" will be deprecated in 1.1.0`),b=l);var g=i.filter(function(S){return ie(S,b,0)!==0}).length,x=(v>=360?g:g-1)*c,A=v-g*d-x,m=i.reduce(function(S,_){var T=ie(_,b,0);return S+(L(T)?T:0)},0),O;if(m>0){var w;O=i.map(function(S,_){var T=ie(S,b,0),j=ie(S,f,_),E=(L(T)?T:0)/m,$;_?$=w.endAngle+Oe(h)*c*(T!==0?1:0):$=o;var C=$+Oe(h)*((T!==0?d:0)+E*A),I=($+C)/2,k=(y.innerRadius+y.outerRadius)/2,N=[{name:j,value:T,payload:S,dataKey:b,type:p}],q=J(y.cx,y.cy,k,I);return w=oe(oe(oe({percent:E,cornerRadius:a,name:j,tooltipPayload:N,midAngle:I,middleRadius:k,tooltipPosition:q},S),y),{},{value:ie(S,b),startAngle:$,endAngle:C,payload:S,paddingAngle:Oe(h)*c}),w})}return oe(oe({},y),{},{sectors:O,data:i})});var Ms,Fm;function hC(){if(Fm)return Ms;Fm=1;function t(e){return e&&e.length?e[0]:void 0}return Ms=t,Ms}var Ds,zm;function yC(){return zm||(zm=1,Ds=hC()),Ds}var mC=yC();const gC=re(mC);var bC=["key"];function Mr(t){"@babel/helpers - typeof";return Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mr(t)}function xC(t,e){if(t==null)return{};var r=OC(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function OC(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function la(){return la=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},la.apply(this,arguments)}function Km(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function _e(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Km(Object(r),!0).forEach(function(n){lt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Km(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function AC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wm(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sO(n.key),n)}}function wC(t,e,r){return e&&Wm(t.prototype,e),r&&Wm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function PC(t,e,r){return e=fa(e),SC(t,cO()?Reflect.construct(e,r||[],fa(t).constructor):e.apply(t,r))}function SC(t,e){if(e&&(Mr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _C(t)}function _C(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cO=function(){return!!t})()}function fa(t){return fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fa(t)}function jC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ef(t,e)}function ef(t,e){return ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ef(t,e)}function lt(t,e,r){return e=sO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sO(t){var e=EC(t,"string");return Mr(e)=="symbol"?e:e+""}function EC(t,e){if(Mr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var yi=(function(t){function e(){var r;AC(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=PC(this,e,[].concat(i)),lt(r,"state",{isAnimationFinished:!1}),lt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),W(o)&&o()}),lt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),W(o)&&o()}),lt(r,"handleMouseEnter",function(o){var u=r.props.onMouseEnter;u&&u(r.props,o)}),lt(r,"handleMouseLeave",function(o){var u=r.props.onMouseLeave;u&&u(r.props,o)}),r}return jC(e,t),wC(e,[{key:"renderDots",value:function(n){var i=this.props,a=i.dot,o=i.dataKey,u=F(this.props,!1),c=F(a,!0),s=n.map(function(f,l){var p=_e(_e(_e({key:"dot-".concat(l),r:3},u),c),{},{dataKey:o,cx:f.x,cy:f.y,index:l,payload:f});return e.renderDotItem(a,p)});return P.createElement(X,{className:"recharts-radar-dots"},s)}},{key:"renderPolygonStatically",value:function(n){var i=this.props,a=i.shape,o=i.dot,u=i.isRange,c=i.baseLinePoints,s=i.connectNulls,f;return P.isValidElement(a)?f=P.cloneElement(a,_e(_e({},this.props),{},{points:n})):W(a)?f=a(_e(_e({},this.props),{},{points:n})):f=P.createElement(eO,la({},F(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:n,baseLinePoints:u?c:null,connectNulls:s})),P.createElement(X,{className:"recharts-radar-polygon"},f,o?this.renderDots(n):null)}},{key:"renderPolygonWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,s=i.animationEasing,f=i.animationId,l=this.state.prevPoints;return P.createElement(Ee,{begin:u,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var d=p.t,y=l&&l.length/a.length,h=a.map(function(v,b){var g=l&&l[Math.floor(b*y)];if(g){var x=te(g.x,v.x),A=te(g.y,v.y);return _e(_e({},v),{},{x:x(d),y:A(d)})}var m=te(v.cx,v.x),O=te(v.cy,v.y);return _e(_e({},v),{},{x:m(d),y:O(d)})});return n.renderPolygonStatically(h)})}},{key:"renderPolygon",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=n.isRange,u=this.state.prevPoints;return a&&i&&i.length&&!o&&(!u||!it(u,i))?this.renderPolygonWithAnimation():this.renderPolygonStatically(i)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.className,o=n.points,u=n.isAnimationActive;if(i||!o||!o.length)return null;var c=this.state.isAnimationFinished,s=V("recharts-radar",a);return P.createElement(X,{className:s},this.renderPolygon(),(!u||c)&&Me.renderCallByParent(this.props,o))}}],[{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:"renderDotItem",value:function(n,i){var a;if(P.isValidElement(n))a=P.cloneElement(n,i);else if(W(n))a=n(i);else{var o=i.key,u=xC(i,bC);a=P.createElement(on,la({},u,{key:o,className:V("recharts-radar-dot",typeof n!="boolean"?n.className:"")}))}return a}}])})(M.PureComponent);lt(yi,"displayName","Radar");lt(yi,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Je.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});lt(yi,"getComposedData",function(t){var e=t.radiusAxis,r=t.angleAxis,n=t.displayedData,i=t.dataKey,a=t.bandSize,o=r.cx,u=r.cy,c=!1,s=[],f=r.type!=="number"?a??0:0;n.forEach(function(p,d){var y=ie(p,r.dataKey,d),h=ie(p,i),v=r.scale(y)+f,b=Array.isArray(h)?Wx(h):h,g=H(b)?void 0:e.scale(b);Array.isArray(h)&&h.length>=2&&(c=!0),s.push(_e(_e({},J(o,u,g,v)),{},{name:y,value:h,cx:o,cy:u,radius:g,angle:v,payload:p}))});var l=[];return c&&s.forEach(function(p){if(Array.isArray(p.value)){var d=gC(p.value),y=H(d)?void 0:e.scale(d);l.push(_e(_e({},p),{},{radius:y},J(o,u,y,p.angle)))}else l.push(p)}),{points:s,isRange:c,baseLinePoints:l}});function oi(t){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oi(t)}function tf(){return tf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},tf.apply(this,arguments)}function Gm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ns(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Gm(Object(r),!0).forEach(function(n){TC(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function TC(t,e,r){return e=$C(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $C(t){var e=IC(t,"string");return oi(e)=="symbol"?e:e+""}function IC(t,e){if(oi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hm(t){return typeof t=="string"?parseInt(t,10):t}function CC(t,e){var r="".concat(e.cx||t.cx),n=Number(r),i="".concat(e.cy||t.cy),a=Number(i);return Ns(Ns(Ns({},e),t),{},{cx:n,cy:a})}function Um(t){return P.createElement(ii,tf({shapeType:"sector",propTransformer:CC},t))}var RC=["shape","activeShape","activeIndex","cornerRadius"],kC=["value","background"];function Dr(t){"@babel/helpers - typeof";return Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dr(t)}function pa(){return pa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pa.apply(this,arguments)}function Vm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Vm(Object(r),!0).forEach(function(n){Yt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vm(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Xm(t,e){if(t==null)return{};var r=MC(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function MC(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function DC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ym(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,fO(n.key),n)}}function NC(t,e,r){return e&&Ym(t.prototype,e),r&&Ym(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function LC(t,e,r){return e=da(e),qC(t,lO()?Reflect.construct(e,r||[],da(t).constructor):e.apply(t,r))}function qC(t,e){if(e&&(Dr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BC(t)}function BC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lO=function(){return!!t})()}function da(t){return da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},da(t)}function FC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rf(t,e)}function rf(t,e){return rf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rf(t,e)}function Yt(t,e,r){return e=fO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fO(t){var e=zC(t,"string");return Dr(e)=="symbol"?e:e+""}function zC(t,e){if(Dr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var mi=(function(t){function e(){var r;DC(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=LC(this,e,[].concat(i)),Yt(r,"state",{isAnimationFinished:!1}),Yt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),W(o)&&o()}),Yt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),W(o)&&o()}),r}return FC(e,t),NC(e,[{key:"getDeltaAngle",value:function(){var n=this.props,i=n.startAngle,a=n.endAngle,o=Oe(a-i),u=Math.min(Math.abs(a-i),360);return o*u}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.activeShape,c=a.activeIndex,s=a.cornerRadius,f=Xm(a,RC),l=F(f,!1);return n.map(function(p,d){var y=d===c,h=ge(ge(ge(ge({},l),{},{cornerRadius:Hm(s)},p),nt(i.props,p,d)),{},{className:"recharts-radial-bar-sector ".concat(p.className),forceCornerRadius:f.forceCornerRadius,cornerIsExternal:f.cornerIsExternal,isActive:y,option:y?u:o});return P.createElement(Um,pa({},h,{key:"sector-".concat(d)}))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,s=i.animationEasing,f=i.animationId,l=this.state.prevData;return P.createElement(Ee,{begin:u,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radialBar-".concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(p){var d=p.t,y=a.map(function(h,v){var b=l&&l[v];if(b){var g=te(b.startAngle,h.startAngle),x=te(b.endAngle,h.endAngle);return ge(ge({},h),{},{startAngle:g(d),endAngle:x(d)})}var A=h.endAngle,m=h.startAngle,O=te(m,A);return ge(ge({},h),{},{endAngle:O(d)})});return P.createElement(X,null,n.renderSectorsStatically(y))})}},{key:"renderSectors",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!it(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"renderBackground",value:function(n){var i=this,a=this.props.cornerRadius,o=F(this.props.background,!1);return n.map(function(u,c){u.value;var s=u.background,f=Xm(u,kC);if(!s)return null;var l=ge(ge(ge(ge(ge({cornerRadius:Hm(a)},f),{},{fill:"#eee"},s),o),nt(i.props,u,c)),{},{index:c,className:V("recharts-radial-bar-background-sector",o==null?void 0:o.className),option:s,isActive:!1});return P.createElement(Um,pa({},l,{key:"sector-".concat(c)}))})}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.background,c=n.isAnimationActive;if(i||!a||!a.length)return null;var s=this.state.isAnimationFinished,f=V("recharts-area",o);return P.createElement(X,{className:f},u&&P.createElement(X,{className:"recharts-radial-bar-background"},this.renderBackground(a)),P.createElement(X,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!c||s)&&Me.renderCallByParent(ge({},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}}])})(M.PureComponent);Yt(mi,"displayName","RadialBar");Yt(mi,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!Je.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1});Yt(mi,"getComposedData",function(t){var e=t.item,r=t.props,n=t.radiusAxis,i=t.radiusAxisTicks,a=t.angleAxis,o=t.angleAxisTicks,u=t.displayedData,c=t.dataKey,s=t.stackedData,f=t.barPosition,l=t.bandSize,p=t.dataStartIndex,d=Mx(f,e);if(!d)return null;var y=a.cx,h=a.cy,v=r.layout,b=e.props,g=b.children,x=b.minPointSize,A=v==="radial"?a:n,m=s?A.scale.domain():null,O=Lx({numericAxis:A}),w=Se(g,hi),S=u.map(function(_,T){var j,E,$,C,I,k;if(s?j=Dx(s[p+T],m):(j=ie(_,c),Array.isArray(j)||(j=[O,j])),v==="radial"){E=Yi({axis:n,ticks:i,bandSize:l,offset:d.offset,entry:_,index:T}),I=a.scale(j[1]),C=a.scale(j[0]),$=E+d.size;var N=I-C;if(Math.abs(x)>0&&Math.abs(N)<Math.abs(x)){var q=Oe(N||x)*(Math.abs(x)-Math.abs(N));I+=q}k={background:{cx:y,cy:h,innerRadius:E,outerRadius:$,startAngle:r.startAngle,endAngle:r.endAngle}}}else{E=n.scale(j[0]),$=n.scale(j[1]),C=Yi({axis:a,ticks:o,bandSize:l,offset:d.offset,entry:_,index:T}),I=C+d.size;var B=$-E;if(Math.abs(x)>0&&Math.abs(B)<Math.abs(x)){var G=Oe(B||x)*(Math.abs(x)-Math.abs(B));$+=G}}return ge(ge(ge(ge({},_),k),{},{payload:_,value:s?j:j[1],cx:y,cy:h,innerRadius:E,outerRadius:$,startAngle:C,endAngle:I},w&&w[T]&&w[T].props),{},{tooltipPayload:[up(e,_)],tooltipPosition:J(y,h,(E+$)/2,(C+I)/2)})});return{data:S,layout:v}});var Ls,Zm;function KC(){if(Zm)return Ls;Zm=1;var t=Math.ceil,e=Math.max;function r(n,i,a,o){for(var u=-1,c=e(t((i-n)/(a||1)),0),s=Array(c);c--;)s[o?c:++u]=n,n+=a;return s}return Ls=r,Ls}var qs,Jm;function pO(){if(Jm)return qs;Jm=1;var t=Kb(),e=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=t(i),i===e||i===-e){var a=i<0?-1:1;return a*r}return i===i?i:0}return qs=n,qs}var Bs,Qm;function WC(){if(Qm)return Bs;Qm=1;var t=KC(),e=za(),r=pO();function n(i){return function(a,o,u){return u&&typeof u!="number"&&e(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),t(a,o,u,i)}}return Bs=n,Bs}var Fs,eg;function GC(){if(eg)return Fs;eg=1;var t=WC(),e=t();return Fs=e,Fs}var HC=GC();const va=re(HC);function ui(t){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ui(t)}function tg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function rg(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?tg(Object(r),!0).forEach(function(n){dO(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function dO(t,e,r){return e=UC(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function UC(t){var e=VC(t,"string");return ui(e)=="symbol"?e:e+""}function VC(t,e){if(ui(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var XC=["Webkit","Moz","O","ms"],YC=function(e,r){var n=e.replace(/(\w)/,function(a){return a.toUpperCase()}),i=XC.reduce(function(a,o){return rg(rg({},a),{},dO({},o+n,r))},{});return i[e]=r,i};function Nr(t){"@babel/helpers - typeof";return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nr(t)}function ha(){return ha=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ha.apply(this,arguments)}function ng(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function zs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ng(Object(r),!0).forEach(function(n){Ie(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ng(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ZC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ig(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,hO(n.key),n)}}function JC(t,e,r){return e&&ig(t.prototype,e),r&&ig(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function QC(t,e,r){return e=ya(e),eR(t,vO()?Reflect.construct(e,r||[],ya(t).constructor):e.apply(t,r))}function eR(t,e){if(e&&(Nr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tR(t)}function tR(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vO=function(){return!!t})()}function ya(t){return ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ya(t)}function rR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nf(t,e)}function nf(t,e){return nf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nf(t,e)}function Ie(t,e,r){return e=hO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hO(t){var e=nR(t,"string");return Nr(e)=="symbol"?e:e+""}function nR(t,e){if(Nr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var iR=function(e){var r=e.data,n=e.startIndex,i=e.endIndex,a=e.x,o=e.width,u=e.travellerWidth;if(!r||!r.length)return{};var c=r.length,s=Pn().domain(va(0,c)).range([a,a+o-u]),f=s.domain().map(function(l){return s(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(n),endX:s(i),scale:s,scaleValues:f}},ag=function(e){return e.changedTouches&&!!e.changedTouches.length},Lr=(function(t){function e(r){var n;return ZC(this,e),n=QC(this,e,[r]),Ie(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ie(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ie(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Ie(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ie(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ie(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ie(n,"handleSlideDragStart",function(i){var a=ag(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 rR(e,t),JC(e,[{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,c=u.gap,s=u.data,f=s.length-1,l=Math.min(i,a),p=Math.max(i,a),d=e.getIndexInRange(o,l),y=e.getIndexInRange(o,p);return{startIndex:d-d%c,endIndex:y===f?f:y-y%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=ie(a[n],u,n);return W(o)?o(c,n):c}},{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,c=this.props,s=c.x,f=c.width,l=c.travellerWidth,p=c.startIndex,d=c.endIndex,y=c.onChange,h=n.pageX-a;h>0?h=Math.min(h,s+f-l-u,s+f-l-o):h<0&&(h=Math.max(h,s-o,s-u));var v=this.getIndex({startX:o+h,endX:u+h});(v.startIndex!==p||v.endIndex!==d)&&y&&y(v),this.setState({startX:o+h,endX:u+h,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=ag(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,c=i.startX,s=this.state[o],f=this.props,l=f.x,p=f.width,d=f.travellerWidth,y=f.onChange,h=f.gap,v=f.data,b={startX:this.state.startX,endX:this.state.endX},g=n.pageX-a;g>0?g=Math.min(g,l+p-d-s):g<0&&(g=Math.max(g,l-s)),b[o]=s+g;var x=this.getIndex(b),A=x.startIndex,m=x.endIndex,O=function(){var S=v.length-1;return o==="startX"&&(u>c?A%h===0:m%h===0)||u<c&&m===S||o==="endX"&&(u>c?m%h===0:A%h===0)||u>c&&m===S};this.setState(Ie(Ie({},o,s+g),"brushMoveStartX",n.pageX),function(){y&&O()&&y(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,s=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var p=l+n;if(!(p===-1||p>=u.length)){var d=u[p];i==="startX"&&d>=s||i==="endX"&&d<=c||this.setState(Ie({},i,d),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,c=n.fill,s=n.stroke;return P.createElement("rect",{stroke:s,fill:c,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,c=n.data,s=n.children,f=n.padding,l=M.Children.only(s);return l?P.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,c=this.props,s=c.y,f=c.travellerWidth,l=c.height,p=c.traveller,d=c.ariaLabel,y=c.data,h=c.startIndex,v=c.endIndex,b=Math.max(n,this.props.x),g=zs(zs({},F(this.props,!1)),{},{x:b,y:s,width:f,height:l}),x=d||"Min value: ".concat((a=y[h])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[v])===null||o===void 0?void 0:o.name);return P.createElement(X,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(p,g))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,c=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,l=Math.max(Math.abs(i-n)-s,0);return P.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,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,c=n.travellerWidth,s=n.stroke,f=this.state,l=f.startX,p=f.endX,d=5,y={pointerEvents:"none",fill:s};return P.createElement(X,{className:"recharts-brush-texts"},P.createElement(Jt,ha({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,p)-d,y:o+u/2},y),this.getTextOfTick(i)),P.createElement(Jt,ha({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,p)+c+d,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,c=n.y,s=n.width,f=n.height,l=n.alwaysShowText,p=this.state,d=p.startX,y=p.endX,h=p.isTextActive,v=p.isSlideMoving,b=p.isTravellerMoving,g=p.isTravellerFocused;if(!i||!i.length||!L(u)||!L(c)||!L(s)||!L(f)||s<=0||f<=0)return null;var x=V("recharts-brush",a),A=P.Children.count(o)===1,m=YC("userSelect","none");return P.createElement(X,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),A&&this.renderPanorama(),this.renderSlide(d,y),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(y,"endX"),(h||v||b||g||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,c=n.stroke,s=Math.floor(a+u/2)-1;return P.createElement(P.Fragment,null,P.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),P.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),P.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return P.isValidElement(n)?a=P.cloneElement(n,i):W(n)?a=n(i):a=e.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,s=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return zs({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?iR({data:a,width:o,x:u,travellerWidth:c,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var p=i.scale.domain().map(function(d){return i.scale(d)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}])})(M.PureComponent);Ie(Lr,"displayName","Brush");Ie(Lr,"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 Ks,og;function aR(){if(og)return Ks;og=1;var t=Xf();function e(r,n){var i;return t(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Ks=e,Ks}var Ws,ug;function oR(){if(ug)return Ws;ug=1;var t=xb(),e=ut(),r=aR(),n=Te(),i=za();function a(o,u,c){var s=n(o)?t:r;return c&&i(o,u,c)&&(u=void 0),s(o,e(u,3))}return Ws=a,Ws}var uR=oR();const cR=re(uR);var rt=function(e,r){var n=e.alwaysShow,i=e.ifOverflow;return n&&(i="extendDomain"),i===r},Gs,cg;function sR(){if(cg)return Gs;cg=1;var t=Lb();function e(r,n,i){n=="__proto__"&&t?t(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Gs=e,Gs}var Hs,sg;function lR(){if(sg)return Hs;sg=1;var t=sR(),e=Db(),r=ut();function n(i,a){var o={};return a=r(a,3),e(i,function(u,c,s){t(o,c,a(u,c,s))}),o}return Hs=n,Hs}var fR=lR();const pR=re(fR);var Us,lg;function dR(){if(lg)return Us;lg=1;function t(e,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(!r(e[n],n,e))return!1;return!0}return Us=t,Us}var Vs,fg;function vR(){if(fg)return Vs;fg=1;var t=Xf();function e(r,n){var i=!0;return t(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Vs=e,Vs}var Xs,pg;function hR(){if(pg)return Xs;pg=1;var t=dR(),e=vR(),r=ut(),n=Te(),i=za();function a(o,u,c){var s=n(o)?t:e;return c&&i(o,u,c)&&(u=void 0),s(o,r(u,3))}return Xs=a,Xs}var yR=hR();const yO=re(yR);var mR=["x","y"];function ci(t){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ci(t)}function af(){return af=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},af.apply(this,arguments)}function dg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function xn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?dg(Object(r),!0).forEach(function(n){gR(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function gR(t,e,r){return e=bR(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bR(t){var e=xR(t,"string");return ci(e)=="symbol"?e:e+""}function xR(t,e){if(ci(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function OR(t,e){if(t==null)return{};var r=AR(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function AR(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function wR(t,e){var r=t.x,n=t.y,i=OR(t,mR),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),s="".concat(e.height||i.height),f=parseInt(s,10),l="".concat(e.width||i.width),p=parseInt(l,10);return xn(xn(xn(xn(xn({},e),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:p,name:e.name,radius:e.radius})}function vg(t){return P.createElement(ii,af({shapeType:"rectangle",propTransformer:wR,activeClassName:"recharts-active-bar"},t))}var PR=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof e=="number")return e;var a=L(n)||DA(n);return a?e(n,i):(a||er(),r)}},SR=["value","background"],mO;function qr(t){"@babel/helpers - typeof";return qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qr(t)}function _R(t,e){if(t==null)return{};var r=jR(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function jR(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function ma(){return ma=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ma.apply(this,arguments)}function hg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function fe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?hg(Object(r),!0).forEach(function(n){Pt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ER(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,bO(n.key),n)}}function TR(t,e,r){return e&&yg(t.prototype,e),r&&yg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function $R(t,e,r){return e=ga(e),IR(t,gO()?Reflect.construct(e,r||[],ga(t).constructor):e.apply(t,r))}function IR(t,e){if(e&&(qr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CR(t)}function CR(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gO=function(){return!!t})()}function ga(t){return ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ga(t)}function RR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&of(t,e)}function of(t,e){return of=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},of(t,e)}function Pt(t,e,r){return e=bO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bO(t){var e=kR(t,"string");return qr(e)=="symbol"?e:e+""}function kR(t,e){if(qr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var or=(function(t){function e(){var r;ER(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=$R(this,e,[].concat(i)),Pt(r,"state",{isAnimationFinished:!1}),Pt(r,"id",$t("recharts-bar-")),Pt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Pt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return RR(e,t),TR(e,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,c=a.activeIndex,s=a.activeBar,f=F(this.props,!1);return n&&n.map(function(l,p){var d=p===c,y=d?s:o,h=fe(fe(fe({},f),l),{},{isActive:d,option:y,index:p,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return P.createElement(X,ma({className:"recharts-bar-rectangle"},nt(i.props,l,p),{key:"rectangle-".concat(l==null?void 0:l.x,"-").concat(l==null?void 0:l.y,"-").concat(l==null?void 0:l.value,"-").concat(p)}),P.createElement(vg,h))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,c=i.animationBegin,s=i.animationDuration,f=i.animationEasing,l=i.animationId,p=this.state.prevData;return P.createElement(Ee,{begin:c,duration:s,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var y=d.t,h=a.map(function(v,b){var g=p&&p[b];if(g){var x=te(g.x,v.x),A=te(g.y,v.y),m=te(g.width,v.width),O=te(g.height,v.height);return fe(fe({},v),{},{x:x(y),y:A(y),width:m(y),height:O(y)})}if(o==="horizontal"){var w=te(0,v.height),S=w(y);return fe(fe({},v),{},{y:v.y+v.height-S,height:S})}var _=te(0,v.width),T=_(y);return fe(fe({},v),{},{width:T})});return P.createElement(X,null,n.renderRectanglesStatically(h))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!it(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,c=F(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,p=_R(s,SR);if(!l)return null;var d=fe(fe(fe(fe(fe({},p),{},{fill:"#eee"},l),c),nt(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return P.createElement(vg,ma({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},d))})}},{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,c=a.yAxis,s=a.layout,f=a.children,l=Se(f,an);if(!l)return null;var p=s==="vertical"?o[0].height/2:o[0].width/2,d=function(v,b){var g=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:g,errorVal:ie(v,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(X,y,l.map(function(h){return P.cloneElement(h,{key:"error-bar-".concat(i,"-").concat(h.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,offset:p,dataPointFormatter:d})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,c=n.yAxis,s=n.left,f=n.top,l=n.width,p=n.height,d=n.isAnimationActive,y=n.background,h=n.id;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,b=V("recharts-bar",o),g=u&&u.allowDataOverflow,x=c&&c.allowDataOverflow,A=g||x,m=H(h)?this.id:h;return P.createElement(X,{className:b},g||x?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(m)},P.createElement("rect",{x:g?s:s-l/2,y:x?f:f-p/2,width:g?l:l*2,height:x?p:p*2}))):null,P.createElement(X,{className:"recharts-bar-rectangles",clipPath:A?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(A,m),(!d||v)&&Me.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}}])})(M.PureComponent);mO=or;Pt(or,"displayName","Bar");Pt(or,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Je.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Pt(or,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,a=t.xAxis,o=t.yAxis,u=t.xAxisTicks,c=t.yAxisTicks,s=t.stackedData,f=t.dataStartIndex,l=t.displayedData,p=t.offset,d=Mx(n,r);if(!d)return null;var y=e.layout,h=r.type.defaultProps,v=h!==void 0?fe(fe({},h),r.props):r.props,b=v.dataKey,g=v.children,x=v.minPointSize,A=y==="horizontal"?o:a,m=s?A.scale.domain():null,O=Lx({numericAxis:A}),w=Se(g,hi),S=l.map(function(_,T){var j,E,$,C,I,k;s?j=Dx(s[f+T],m):(j=ie(_,b),Array.isArray(j)||(j=[O,j]));var N=PR(x,mO.defaultProps.minPointSize)(j[1],T);if(y==="horizontal"){var q,B=[o.scale(j[0]),o.scale(j[1])],G=B[0],Y=B[1];E=Yi({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:_,index:T}),$=(q=Y??G)!==null&&q!==void 0?q:void 0,C=d.size;var z=G-Y;if(I=Number.isNaN(z)?0:z,k={x:E,y:o.y,width:C,height:o.height},Math.abs(N)>0&&Math.abs(I)<Math.abs(N)){var Z=Oe(I||N)*(Math.abs(N)-Math.abs(I));$-=Z,I+=Z}}else{var se=[a.scale(j[0]),a.scale(j[1])],me=se[0],We=se[1];if(E=me,$=Yi({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:_,index:T}),C=We-me,I=d.size,k={x:a.x,y:$,width:a.width,height:I},Math.abs(N)>0&&Math.abs(C)<Math.abs(N)){var ln=Oe(C||N)*(Math.abs(N)-Math.abs(C));C+=ln}}return fe(fe(fe({},_),{},{x:E,y:$,width:C,height:I,value:s?j:j[1],payload:_,background:k},w&&w[T]&&w[T].props),{},{tooltipPayload:[up(r,_)],tooltipPosition:{x:E+C/2,y:$+I/2}})});return fe({data:S,layout:y},p)});function si(t){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},si(t)}function MR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xO(n.key),n)}}function DR(t,e,r){return e&&mg(t.prototype,e),r&&mg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function gg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?gg(Object(r),!0).forEach(function(n){Qa(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Qa(t,e,r){return e=xO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xO(t){var e=NR(t,"string");return si(e)=="symbol"?e:e+""}function NR(t,e){if(si(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var eo=function(e,r,n,i,a){var o=e.width,u=e.height,c=e.layout,s=e.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},p=!!Ce(s,or);return f.reduce(function(d,y){var h=r[y],v=h.orientation,b=h.domain,g=h.padding,x=g===void 0?{}:g,A=h.mirror,m=h.reversed,O="".concat(v).concat(A?"Mirror":""),w,S,_,T,j;if(h.type==="number"&&(h.padding==="gap"||h.padding==="no-gap")){var E=b[1]-b[0],$=1/0,C=h.categoricalDomain.sort(BA);if(C.forEach(function(se,me){me>0&&($=Math.min((se||0)-(C[me-1]||0),$))}),Number.isFinite($)){var I=$/E,k=h.layout==="vertical"?n.height:n.width;if(h.padding==="gap"&&(w=I*k/2),h.padding==="no-gap"){var N=je(e.barCategoryGap,I*k),q=I*k/2;w=q-N-(q-N)/k*N}}}i==="xAxis"?S=[n.left+(x.left||0)+(w||0),n.left+n.width-(x.right||0)-(w||0)]:i==="yAxis"?S=c==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(w||0),n.top+n.height-(x.bottom||0)-(w||0)]:S=h.range,m&&(S=[S[1],S[0]]);var B=Rx(h,a,p),G=B.scale,Y=B.realScaleType;G.domain(b).range(S),kx(G);var z=Nx(G,He(He({},h),{},{realScaleType:Y}));i==="xAxis"?(j=v==="top"&&!A||v==="bottom"&&A,_=n.left,T=l[O]-j*h.height):i==="yAxis"&&(j=v==="left"&&!A||v==="right"&&A,_=l[O]-j*h.width,T=n.top);var Z=He(He(He({},h),z),{},{realScaleType:Y,x:_,y:T,scale:G,width:i==="xAxis"?n.width:h.width,height:i==="yAxis"?n.height:h.height});return Z.bandSize=Zi(Z,z),!h.hide&&i==="xAxis"?l[O]+=(j?-1:1)*Z.height:h.hide||(l[O]+=(j?-1:1)*Z.width),He(He({},d),{},Qa({},y,Z))},{})},OO=function(e,r){var n=e.x,i=e.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)}},LR=function(e){var r=e.x1,n=e.y1,i=e.x2,a=e.y2;return OO({x:r,y:n},{x:i,y:a})},AO=(function(){function t(e){MR(this,t),this.scale=e}return DR(t,[{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 c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}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 t(r)}}])})();Qa(AO,"EPS",1e-4);var lp=function(e){var r=Object.keys(e).reduce(function(n,i){return He(He({},n),{},Qa({},i,AO.create(e[i])))},{});return He(He({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return pR(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return yO(i,function(a,o){return r[o].isInRange(a)})}})};function qR(t){return(t%180+180)%180}var BR=function(e){var r=e.width,n=e.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=qR(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},Ys,bg;function FR(){if(bg)return Ys;bg=1;var t=ut(),e=vi(),r=Ba();function n(i){return function(a,o,u){var c=Object(a);if(!e(a)){var s=t(o,3);a=r(a),o=function(l){return s(c[l],l,c)}}var f=i(a,o,u);return f>-1?c[s?a[f]:f]:void 0}}return Ys=n,Ys}var Zs,xg;function zR(){if(xg)return Zs;xg=1;var t=pO();function e(r){var n=t(r),i=n%1;return n===n?i?n-i:n:0}return Zs=e,Zs}var Js,Og;function KR(){if(Og)return Js;Og=1;var t=Ib(),e=ut(),r=zR(),n=Math.max;function i(a,o,u){var c=a==null?0:a.length;if(!c)return-1;var s=u==null?0:r(u);return s<0&&(s=n(c+s,0)),t(a,e(o,3),s)}return Js=i,Js}var Qs,Ag;function WR(){if(Ag)return Qs;Ag=1;var t=FR(),e=KR(),r=t(e);return Qs=r,Qs}var GR=WR();const HR=re(GR);var UR=ob();const VR=re(UR);var XR=VR(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),fp=M.createContext(void 0),pp=M.createContext(void 0),wO=M.createContext(void 0),PO=M.createContext({}),SO=M.createContext(void 0),_O=M.createContext(0),jO=M.createContext(0),wg=function(e){var r=e.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=e.clipPathId,u=e.children,c=e.width,s=e.height,f=XR(a);return P.createElement(fp.Provider,{value:n},P.createElement(pp.Provider,{value:i},P.createElement(PO.Provider,{value:a},P.createElement(wO.Provider,{value:f},P.createElement(SO.Provider,{value:o},P.createElement(_O.Provider,{value:s},P.createElement(jO.Provider,{value:c},u)))))))},YR=function(){return M.useContext(SO)},EO=function(e){var r=M.useContext(fp);r==null&&er();var n=r[e];return n==null&&er(),n},ZR=function(){var e=M.useContext(fp);return At(e)},JR=function(){var e=M.useContext(pp),r=HR(e,function(n){return yO(n.domain,Number.isFinite)});return r||At(e)},TO=function(e){var r=M.useContext(pp);r==null&&er();var n=r[e];return n==null&&er(),n},QR=function(){var e=M.useContext(wO);return e},ek=function(){return M.useContext(PO)},dp=function(){return M.useContext(jO)},vp=function(){return M.useContext(_O)};function Br(t){"@babel/helpers - typeof";return Br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Br(t)}function tk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,IO(n.key),n)}}function nk(t,e,r){return e&&rk(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ik(t,e,r){return e=ba(e),ak(t,$O()?Reflect.construct(e,r||[],ba(t).constructor):e.apply(t,r))}function ak(t,e){if(e&&(Br(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ok(t)}function ok(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($O=function(){return!!t})()}function ba(t){return ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ba(t)}function uk(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&uf(t,e)}function uf(t,e){return uf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uf(t,e)}function Pg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Sg(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Pg(Object(r),!0).forEach(function(n){hp(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function hp(t,e,r){return e=IO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function IO(t){var e=ck(t,"string");return Br(e)=="symbol"?e:e+""}function ck(t,e){if(Br(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function sk(t,e){return dk(t)||pk(t,e)||fk(t,e)||lk()}function lk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
69
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fk(t,e){if(t){if(typeof t=="string")return _g(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _g(t,e)}}function _g(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function pk(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function dk(t){if(Array.isArray(t))return t}function cf(){return cf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},cf.apply(this,arguments)}var vk=function(e,r){var n;return P.isValidElement(e)?n=P.cloneElement(e,r):W(e)?n=e(r):n=P.createElement("line",cf({},r,{className:"recharts-reference-line-line"})),n},hk=function(e,r,n,i,a,o,u,c,s){var f=a.x,l=a.y,p=a.width,d=a.height;if(n){var y=s.y,h=e.y.apply(y,{position:o});if(rt(s,"discard")&&!e.y.isInRange(h))return null;var v=[{x:f+p,y:h},{x:f,y:h}];return c==="left"?v.reverse():v}if(r){var b=s.x,g=e.x.apply(b,{position:o});if(rt(s,"discard")&&!e.x.isInRange(g))return null;var x=[{x:g,y:l+d},{x:g,y:l}];return u==="top"?x.reverse():x}if(i){var A=s.segment,m=A.map(function(O){return e.apply(O,{position:o})});return rt(s,"discard")&&cR(m,function(O){return!e.isInRange(O)})?null:m}return null};function yk(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,a=t.yAxisId,o=t.shape,u=t.className,c=t.alwaysShow,s=YR(),f=EO(i),l=TO(a),p=QR();if(!s||!p)return null;Ve(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=lp({x:f.scale,y:l.scale}),y=ye(e),h=ye(r),v=n&&n.length===2,b=hk(d,y,h,v,p,t.position,f.orientation,l.orientation,t);if(!b)return null;var g=sk(b,2),x=g[0],A=x.x,m=x.y,O=g[1],w=O.x,S=O.y,_=rt(t,"hidden")?"url(#".concat(s,")"):void 0,T=Sg(Sg({clipPath:_},F(t,!0)),{},{x1:A,y1:m,x2:w,y2:S});return P.createElement(X,{className:V("recharts-reference-line",u)},vk(o,T),xe.renderCallByParent(t,LR({x1:A,y1:m,x2:w,y2:S})))}var yp=(function(t){function e(){return tk(this,e),ik(this,e,arguments)}return uk(e,t),nk(e,[{key:"render",value:function(){return P.createElement(yk,this.props)}}])})(P.Component);hp(yp,"displayName","ReferenceLine");hp(yp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function sf(){return sf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},sf.apply(this,arguments)}function Fr(t){"@babel/helpers - typeof";return Fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fr(t)}function jg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Eg(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?jg(Object(r),!0).forEach(function(n){to(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function mk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,RO(n.key),n)}}function bk(t,e,r){return e&&gk(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function xk(t,e,r){return e=xa(e),Ok(t,CO()?Reflect.construct(e,r||[],xa(t).constructor):e.apply(t,r))}function Ok(t,e){if(e&&(Fr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ak(t)}function Ak(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function CO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CO=function(){return!!t})()}function xa(t){return xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xa(t)}function wk(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lf(t,e)}function lf(t,e){return lf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lf(t,e)}function to(t,e,r){return e=RO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function RO(t){var e=Pk(t,"string");return Fr(e)=="symbol"?e:e+""}function Pk(t,e){if(Fr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Sk=function(e){var r=e.x,n=e.y,i=e.xAxis,a=e.yAxis,o=lp({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return rt(e,"discard")&&!o.isInRange(u)?null:u},ro=(function(t){function e(){return mk(this,e),xk(this,e,arguments)}return wk(e,t),bk(e,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,c=n.clipPathId,s=ye(i),f=ye(a);if(Ve(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=Sk(this.props);if(!l)return null;var p=l.x,d=l.y,y=this.props,h=y.shape,v=y.className,b=rt(this.props,"hidden")?"url(#".concat(c,")"):void 0,g=Eg(Eg({clipPath:b},F(this.props,!0)),{},{cx:p,cy:d});return P.createElement(X,{className:V("recharts-reference-dot",v)},e.renderDot(h,g),xe.renderCallByParent(this.props,{x:p-o,y:d-o,width:2*o,height:2*o}))}}])})(P.Component);to(ro,"displayName","ReferenceDot");to(ro,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});to(ro,"renderDot",function(t,e){var r;return P.isValidElement(t)?r=P.cloneElement(t,e):W(t)?r=t(e):r=P.createElement(on,sf({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"})),r});function ff(){return ff=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ff.apply(this,arguments)}function zr(t){"@babel/helpers - typeof";return zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zr(t)}function Tg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function $g(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Tg(Object(r),!0).forEach(function(n){no(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,MO(n.key),n)}}function Ek(t,e,r){return e&&jk(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tk(t,e,r){return e=Oa(e),$k(t,kO()?Reflect.construct(e,r||[],Oa(t).constructor):e.apply(t,r))}function $k(t,e){if(e&&(zr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ik(t)}function Ik(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kO=function(){return!!t})()}function Oa(t){return Oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oa(t)}function Ck(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pf(t,e)}function pf(t,e){return pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pf(t,e)}function no(t,e,r){return e=MO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function MO(t){var e=Rk(t,"string");return zr(e)=="symbol"?e:e+""}function Rk(t,e){if(zr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var kk=function(e,r,n,i,a){var o=a.x1,u=a.x2,c=a.y1,s=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var p=lp({x:f.scale,y:l.scale}),d={x:e?p.x.apply(o,{position:"start"}):p.x.rangeMin,y:n?p.y.apply(c,{position:"start"}):p.y.rangeMin},y={x:r?p.x.apply(u,{position:"end"}):p.x.rangeMax,y:i?p.y.apply(s,{position:"end"}):p.y.rangeMax};return rt(a,"discard")&&(!p.isInRange(d)||!p.isInRange(y))?null:OO(d,y)},io=(function(t){function e(){return _k(this,e),Tk(this,e,arguments)}return Ck(e,t),Ek(e,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,c=n.className,s=n.alwaysShow,f=n.clipPathId;Ve(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=ye(i),p=ye(a),d=ye(o),y=ye(u),h=this.props.shape;if(!l&&!p&&!d&&!y&&!h)return null;var v=kk(l,p,d,y,this.props);if(!v&&!h)return null;var b=rt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return P.createElement(X,{className:V("recharts-reference-area",c)},e.renderRect(h,$g($g({clipPath:b},F(this.props,!0)),v)),xe.renderCallByParent(this.props,v))}}])})(P.Component);no(io,"displayName","ReferenceArea");no(io,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});no(io,"renderRect",function(t,e){var r;return P.isValidElement(t)?r=P.cloneElement(t,e):W(t)?r=t(e):r=P.createElement(sp,ff({},e,{className:"recharts-reference-area-rect"})),r});function DO(t,e,r){if(e<1)return[];if(e===1&&r===void 0)return t;for(var n=[],i=0;i<t.length;i+=e)n.push(t[i]);return n}function Mk(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return BR(n,r)}function Dk(t,e,r){var n=r==="width",i=t.x,a=t.y,o=t.width,u=t.height;return e===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function Aa(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var a=r();return t*(e-t*a/2-n)>=0&&t*(e+t*a/2-i)<=0}function Nk(t,e){return DO(t,e+1)}function Lk(t,e,r,n,i){for(var a=(n||[]).slice(),o=e.start,u=e.end,c=0,s=1,f=o,l=function(){var y=n==null?void 0:n[c];if(y===void 0)return{v:DO(n,s)};var h=c,v,b=function(){return v===void 0&&(v=r(y,h)),v},g=y.coordinate,x=c===0||Aa(t,g,b,f,u);x||(c=0,f=o,s+=1),x&&(f=g+t*(b()/2+i),c+=s)},p;s<=a.length;)if(p=l(),p)return p.v;return[]}function li(t){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},li(t)}function Ig(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function we(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ig(Object(r),!0).forEach(function(n){qk(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ig(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qk(t,e,r){return e=Bk(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bk(t){var e=Fk(t,"string");return li(e)=="symbol"?e:e+""}function Fk(t,e){if(li(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zk(t,e,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=e.start,c=e.end,s=function(p){var d=a[p],y,h=function(){return y===void 0&&(y=r(d,p)),y};if(p===o-1){var v=t*(d.coordinate+t*h()/2-c);a[p]=d=we(we({},d),{},{tickCoord:v>0?d.coordinate-v*t:d.coordinate})}else a[p]=d=we(we({},d),{},{tickCoord:d.coordinate});var b=Aa(t,d.tickCoord,h,u,c);b&&(c=d.tickCoord-t*(h()/2+i),a[p]=we(we({},d),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function Kk(t,e,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=e.start,s=e.end;if(a){var f=n[u-1],l=r(f,u-1),p=t*(f.coordinate+t*l/2-s);o[u-1]=f=we(we({},f),{},{tickCoord:p>0?f.coordinate-p*t:f.coordinate});var d=Aa(t,f.tickCoord,function(){return l},c,s);d&&(s=f.tickCoord-t*(l/2+i),o[u-1]=we(we({},f),{},{isShow:!0}))}for(var y=a?u-1:u,h=function(g){var x=o[g],A,m=function(){return A===void 0&&(A=r(x,g)),A};if(g===0){var O=t*(x.coordinate-t*m()/2-c);o[g]=x=we(we({},x),{},{tickCoord:O<0?x.coordinate-O*t:x.coordinate})}else o[g]=x=we(we({},x),{},{tickCoord:x.coordinate});var w=Aa(t,x.tickCoord,m,c,s);w&&(c=x.tickCoord+t*(m()/2+i),o[g]=we(we({},x),{},{isShow:!0}))},v=0;v<y;v++)h(v);return o}function mp(t,e,r){var n=t.tick,i=t.ticks,a=t.viewBox,o=t.minTickGap,u=t.orientation,c=t.interval,s=t.tickFormatter,f=t.unit,l=t.angle;if(!i||!i.length||!n)return[];if(L(c)||Je.isSsr)return Nk(i,typeof c=="number"&&L(c)?c:0);var p=[],d=u==="top"||u==="bottom"?"width":"height",y=f&&d==="width"?Sn(f,{fontSize:e,letterSpacing:r}):{width:0,height:0},h=function(x,A){var m=W(s)?s(x.value,A):x.value;return d==="width"?Mk(Sn(m,{fontSize:e,letterSpacing:r}),y,l):Sn(m,{fontSize:e,letterSpacing:r})[d]},v=i.length>=2?Oe(i[1].coordinate-i[0].coordinate):1,b=Dk(a,v,d);return c==="equidistantPreserveStart"?Lk(v,b,h,i,o):(c==="preserveStart"||c==="preserveStartEnd"?p=Kk(v,b,h,i,o,c==="preserveStartEnd"):p=zk(v,b,h,i,o),p.filter(function(g){return g.isShow}))}var Wk=["viewBox"],Gk=["viewBox"],Hk=["ticks"];function Kr(t){"@babel/helpers - typeof";return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kr(t)}function xr(){return xr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xr.apply(this,arguments)}function Cg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ve(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Cg(Object(r),!0).forEach(function(n){gp(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function el(t,e){if(t==null)return{};var r=Uk(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Uk(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Vk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,LO(n.key),n)}}function Xk(t,e,r){return e&&Rg(t.prototype,e),r&&Rg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yk(t,e,r){return e=wa(e),Zk(t,NO()?Reflect.construct(e,r||[],wa(t).constructor):e.apply(t,r))}function Zk(t,e){if(e&&(Kr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jk(t)}function Jk(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function NO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NO=function(){return!!t})()}function wa(t){return wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wa(t)}function Qk(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&df(t,e)}function df(t,e){return df=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},df(t,e)}function gp(t,e,r){return e=LO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function LO(t){var e=eM(t,"string");return Kr(e)=="symbol"?e:e+""}function eM(t,e){if(Kr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var cn=(function(t){function e(r){var n;return Vk(this,e),n=Yk(this,e,[r]),n.state={fontSize:"",letterSpacing:""},n}return Qk(e,t),Xk(e,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=el(n,Wk),u=this.props,c=u.viewBox,s=el(u,Gk);return!Ar(a,c)||!Ar(o,s)||!Ar(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,c=i.height,s=i.orientation,f=i.tickSize,l=i.mirror,p=i.tickMargin,d,y,h,v,b,g,x=l?-1:1,A=n.tickSize||f,m=L(n.tickCoord)?n.tickCoord:n.coordinate;switch(s){case"top":d=y=n.coordinate,v=o+ +!l*c,h=v-x*A,g=h-x*p,b=m;break;case"left":h=v=n.coordinate,y=a+ +!l*u,d=y-x*A,b=d-x*p,g=m;break;case"right":h=v=n.coordinate,y=a+ +l*u,d=y+x*A,b=d+x*p,g=m;break;default:d=y=n.coordinate,v=o+ +l*c,h=v+x*A,g=h+x*p,b=m;break}return{line:{x1:d,y1:h,x2:y,y2:v},tick:{x:b,y:g}}}},{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,c=n.orientation,s=n.mirror,f=n.axisLine,l=ve(ve(ve({},F(this.props,!1)),F(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var p=+(c==="top"&&!s||c==="bottom"&&s);l=ve(ve({},l),{},{x1:i,y1:a+p*u,x2:i+o,y2:a+p*u})}else{var d=+(c==="left"&&!s||c==="right"&&s);l=ve(ve({},l),{},{x1:i+d*o,y1:a,x2:i+d*o,y2:a+u})}return P.createElement("line",xr({},l,{className:V("recharts-cartesian-axis-line",ke(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,c=u.tickLine,s=u.stroke,f=u.tick,l=u.tickFormatter,p=u.unit,d=mp(ve(ve({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),v=F(this.props,!1),b=F(f,!1),g=ve(ve({},v),{},{fill:"none"},F(c,!1)),x=d.map(function(A,m){var O=o.getTickLineCoord(A),w=O.line,S=O.tick,_=ve(ve(ve(ve({textAnchor:y,verticalAnchor:h},v),{},{stroke:"none",fill:s},b),S),{},{index:m,payload:A,visibleTicksCount:d.length,tickFormatter:l});return P.createElement(X,xr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(A.value,"-").concat(A.coordinate,"-").concat(A.tickCoord)},nt(o.props,A,m)),c&&P.createElement("line",xr({},g,w,{className:V("recharts-cartesian-axis-tick-line",ke(c,"className"))})),f&&e.renderTickItem(f,_,"".concat(W(l)?l(A.value,m):A.value).concat(p||"")))});return P.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,c=i.ticksGenerator,s=i.className,f=i.hide;if(f)return null;var l=this.props,p=l.ticks,d=el(l,Hk),y=p;return W(c)&&(y=p&&p.length>0?c(this.props):c(d)),o<=0||u<=0||!y||!y.length?null:P.createElement(X,{className:V("recharts-cartesian-axis",s),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),xe.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=V(i.className,"recharts-cartesian-axis-tick-value");return P.isValidElement(n)?o=P.cloneElement(n,ve(ve({},i),{},{className:u})):W(n)?o=n(ve(ve({},i),{},{className:u})):o=P.createElement(Jt,xr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(M.Component);gp(cn,"displayName","CartesianAxis");gp(cn,"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 tM=["x1","y1","x2","y2","key"],rM=["offset"];function tr(t){"@babel/helpers - typeof";return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tr(t)}function kg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Pe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?kg(Object(r),!0).forEach(function(n){nM(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function nM(t,e,r){return e=iM(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iM(t){var e=aM(t,"string");return tr(e)=="symbol"?e:e+""}function aM(t,e){if(tr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ht(){return Ht=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ht.apply(this,arguments)}function Mg(t,e){if(t==null)return{};var r=oM(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function oM(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var uM=function(e){var r=e.fill;if(!r||r==="none")return null;var n=e.fillOpacity,i=e.x,a=e.y,o=e.width,u=e.height,c=e.ry;return P.createElement("rect",{x:i,y:a,ry:c,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function qO(t,e){var r;if(P.isValidElement(t))r=P.cloneElement(t,e);else if(W(t))r=t(e);else{var n=e.x1,i=e.y1,a=e.x2,o=e.y2,u=e.key,c=Mg(e,tM),s=F(c,!1);s.offset;var f=Mg(s,rM);r=P.createElement("line",Ht({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function cM(t){var e=t.x,r=t.width,n=t.horizontal,i=n===void 0?!0:n,a=t.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=Pe(Pe({},t),{},{x1:e,y1:u,x2:e+r,y2:u,key:"line-".concat(c),index:c});return qO(i,s)});return P.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function sM(t){var e=t.y,r=t.height,n=t.vertical,i=n===void 0?!0:n,a=t.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=Pe(Pe({},t),{},{x1:u,y1:e,x2:u,y2:e+r,key:"line-".concat(c),index:c});return qO(i,s)});return P.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function lM(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,i=t.y,a=t.width,o=t.height,u=t.horizontalPoints,c=t.horizontal,s=c===void 0?!0:c;if(!s||!e||!e.length)return null;var f=u.map(function(p){return Math.round(p+i-i)}).sort(function(p,d){return p-d});i!==f[0]&&f.unshift(0);var l=f.map(function(p,d){var y=!f[d+1],h=y?i+o-p:f[d+1]-p;if(h<=0)return null;var v=d%e.length;return P.createElement("rect",{key:"react-".concat(d),y:p,x:n,height:h,width:a,stroke:"none",fill:e[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function fM(t){var e=t.vertical,r=e===void 0?!0:e,n=t.verticalFill,i=t.fillOpacity,a=t.x,o=t.y,u=t.width,c=t.height,s=t.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(p){return Math.round(p+a-a)}).sort(function(p,d){return p-d});a!==f[0]&&f.unshift(0);var l=f.map(function(p,d){var y=!f[d+1],h=y?a+u-p:f[d+1]-p;if(h<=0)return null;var v=d%n.length;return P.createElement("rect",{key:"react-".concat(d),x:p,y:o,width:h,height:c,stroke:"none",fill:n[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var pM=function(e,r){var n=e.xAxis,i=e.width,a=e.height,o=e.offset;return Cx(mp(Pe(Pe(Pe({},cn.defaultProps),n),{},{ticks:pt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},dM=function(e,r){var n=e.yAxis,i=e.width,a=e.height,o=e.offset;return Cx(mp(Pe(Pe(Pe({},cn.defaultProps),n),{},{ticks:pt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},hr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function gi(t){var e,r,n,i,a,o,u=dp(),c=vp(),s=ek(),f=Pe(Pe({},t),{},{stroke:(e=t.stroke)!==null&&e!==void 0?e:hr.stroke,fill:(r=t.fill)!==null&&r!==void 0?r:hr.fill,horizontal:(n=t.horizontal)!==null&&n!==void 0?n:hr.horizontal,horizontalFill:(i=t.horizontalFill)!==null&&i!==void 0?i:hr.horizontalFill,vertical:(a=t.vertical)!==null&&a!==void 0?a:hr.vertical,verticalFill:(o=t.verticalFill)!==null&&o!==void 0?o:hr.verticalFill,x:L(t.x)?t.x:s.left,y:L(t.y)?t.y:s.top,width:L(t.width)?t.width:s.width,height:L(t.height)?t.height:s.height}),l=f.x,p=f.y,d=f.width,y=f.height,h=f.syncWithTicks,v=f.horizontalValues,b=f.verticalValues,g=ZR(),x=JR();if(!L(d)||d<=0||!L(y)||y<=0||!L(l)||l!==+l||!L(p)||p!==+p)return null;var A=f.verticalCoordinatesGenerator||pM,m=f.horizontalCoordinatesGenerator||dM,O=f.horizontalPoints,w=f.verticalPoints;if((!O||!O.length)&&W(m)){var S=v&&v.length,_=m({yAxis:x?Pe(Pe({},x),{},{ticks:S?v:x.ticks}):void 0,width:u,height:c,offset:s},S?!0:h);Ve(Array.isArray(_),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(tr(_),"]")),Array.isArray(_)&&(O=_)}if((!w||!w.length)&&W(A)){var T=b&&b.length,j=A({xAxis:g?Pe(Pe({},g),{},{ticks:T?b:g.ticks}):void 0,width:u,height:c,offset:s},T?!0:h);Ve(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(tr(j),"]")),Array.isArray(j)&&(w=j)}return P.createElement("g",{className:"recharts-cartesian-grid"},P.createElement(uM,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),P.createElement(cM,Ht({},f,{offset:s,horizontalPoints:O,xAxis:g,yAxis:x})),P.createElement(sM,Ht({},f,{offset:s,verticalPoints:w,xAxis:g,yAxis:x})),P.createElement(lM,Ht({},f,{horizontalPoints:O})),P.createElement(fM,Ht({},f,{verticalPoints:w})))}gi.displayName="CartesianGrid";var vM=["type","layout","connectNulls","ref"],hM=["key"];function Wr(t){"@babel/helpers - typeof";return Wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wr(t)}function Dg(t,e){if(t==null)return{};var r=yM(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function yM(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function $n(){return $n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$n.apply(this,arguments)}function Ng(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function $e(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ng(Object(r),!0).forEach(function(n){Ue(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ng(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function yr(t){return xM(t)||bM(t)||gM(t)||mM()}function mM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
70
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gM(t,e){if(t){if(typeof t=="string")return vf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vf(t,e)}}function bM(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function xM(t){if(Array.isArray(t))return vf(t)}function vf(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function OM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,FO(n.key),n)}}function AM(t,e,r){return e&&Lg(t.prototype,e),r&&Lg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function wM(t,e,r){return e=Pa(e),PM(t,BO()?Reflect.construct(e,r||[],Pa(t).constructor):e.apply(t,r))}function PM(t,e){if(e&&(Wr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SM(t)}function SM(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function BO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BO=function(){return!!t})()}function Pa(t){return Pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pa(t)}function _M(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hf(t,e)}function hf(t,e){return hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hf(t,e)}function Ue(t,e,r){return e=FO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FO(t){var e=jM(t,"string");return Wr(e)=="symbol"?e:e+""}function jM(t,e){if(Wr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var bi=(function(t){function e(){var r;OM(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=wM(this,e,[].concat(i)),Ue(r,"state",{isAnimationFinished:!0,totalLength:0}),Ue(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),Ue(r,"getStrokeDasharray",function(o,u,c){var s=c.reduce(function(b,g){return b+g});if(!s)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/s),l=o%s,p=u-o,d=[],y=0,h=0;y<c.length;h+=c[y],++y)if(h+c[y]>l){d=[].concat(yr(c.slice(0,y)),[l-h]);break}var v=d.length%2===0?[0,p]:[p];return[].concat(yr(e.repeat(c,f)),yr(d),v).map(function(b){return"".concat(b,"px")}).join(", ")}),Ue(r,"id",$t("recharts-line-")),Ue(r,"pathRef",function(o){r.mainCurve=o}),Ue(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Ue(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return _M(e,t),AM(e,[{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,c=a.yAxis,s=a.layout,f=a.children,l=Se(f,an);if(!l)return null;var p=function(h,v){return{x:h.x,y:h.y,value:h.value,errorVal:ie(h.payload,v)}},d={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(X,d,l.map(function(y){return P.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,dataPointFormatter:p})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,c=u.dot,s=u.points,f=u.dataKey,l=F(this.props,!1),p=F(c,!0),d=s.map(function(h,v){var b=$e($e($e({key:"dot-".concat(v),r:3},l),p),{},{index:v,cx:h.x,cy:h.y,value:h.value,dataKey:f,payload:h.payload,points:s});return e.renderDotItem(c,b)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(X,$n({className:"recharts-line-dots",key:"dots"},y),d)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,c=u.type,s=u.layout,f=u.connectNulls;u.ref;var l=Dg(u,vM),p=$e($e($e({},F(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:c,layout:s,connectNulls:f});return P.createElement(_t,$n({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.strokeDasharray,s=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,p=o.animationEasing,d=o.animationId,y=o.animateNewValues,h=o.width,v=o.height,b=this.state,g=b.prevPoints,x=b.totalLength;return P.createElement(Ee,{begin:f,duration:l,isActive:s,easing:p,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(A){var m=A.t;if(g){var O=g.length/u.length,w=u.map(function(E,$){var C=Math.floor($*O);if(g[C]){var I=g[C],k=te(I.x,E.x),N=te(I.y,E.y);return $e($e({},E),{},{x:k(m),y:N(m)})}if(y){var q=te(h*2,E.x),B=te(v/2,E.y);return $e($e({},E),{},{x:q(m),y:B(m)})}return $e($e({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(w,n,i)}var S=te(0,x),_=S(m),T;if(c){var j="".concat(c).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});T=a.getStrokeDasharray(_,x,j)}else T=a.generateSimpleStrokeDasharray(x,_);return a.renderCurveStatically(u,n,i,{strokeDasharray:T})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,c=this.state,s=c.prevPoints,f=c.totalLength;return u&&o&&o.length&&(!s&&f>0||!it(s,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,c=i.className,s=i.xAxis,f=i.yAxis,l=i.top,p=i.left,d=i.width,y=i.height,h=i.isAnimationActive,v=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,g=u.length===1,x=V("recharts-line",c),A=s&&s.allowDataOverflow,m=f&&f.allowDataOverflow,O=A||m,w=H(v)?this.id:v,S=(n=F(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},_=S.r,T=_===void 0?3:_,j=S.strokeWidth,E=j===void 0?2:j,$=fb(o)?o:{},C=$.clipDot,I=C===void 0?!0:C,k=T*2+E;return P.createElement(X,{className:x},A||m?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(w)},P.createElement("rect",{x:A?p:p-d/2,y:m?l:l-y/2,width:A?d:d*2,height:m?y:y*2})),!I&&P.createElement("clipPath",{id:"clipPath-dots-".concat(w)},P.createElement("rect",{x:p-k/2,y:l-k/2,width:d+k,height:y+k}))):null,!g&&this.renderCurve(O,w),this.renderErrorBar(O,w),(g||o)&&this.renderDots(O,I,w),(!h||b)&&Me.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(yr(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(yr(o),yr(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(P.isValidElement(n))a=P.cloneElement(n,i);else if(W(n))a=n(i);else{var o=i.key,u=Dg(i,hM),c=V("recharts-line-dot",typeof n!="boolean"?n.className:"");a=P.createElement(on,$n({key:o},u,{className:c}))}return a}}])})(M.PureComponent);Ue(bi,"displayName","Line");Ue(bi,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Je.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ue(bi,"getComposedData",function(t){var e=t.props,r=t.xAxis,n=t.yAxis,i=t.xAxisTicks,a=t.yAxisTicks,o=t.dataKey,u=t.bandSize,c=t.displayedData,s=t.offset,f=e.layout,l=c.map(function(p,d){var y=ie(p,o);return f==="horizontal"?{x:$r({axis:r,ticks:i,bandSize:u,entry:p,index:d}),y:H(y)?null:n.scale(y),value:y,payload:p}:{x:H(y)?null:r.scale(y),y:$r({axis:n,ticks:a,bandSize:u,entry:p,index:d}),value:y,payload:p}});return $e({points:l,layout:f},s)});var EM=["layout","type","stroke","connectNulls","isRange","ref"],TM=["key"],zO;function Gr(t){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gr(t)}function KO(t,e){if(t==null)return{};var r=$M(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function $M(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Ut(){return Ut=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ut.apply(this,arguments)}function qg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function xt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qg(Object(r),!0).forEach(function(n){tt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function IM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,GO(n.key),n)}}function CM(t,e,r){return e&&Bg(t.prototype,e),r&&Bg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function RM(t,e,r){return e=Sa(e),kM(t,WO()?Reflect.construct(e,r||[],Sa(t).constructor):e.apply(t,r))}function kM(t,e){if(e&&(Gr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MM(t)}function MM(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function WO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WO=function(){return!!t})()}function Sa(t){return Sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sa(t)}function DM(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yf(t,e)}function yf(t,e){return yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yf(t,e)}function tt(t,e,r){return e=GO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function GO(t){var e=NM(t,"string");return Gr(e)=="symbol"?e:e+""}function NM(t,e){if(Gr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Rt=(function(t){function e(){var r;IM(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=RM(this,e,[].concat(i)),tt(r,"state",{isAnimationFinished:!0}),tt(r,"id",$t("recharts-area-")),tt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),W(o)&&o()}),tt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),W(o)&&o()}),r}return DM(e,t),CM(e,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var c=this.props,s=c.dot,f=c.points,l=c.dataKey,p=F(this.props,!1),d=F(s,!0),y=f.map(function(v,b){var g=xt(xt(xt({key:"dot-".concat(b),r:3},p),d),{},{index:b,cx:v.x,cy:v.y,dataKey:l,value:v.value,payload:v.payload,points:f});return e.renderDotItem(s,g)}),h={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(X,Ut({className:"recharts-area-dots"},h),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,c=o[0].x,s=o[o.length-1].x,f=n*Math.abs(c-s),l=wt(o.map(function(p){return p.y||0}));return L(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(wt(a.map(function(p){return p.y||0})),l)),L(l)?P.createElement("rect",{x:c<s?c:c-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,c=o[0].y,s=o[o.length-1].y,f=n*Math.abs(c-s),l=wt(o.map(function(p){return p.x||0}));return L(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(wt(a.map(function(p){return p.x||0})),l)),L(l)?P.createElement("rect",{x:0,y:c<s?c:c-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,c=u.layout,s=u.type,f=u.stroke,l=u.connectNulls,p=u.isRange;u.ref;var d=KO(u,EM);return P.createElement(X,{clipPath:a?"url(#clipPath-".concat(o,")"):null},P.createElement(_t,Ut({},F(d,!0),{points:n,connectNulls:l,type:s,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),f!=="none"&&P.createElement(_t,Ut({},F(this.props,!1),{className:"recharts-area-curve",layout:c,type:s,connectNulls:l,fill:"none",points:n})),f!=="none"&&p&&P.createElement(_t,Ut({},F(this.props,!1),{className:"recharts-area-curve",layout:c,type:s,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.baseLine,s=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,p=o.animationEasing,d=o.animationId,y=this.state,h=y.prevPoints,v=y.prevBaseLine;return P.createElement(Ee,{begin:f,duration:l,isActive:s,easing:p,from:{t:0},to:{t:1},key:"area-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var g=b.t;if(h){var x=h.length/u.length,A=u.map(function(S,_){var T=Math.floor(_*x);if(h[T]){var j=h[T],E=te(j.x,S.x),$=te(j.y,S.y);return xt(xt({},S),{},{x:E(g),y:$(g)})}return S}),m;if(L(c)&&typeof c=="number"){var O=te(v,c);m=O(g)}else if(H(c)||en(c)){var w=te(v,0);m=w(g)}else m=c.map(function(S,_){var T=Math.floor(_*x);if(v[T]){var j=v[T],E=te(j.x,S.x),$=te(j.y,S.y);return xt(xt({},S),{},{x:E(g),y:$(g)})}return S});return a.renderAreaStatically(A,m,n,i)}return P.createElement(X,null,P.createElement("defs",null,P.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(g))),P.createElement(X,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,c,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,c=a.isAnimationActive,s=this.state,f=s.prevPoints,l=s.prevBaseLine,p=s.totalLength;return c&&o&&o.length&&(!f&&p>0||!it(f,o)||!it(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,c=i.className,s=i.top,f=i.left,l=i.xAxis,p=i.yAxis,d=i.width,y=i.height,h=i.isAnimationActive,v=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,g=u.length===1,x=V("recharts-area",c),A=l&&l.allowDataOverflow,m=p&&p.allowDataOverflow,O=A||m,w=H(v)?this.id:v,S=(n=F(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},_=S.r,T=_===void 0?3:_,j=S.strokeWidth,E=j===void 0?2:j,$=fb(o)?o:{},C=$.clipDot,I=C===void 0?!0:C,k=T*2+E;return P.createElement(X,{className:x},A||m?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(w)},P.createElement("rect",{x:A?f:f-d/2,y:m?s:s-y/2,width:A?d:d*2,height:m?y:y*2})),!I&&P.createElement("clipPath",{id:"clipPath-dots-".concat(w)},P.createElement("rect",{x:f-k/2,y:s-k/2,width:d+k,height:y+k}))):null,g?null:this.renderArea(O,w),(o||g)&&this.renderDots(O,I,w),(!h||b)&&Me.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}}])})(M.PureComponent);zO=Rt;tt(Rt,"displayName","Area");tt(Rt,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Je.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});tt(Rt,"getBaseValue",function(t,e,r,n){var i=t.layout,a=t.baseValue,o=e.props.baseValue,u=o??a;if(L(u)&&typeof u=="number")return u;var c=i==="horizontal"?n:r,s=c.scale.domain();if(c.type==="number"){var f=Math.max(s[0],s[1]),l=Math.min(s[0],s[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(s[0],s[1]),0)}return u==="dataMin"?s[0]:u==="dataMax"?s[1]:s[0]});tt(Rt,"getComposedData",function(t){var e=t.props,r=t.item,n=t.xAxis,i=t.yAxis,a=t.xAxisTicks,o=t.yAxisTicks,u=t.bandSize,c=t.dataKey,s=t.stackedData,f=t.dataStartIndex,l=t.displayedData,p=t.offset,d=e.layout,y=s&&s.length,h=zO.getBaseValue(e,r,n,i),v=d==="horizontal",b=!1,g=l.map(function(A,m){var O;y?O=s[f+m]:(O=ie(A,c),Array.isArray(O)?b=!0:O=[h,O]);var w=O[1]==null||y&&ie(A,c)==null;return v?{x:$r({axis:n,ticks:a,bandSize:u,entry:A,index:m}),y:w?null:i.scale(O[1]),value:O,payload:A}:{x:w?null:n.scale(O[1]),y:$r({axis:i,ticks:o,bandSize:u,entry:A,index:m}),value:O,payload:A}}),x;return y||b?x=g.map(function(A){var m=Array.isArray(A.value)?A.value[0]:null;return v?{x:A.x,y:m!=null&&A.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:A.y}}):x=v?i.scale(h):n.scale(h),xt({points:g,baseLine:x,layout:d,isRange:b},p)});tt(Rt,"renderDotItem",function(t,e){var r;if(P.isValidElement(t))r=P.cloneElement(t,e);else if(W(t))r=t(e);else{var n=V("recharts-area-dot",typeof t!="boolean"?t.className:""),i=e.key,a=KO(e,TM);r=P.createElement(on,Ut({},a,{key:i,className:n}))}return r});function Hr(t){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hr(t)}function LM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qM(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,VO(n.key),n)}}function BM(t,e,r){return e&&qM(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function FM(t,e,r){return e=_a(e),zM(t,HO()?Reflect.construct(e,r||[],_a(t).constructor):e.apply(t,r))}function zM(t,e){if(e&&(Hr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KM(t)}function KM(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function HO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HO=function(){return!!t})()}function _a(t){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_a(t)}function WM(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mf(t,e)}function mf(t,e){return mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mf(t,e)}function UO(t,e,r){return e=VO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function VO(t){var e=GM(t,"string");return Hr(e)=="symbol"?e:e+""}function GM(t,e){if(Hr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var xi=(function(t){function e(){return LM(this,e),FM(this,e,arguments)}return WM(e,t),BM(e,[{key:"render",value:function(){return null}}])})(M.Component);UO(xi,"displayName","ZAxis");UO(xi,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var HM=["option","isActive"];function In(){return In=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},In.apply(this,arguments)}function UM(t,e){if(t==null)return{};var r=VM(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function VM(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function XM(t){var e=t.option,r=t.isActive,n=UM(t,HM);return typeof e=="string"?M.createElement(ii,In({option:M.createElement(qa,In({type:e},n)),isActive:r,shapeType:"symbols"},n)):M.createElement(ii,In({option:e,isActive:r,shapeType:"symbols"},n))}function Ur(t){"@babel/helpers - typeof";return Ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ur(t)}function Cn(){return Cn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Cn.apply(this,arguments)}function Fg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Be(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Fg(Object(r),!0).forEach(function(n){St(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function YM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,YO(n.key),n)}}function ZM(t,e,r){return e&&zg(t.prototype,e),r&&zg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function JM(t,e,r){return e=ja(e),QM(t,XO()?Reflect.construct(e,r||[],ja(t).constructor):e.apply(t,r))}function QM(t,e){if(e&&(Ur(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eD(t)}function eD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function XO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XO=function(){return!!t})()}function ja(t){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ja(t)}function tD(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gf(t,e)}function gf(t,e){return gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gf(t,e)}function St(t,e,r){return e=YO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function YO(t){var e=rD(t,"string");return Ur(e)=="symbol"?e:e+""}function rD(t,e){if(Ur(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Oi=(function(t){function e(){var r;YM(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=JM(this,e,[].concat(i)),St(r,"state",{isAnimationFinished:!1}),St(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),St(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),St(r,"id",$t("recharts-scatter-")),r}return tD(e,t),ZM(e,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.activeShape,c=a.activeIndex,s=F(this.props,!1);return n.map(function(f,l){var p=c===l,d=p?u:o,y=Be(Be({},s),f);return P.createElement(X,Cn({className:"recharts-scatter-symbol",key:"symbol-".concat(f==null?void 0:f.cx,"-").concat(f==null?void 0:f.cy,"-").concat(f==null?void 0:f.size,"-").concat(l)},nt(i.props,f,l),{role:"img"}),P.createElement(XM,Cn({option:d,isActive:p,key:"symbol-".concat(l)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,s=i.animationEasing,f=i.animationId,l=this.state.prevPoints;return P.createElement(Ee,{begin:u,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var d=p.t,y=a.map(function(h,v){var b=l&&l[v];if(b){var g=te(b.cx,h.cx),x=te(b.cy,h.cy),A=te(b.size,h.size);return Be(Be({},h),{},{cx:g(d),cy:x(d),size:A(d)})}var m=te(0,h.size);return Be(Be({},h),{},{size:m(d)})});return P.createElement(X,null,n.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!it(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,u=i.yAxis,c=i.children,s=Se(c,an);return s?s.map(function(f,l){var p=f.props,d=p.direction,y=p.dataKey;return P.cloneElement(f,{key:"".concat(d,"-").concat(y,"-").concat(a[l]),data:a,xAxis:o,yAxis:u,layout:d==="x"?"vertical":"horizontal",dataPointFormatter:function(v,b){return{x:v.cx,y:v.cy,value:d==="x"?+v.node.x:+v.node.y,errorVal:ie(v,b)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,u=n.lineJointType,c=F(this.props,!1),s=F(a,!1),f,l;if(o==="joint")f=i.map(function(x){return{x:x.cx,y:x.cy}});else if(o==="fitting"){var p=qA(i),d=p.xmin,y=p.xmax,h=p.a,v=p.b,b=function(A){return h*A+v};f=[{x:d,y:b(d)},{x:y,y:b(y)}]}var g=Be(Be(Be({},c),{},{fill:"none",stroke:c&&c.fill},s),{},{points:f});return P.isValidElement(a)?l=P.cloneElement(a,g):W(a)?l=a(g):l=P.createElement(_t,Cn({},g,{type:u})),P.createElement(X,{className:"recharts-scatter-line",key:"recharts-scatter-line"},l)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,u=n.className,c=n.xAxis,s=n.yAxis,f=n.left,l=n.top,p=n.width,d=n.height,y=n.id,h=n.isAnimationActive;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,b=V("recharts-scatter",u),g=c&&c.allowDataOverflow,x=s&&s.allowDataOverflow,A=g||x,m=H(y)?this.id:y;return P.createElement(X,{className:b,clipPath:A?"url(#clipPath-".concat(m,")"):null},g||x?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(m)},P.createElement("rect",{x:g?f:f-p/2,y:x?l:l-d/2,width:g?p:p*2,height:x?d:d*2}))):null,o&&this.renderLine(),this.renderErrorBar(),P.createElement(X,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!h||v)&&Me.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(M.PureComponent);St(Oi,"displayName","Scatter");St(Oi,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Je.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});St(Oi,"getComposedData",function(t){var e=t.xAxis,r=t.yAxis,n=t.zAxis,i=t.item,a=t.displayedData,o=t.xAxisTicks,u=t.yAxisTicks,c=t.offset,s=i.props.tooltipType,f=Se(i.props.children,hi),l=H(e.dataKey)?i.props.dataKey:e.dataKey,p=H(r.dataKey)?i.props.dataKey:r.dataKey,d=n&&n.dataKey,y=n?n.range:xi.defaultProps.range,h=y&&y[0],v=e.scale.bandwidth?e.scale.bandwidth():0,b=r.scale.bandwidth?r.scale.bandwidth():0,g=a.map(function(x,A){var m=ie(x,l),O=ie(x,p),w=!H(d)&&ie(x,d)||"-",S=[{name:H(e.dataKey)?i.props.name:e.name||e.dataKey,unit:e.unit||"",value:m,payload:x,dataKey:l,type:s},{name:H(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:O,payload:x,dataKey:p,type:s}];w!=="-"&&S.push({name:n.name||n.dataKey,unit:n.unit||"",value:w,payload:x,dataKey:d,type:s});var _=$r({axis:e,ticks:o,bandSize:v,entry:x,index:A,dataKey:l}),T=$r({axis:r,ticks:u,bandSize:b,entry:x,index:A,dataKey:p}),j=w!=="-"?n.scale(w):h,E=Math.sqrt(Math.max(j,0)/Math.PI);return Be(Be({},x),{},{cx:_,cy:T,x:_-E,y:T-E,xAxis:e,yAxis:r,zAxis:n,width:2*E,height:2*E,size:j,node:{x:m,y:O,z:w},tooltipPayload:S,tooltipPosition:{x:_,y:T},payload:x},f&&f[A]&&f[A].props)});return Be({points:g},c)});function Vr(t){"@babel/helpers - typeof";return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vr(t)}function nD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function iD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,QO(n.key),n)}}function aD(t,e,r){return e&&iD(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function oD(t,e,r){return e=Ea(e),uD(t,ZO()?Reflect.construct(e,r||[],Ea(t).constructor):e.apply(t,r))}function uD(t,e){if(e&&(Vr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cD(t)}function cD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ZO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZO=function(){return!!t})()}function Ea(t){return Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ea(t)}function sD(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bf(t,e)}function bf(t,e){return bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bf(t,e)}function JO(t,e,r){return e=QO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QO(t){var e=lD(t,"string");return Vr(e)=="symbol"?e:e+""}function lD(t,e){if(Vr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function xf(){return xf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xf.apply(this,arguments)}function fD(t){var e=t.xAxisId,r=dp(),n=vp(),i=EO(e);return i==null?null:M.createElement(cn,xf({},i,{className:V("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return pt(o,!0)}}))}var Xe=(function(t){function e(){return nD(this,e),oD(this,e,arguments)}return sD(e,t),aD(e,[{key:"render",value:function(){return M.createElement(fD,this.props)}}])})(M.Component);JO(Xe,"displayName","XAxis");JO(Xe,"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 Xr(t){"@babel/helpers - typeof";return Xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xr(t)}function pD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,r0(n.key),n)}}function vD(t,e,r){return e&&dD(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function hD(t,e,r){return e=Ta(e),yD(t,e0()?Reflect.construct(e,r||[],Ta(t).constructor):e.apply(t,r))}function yD(t,e){if(e&&(Xr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mD(t)}function mD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e0(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e0=function(){return!!t})()}function Ta(t){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ta(t)}function gD(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Of(t,e)}function Of(t,e){return Of=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Of(t,e)}function t0(t,e,r){return e=r0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function r0(t){var e=bD(t,"string");return Xr(e)=="symbol"?e:e+""}function bD(t,e){if(Xr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Af(){return Af=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Af.apply(this,arguments)}var xD=function(e){var r=e.yAxisId,n=dp(),i=vp(),a=TO(r);return a==null?null:M.createElement(cn,Af({},a,{className:V("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return pt(u,!0)}}))},Ye=(function(t){function e(){return pD(this,e),hD(this,e,arguments)}return gD(e,t),vD(e,[{key:"render",value:function(){return M.createElement(xD,this.props)}}])})(M.Component);t0(Ye,"displayName","YAxis");t0(Ye,"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 Kg(t){return PD(t)||wD(t)||AD(t)||OD()}function OD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
71
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AD(t,e){if(t){if(typeof t=="string")return wf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wf(t,e)}}function wD(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function PD(t){if(Array.isArray(t))return wf(t)}function wf(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Pf=function(e,r,n,i,a){var o=Se(e,yp),u=Se(e,ro),c=[].concat(Kg(o),Kg(u)),s=Se(e,io),f="".concat(i,"Id"),l=i[0],p=r;if(c.length&&(p=c.reduce(function(h,v){if(v.props[f]===n&&rt(v.props,"extendDomain")&&L(v.props[l])){var b=v.props[l];return[Math.min(h[0],b),Math.max(h[1],b)]}return h},p)),s.length){var d="".concat(l,"1"),y="".concat(l,"2");p=s.reduce(function(h,v){if(v.props[f]===n&&rt(v.props,"extendDomain")&&L(v.props[d])&&L(v.props[y])){var b=v.props[d],g=v.props[y];return[Math.min(h[0],b,g),Math.max(h[1],b,g)]}return h},p)}return a&&a.length&&(p=a.reduce(function(h,v){return L(v)?[Math.min(h[0],v),Math.max(h[1],v)]:h},p)),p},tl={exports:{}},Wg;function SD(){return Wg||(Wg=1,(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,s,f){this.fn=c,this.context=s,this.once=f||!1}function a(c,s,f,l,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var d=new i(f,l||c,p),y=r?r+s:s;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],d]:c._events[y].push(d):(c._events[y]=d,c._eventsCount++),c}function o(c,s){--c._eventsCount===0?c._events=new n:delete c._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],f,l;if(this._eventsCount===0)return s;for(l in f=this._events)e.call(f,l)&&s.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},u.prototype.listeners=function(s){var f=r?r+s:s,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var p=0,d=l.length,y=new Array(d);p<d;p++)y[p]=l[p].fn;return y},u.prototype.listenerCount=function(s){var f=r?r+s:s,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(s,f,l,p,d,y){var h=r?r+s:s;if(!this._events[h])return!1;var v=this._events[h],b=arguments.length,g,x;if(v.fn){switch(v.once&&this.removeListener(s,v.fn,void 0,!0),b){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,f),!0;case 3:return v.fn.call(v.context,f,l),!0;case 4:return v.fn.call(v.context,f,l,p),!0;case 5:return v.fn.call(v.context,f,l,p,d),!0;case 6:return v.fn.call(v.context,f,l,p,d,y),!0}for(x=1,g=new Array(b-1);x<b;x++)g[x-1]=arguments[x];v.fn.apply(v.context,g)}else{var A=v.length,m;for(x=0;x<A;x++)switch(v[x].once&&this.removeListener(s,v[x].fn,void 0,!0),b){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,f);break;case 3:v[x].fn.call(v[x].context,f,l);break;case 4:v[x].fn.call(v[x].context,f,l,p);break;default:if(!g)for(m=1,g=new Array(b-1);m<b;m++)g[m-1]=arguments[m];v[x].fn.apply(v[x].context,g)}}return!0},u.prototype.on=function(s,f,l){return a(this,s,f,l,!1)},u.prototype.once=function(s,f,l){return a(this,s,f,l,!0)},u.prototype.removeListener=function(s,f,l,p){var d=r?r+s:s;if(!this._events[d])return this;if(!f)return o(this,d),this;var y=this._events[d];if(y.fn)y.fn===f&&(!p||y.once)&&(!l||y.context===l)&&o(this,d);else{for(var h=0,v=[],b=y.length;h<b;h++)(y[h].fn!==f||p&&!y[h].once||l&&y[h].context!==l)&&v.push(y[h]);v.length?this._events[d]=v.length===1?v[0]:v:o(this,d)}return this},u.prototype.removeAllListeners=function(s){var f;return s?(f=r?r+s:s,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,t.exports=u})(tl)),tl.exports}var _D=SD();const jD=re(_D);var rl=new jD,nl="recharts.syncMouseEvents";function fi(t){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fi(t)}function ED(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n0(n.key),n)}}function $D(t,e,r){return e&&TD(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function il(t,e,r){return e=n0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function n0(t){var e=ID(t,"string");return fi(e)=="symbol"?e:e+""}function ID(t,e){if(fi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var CD=(function(){function t(){ED(this,t),il(this,"activeIndex",0),il(this,"coordinateList",[]),il(this,"layout","horizontal")}return $D(t,[{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,c=r.layout,s=c===void 0?null:c,f=r.offset,l=f===void 0?null:f,p=r.mouseHandlerCallback,d=p===void 0?null:p;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=s??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=d??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,c=this.coordinateList[this.activeIndex].coordinate,s=((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+c+s,p=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:p})}}}])})();function RD(t,e,r){if(r==="number"&&e===!0&&Array.isArray(t)){var n=t==null?void 0:t[0],i=t==null?void 0:t[1];if(n&&i&&L(n)&&L(i))return!0}return!1}function kD(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:t==="horizontal"?e.x-i:r.left+.5,y:t==="horizontal"?r.top+.5:e.y-i,width:t==="horizontal"?n:r.width-1,height:t==="horizontal"?r.height-1:n}}function i0(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,a=t.endAngle,o=J(e,r,n,i),u=J(e,r,n,a);return{points:[o,u],cx:e,cy:r,radius:n,startAngle:i,endAngle:a}}function MD(t,e,r){var n,i,a,o;if(t==="horizontal")n=e.x,a=n,i=r.top,o=r.top+r.height;else if(t==="vertical")i=e.y,o=i,n=r.left,a=r.left+r.width;else if(e.cx!=null&&e.cy!=null)if(t==="centric"){var u=e.cx,c=e.cy,s=e.innerRadius,f=e.outerRadius,l=e.angle,p=J(u,c,s,l),d=J(u,c,f,l);n=p.x,i=p.y,a=d.x,o=d.y}else return i0(e);return[{x:n,y:i},{x:a,y:o}]}function pi(t){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pi(t)}function Gg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Mi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Gg(Object(r),!0).forEach(function(n){DD(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function DD(t,e,r){return e=ND(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ND(t){var e=LD(t,"string");return pi(e)=="symbol"?e:e+""}function LD(t,e){if(pi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qD(t){var e,r,n=t.element,i=t.tooltipEventType,a=t.isActive,o=t.activeCoordinate,u=t.activePayload,c=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,l=t.layout,p=t.chartName,d=(e=n.props.cursor)!==null&&e!==void 0?e:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!d||!a||!o||p!=="ScatterChart"&&i!=="axis")return null;var y,h=_t;if(p==="ScatterChart")y=o,h=U$;else if(p==="BarChart")y=kD(l,o,c,f),h=sp;else if(l==="radial"){var v=i0(o),b=v.cx,g=v.cy,x=v.radius,A=v.startAngle,m=v.endAngle;y={cx:b,cy:g,startAngle:A,endAngle:m,innerRadius:x,outerRadius:x},h=Hx}else y={points:MD(l,o,c)},h=_t;var O=Mi(Mi(Mi(Mi({stroke:"#ccc",pointerEvents:"none"},c),y),F(d,!1)),{},{payload:u,payloadIndex:s,className:V("recharts-tooltip-cursor",d.className)});return M.isValidElement(d)?M.cloneElement(d,O):M.createElement(h,O)}var BD=["item"],FD=["children","className","width","height","style","compact","title","desc"];function Yr(t){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yr(t)}function Or(){return Or=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Or.apply(this,arguments)}function Hg(t,e){return WD(t)||KD(t,e)||o0(t,e)||zD()}function zD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
72
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KD(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function WD(t){if(Array.isArray(t))return t}function Ug(t,e){if(t==null)return{};var r=GD(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function GD(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function HD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function UD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u0(n.key),n)}}function VD(t,e,r){return e&&UD(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function XD(t,e,r){return e=$a(e),YD(t,a0()?Reflect.construct(e,r||[],$a(t).constructor):e.apply(t,r))}function YD(t,e){if(e&&(Yr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZD(t)}function ZD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a0(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a0=function(){return!!t})()}function $a(t){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$a(t)}function JD(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sf(t,e)}function Sf(t,e){return Sf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sf(t,e)}function Zr(t){return tN(t)||eN(t)||o0(t)||QD()}function QD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
73
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o0(t,e){if(t){if(typeof t=="string")return _f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _f(t,e)}}function eN(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function tN(t){if(Array.isArray(t))return _f(t)}function _f(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Vg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function R(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Vg(Object(r),!0).forEach(function(n){U(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function U(t,e,r){return e=u0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u0(t){var e=rN(t,"string");return Yr(e)=="symbol"?e:e+""}function rN(t,e){if(Yr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Yr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var nN={xAxis:["bottom","top"],yAxis:["left","right"]},iN={width:"100%",height:"100%"},c0={x:0,y:0};function Di(t){return t}var aN=function(e,r){return r==="horizontal"?e.x:r==="vertical"?e.y:r==="centric"?e.angle:e.radius},oN=function(e,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(e==="horizontal")return{x:a.coordinate,y:i.y};if(e==="vertical")return{x:i.x,y:a.coordinate};if(e==="centric"){var o=a.coordinate,u=i.radius;return R(R(R({},i),J(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return R(R(R({},i),J(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return c0},ao=function(e,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,c){var s=c.props.data;return s&&s.length?[].concat(Zr(u),Zr(s)):u},[]);return o.length>0?o:e&&e.length&&L(i)&&L(a)?e.slice(i,a+1):[]};function s0(t){return t==="number"?[0,"auto"]:void 0}var jf=function(e,r,n,i){var a=e.graphicalItems,o=e.tooltipAxis,u=ao(r,e);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,s){var f,l=(f=s.props.data)!==null&&f!==void 0?f:r;l&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(l=l.slice(e.dataStartIndex,e.dataEndIndex+1));var p;if(o.dataKey&&!o.allowDuplicatedCategory){var d=l===void 0?u:l;p=Bi(d,o.dataKey,i)}else p=l&&l[n]||u[n];return p?[].concat(Zr(c),[up(s,p)]):c},[])},Xg=function(e,r,n,i){var a=i||{x:e.chartX,y:e.chartY},o=aN(a,n),u=e.orderedTooltipTicks,c=e.tooltipAxis,s=e.tooltipTicks,f=xj(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,p=jf(e,r,f,l),d=oN(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:p,activeCoordinate:d}}return null},uN=function(e,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=e.layout,l=e.children,p=e.stackOffset,d=Ix(f,a);return n.reduce(function(y,h){var v,b=h.type.defaultProps!==void 0?R(R({},h.type.defaultProps),h.props):h.props,g=b.type,x=b.dataKey,A=b.allowDataOverflow,m=b.allowDuplicatedCategory,O=b.scale,w=b.ticks,S=b.includeHidden,_=b[o];if(y[_])return y;var T=ao(e.data,{graphicalItems:i.filter(function(z){var Z,se=o in z.props?z.props[o]:(Z=z.type.defaultProps)===null||Z===void 0?void 0:Z[o];return se===_}),dataStartIndex:c,dataEndIndex:s}),j=T.length,E,$,C;RD(b.domain,A,g)&&(E=kl(b.domain,null,A),d&&(g==="number"||O!=="auto")&&(C=_n(T,x,"category")));var I=s0(g);if(!E||E.length===0){var k,N=(k=b.domain)!==null&&k!==void 0?k:I;if(x){if(E=_n(T,x,g),g==="category"&&d){var q=LA(E);m&&q?($=E,E=va(0,j)):m||(E=Dy(N,E,h).reduce(function(z,Z){return z.indexOf(Z)>=0?z:[].concat(Zr(z),[Z])},[]))}else if(g==="category")m?E=E.filter(function(z){return z!==""&&!H(z)}):E=Dy(N,E,h).reduce(function(z,Z){return z.indexOf(Z)>=0||Z===""||H(Z)?z:[].concat(Zr(z),[Z])},[]);else if(g==="number"){var B=Sj(T,i.filter(function(z){var Z,se,me=o in z.props?z.props[o]:(Z=z.type.defaultProps)===null||Z===void 0?void 0:Z[o],We="hide"in z.props?z.props.hide:(se=z.type.defaultProps)===null||se===void 0?void 0:se.hide;return me===_&&(S||!We)}),x,a,f);B&&(E=B)}d&&(g==="number"||O!=="auto")&&(C=_n(T,x,"category"))}else d?E=va(0,j):u&&u[_]&&u[_].hasStack&&g==="number"?E=p==="expand"?[0,1]:qx(u[_].stackGroups,c,s):E=$x(T,i.filter(function(z){var Z=o in z.props?z.props[o]:z.type.defaultProps[o],se="hide"in z.props?z.props.hide:z.type.defaultProps.hide;return Z===_&&(S||!se)}),g,f,!0);if(g==="number")E=Pf(l,E,_,a,w),N&&(E=kl(N,E,A));else if(g==="category"&&N){var G=N,Y=E.every(function(z){return G.indexOf(z)>=0});Y&&(E=G)}}return R(R({},y),{},U({},_,R(R({},b),{},{axisType:a,domain:E,categoricalDomain:C,duplicateDomain:$,originalDomain:(v=b.domain)!==null&&v!==void 0?v:I,isCategorical:d,layout:f})))},{})},cN=function(e,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=e.layout,l=e.children,p=ao(e.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),d=p.length,y=Ix(f,a),h=-1;return n.reduce(function(v,b){var g=b.type.defaultProps!==void 0?R(R({},b.type.defaultProps),b.props):b.props,x=g[o],A=s0("number");if(!v[x]){h++;var m;return y?m=va(0,d):u&&u[x]&&u[x].hasStack?(m=qx(u[x].stackGroups,c,s),m=Pf(l,m,x,a)):(m=kl(A,$x(p,n.filter(function(O){var w,S,_=o in O.props?O.props[o]:(w=O.type.defaultProps)===null||w===void 0?void 0:w[o],T="hide"in O.props?O.props.hide:(S=O.type.defaultProps)===null||S===void 0?void 0:S.hide;return _===x&&!T}),"number",f),i.defaultProps.allowDataOverflow),m=Pf(l,m,x,a)),R(R({},v),{},U({},x,R(R({axisType:a},i.defaultProps),{},{hide:!0,orientation:ke(nN,"".concat(a,".").concat(h%2),null),domain:m,originalDomain:A,isCategorical:y,layout:f})))}return v},{})},sN=function(e,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=e.children,l="".concat(i,"Id"),p=Se(f,a),d={};return p&&p.length?d=uN(e,{axes:p,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(d=cN(e,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),d},lN=function(e){var r=At(e),n=pt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Yf(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Zi(r,n)}},Yg=function(e){var r=e.children,n=e.defaultShowTooltip,i=Ce(r,Lr),a=0,o=0;return e.data&&e.data.length!==0&&(o=e.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}},fN=function(e){return!e||!e.length?!1:e.some(function(r){var n=dt(r&&r.type);return n&&n.indexOf("Bar")>=0})},Zg=function(e){return e==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:e==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:e==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},pN=function(e,r){var n=e.props,i=e.graphicalItems,a=e.xAxisMap,o=a===void 0?{}:a,u=e.yAxisMap,c=u===void 0?{}:u,s=n.width,f=n.height,l=n.children,p=n.margin||{},d=Ce(l,Lr),y=Ce(l,Vt),h=Object.keys(c).reduce(function(m,O){var w=c[O],S=w.orientation;return!w.mirror&&!w.hide?R(R({},m),{},U({},S,m[S]+w.width)):m},{left:p.left||0,right:p.right||0}),v=Object.keys(o).reduce(function(m,O){var w=o[O],S=w.orientation;return!w.mirror&&!w.hide?R(R({},m),{},U({},S,ke(m,"".concat(S))+w.height)):m},{top:p.top||0,bottom:p.bottom||0}),b=R(R({},v),h),g=b.bottom;d&&(b.bottom+=d.props.height||Lr.defaultProps.height),y&&r&&(b=wj(b,i,n,r));var x=s-b.left-b.right,A=f-b.top-b.bottom;return R(R({brushBottom:g},b),{},{width:Math.max(x,0),height:Math.max(A,0)})},dN=function(e,r){if(r==="xAxis")return e[r].width;if(r==="yAxis")return e[r].height},ur=function(e){var r=e.chartName,n=e.GraphicalChild,i=e.defaultTooltipEventType,a=i===void 0?"axis":i,o=e.validateTooltipEventTypes,u=o===void 0?["axis"]:o,c=e.axisComponents,s=e.legendContent,f=e.formatAxisMap,l=e.defaultProps,p=function(b,g){var x=g.graphicalItems,A=g.stackGroups,m=g.offset,O=g.updateId,w=g.dataStartIndex,S=g.dataEndIndex,_=b.barSize,T=b.layout,j=b.barGap,E=b.barCategoryGap,$=b.maxBarSize,C=Zg(T),I=C.numericAxisName,k=C.cateAxisName,N=fN(x),q=[];return x.forEach(function(B,G){var Y=ao(b.data,{graphicalItems:[B],dataStartIndex:w,dataEndIndex:S}),z=B.type.defaultProps!==void 0?R(R({},B.type.defaultProps),B.props):B.props,Z=z.dataKey,se=z.maxBarSize,me=z["".concat(I,"Id")],We=z["".concat(k,"Id")],ln={},De=c.reduce(function(Lt,qt){var oo=g["".concat(qt.axisType,"Map")],bp=z["".concat(qt.axisType,"Id")];oo&&oo[bp]||qt.axisType==="zAxis"||er();var xp=oo[bp];return R(R({},Lt),{},U(U({},qt.axisType,xp),"".concat(qt.axisType,"Ticks"),pt(xp)))},ln),Dt=De[k],Pi=De["".concat(k,"Ticks")],lr=A&&A[me]&&A[me].hasStack&&Ij(B,A[me].stackGroups),fn=dt(B.type).indexOf("Bar")>=0,Nt=Zi(Dt,Pi),fr=[],pn=N&&Oj({barSize:_,stackGroups:A,totalSize:dN(De,k)});if(fn){var dn,pr,vn=H(se)?$:se,dr=(dn=(pr=Zi(Dt,Pi,!0))!==null&&pr!==void 0?pr:vn)!==null&&dn!==void 0?dn:0;fr=Aj({barGap:j,barCategoryGap:E,bandSize:dr!==Nt?dr:Nt,sizeList:pn[We],maxBarSize:vn}),dr!==Nt&&(fr=fr.map(function(Lt){return R(R({},Lt),{},{position:R(R({},Lt.position),{},{offset:Lt.position.offset-dr/2})})}))}var Si=B&&B.type&&B.type.getComposedData;Si&&q.push({props:R(R({},Si(R(R({},De),{},{displayedData:Y,props:b,dataKey:Z,item:B,bandSize:Nt,barPosition:fr,offset:m,stackedData:lr,layout:T,dataStartIndex:w,dataEndIndex:S}))),{},U(U(U({key:B.key||"item-".concat(G)},I,De[I]),k,De[k]),"animationId",O)),childIndex:ZA(B,b.children),item:B})}),q},d=function(b,g){var x=b.props,A=b.dataStartIndex,m=b.dataEndIndex,O=b.updateId;if(!Cd({props:x}))return null;var w=x.children,S=x.layout,_=x.stackOffset,T=x.data,j=x.reverseStackOrder,E=Zg(S),$=E.numericAxisName,C=E.cateAxisName,I=Se(w,n),k=$j(T,I,"".concat($,"Id"),"".concat(C,"Id"),_,j),N=c.reduce(function(z,Z){var se="".concat(Z.axisType,"Map");return R(R({},z),{},U({},se,sN(x,R(R({},Z),{},{graphicalItems:I,stackGroups:Z.axisType===$&&k,dataStartIndex:A,dataEndIndex:m}))))},{}),q=pN(R(R({},N),{},{props:x,graphicalItems:I}),g==null?void 0:g.legendBBox);Object.keys(N).forEach(function(z){N[z]=f(x,N[z],q,z.replace("Map",""),r)});var B=N["".concat(C,"Map")],G=lN(B),Y=p(x,R(R({},N),{},{dataStartIndex:A,dataEndIndex:m,updateId:O,graphicalItems:I,stackGroups:k,offset:q}));return R(R({formattedGraphicalItems:Y,graphicalItems:I,offset:q,stackGroups:k},G),N)},y=(function(v){function b(g){var x,A,m;return HD(this,b),m=XD(this,b,[g]),U(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),U(m,"accessibilityManager",new CD),U(m,"handleLegendBBoxUpdate",function(O){if(O){var w=m.state,S=w.dataStartIndex,_=w.dataEndIndex,T=w.updateId;m.setState(R({legendBBox:O},d({props:m.props,dataStartIndex:S,dataEndIndex:_,updateId:T},R(R({},m.state),{},{legendBBox:O}))))}}),U(m,"handleReceiveSyncEvent",function(O,w,S){if(m.props.syncId===O){if(S===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(w)}}),U(m,"handleBrushChange",function(O){var w=O.startIndex,S=O.endIndex;if(w!==m.state.dataStartIndex||S!==m.state.dataEndIndex){var _=m.state.updateId;m.setState(function(){return R({dataStartIndex:w,dataEndIndex:S},d({props:m.props,dataStartIndex:w,dataEndIndex:S,updateId:_},m.state))}),m.triggerSyncEvent({dataStartIndex:w,dataEndIndex:S})}}),U(m,"handleMouseEnter",function(O){var w=m.getMouseInfo(O);if(w){var S=R(R({},w),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var _=m.props.onMouseEnter;W(_)&&_(S,O)}}),U(m,"triggeredAfterMouseMove",function(O){var w=m.getMouseInfo(O),S=w?R(R({},w),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var _=m.props.onMouseMove;W(_)&&_(S,O)}),U(m,"handleItemMouseEnter",function(O){m.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),U(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),U(m,"handleMouseMove",function(O){O.persist(),m.throttleTriggeredAfterMouseMove(O)}),U(m,"handleMouseLeave",function(O){m.throttleTriggeredAfterMouseMove.cancel();var w={isTooltipActive:!1};m.setState(w),m.triggerSyncEvent(w);var S=m.props.onMouseLeave;W(S)&&S(w,O)}),U(m,"handleOuterEvent",function(O){var w=YA(O),S=ke(m.props,"".concat(w));if(w&&W(S)){var _,T;/.*touch.*/i.test(w)?T=m.getMouseInfo(O.changedTouches[0]):T=m.getMouseInfo(O),S((_=T)!==null&&_!==void 0?_:{},O)}}),U(m,"handleClick",function(O){var w=m.getMouseInfo(O);if(w){var S=R(R({},w),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var _=m.props.onClick;W(_)&&_(S,O)}}),U(m,"handleMouseDown",function(O){var w=m.props.onMouseDown;if(W(w)){var S=m.getMouseInfo(O);w(S,O)}}),U(m,"handleMouseUp",function(O){var w=m.props.onMouseUp;if(W(w)){var S=m.getMouseInfo(O);w(S,O)}}),U(m,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),U(m,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&m.handleMouseDown(O.changedTouches[0])}),U(m,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&m.handleMouseUp(O.changedTouches[0])}),U(m,"handleDoubleClick",function(O){var w=m.props.onDoubleClick;if(W(w)){var S=m.getMouseInfo(O);w(S,O)}}),U(m,"handleContextMenu",function(O){var w=m.props.onContextMenu;if(W(w)){var S=m.getMouseInfo(O);w(S,O)}}),U(m,"triggerSyncEvent",function(O){m.props.syncId!==void 0&&rl.emit(nl,m.props.syncId,O,m.eventEmitterSymbol)}),U(m,"applySyncEvent",function(O){var w=m.props,S=w.layout,_=w.syncMethod,T=m.state.updateId,j=O.dataStartIndex,E=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)m.setState(R({dataStartIndex:j,dataEndIndex:E},d({props:m.props,dataStartIndex:j,dataEndIndex:E,updateId:T},m.state)));else if(O.activeTooltipIndex!==void 0){var $=O.chartX,C=O.chartY,I=O.activeTooltipIndex,k=m.state,N=k.offset,q=k.tooltipTicks;if(!N)return;if(typeof _=="function")I=_(q,O);else if(_==="value"){I=-1;for(var B=0;B<q.length;B++)if(q[B].value===O.activeLabel){I=B;break}}var G=R(R({},N),{},{x:N.left,y:N.top}),Y=Math.min($,G.x+G.width),z=Math.min(C,G.y+G.height),Z=q[I]&&q[I].value,se=jf(m.state,m.props.data,I),me=q[I]?{x:S==="horizontal"?q[I].coordinate:Y,y:S==="horizontal"?z:q[I].coordinate}:c0;m.setState(R(R({},O),{},{activeLabel:Z,activeCoordinate:me,activePayload:se,activeTooltipIndex:I}))}else m.setState(O)}),U(m,"renderCursor",function(O){var w,S=m.state,_=S.isTooltipActive,T=S.activeCoordinate,j=S.activePayload,E=S.offset,$=S.activeTooltipIndex,C=S.tooltipAxisBandSize,I=m.getTooltipEventType(),k=(w=O.props.active)!==null&&w!==void 0?w:_,N=m.props.layout,q=O.key||"_recharts-cursor";return P.createElement(qD,{key:q,activeCoordinate:T,activePayload:j,activeTooltipIndex:$,chartName:r,element:O,isActive:k,layout:N,offset:E,tooltipAxisBandSize:C,tooltipEventType:I})}),U(m,"renderPolarAxis",function(O,w,S){var _=ke(O,"type.axisType"),T=ke(m.state,"".concat(_,"Map")),j=O.type.defaultProps,E=j!==void 0?R(R({},j),O.props):O.props,$=T&&T[E["".concat(_,"Id")]];return M.cloneElement(O,R(R({},$),{},{className:V(_,$.className),key:O.key||"".concat(w,"-").concat(S),ticks:pt($,!0)}))}),U(m,"renderPolarGrid",function(O){var w=O.props,S=w.radialLines,_=w.polarAngles,T=w.polarRadius,j=m.state,E=j.radiusAxisMap,$=j.angleAxisMap,C=At(E),I=At($),k=I.cx,N=I.cy,q=I.innerRadius,B=I.outerRadius;return M.cloneElement(O,{polarAngles:Array.isArray(_)?_:pt(I,!0).map(function(G){return G.coordinate}),polarRadius:Array.isArray(T)?T:pt(C,!0).map(function(G){return G.coordinate}),cx:k,cy:N,innerRadius:q,outerRadius:B,key:O.key||"polar-grid",radialLines:S})}),U(m,"renderLegend",function(){var O=m.state.formattedGraphicalItems,w=m.props,S=w.children,_=w.width,T=w.height,j=m.props.margin||{},E=_-(j.left||0)-(j.right||0),$=Ex({children:S,formattedGraphicalItems:O,legendWidth:E,legendContent:s});if(!$)return null;var C=$.item,I=Ug($,BD);return M.cloneElement(C,R(R({},I),{},{chartWidth:_,chartHeight:T,margin:j,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),U(m,"renderTooltip",function(){var O,w=m.props,S=w.children,_=w.accessibilityLayer,T=Ce(S,Qe);if(!T)return null;var j=m.state,E=j.isTooltipActive,$=j.activeCoordinate,C=j.activePayload,I=j.activeLabel,k=j.offset,N=(O=T.props.active)!==null&&O!==void 0?O:E;return M.cloneElement(T,{viewBox:R(R({},k),{},{x:k.left,y:k.top}),active:N,label:I,payload:N?C:[],coordinate:$,accessibilityLayer:_})}),U(m,"renderBrush",function(O){var w=m.props,S=w.margin,_=w.data,T=m.state,j=T.offset,E=T.dataStartIndex,$=T.dataEndIndex,C=T.updateId;return M.cloneElement(O,{key:O.key||"_recharts-brush",onChange:Ii(m.handleBrushChange,O.props.onChange),data:_,x:L(O.props.x)?O.props.x:j.left,y:L(O.props.y)?O.props.y:j.top+j.height+j.brushBottom-(S.bottom||0),width:L(O.props.width)?O.props.width:j.width,startIndex:E,endIndex:$,updateId:"brush-".concat(C)})}),U(m,"renderReferenceElement",function(O,w,S){if(!O)return null;var _=m,T=_.clipPathId,j=m.state,E=j.xAxisMap,$=j.yAxisMap,C=j.offset,I=O.type.defaultProps||{},k=O.props,N=k.xAxisId,q=N===void 0?I.xAxisId:N,B=k.yAxisId,G=B===void 0?I.yAxisId:B;return M.cloneElement(O,{key:O.key||"".concat(w,"-").concat(S),xAxis:E[q],yAxis:$[G],viewBox:{x:C.left,y:C.top,width:C.width,height:C.height},clipPathId:T})}),U(m,"renderActivePoints",function(O){var w=O.item,S=O.activePoint,_=O.basePoint,T=O.childIndex,j=O.isRange,E=[],$=w.props.key,C=w.item.type.defaultProps!==void 0?R(R({},w.item.type.defaultProps),w.item.props):w.item.props,I=C.activeDot,k=C.dataKey,N=R(R({index:T,dataKey:k,cx:S.x,cy:S.y,r:4,fill:op(w.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},F(I,!1)),Fi(I));return E.push(b.renderActiveDot(I,N,"".concat($,"-activePoint-").concat(T))),_?E.push(b.renderActiveDot(I,R(R({},N),{},{cx:_.x,cy:_.y}),"".concat($,"-basePoint-").concat(T))):j&&E.push(null),E}),U(m,"renderGraphicChild",function(O,w,S){var _=m.filterFormatItem(O,w,S);if(!_)return null;var T=m.getTooltipEventType(),j=m.state,E=j.isTooltipActive,$=j.tooltipAxis,C=j.activeTooltipIndex,I=j.activeLabel,k=m.props.children,N=Ce(k,Qe),q=_.props,B=q.points,G=q.isRange,Y=q.baseLine,z=_.item.type.defaultProps!==void 0?R(R({},_.item.type.defaultProps),_.item.props):_.item.props,Z=z.activeDot,se=z.hide,me=z.activeBar,We=z.activeShape,ln=!!(!se&&E&&N&&(Z||me||We)),De={};T!=="axis"&&N&&N.props.trigger==="click"?De={onClick:Ii(m.handleItemMouseEnter,O.props.onClick)}:T!=="axis"&&(De={onMouseLeave:Ii(m.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:Ii(m.handleItemMouseEnter,O.props.onMouseEnter)});var Dt=M.cloneElement(O,R(R({},_.props),De));function Pi(qt){return typeof $.dataKey=="function"?$.dataKey(qt.payload):null}if(ln)if(C>=0){var lr,fn;if($.dataKey&&!$.allowDuplicatedCategory){var Nt=typeof $.dataKey=="function"?Pi:"payload.".concat($.dataKey.toString());lr=Bi(B,Nt,I),fn=G&&Y&&Bi(Y,Nt,I)}else lr=B==null?void 0:B[C],fn=G&&Y&&Y[C];if(We||me){var fr=O.props.activeIndex!==void 0?O.props.activeIndex:C;return[M.cloneElement(O,R(R(R({},_.props),De),{},{activeIndex:fr})),null,null]}if(!H(lr))return[Dt].concat(Zr(m.renderActivePoints({item:_,activePoint:lr,basePoint:fn,childIndex:C,isRange:G})))}else{var pn,dn=(pn=m.getItemByXY(m.state.activeCoordinate))!==null&&pn!==void 0?pn:{graphicalItem:Dt},pr=dn.graphicalItem,vn=pr.item,dr=vn===void 0?O:vn,Si=pr.childIndex,Lt=R(R(R({},_.props),De),{},{activeIndex:Si});return[M.cloneElement(dr,Lt),null,null]}return G?[Dt,null,null]:[Dt,null]}),U(m,"renderCustomized",function(O,w,S){return M.cloneElement(O,R(R({key:"recharts-customized-".concat(S)},m.props),m.state))}),U(m,"renderMap",{CartesianGrid:{handler:Di,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:Di},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:Di},YAxis:{handler:Di},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((x=g.id)!==null&&x!==void 0?x:$t("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=Wb(m.triggeredAfterMouseMove,(A=g.throttleDelay)!==null&&A!==void 0?A:1e3/60),m.state={},m}return JD(b,v),VD(b,[{key:"componentDidMount",value:function(){var x,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,A=x.children,m=x.data,O=x.height,w=x.layout,S=Ce(A,Qe);if(S){var _=S.props.defaultIndex;if(!(typeof _!="number"||_<0||_>this.state.tooltipTicks.length-1)){var T=this.state.tooltipTicks[_]&&this.state.tooltipTicks[_].value,j=jf(this.state,m,_,T),E=this.state.tooltipTicks[_].coordinate,$=(this.state.offset.top+O)/2,C=w==="horizontal",I=C?{x:E,y:$}:{y:E,x:$},k=this.state.formattedGraphicalItems.find(function(q){var B=q.item;return B.type.name==="Scatter"});k&&(I=R(R({},I),k.props.points[_].tooltipPosition),j=k.props.points[_].tooltipPayload);var N={activeTooltipIndex:_,isTooltipActive:!0,activeLabel:T,activePayload:j,activeCoordinate:I};this.setState(N),this.renderCursor(S),this.accessibilityManager.setIndex(_)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var m,O;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(x){fl([Ce(x.children,Qe)],[Ce(this.props.children,Qe)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Ce(this.props.children,Qe);if(x&&typeof x.props.shared=="boolean"){var A=x.props.shared?"axis":"item";return u.indexOf(A)>=0?A:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var A=this.container,m=A.getBoundingClientRect(),O=w_(m),w={chartX:Math.round(x.pageX-O.left),chartY:Math.round(x.pageY-O.top)},S=m.width/A.offsetWidth||1,_=this.inRange(w.chartX,w.chartY,S);if(!_)return null;var T=this.state,j=T.xAxisMap,E=T.yAxisMap,$=this.getTooltipEventType(),C=Xg(this.state,this.props.data,this.props.layout,_);if($!=="axis"&&j&&E){var I=At(j).scale,k=At(E).scale,N=I&&I.invert?I.invert(w.chartX):null,q=k&&k.invert?k.invert(w.chartY):null;return R(R({},w),{},{xValue:N,yValue:q},C)}return C?R(R({},w),C):null}},{key:"inRange",value:function(x,A){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,w=x/m,S=A/m;if(O==="horizontal"||O==="vertical"){var _=this.state.offset,T=w>=_.left&&w<=_.left+_.width&&S>=_.top&&S<=_.top+_.height;return T?{x:w,y:S}:null}var j=this.state,E=j.angleAxisMap,$=j.radiusAxisMap;if(E&&$){var C=At(E);return qy({x:w,y:S},C)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,A=this.getTooltipEventType(),m=Ce(x,Qe),O={};m&&A==="axis"&&(m.props.trigger==="click"?O={onClick:this.handleClick}:O={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 w=Fi(this.props,this.handleOuterEvent);return R(R({},w),O)}},{key:"addListener",value:function(){rl.on(nl,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){rl.removeListener(nl,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,A,m){for(var O=this.state.formattedGraphicalItems,w=0,S=O.length;w<S;w++){var _=O[w];if(_.item===x||_.props.key===x.key||A===dt(_.item.type)&&m===_.childIndex)return _}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,A=this.state.offset,m=A.left,O=A.top,w=A.height,S=A.width;return P.createElement("defs",null,P.createElement("clipPath",{id:x},P.createElement("rect",{x:m,y:O,height:w,width:S})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(A,m){var O=Hg(m,2),w=O[0],S=O[1];return R(R({},A),{},U({},w,S.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(A,m){var O=Hg(m,2),w=O[0],S=O[1];return R(R({},A),{},U({},w,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var A;return(A=this.state.xAxisMap)===null||A===void 0||(A=A[x])===null||A===void 0?void 0:A.scale}},{key:"getYScaleByAxisId",value:function(x){var A;return(A=this.state.yAxisMap)===null||A===void 0||(A=A[x])===null||A===void 0?void 0:A.scale}},{key:"getItemByXY",value:function(x){var A=this.state,m=A.formattedGraphicalItems,O=A.activeItem;if(m&&m.length)for(var w=0,S=m.length;w<S;w++){var _=m[w],T=_.props,j=_.item,E=j.type.defaultProps!==void 0?R(R({},j.type.defaultProps),j.props):j.props,$=dt(j.type);if($==="Bar"){var C=(T.data||[]).find(function(q){return E$(x,q)});if(C)return{graphicalItem:_,payload:C}}else if($==="RadialBar"){var I=(T.data||[]).find(function(q){return qy(x,q)});if(I)return{graphicalItem:_,payload:I}}else if(Za(_,O)||Ja(_,O)||ai(_,O)){var k=uC({graphicalItem:_,activeTooltipItem:O,itemData:E.data}),N=E.activeIndex===void 0?k:E.activeIndex;return{graphicalItem:R(R({},_),{},{childIndex:N}),payload:ai(_,O)?E.data[k]:_.props.data[k]}}}return null}},{key:"render",value:function(){var x=this;if(!Cd(this))return null;var A=this.props,m=A.children,O=A.className,w=A.width,S=A.height,_=A.style,T=A.compact,j=A.title,E=A.desc,$=Ug(A,FD),C=F($,!1);if(T)return P.createElement(wg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement(dl,Or({},C,{width:w,height:S,title:j,desc:E}),this.renderClipPath(),kd(m,this.renderMap)));if(this.props.accessibilityLayer){var I,k;C.tabIndex=(I=this.props.tabIndex)!==null&&I!==void 0?I:0,C.role=(k=this.props.role)!==null&&k!==void 0?k:"application",C.onKeyDown=function(q){x.accessibilityManager.keyboardEvent(q)},C.onFocus=function(){x.accessibilityManager.focus()}}var N=this.parseEventsOfWrapper();return P.createElement(wg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement("div",Or({className:V("recharts-wrapper",O),style:R({position:"relative",cursor:"default",width:w,height:S},_)},N,{ref:function(B){x.container=B}}),P.createElement(dl,Or({},C,{width:w,height:S,title:j,desc:E,style:iN}),this.renderClipPath(),kd(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(M.Component);U(y,"displayName",r),U(y,"defaultProps",R({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),U(y,"getDerivedStateFromProps",function(v,b){var g=v.dataKey,x=v.data,A=v.children,m=v.width,O=v.height,w=v.layout,S=v.stackOffset,_=v.margin,T=b.dataStartIndex,j=b.dataEndIndex;if(b.updateId===void 0){var E=Yg(v);return R(R(R({},E),{},{updateId:0},d(R(R({props:v},E),{},{updateId:0}),b)),{},{prevDataKey:g,prevData:x,prevWidth:m,prevHeight:O,prevLayout:w,prevStackOffset:S,prevMargin:_,prevChildren:A})}if(g!==b.prevDataKey||x!==b.prevData||m!==b.prevWidth||O!==b.prevHeight||w!==b.prevLayout||S!==b.prevStackOffset||!Ar(_,b.prevMargin)){var $=Yg(v),C={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},I=R(R({},Xg(b,x,w)),{},{updateId:b.updateId+1}),k=R(R(R({},$),C),I);return R(R(R({},k),d(R({props:v},k),b)),{},{prevDataKey:g,prevData:x,prevWidth:m,prevHeight:O,prevLayout:w,prevStackOffset:S,prevMargin:_,prevChildren:A})}if(!fl(A,b.prevChildren)){var N,q,B,G,Y=Ce(A,Lr),z=Y&&(N=(q=Y.props)===null||q===void 0?void 0:q.startIndex)!==null&&N!==void 0?N:T,Z=Y&&(B=(G=Y.props)===null||G===void 0?void 0:G.endIndex)!==null&&B!==void 0?B:j,se=z!==T||Z!==j,me=!H(x),We=me&&!se?b.updateId:b.updateId+1;return R(R({updateId:We},d(R(R({props:v},b),{},{updateId:We,dataStartIndex:z,dataEndIndex:Z}),b)),{},{prevChildren:A,dataStartIndex:z,dataEndIndex:Z})}return null}),U(y,"renderActiveDot",function(v,b,g){var x;return M.isValidElement(v)?x=M.cloneElement(v,b):W(v)?x=v(b):x=P.createElement(on,b),P.createElement(X,{className:"recharts-active-dot",key:g},x)});var h=M.forwardRef(function(b,g){return P.createElement(y,Or({},b,{ref:g}))});return h.displayName=y.displayName,h},vN=ur({chartName:"LineChart",GraphicalChild:bi,axisComponents:[{axisType:"xAxis",AxisComp:Xe},{axisType:"yAxis",AxisComp:Ye}],formatAxisMap:eo}),hN=ur({chartName:"BarChart",GraphicalChild:or,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Xe},{axisType:"yAxis",AxisComp:Ye}],formatAxisMap:eo}),yN=ur({chartName:"PieChart",GraphicalChild:bt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:ar},{axisType:"radiusAxis",AxisComp:un}],formatAxisMap:cp,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),mN=ur({chartName:"RadarChart",GraphicalChild:yi,axisComponents:[{axisType:"angleAxis",AxisComp:ar},{axisType:"radiusAxis",AxisComp:un}],formatAxisMap:cp,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),gN=ur({chartName:"ScatterChart",GraphicalChild:Oi,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:Xe},{axisType:"yAxis",AxisComp:Ye},{axisType:"zAxis",AxisComp:xi}],formatAxisMap:eo}),bN=ur({chartName:"AreaChart",GraphicalChild:Rt,axisComponents:[{axisType:"xAxis",AxisComp:Xe},{axisType:"yAxis",AxisComp:Ye}],formatAxisMap:eo}),xN=ur({chartName:"RadialBarChart",GraphicalChild:mi,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:ar},{axisType:"radiusAxis",AxisComp:un}],formatAxisMap:cp,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const ON={light:"",dark:".dark"},l0=M.createContext(null);function f0(){const t=M.useContext(l0);if(!t)throw new Error("useChart must be used within a <ChartContainer />");return t}const kt=M.forwardRef(({id:t,className:e,children:r,config:n,...i},a)=>{const o=M.useId(),u=`chart-${t||o.replace(/:/g,"")}`;return M.useEffect(()=>{const c=requestAnimationFrame(()=>{window.dispatchEvent(new Event("resize"))});return()=>cancelAnimationFrame(c)},[]),D.jsx(l0.Provider,{value:{config:n},children:D.jsxs("div",{"data-chart":u,ref:a,className:Fe("flex w-full min-w-0 aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-layer]:outline-none [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",e),...i,children:[D.jsx(wN,{}),D.jsx(PN,{id:u,config:n}),D.jsx(y_,{children:r})]})})});kt.displayName="Chart";const AN=["[data-chart] .recharts-cartesian-grid line[stroke='#ccc'] { stroke: color-mix(in oklch, var(--color-border) 50%, transparent); }","[data-chart] .recharts-dot[stroke='#fff'] { stroke: transparent; }","[data-chart] .recharts-polar-grid [stroke='#ccc'] { stroke: var(--color-border); }","[data-chart] .recharts-reference-line [stroke='#ccc'] { stroke: var(--color-border); }","[data-chart] .recharts-sector[stroke='#fff'] { stroke: transparent; }"].join(`
74
+ `);function wN(){return D.jsx("style",{dangerouslySetInnerHTML:{__html:AN}})}const PN=({id:t,config:e})=>{const r=Object.entries(e).filter(([,n])=>n.theme||n.color);return r.length?D.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(ON).map(([n,i])=>`
75
75
  ${i} [data-chart=${t}] {
76
76
  ${r.map(([a,o])=>{var c;const u=((c=o.theme)==null?void 0:c[n])||o.color;return u?` --color-${a}: ${u};`:null}).join(`
77
77
  `)}
78
78
  }
79
79
  `).join(`
80
- `)}}):null},cr=Qe,Mt=M.forwardRef(({active:t,payload:e,className:r,indicator:n="dot",hideLabel:i=!1,hideIndicator:a=!1,label:o,labelFormatter:u,labelClassName:c,formatter:s,color:f,nameKey:l,labelKey:p},d)=>{const{config:y}=f0(),h=M.useMemo(()=>{var m;if(i||!(e!=null&&e.length))return null;const[g]=e,b=`${p||(g==null?void 0:g.dataKey)||(g==null?void 0:g.name)||"value"}`,x=jf(y,g,b),A=!p&&typeof o=="string"?((m=y[o])==null?void 0:m.label)||o:x==null?void 0:x.label;return u?D.jsx("div",{className:Fe("font-medium",c),children:u(A,e)}):A?D.jsx("div",{className:Fe("font-medium",c),children:A}):null},[o,u,e,i,c,y,p]);if(!t||!(e!=null&&e.length))return null;const v=e.length===1&&n!=="dot";return D.jsxs("div",{ref:d,className:Fe("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[v?null:h,D.jsx("div",{className:"grid gap-1.5",children:e.filter(g=>g.type!=="none").map((g,b)=>{const x=`${l||g.name||g.dataKey||"value"}`,A=jf(y,g,x),m=f||g.payload.fill||g.color;return D.jsx("div",{className:Fe("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",n==="dot"&&"items-center"),children:s&&(g==null?void 0:g.value)!==void 0&&g.name?s(g.value,g.name,g,b,g.payload):D.jsxs(D.Fragment,{children:[A!=null&&A.icon?D.jsx(A.icon,{}):!a&&D.jsx("div",{className:Fe("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":v&&n==="dashed"}),style:{"--color-bg":m,"--color-border":m}}),D.jsxs("div",{className:Fe("flex flex-1 justify-between leading-none",v?"items-end":"items-center"),children:[D.jsxs("div",{className:"grid gap-1.5",children:[v?h:null,D.jsx("span",{className:"text-muted-foreground",children:(A==null?void 0:A.label)||g.name})]}),g.value&&D.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:g.value.toLocaleString()})]})]})},g.dataKey)})})]})});Mt.displayName="ChartTooltip";const sn=Vt,sr=M.forwardRef(({className:t,hideIcon:e=!1,payload:r,verticalAlign:n="bottom",nameKey:i},a)=>{const{config:o}=f0();return r!=null&&r.length?D.jsx("div",{ref:a,className:Fe("flex flex-wrap items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",t),children:r.filter(u=>u.type!=="none").map(u=>{const c=`${i||u.dataKey||"value"}`,s=jf(o,u,c);return D.jsxs("div",{className:Fe("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[s!=null&&s.icon&&!e?D.jsx(s.icon,{}):D.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:u.color}}),s==null?void 0:s.label]},u.value)})}):null});sr.displayName="ChartLegend";function jf(t,e,r){if(typeof e!="object"||e===null)return;const n="payload"in e&&typeof e.payload=="object"&&e.payload!==null?e.payload:void 0;let i=r;return r in e&&typeof e[r]=="string"?i=e[r]:n&&r in n&&typeof n[r]=="string"&&(i=n[r]),i in t?t[i]:t[r]}const Jg={default:"pf-sparkline-variant-default",success:"pf-sparkline-variant-success",warning:"pf-sparkline-variant-warning",destructive:"pf-sparkline-variant-destructive",info:"pf-sparkline-variant-info",muted:"pf-sparkline-variant-muted"};function PN(t,e,r,n){const i=Math.min(...t),o=Math.max(...t)-i||1,u=n/2,c=r*.7-u,s=u;return t.map((f,l)=>{const p=t.length===1?e/2:l/(t.length-1)*e,d=s+c*(1-(f-i)/o);return`${p},${d}`}).join(" ")}function SN(t,e,r,n){const i=Math.min(...t),o=Math.max(...t)-i||1,u=n/2,c=r*.7-u,s=u,f=[];for(let l=0;l<t.length;l++){const p=t.length===1?e/2:l/(t.length-1)*e,d=s+c*(1-(t[l]-i)/o);if(l>0){const y=s+c*(1-(t[l-1]-i)/o);f.push(`${p},${y}`)}f.push(`${p},${d}`)}return f.join(" ")}function _N(t,e,r,n){if(t.length<2){const d=e/2,y=t[0],v=t[0]-y||1,g=n/2,b=r*.7-g,A=g+b*(1-(t[0]-y)/v);return`M ${d},${A}`}const i=Math.min(...t),o=Math.max(...t)-i||1,u=n/2,c=r*.7-u,s=u,f=t.map((d,y)=>y/(t.length-1)*e),l=t.map(d=>s+c*(1-(d-i)/o));let p=`M ${f[0]},${l[0]}`;for(let d=0;d<t.length-1;d++){const y=f[Math.max(0,d-1)],h=l[Math.max(0,d-1)],v=f[d],g=l[d],b=f[d+1],x=l[d+1],A=f[Math.min(t.length-1,d+2)],m=l[Math.min(t.length-1,d+2)],O=v+(b-y)/6,w=g+(x-h)/6,S=b-(A-v)/6,_=x-(m-g)/6;p+=` C ${O},${w} ${S},${_} ${b},${x}`}return p}let jN=0;function DN({data:t=[],height:e,variant:r="default",indicatorClass:n,fill:i=!1,curve:a="linear",strokeWidth:o=1.5,mode:u="line",className:c,cssClass:s}){if(typeof t=="string"||t.length===0)return null;const f=Jg[r??"default"]??Jg.default,l=`spark-${++jN}`,p=100,d=40;if(u==="bar"){const m=Math.min(0,...t),w=Math.max(...t)-m||1,S=1,_=(p-S*(t.length-1))/t.length;return D.jsx("svg",{className:Fe("pf-sparkline w-full",e==null&&"h-6",f,c,s),viewBox:`0 0 ${p} ${d}`,preserveAspectRatio:"none",style:e!=null?{height:e}:void 0,children:t.map((T,j)=>{const E=(T-m)/w*(d-1);return D.jsx("rect",{x:j*(_+S),y:d-E,width:_,height:E,fill:"currentColor",opacity:.7,rx:.5,className:n},j)})})}const y=a==="smooth",h=a==="step",v=y?_N(t,p,d,o):"",g=y?"":h?SN(t,p,d,o):PN(t,p,d,o),b=y?`${v} L ${p},${d} L 0,${d} Z`:"",x=i&&!y?`${g} ${p},${d} 0,${d}`:"",A={fill:"none",stroke:"currentColor",strokeWidth:o,strokeLinejoin:"round",strokeLinecap:"round",vectorEffect:"non-scaling-stroke",className:Fe("pf-sparkline-line",n)};return D.jsxs("svg",{className:Fe("pf-sparkline w-full",f,c,s),viewBox:`0 0 ${p} ${d}`,preserveAspectRatio:"none",style:{height:e},children:[i&&D.jsxs(D.Fragment,{children:[D.jsx("defs",{children:D.jsxs("linearGradient",{id:l,x1:"0",y1:"0",x2:"0",y2:"1",children:[D.jsx("stop",{offset:"0%",className:"pf-sparkline-fill-stop-start"}),D.jsx("stop",{offset:"100%",className:"pf-sparkline-fill-stop-end"})]})}),y?D.jsx("path",{d:b,fill:`url(#${l})`,stroke:"none"}):D.jsx("polygon",{points:x,fill:`url(#${l})`})]}),y?D.jsx("path",{d:v,...A}):D.jsx("polyline",{points:g,...A})]})}const gp=t=>new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1}).format(t),jt=["var(--color-chart-1)","var(--color-chart-2)","var(--color-chart-3)","var(--color-chart-4)","var(--color-chart-5)"];function Ai(t){const e={};for(let r=0;r<t.length;r++){const n=t[r];e[n.dataKey]={label:n.label??n.dataKey,color:n.color??jt[r%jt.length]}}return e}function p0(t,e){const r={};for(let n=0;n<t.length;n++){const i=String(t[n][e]??`item-${n}`);r[i]={label:i,color:jt[n%jt.length]}}return r}function NN({data:t=[],series:e,xAxis:r,height:n=300,stacked:i=!1,horizontal:a=!1,barRadius:o=4,showLegend:u=!1,showTooltip:c=!0,animate:s=!0,showGrid:f=!0,showYAxis:l=!0,yAxisFormat:p="auto",className:d}){if(typeof t=="string")return null;const y=Ai(e);return D.jsx(kt,{config:y,className:d,style:{height:n,aspectRatio:"auto"},children:D.jsxs(vN,{data:t,layout:a?"vertical":"horizontal",children:[f&&D.jsx(gi,{vertical:a,horizontal:!a}),a&&r&&D.jsx(Ye,{dataKey:r,type:"category",tickLine:!1,axisLine:!1,tickMargin:8}),a&&D.jsx(Xe,{type:"number",hide:!0}),!a&&r&&D.jsx(Xe,{dataKey:r,tickLine:!1,axisLine:!1,tickMargin:8}),!a&&l&&D.jsx(Ye,{tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:p==="compact"?gp:void 0}),c&&D.jsx(cr,{content:D.jsx(Mt,{})}),u&&D.jsx(sn,{content:D.jsx(sr,{})}),e.map(h=>D.jsx(or,{isAnimationActive:s,dataKey:h.dataKey,fill:`var(--color-${h.dataKey})`,radius:o,stackId:i?"stack":void 0},h.dataKey))]})})}const d0={linear:"linear",smooth:"monotone",step:"step"};function LN({data:t=[],series:e,xAxis:r,height:n=300,curve:i="linear",showDots:a=!1,showLegend:o=!1,showTooltip:u=!0,animate:c=!0,showGrid:s=!0,showYAxis:f=!0,yAxisFormat:l="auto",className:p}){if(typeof t=="string")return null;const d=Ai(e);return D.jsx(kt,{config:d,className:p,style:{height:n,aspectRatio:"auto"},children:D.jsxs(dN,{data:t,children:[s&&D.jsx(gi,{vertical:!1}),r&&D.jsx(Xe,{dataKey:r,tickLine:!1,axisLine:!1,tickMargin:8}),f&&D.jsx(Ye,{tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:l==="compact"?gp:void 0}),u&&D.jsx(cr,{content:D.jsx(Mt,{})}),o&&D.jsx(sn,{content:D.jsx(sr,{})}),e.map(y=>D.jsx(bi,{isAnimationActive:c,dataKey:y.dataKey,type:d0[i]??i,stroke:`var(--color-${y.dataKey})`,strokeWidth:2,dot:a},y.dataKey))]})})}function qN({data:t=[],series:e,xAxis:r,height:n=300,stacked:i=!1,curve:a="linear",showDots:o=!1,showLegend:u=!1,showTooltip:c=!0,animate:s=!0,showGrid:f=!0,showYAxis:l=!0,yAxisFormat:p="auto",className:d}){if(typeof t=="string")return null;const y=Ai(e);return D.jsx(kt,{config:y,className:d,style:{height:n,aspectRatio:"auto"},children:D.jsxs(gN,{data:t,children:[f&&D.jsx(gi,{vertical:!1}),r&&D.jsx(Xe,{dataKey:r,tickLine:!1,axisLine:!1,tickMargin:8}),l&&D.jsx(Ye,{tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:p==="compact"?gp:void 0}),c&&D.jsx(cr,{content:D.jsx(Mt,{})}),u&&D.jsx(sn,{content:D.jsx(sr,{})}),e.map(h=>D.jsx(Rt,{isAnimationActive:s,dataKey:h.dataKey,type:d0[a]??a,fill:`var(--color-${h.dataKey})`,stroke:`var(--color-${h.dataKey})`,fillOpacity:.4,dot:o,stackId:i?"stack":void 0},h.dataKey))]})})}function BN({data:t=[],dataKey:e,nameKey:r,height:n=300,innerRadius:i=0,showLabel:a=!1,paddingAngle:o=0,showLegend:u=!1,showTooltip:c=!0,animate:s=!0,className:f}){if(typeof t=="string")return null;const l=p0(t,r),p=t.map((v,g)=>({...v,fill:jt[g%jt.length]})),d=a?"60%":"80%",y=i>0?`${Math.round(i/100*(a?60:80))}%`:0,h=u?n-36:n;return D.jsxs("div",{className:f,children:[D.jsx(kt,{config:l,style:{height:h,aspectRatio:"auto"},children:D.jsxs(hN,{children:[c&&D.jsx(cr,{content:D.jsx(Mt,{nameKey:r})}),D.jsx(bt,{isAnimationActive:s,data:p,dataKey:e,nameKey:r,innerRadius:y,outerRadius:d,label:a,paddingAngle:o})]})}),u&&D.jsx("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"12px",paddingTop:"8px",fontSize:"12px"},children:p.map((v,g)=>D.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[D.jsx("div",{style:{width:"8px",height:"8px",borderRadius:"2px",backgroundColor:v.fill,flexShrink:0}}),String(v[r]??"")]},g))})]})}function FN({data:t=[],series:e,axisKey:r,height:n=300,filled:i=!0,showDots:a=!1,showLegend:o=!1,showTooltip:u=!0,animate:c=!0,showGrid:s=!0,className:f}){if(typeof t=="string")return null;const l=Ai(e);return D.jsx(kt,{config:l,className:f,style:{height:n,aspectRatio:"auto"},children:D.jsxs(yN,{data:t,children:[s&&D.jsx(tO,{}),r&&D.jsx(ar,{dataKey:r}),u&&D.jsx(cr,{content:D.jsx(Mt,{})}),o&&D.jsx(sn,{content:D.jsx(sr,{})}),e.map(p=>D.jsx(yi,{isAnimationActive:c,dataKey:p.dataKey,fill:`var(--color-${p.dataKey})`,fillOpacity:i?.3:0,stroke:`var(--color-${p.dataKey})`,strokeWidth:2,dot:a},p.dataKey))]})})}function zN({data:t=[],dataKey:e,nameKey:r,height:n=300,innerRadius:i=30,startAngle:a=180,endAngle:o=0,showLegend:u=!1,showTooltip:c=!0,animate:s=!0,className:f}){if(typeof t=="string")return null;const l=p0(t,r),p=t.map((d,y)=>({...d,fill:jt[y%jt.length]}));return D.jsx(kt,{config:l,className:f,style:{height:n,aspectRatio:"auto"},children:D.jsxs(bN,{data:p,innerRadius:i,startAngle:a,endAngle:o,children:[c&&D.jsx(cr,{content:D.jsx(Mt,{nameKey:r})}),u&&D.jsx(sn,{content:D.jsx(sr,{nameKey:r})}),D.jsx(mi,{isAnimationActive:s,dataKey:e})]})})}function KN({data:t=[],series:e,xAxis:r,yAxis:n,zAxis:i,height:a=300,showLegend:o=!1,showTooltip:u=!0,animate:c=!0,showGrid:s=!0,className:f}){if(typeof t=="string")return null;const l=M.useMemo(()=>t,[JSON.stringify(t)]),p=Ai(e);return D.jsx(kt,{config:p,className:f,style:{height:a,aspectRatio:"auto"},children:D.jsxs(mN,{data:l,children:[s&&D.jsx(gi,{}),D.jsx(Xe,{dataKey:r,type:"number",name:r,tickLine:!1,axisLine:!1,tickMargin:8}),D.jsx(Ye,{dataKey:n,type:"number",name:n,tickLine:!1,axisLine:!1,tickMargin:8}),i&&D.jsx(xi,{dataKey:i,type:"number",name:i,range:[40,400]}),u&&D.jsx(cr,{content:D.jsx(Mt,{})}),o&&D.jsx(sn,{content:D.jsx(sr,{})}),e.map(d=>D.jsx(Oi,{isAnimationActive:c,name:d.label??d.dataKey,data:e.length===1?l:l.filter(y=>y._series===d.dataKey),fill:`var(--color-${d.dataKey})`},d.dataKey))]})})}export{qN as PrefabAreaChart,NN as PrefabBarChart,LN as PrefabLineChart,BN as PrefabPieChart,FN as PrefabRadarChart,zN as PrefabRadialChart,KN as PrefabScatterChart,DN as PrefabSparkline};
80
+ `)}}):null},cr=Qe,Mt=M.forwardRef(({active:t,payload:e,className:r,indicator:n="dot",hideLabel:i=!1,hideIndicator:a=!1,label:o,labelFormatter:u,labelClassName:c,formatter:s,color:f,nameKey:l,labelKey:p,valueFormatter:d},y)=>{const{config:h}=f0(),v=M.useMemo(()=>{var O;if(i||!(e!=null&&e.length))return null;const[g]=e,x=`${p||(g==null?void 0:g.dataKey)||(g==null?void 0:g.name)||"value"}`,A=Ef(h,g,x),m=!p&&typeof o=="string"?((O=h[o])==null?void 0:O.label)||o:A==null?void 0:A.label;return u?D.jsx("div",{className:Fe("font-medium",c),children:u(m,e)}):m?D.jsx("div",{className:Fe("font-medium",c),children:m}):null},[o,u,e,i,c,h,p]);if(!t||!(e!=null&&e.length))return null;const b=e.length===1&&n!=="dot";return D.jsxs("div",{ref:y,className:Fe("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[b?null:v,D.jsx("div",{className:"grid gap-1.5",children:e.filter(g=>g.type!=="none").map((g,x)=>{const A=`${l||g.name||g.dataKey||"value"}`,m=Ef(h,g,A),O=f||g.payload.fill||g.color;return D.jsx("div",{className:Fe("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",n==="dot"&&"items-center"),children:s&&(g==null?void 0:g.value)!==void 0&&g.name?s(g.value,g.name,g,x,g.payload):D.jsxs(D.Fragment,{children:[m!=null&&m.icon?D.jsx(m.icon,{}):!a&&D.jsx("div",{className:Fe("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":b&&n==="dashed"}),style:{"--color-bg":O,"--color-border":O}}),D.jsxs("div",{className:Fe("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[D.jsxs("div",{className:"grid gap-1.5",children:[b?v:null,D.jsx("span",{className:"text-muted-foreground",children:(m==null?void 0:m.label)||g.name})]}),g.value!=null&&D.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:d?d(g.value):g.value.toLocaleString()})]})]})},g.dataKey)})})]})});Mt.displayName="ChartTooltip";const sn=Vt,sr=M.forwardRef(({className:t,hideIcon:e=!1,payload:r,verticalAlign:n="bottom",nameKey:i},a)=>{const{config:o}=f0();return r!=null&&r.length?D.jsx("div",{ref:a,className:Fe("flex flex-wrap items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",t),children:r.filter(u=>u.type!=="none").map(u=>{const c=`${i||u.dataKey||"value"}`,s=Ef(o,u,c);return D.jsxs("div",{className:Fe("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[s!=null&&s.icon&&!e?D.jsx(s.icon,{}):D.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:u.color}}),s==null?void 0:s.label]},u.value)})}):null});sr.displayName="ChartLegend";function Ef(t,e,r){if(typeof e!="object"||e===null)return;const n="payload"in e&&typeof e.payload=="object"&&e.payload!==null?e.payload:void 0;let i=r;return r in e&&typeof e[r]=="string"?i=e[r]:n&&r in n&&typeof n[r]=="string"&&(i=n[r]),i in t?t[i]:t[r]}const Jg={default:"pf-sparkline-variant-default",success:"pf-sparkline-variant-success",warning:"pf-sparkline-variant-warning",destructive:"pf-sparkline-variant-destructive",info:"pf-sparkline-variant-info",muted:"pf-sparkline-variant-muted"};function SN(t,e,r,n){const i=Math.min(...t),o=Math.max(...t)-i||1,u=n/2,c=r*.7-u,s=u;return t.map((f,l)=>{const p=t.length===1?e/2:l/(t.length-1)*e,d=s+c*(1-(f-i)/o);return`${p},${d}`}).join(" ")}function _N(t,e,r,n){const i=Math.min(...t),o=Math.max(...t)-i||1,u=n/2,c=r*.7-u,s=u,f=[];for(let l=0;l<t.length;l++){const p=t.length===1?e/2:l/(t.length-1)*e,d=s+c*(1-(t[l]-i)/o);if(l>0){const y=s+c*(1-(t[l-1]-i)/o);f.push(`${p},${y}`)}f.push(`${p},${d}`)}return f.join(" ")}function jN(t,e,r,n){if(t.length<2){const d=e/2,y=t[0],v=t[0]-y||1,b=n/2,g=r*.7-b,A=b+g*(1-(t[0]-y)/v);return`M ${d},${A}`}const i=Math.min(...t),o=Math.max(...t)-i||1,u=n/2,c=r*.7-u,s=u,f=t.map((d,y)=>y/(t.length-1)*e),l=t.map(d=>s+c*(1-(d-i)/o));let p=`M ${f[0]},${l[0]}`;for(let d=0;d<t.length-1;d++){const y=f[Math.max(0,d-1)],h=l[Math.max(0,d-1)],v=f[d],b=l[d],g=f[d+1],x=l[d+1],A=f[Math.min(t.length-1,d+2)],m=l[Math.min(t.length-1,d+2)],O=v+(g-y)/6,w=b+(x-h)/6,S=g-(A-v)/6,_=x-(m-b)/6;p+=` C ${O},${w} ${S},${_} ${g},${x}`}return p}let EN=0;function NN({data:t=[],height:e,variant:r="default",indicatorClass:n,fill:i=!1,curve:a="linear",strokeWidth:o=1.5,mode:u="line",className:c,cssClass:s}){if(typeof t=="string"||t.length===0)return null;const f=Jg[r??"default"]??Jg.default,l=`spark-${++EN}`,p=100,d=40;if(u==="bar"){const m=Math.min(0,...t),w=Math.max(...t)-m||1,S=1,_=(p-S*(t.length-1))/t.length;return D.jsx("svg",{className:Fe("pf-sparkline w-full",e==null&&"h-6",f,c,s),viewBox:`0 0 ${p} ${d}`,preserveAspectRatio:"none",style:e!=null?{height:e}:void 0,children:t.map((T,j)=>{const E=(T-m)/w*(d-1);return D.jsx("rect",{x:j*(_+S),y:d-E,width:_,height:E,fill:"currentColor",opacity:.7,rx:.5,className:n},j)})})}const y=a==="smooth",h=a==="step",v=y?jN(t,p,d,o):"",b=y?"":h?_N(t,p,d,o):SN(t,p,d,o),g=y?`${v} L ${p},${d} L 0,${d} Z`:"",x=i&&!y?`${b} ${p},${d} 0,${d}`:"",A={fill:"none",stroke:"currentColor",strokeWidth:o,strokeLinejoin:"round",strokeLinecap:"round",vectorEffect:"non-scaling-stroke",className:Fe("pf-sparkline-line",n)};return D.jsxs("svg",{className:Fe("pf-sparkline w-full",f,c,s),viewBox:`0 0 ${p} ${d}`,preserveAspectRatio:"none",style:{height:e},children:[i&&D.jsxs(D.Fragment,{children:[D.jsx("defs",{children:D.jsxs("linearGradient",{id:l,x1:"0",y1:"0",x2:"0",y2:"1",children:[D.jsx("stop",{offset:"0%",className:"pf-sparkline-fill-stop-start"}),D.jsx("stop",{offset:"100%",className:"pf-sparkline-fill-stop-end"})]})}),y?D.jsx("path",{d:g,fill:`url(#${l})`,stroke:"none"}):D.jsx("polygon",{points:x,fill:`url(#${l})`})]}),y?D.jsx("path",{d:v,...A}):D.jsx("polyline",{points:b,...A})]})}function Ai(t){if(!(!t||t==="auto"))return e=>{const r=v0(`{{ _v | ${t} }}`,{_v:e});return r==null?"":String(r)}}const jt=["var(--color-chart-1)","var(--color-chart-2)","var(--color-chart-3)","var(--color-chart-4)","var(--color-chart-5)"];function wi(t){const e={};for(let r=0;r<t.length;r++){const n=t[r];e[n.dataKey]={label:n.label??n.dataKey,color:n.color??jt[r%jt.length]}}return e}function p0(t,e){const r={};for(let n=0;n<t.length;n++){const i=String(t[n][e]??`item-${n}`);r[i]={label:i,color:jt[n%jt.length]}}return r}function LN({data:t=[],series:e,xAxis:r,height:n=300,stacked:i=!1,horizontal:a=!1,barRadius:o=4,showLegend:u=!1,showTooltip:c=!0,animate:s=!0,showGrid:f=!0,showYAxis:l=!0,valueFormat:p="auto",className:d}){if(typeof t=="string")return null;const y=wi(e),h=Ai(p);return D.jsx(kt,{config:y,className:d,style:{height:n,aspectRatio:"auto"},children:D.jsxs(hN,{data:t,layout:a?"vertical":"horizontal",children:[f&&D.jsx(gi,{vertical:a,horizontal:!a}),a&&r&&D.jsx(Ye,{dataKey:r,type:"category",tickLine:!1,axisLine:!1,tickMargin:8}),a&&D.jsx(Xe,{type:"number",hide:!0,tickFormatter:h}),!a&&r&&D.jsx(Xe,{dataKey:r,tickLine:!1,axisLine:!1,tickMargin:8}),!a&&l&&D.jsx(Ye,{tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:h}),c&&D.jsx(cr,{content:D.jsx(Mt,{valueFormatter:h})}),u&&D.jsx(sn,{content:D.jsx(sr,{})}),e.map(v=>D.jsx(or,{isAnimationActive:s,dataKey:v.dataKey,fill:`var(--color-${v.dataKey})`,radius:o,stackId:i?"stack":void 0},v.dataKey))]})})}const d0={linear:"linear",smooth:"monotone",step:"step"};function qN({data:t=[],series:e,xAxis:r,height:n=300,curve:i="linear",showDots:a=!1,showLegend:o=!1,showTooltip:u=!0,animate:c=!0,showGrid:s=!0,showYAxis:f=!0,valueFormat:l="auto",className:p}){if(typeof t=="string")return null;const d=wi(e),y=Ai(l);return D.jsx(kt,{config:d,className:p,style:{height:n,aspectRatio:"auto"},children:D.jsxs(vN,{data:t,children:[s&&D.jsx(gi,{vertical:!1}),r&&D.jsx(Xe,{dataKey:r,tickLine:!1,axisLine:!1,tickMargin:8}),f&&D.jsx(Ye,{tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:y}),u&&D.jsx(cr,{content:D.jsx(Mt,{valueFormatter:y})}),o&&D.jsx(sn,{content:D.jsx(sr,{})}),e.map(h=>D.jsx(bi,{isAnimationActive:c,dataKey:h.dataKey,type:d0[i]??i,stroke:`var(--color-${h.dataKey})`,strokeWidth:2,dot:a},h.dataKey))]})})}function BN({data:t=[],series:e,xAxis:r,height:n=300,stacked:i=!1,curve:a="linear",showDots:o=!1,showLegend:u=!1,showTooltip:c=!0,animate:s=!0,showGrid:f=!0,showYAxis:l=!0,valueFormat:p="auto",className:d}){if(typeof t=="string")return null;const y=wi(e),h=Ai(p);return D.jsx(kt,{config:y,className:d,style:{height:n,aspectRatio:"auto"},children:D.jsxs(bN,{data:t,children:[f&&D.jsx(gi,{vertical:!1}),r&&D.jsx(Xe,{dataKey:r,tickLine:!1,axisLine:!1,tickMargin:8}),l&&D.jsx(Ye,{tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:h}),c&&D.jsx(cr,{content:D.jsx(Mt,{valueFormatter:h})}),u&&D.jsx(sn,{content:D.jsx(sr,{})}),e.map(v=>D.jsx(Rt,{isAnimationActive:s,dataKey:v.dataKey,type:d0[a]??a,fill:`var(--color-${v.dataKey})`,stroke:`var(--color-${v.dataKey})`,fillOpacity:.4,dot:o,stackId:i?"stack":void 0},v.dataKey))]})})}function FN({data:t=[],dataKey:e,nameKey:r,height:n=300,innerRadius:i=0,showLabel:a=!1,paddingAngle:o=0,showLegend:u=!1,showTooltip:c=!0,animate:s=!0,valueFormat:f="auto",className:l}){if(typeof t=="string")return null;const p=p0(t,r),d=Ai(f),y=t.map((g,x)=>({...g,fill:jt[x%jt.length]})),h=a?"60%":"80%",v=i>0?`${Math.round(i/100*(a?60:80))}%`:0,b=u?n-36:n;return D.jsxs("div",{className:l,children:[D.jsx(kt,{config:p,style:{height:b,aspectRatio:"auto"},children:D.jsxs(yN,{children:[c&&D.jsx(cr,{content:D.jsx(Mt,{nameKey:r,valueFormatter:d})}),D.jsx(bt,{isAnimationActive:s,data:y,dataKey:e,nameKey:r,innerRadius:v,outerRadius:h,label:a,paddingAngle:o})]})}),u&&D.jsx("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"12px",paddingTop:"8px",fontSize:"12px"},children:y.map((g,x)=>D.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[D.jsx("div",{style:{width:"8px",height:"8px",borderRadius:"2px",backgroundColor:g.fill,flexShrink:0}}),String(g[r]??"")]},x))})]})}function zN({data:t=[],series:e,axisKey:r,height:n=300,filled:i=!0,showDots:a=!1,showLegend:o=!1,showTooltip:u=!0,animate:c=!0,showGrid:s=!0,className:f}){if(typeof t=="string")return null;const l=wi(e);return D.jsx(kt,{config:l,className:f,style:{height:n,aspectRatio:"auto"},children:D.jsxs(mN,{data:t,children:[s&&D.jsx(tO,{}),r&&D.jsx(ar,{dataKey:r}),u&&D.jsx(cr,{content:D.jsx(Mt,{})}),o&&D.jsx(sn,{content:D.jsx(sr,{})}),e.map(p=>D.jsx(yi,{isAnimationActive:c,dataKey:p.dataKey,fill:`var(--color-${p.dataKey})`,fillOpacity:i?.3:0,stroke:`var(--color-${p.dataKey})`,strokeWidth:2,dot:a},p.dataKey))]})})}function KN({data:t=[],dataKey:e,nameKey:r,height:n=300,innerRadius:i=30,startAngle:a=180,endAngle:o=0,showLegend:u=!1,showTooltip:c=!0,animate:s=!0,valueFormat:f="auto",className:l}){if(typeof t=="string")return null;const p=p0(t,r),d=Ai(f),y=t.map((h,v)=>({...h,fill:jt[v%jt.length]}));return D.jsx(kt,{config:p,className:l,style:{height:n,aspectRatio:"auto"},children:D.jsxs(xN,{data:y,innerRadius:i,startAngle:a,endAngle:o,children:[c&&D.jsx(cr,{content:D.jsx(Mt,{nameKey:r,valueFormatter:d})}),u&&D.jsx(sn,{content:D.jsx(sr,{nameKey:r})}),D.jsx(mi,{isAnimationActive:s,dataKey:e})]})})}function WN({data:t=[],series:e,xAxis:r,yAxis:n,zAxis:i,height:a=300,showLegend:o=!1,showTooltip:u=!0,animate:c=!0,showGrid:s=!0,className:f}){if(typeof t=="string")return null;const l=M.useMemo(()=>t,[JSON.stringify(t)]),p=wi(e);return D.jsx(kt,{config:p,className:f,style:{height:a,aspectRatio:"auto"},children:D.jsxs(gN,{data:l,children:[s&&D.jsx(gi,{}),D.jsx(Xe,{dataKey:r,type:"number",name:r,tickLine:!1,axisLine:!1,tickMargin:8}),D.jsx(Ye,{dataKey:n,type:"number",name:n,tickLine:!1,axisLine:!1,tickMargin:8}),i&&D.jsx(xi,{dataKey:i,type:"number",name:i,range:[40,400]}),u&&D.jsx(cr,{content:D.jsx(Mt,{})}),o&&D.jsx(sn,{content:D.jsx(sr,{})}),e.map(d=>D.jsx(Oi,{isAnimationActive:c,name:d.label??d.dataKey,data:e.length===1?l:l.filter(y=>y._series===d.dataKey),fill:`var(--color-${d.dataKey})`},d.dataKey))]})})}export{BN as PrefabAreaChart,LN as PrefabBarChart,qN as PrefabLineChart,FN as PrefabPieChart,zN as PrefabRadarChart,KN as PrefabRadialChart,WN as PrefabScatterChart,NN as PrefabSparkline};