PageSourceSearch

https://timezilla.de/assets/Dashboard-BMasREm8.js

js timezilla.de collected 2026-10-09 03:12:13 UTC 390,062 bytes, 74 lines download raw bytes

1import{r as k,j as $,D as Vy,o as Xy,p as Yy,q as Zy,t as Jy,L as rt,I as Zr,B as Go,h as nt,v as Qy,s as Pi,w as li,x as fe,y as re,z as A,E as ht,G as em,H as tm,S as rm,C as po,b as vo,k as nm,m as yo,c as $s,e as mo,F as im}from"./index-ChZEy0f2.js";import{t as am}from"./roles-dKi8Q9BP.js";import{S as Jr,a as Qr,b as en,c as tn,d as At}from"./select-BkNocnxW.js";import{g as om,a as um,b as js,c as cm,T as sm,d as lm,e as fm,v as hm,f as dm,h as pm,i as vm}from"./address-validation-Du1sNyFP.js";import{A as ym,D as mm}from"./DemoBanner-C1m_5ToQ.js";import{C as gm}from"./chevron-left-BXH9nGgw.js";import{C as bm}from"./chevron-right-LNKXwO1w.js";import{F as Ts}from"./folder-kanban-XdiwmUzy.js";import"./index-BdQq_4o_.js";import"./chevron-down-Bqr24MZm.js";import"./chevron-up-CAJVtD99.js";import"./badge-CXQVWwT1.js";import"./bell-DIXONloP.js";import"./receipt-SVkQy5cV.js";import"./settings-CI5KkAr7.js";import"./info-BpmtPSt2.js";import"./sparkles-_qXflAdN.js";const xm=["Deutschland","Österreich","Schweiz","Belgien","Frankreich","Italien","Liechtenstein","Luxemburg","Niederlande","Polen","Tschechien"],wm=({open:e,companyEmail:t,onComplete:r})=>{const[n,i]=k.useState(!1),[a,o]=k.useState(null),[u,c]=k.useState(null),[s,f]=k.useState(null),[l,h]=k.useState(null),[d,v]=k.useState({street:"",postalCode:"",city:"",country:"Deutschland",language:"de",currency:"EUR",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,timeFormat:"decimal",taxId:"",vatRate:"19"}),y=async p=>{p.preventDefault();const b=hm(d.street);if(!b.isValid){const m=b.hint?`${b.error} - ${b.hint}`:b.error||"Ungültige Straße";c(m),nt.error(m);return}c(null);const w=dm(d.postalCode,d.country);if(!w.isValid){const m=w.hint?`${w.error} - ${w.hint}`:w.error||"Ungültige PLZ";f(m),nt.error(m);return}f(null);const x=pm(d.city);if(!x.isValid){const m=x.hint?`${x.error} - ${x.hint}`:x.error||"Ungültiger Ort";h(m),nt.error(m);return}h(null);const O=vm(d.taxId,d.country);if(!O.isValid){const m=O.hint?`${O.error} - ${O.hint}`:O.error||"Ungültige Steuer-ID";o(m),nt.error(m);return}o(null),i(!0);try{const m=Qy();if(!m){nt.error("Sitzung abgelaufen"),i(!1);return}const{data:g,error:S}=await Pi.functions.invoke("update-company",{body:{sessionToken:m,street:d.street,postalCode:d.postalCode,city:d.city,country:d.country,email:t,language:d.language,currency:d.currency,timezone:d.timezone,timeFormat:d.timeFormat,taxId:d.taxId,vatRate:parseFloat(d.vatRate)||19,onboardingCompleted:!0}});if(S||!(g!=null&&g.success))throw new Error((g==null?void 0:g.error)||"Fehler beim Speichern");nt.success("Konfiguration erfolgreich gespeichert"),r()}catch(m){console.error("Error saving onboarding:",m),nt.error(m.message||"Fehler beim Speichern der Daten")}finally{i(!1)}};return $.jsx(Vy,{open:e,modal:!0,children:$.jsxs(Xy,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",onInteractOutside:p=>p.preventDefault(),children:[$.jsxs(Yy,{children:[$.jsx(Zy,{children:"Willkommen bei TimeZilla!"}),$.jsx(Jy,{children:"Bitte vervollständigen Sie Ihre Unternehmensdaten, um fortzufahren."})]}),$.jsx("p",{className:"text-sm text-muted-foreground",children:"* Pflichtfeld"}),$.jsxs("form",{onSubmit:y,className:"space-y-4",children:[$.jsxs("div",{className:"space-y-4",children:[$.jsx("h4",{className:"font-medium text-sm text-muted-foreground",children:"Unternehmensadresse"}),$.jsxs("div",{children:[$.jsx(rt,{htmlFor:"street",className:u?"text-destructive":"",children:"Straße + Hausnummer *"}),$.jsx(Zr,{id:"street",required:!0,value:d.street,onChange:p=>{v({...d,street:p.target.value}),p.target.value?c(om(p.target.value)):c(null)},placeholder:"z.B. Musterstraße 123",className:u?"border-destructive focus-visible:ring-destructive":""}),u&&$.jsx("p",{className:"text-xs text-destructive mt-1",children:u})]}),$.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[$.jsxs("div",{children:[$.jsx(rt,{htmlFor:"postalCode",className:s?"text-destructive":"",children:"PLZ *"}),$.jsx(Zr,{id:"postalCode",required:!0,value:d.postalCode,onChange:p=>{v({...d,postalCode:p.target.value}),p.target.value?f(js(p.target.value,d.country)):f(null)},placeholder:um(d.country),className:s?"border-destructive focus-visible:ring-destructive":""}),s&&$.jsx("p",{className:"text-xs text-destructive mt-1",children:s})]}),$.jsxs("div",{className:"col-span-1 md:col-span-2",children:[$.jsx(rt,{htmlFor:"city",className:l?"text-destructive":"",children:"Ort *"}),$.jsx(Zr,{id:"city",required:!0,value:d.city,onChange:p=>{v({...d,city:p.target.value}),p.target.value?h(cm(p.target.value)):h(null)},placeholder:"Musterstadt",className:l?"border-destructive focus-visible:ring-destructive":""}),l&&$.jsx("p",{className:"text-xs text-destructive mt-1",children:l})]}),$.jsxs("div",{children:[$.jsx(rt,{htmlFor:"country",children:"Land *"}),$.jsxs(Jr,{value:d.country,onValueChange:p=>{v({...d,country:p}),d.postalCode&&f(js(d.postalCode,p))},children:[$.jsx(Qr,{id:"country",children:$.jsx(en,{})}),$.jsx(tn,{children:xm.map(p=>$.jsx(At,{value:p,children:p},p))})]})]})]})]}),$.jsxs("div",{className:"space-y-4 pt-4 border-t",children:[$.jsx("h4",{className:"font-medium text-sm text-muted-foreground",children:"Einstellungen"}),$.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[$.jsxs("div",{children:[$.jsx(rt,{htmlFor:"language",children:"Sprache *"}),$.jsxs(Jr,{value:d.language,onValueChange:p=>v({...d,language:p}),children:[$.jsx(Qr,{id:"language",children:$.jsx(en,{})}),$.jsxs(tn,{children:[$.jsx(At,{value:"de",children:"Deutsch"}),$.jsx(At,{value:"en",children:"English"})]})]})]}),$.jsxs("div",{children:[$.jsx(rt,{htmlFor:"currency",children:"Währung *"}),$.jsxs(Jr,{value:d.currency,onValueChange:p=>v({...d,currency:p}),children:[$.jsx(Qr,{id:"currency",children:$.jsx(en,{})}),$.jsxs(tn,{children:[$.jsx(At,{value:"EUR",children:"Euro (€)"}),$.jsx(At,{value:"USD",children:"US-Dollar ($)"})]})]})]})]}),$.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[$.jsxs("div",{children:[$.jsx(rt,{htmlFor:"timezone",children:"Zeitzone *"}),$.jsxs(Jr,{value:d.timezone,onValueChange:p=>v({...d,timezone:p}),children:[$.jsx(Qr,{id:"timezone",children:$.jsx(en,{})}),$.jsx(tn,{className:"max-h-[200px] bg-background",children:sm.map(p=>$.jsx(At,{value:p,children:p},p))})]})]}),$.jsxs("div",{children:[$.jsx(rt,{htmlFor:"timeFormat",children:"Zeitangabe *"}),$.jsxs(Jr,{value:d.timeFormat,onValueChange:p=>v({...d,timeFormat:p}),children:[$.jsx(Qr,{id:"timeFormat",children:$.jsx(en,{})}),$.jsxs(tn,{children:[$.jsx(At,{value:"decimal",children:"Dezimalstunden (z.B. 7.5h)"}),$.jsx(At,{value:"hours_minutes",children:"Stunden:Minuten (z.B. 7:30h)"})]})]})]})]})]}),$.jsxs("div",{className:"space-y-4 pt-4 border-t",children:[$.jsx("h4",{className:"font-medium text-sm text-muted-foreground",children:"Steuerdaten"}
1),$.jsxs("div",{children:[$.jsx(rt,{htmlFor:"taxId",className:a?"text-destructive":"",children:"Steuer-ID *"}),$.jsx(Zr,{id:"taxId",required:!0,maxLength:100,value:d.taxId,onChange:p=>{v({...d,taxId:p.target.value}),p.target.value?o(fm(p.target.value,d.country)):o(null)},placeholder:lm(d.country),className:a?"border-destructive focus-visible:ring-destructive":""}),a&&$.jsx("p",{className:"text-xs text-destructive mt-1",children:a})]}),$.jsxs("div",{children:[$.jsx(rt,{htmlFor:"vatRate",children:"MwSt.-Satz (%) *"}),$.jsx(Zr,{id:"vatRate",type:"number",required:!0,min:0,max:100,step:.01,value:d.vatRate,onChange:p=>v({...d,vatRate:p.target.value}),placeholder:"z.B. 19"})]})]}),$.jsx("div",{className:"flex justify-end pt-4",children:$.jsx(Go,{type:"submit",disabled:n,children:n?"Speichert...":"Speichern und fortfahren"})})]})]})})};var Om=Array.isArray,Re=Om,Sm=typeof li=="object"&&li&&li.Object===Object&&li,wd=Sm,_m=wd,Pm=typeof self=="object"&&self&&self.Object===Object&&self,Am=_m||Pm||Function("return this")(),lt=Am,$m=lt,jm=$m.Symbol,ti=jm,Es=ti,Od=Object.prototype,Tm=Od.hasOwnProperty,Em=Od.toString,rn=Es?Es.toStringTag:void 0;function Mm(e){var t=Tm.call(e,rn),r=e[rn];try{e[rn]=void 0;var n=!0}catch{}var i=Em.call(e);return n&&(t?e[rn]=r:delete e[rn]),i}var Cm=Mm,Im=Object.prototype,Nm=Im.toString;function Dm(e){return Nm.call(e)}var km=Dm,Ms=ti,Lm=Cm,Rm=km,Bm="[object Null]",Fm="[object Undefined]",Cs=Ms?Ms.toStringTag:void 0;function zm(e){return e==null?e===void 0?Fm:Bm:Cs&&Cs in Object(e)?Lm(e):Rm(e)}var Ot=zm;function Um(e){return e!=null&&typeof e=="object"}var St=Um,Wm=Ot,qm=St,Hm="[object Symbol]";function Gm(e){return typeof e=="symbol"||qm(e)&&Wm(e)==Hm}var Br=Gm,Km=Re,Vm=Br,Xm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ym=/^\w*$/;function Zm(e,t){if(Km(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Vm(e)?!0:Ym.test(e)||!Xm.test(e)||t!=null&&e in Object(t)}var bc=Zm;function Jm(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var It=Jm;const Fr=fe(It);var Qm=Ot,eg=It,tg="[object AsyncFunction]",rg="[object Function]",ng="[object GeneratorFunction]",ig="[object Proxy]";function ag(e){if(!eg(e))return!1;var t=Qm(e);return t==rg||t==ng||t==tg||t==ig}var xc=ag;const Z=fe(xc);var og=lt,ug=og["__core-js_shared__"],cg=ug,go=cg,Is=function(){var e=/[^.]+$/.exec(go&&go.keys&&go.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sg(e){return!!Is&&Is in e}var lg=sg,fg=Function.prototype,hg=fg.toString;function dg(e){if(e!=null){try{return hg.call(e)}catch{}try{return e+""}catch{}}return""}var Sd=dg,pg=xc,vg=lg,yg=It,mg=Sd,gg=/[\\^$.*+?()[\]{}|]/g,bg=/^\[object .+?Constructor\]$/,xg=Function.prototype,wg=Object.prototype,Og=xg.toString,Sg=wg.hasOwnProperty,_g=RegExp("^"+Og.call(Sg).replace(gg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pg(e){if(!yg(e)||vg(e))return!1;var t=pg(e)?_g:bg;return t.test(mg(e))}var Ag=Pg;function $g(e,t){return e==null?void 0:e[t]}var jg=$g,Tg=Ag,Eg=jg;function Mg(e,t){var r=Eg(e,t);return Tg(r)?r:void 0}var rr=Mg,Cg=rr,Ig=Cg(Object,"create"),Sa=Ig,Ns=Sa;function Ng(){this.__data__=Ns?Ns(null):{},this.size=0}var Dg=Ng;function kg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Lg=kg,Rg=Sa,Bg="__lodash_hash_undefined__",Fg=Object.prototype,zg=Fg.hasOwnProperty;function Ug(e){var t=this.__data__;if(Rg){var r=t[e];return r===Bg?void 0:r}return zg.call(t,e)?t[e]:void 0}var Wg=Ug,qg=Sa,Hg=Object.prototype,Gg=Hg.hasOwnProperty;function Kg(e){var t=this.__data__;return qg?t[e]!==void 0:Gg.call(t,e)}var Vg=Kg,Xg=Sa,Yg="__lodash_hash_undefined__";function Zg(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xg&&t===void 0?Yg:t,this}var Jg=Zg,Qg=Dg,eb=Lg,tb=Wg,rb=Vg,nb=Jg;function zr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}zr.prototype.clear=Qg;zr.prototype.delete=eb;zr.prototype.get=tb;zr.prototype.has=rb;zr.prototype.set=nb;var ib=zr;function ab(){this.__data__=[],this.size=0}var ob=ab;function ub(e,t){return e===t||e!==e&&t!==t}var wc=ub,cb=wc;
vendor: 4,652 bytes, lines 1-9
1function sb(e,t){for(var r=e.length;r--;)if(cb(e[r][0],t))return r;return-1}var _a=sb,lb=_a,fb=Array.prototype,hb=fb.splice;function db(e){var t=this.__data__,r=lb(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():hb.call(t,r,1),--this.size,!0}var pb=db,vb=_a;function yb(e){var t=this.__data__,r=vb(t,e);return r<0?void 0:t[r][1]}var mb=yb,gb=_a;function bb(e){return gb(this.__data__,e)>-1}var xb=bb,wb=_a;function Ob(e,t){var r=this.__data__,n=wb(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Sb=Ob,_b=ob,Pb=pb,Ab=mb,$b=xb,jb=Sb;function Ur(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ur.prototype.clear=_b;Ur.prototype.delete=Pb;Ur.prototype.get=Ab;Ur.prototype.has=$b;Ur.prototype.set=jb;var Pa=Ur,Tb=rr,Eb=lt,Mb=Tb(Eb,"Map"),Oc=Mb,Ds=ib,Cb=Pa,Ib=Oc;function Nb(){this.size=0,this.__data__={hash:new Ds,map:new(Ib||Cb),string:new Ds}}var Db=Nb;function kb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Lb=kb,Rb=Lb;function Bb(e,t){var r=e.__data__;return Rb(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Aa=Bb,Fb=Aa;function zb(e){var t=Fb(this,e).delete(e);return this.size-=t?1:0,t}var Ub=zb,Wb=Aa;function qb(e){return Wb(this,e).get(e)}var Hb=qb,Gb=Aa;function Kb(e){return Gb(this,e).has(e)}var Vb=Kb,Xb=Aa;function Yb(e,t){var r=Xb(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Zb=Yb,Jb=Db,Qb=Ub,e0=Hb,t0=Vb,r0=Zb;function Wr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Wr.prototype.clear=Jb;Wr.prototype.delete=Qb;Wr.prototype.get=e0;Wr.prototype.has=t0;Wr.prototype.set=r0;var Sc=Wr,_d=Sc,n0="Expected a function";function _c(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(n0);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(_c.Cache||_d),r}_c.Cache=_d;var Pd=_c;const i0=fe(Pd);var a0=Pd,o0=500;function u0(e){var t=a0(e,function(n){return r.size===o0&&r.clear(),n}),r=t.cache;return t}var c0=u0,s0=c0,l0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f0=/\\(\\)?/g,h0=s0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(l0,function(r,n,i,a){t.push(i?a.replace(f0,"$1"):n||r)}),t}),d0=h0;function p0(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Pc=p0,ks=ti,v0=Pc,y0=Re,m0=Br,Ls=ks?ks.prototype:void 0,Rs=Ls?Ls.toString:void 0;function Ad(e){if(typeof e=="string")return e;if(y0(e))return v0(e,Ad)+"";if(m0(e))return Rs?Rs.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var g0=Ad,b0=g0;function x0(e){return e==null?"":b0(e)}var $d=x0,w0=Re,O0=bc,S0=d0,_0=$d;function P0(e,t){return w0(e)?e:O0(e,t)?[e]:S0(_0(e))}var jd=P0,A0=Br;function $0(e){if(typeof e=="string"||A0(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var $a=$0,j0=jd,T0=$a;function E0(e,t){t=j0(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[T0(t[r++])];return r&&r==n?e:void 0}var Ac=E0,M0=Ac;function C0(e,t,r){var n=e==null?void 0:M0(e,t);return n===void 0?r:n}var Td=C0;const Ge=fe(Td);function I0(e){return e==null}var N0=I0;const ne=fe(N0);var D0=Ot,k0=Re,L0=St,R0="[object String]";function B0(e){return typeof e=="string"||!k0(e)&&L0(e)&&D0(e)==R0}var F0=B0;const Zt=fe(F0);var Ed={exports:{}},ae={};/**
2 * @license React
3 * react-is.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var $c=Symbol.for("react.element"),jc=Symbol.for("react.portal"),ja=Symbol.for("react.fragment"),Ta=Symbol.for("react.strict_mode"),Ea=Symbol.for("react.profiler"),Ma=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),z0=Symbol.for("react.server_context"),Ia=Symbol.for("react.forward_ref"),Na=Symbol.for("react.suspense"),Da=Symbol.for("react.suspense_list"),ka=Symbol.for("react.memo"),La=Symbol.for("react.lazy"),U0=Symbol.for("react.offscreen"),Md;Md=Symbol.for("react.module.reference");function Ve(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case $c:switch(e=e.type,e){case ja:case Ea:case Ta:case Na:case Da:return e;default:switch(e=e&&e.$$typeof,e){case z0:case Ca:case Ia:case La:case ka:case Ma:return e;default:return t}}case jc:return t}}}ae.ContextConsumer=Ca;ae.ContextProvider=Ma;ae.Element=$c;ae.ForwardRef=Ia;ae.Fragment=ja;ae.Lazy=La;ae.Memo=ka;ae.Portal=jc;ae.Profiler=Ea;ae.StrictMode=Ta;
9ae.Suspense=Na;ae.SuspenseList=Da;ae.isAsyncMode=function(){return!1};ae.isConcurrentMode=function(){return!1};ae.isContextConsumer=function(e){return Ve(e)===Ca};ae.isContextProvider=function(e){return Ve(e)===Ma};ae.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$c};ae.isForwardRef=function(e){return Ve(e)===Ia};ae.isFragment=function(e){return Ve(e)===ja};ae.isLazy=function(e){return Ve(e)===La};ae.isMemo=function(e){return Ve(e)===ka};ae.isPortal=function(e){return Ve(e)===jc};ae.isProfiler=function(e){return Ve(e)===Ea};ae.isStrictMode=function(e){return Ve(e)===Ta};ae.isSuspense=function(e){return Ve(e)===Na};ae.isSuspenseList=function(e){return Ve(e)===Da};ae.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ja||e===Ea||e===Ta||e===Na||e===Da||e===U0||typeof e=="object"&&e!==null&&(e.$$typeof===La||e.$$typeof===ka||e.$$typeof===Ma||e.$$typeof===Ca||e.$$typeof===Ia||e.$$typeof===Md||e.getModuleId!==void 0)};ae.typeOf=Ve;Ed.exports=ae;var W0=Ed.exports,q0=Ot,H0=St,G0="[object Number]";function K0(e){return typeof e=="number"||H0(e)&&q0(e)==G0}var Cd=K0;const V0=fe(Cd);var X0=Cd;function Y0(e){return X0(e)&&e!=+e}var Z0=Y0;const ri=fe(Z0);var Qe=function(t){return t===0?0:t>0?1:-1},qt=function(t){return Zt(t)&&t.indexOf("%")===t.length-1},z=function(t){return V0(t)&&!ri(t)},J0=function(t){return ne(t)},Pe=function(t){return z(t)||Zt(t)},Q0=0,Ra=function(t){var r=++Q0;return"".concat(t||"").concat(r)},Jt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!z(t)&&!Zt(t))return n;var a;if(qt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return ri(a)&&(a=n),i&&a>r&&(a=r),a},jt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},ex=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},ur=function(t,r){return z(t)&&z(r)?function(n){return t+n*(r-t)}:function(){return r}};function Ko(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ge(n,t))===r})}var tx=function(t,r){return z(t)&&z(r)?t-r:Zt(t)&&Zt(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function pr(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Vo(e){"@babel/helpers - typeof";return Vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vo(e)}var rx=["viewBox","children"],nx=["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","colorRen
9dering","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"],Bs=["points","pathLength"],bo={svg:rx,polygon:Bs,polyline:Bs},Tc=["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","onDrag
9Capture","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"],Ai=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(k.isValidElement(t)&&(n=t.props),!Fr(n))return null;var i={};return Object.keys(n).forEach(function(a){Tc.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},ix=function(t,r,n){return function(i){return t(r,n,i),null}},$i=function(t,r,n){if(!Fr(t)||Vo(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Tc.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=ix(o,r,n))}),i},ax=["children"],ox=["children"];function Fs(e,t){if(e==null)return{};var r=ux(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ux(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var zs={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"},yt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Us=null,xo=null,Ec=function e(t){if(t===Us&&Array.isArray(xo))return xo;var r=[];return k.Children.forEach(t,function(n){ne(n)||(W0.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),xo=r,Us=t,r};function et(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return yt(i)}):n=[yt(t)],Ec(e).forEach(function(i){var a=Ge(i,"type.displayName")||Ge(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Fe(e,t){var r=et(e,t);return r&&r[0]}var Ws=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!z(n)||n<=0||!z(i)||i<=0)},cx=["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"],sx=function(t){return t&&t.type&&Zt(t.type)&&cx.indexOf(t.type)>=0},lx=function(t,r,n,i){var a,o=(a=bo==null?void 0:bo[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Z(t)&&(i&&o.includes(r)||nx.includes(r))||n&&Tc.includes(r)},te=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(k.isValidElement(t)&&(i=t.props),!Fr(i))return null;var a={};
9return Object.keys(i).forEach(function(o){var u;lx((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Xo=function e(t,r){if(t===r)return!0;var n=k.Children.count(t);if(n!==k.Children.count(r))return!1;if(n===0)return!0;if(n===1)return qs(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!qs(a,o))return!1}return!0},qs=function(t,r){if(ne(t)&&ne(r))return!0;if(!ne(t)&&!ne(r)){var n=t.props||{},i=n.children,a=Fs(n,ax),o=r.props||{},u=o.children,c=Fs(o,ox);return i&&u?pr(a,c)&&Xo(i,u):!i&&!u?pr(a,c):!1}return!1},Hs=function(t,r){var n=[],i={};return Ec(t).forEach(function(a,o){if(sx(a))n.push(a);else if(a){var u=yt(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},fx=function(t){var r=t&&t.type;return r&&zs[r]?zs[r]:null},hx=function(t,r){return Ec(r).indexOf(t)},dx=["children","width","height","viewBox","className","style","title","desc"];function Yo(){return Yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yo.apply(this,arguments)}function px(e,t){if(e==null)return{};var r=vx(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vx(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Zo(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,c=e.desc,s=px(e,dx),f=i||{width:r,height:n,x:0,y:0},l=re("recharts-surface",a);return A.createElement("svg",Yo({},te(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),A.createElement("title",null,u),A.createElement("desc",null,c),t)}var yx=["children","className"];function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jo.apply(this,arguments)}function mx(e,t){if(e==null)return{};var r=gx(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gx(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var je=A.forwardRef(function(e,t){var r=e.children,n=e.className,i=mx(e,yx),a=re("recharts-layer",n);return A.createElement("g",Jo({className:a},te(i,!0),{ref:t}),r)}),mt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function bx(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var xx=bx,wx=xx;function Ox(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:wx(e,t,r)}var Sx=Ox,_x="\\ud800-\\udfff",Px="\\u0300-\\u036f",Ax="\\ufe20-\\ufe2f",$x="\\u20d0-\\u20ff",jx=Px+Ax+$x,Tx="\\ufe0e\\ufe0f",Ex="\\u200d",Mx=RegExp("["+Ex+_x+jx+Tx+"]");function Cx(e){return Mx.test(e)}var Id=Cx;function Ix(e){return e.split("")}var Nx=Ix,Nd="\\ud800-\\udfff",Dx="\\u0300-\\u036f",kx="\\ufe20-\\ufe2f",Lx="\\u20d0-\\u20ff",Rx=Dx+kx+Lx,Bx="\\ufe0e\\ufe0f",Fx="["+Nd+"]",Qo="["+Rx+"]",eu="\\ud83c[\\udffb-\\udfff]",zx="(?:"+Qo+"|"+eu+")",Dd="[^"+Nd+"]",kd="(?:\\ud83c[\\udde6-\\uddff]){2}",Ld="[\\ud800-\\udbff][\\udc00-\\udfff]",Ux="\\u200d",Rd=zx+"?",Bd="["+Bx+"]?",Wx="(?:"+Ux+"(?:"+[Dd,kd,Ld].join("|")+")"+Bd+Rd+")*",qx=Bd+Rd+Wx,Hx="(?:"+[Dd+Qo+"?",Qo,kd,Ld,Fx].join("|")+")",Gx=RegExp(eu+"(?="+eu+")|"+Hx+qx,"g");function Kx(e){return e.match(Gx)||[]}var Vx=Kx,Xx=Nx,Yx=Id,Zx=Vx;function Jx(e){return Yx(e)?Zx(e):Xx(e)}var Qx=Jx,ew=Sx,tw=Id,rw=Qx,nw=$d;function iw(e){return function(t){t=nw(t);var r=tw(t)?rw(t):void 0,n=r?r[0]:t.charAt(0),i=r?ew(r,1).join(""):t.slice(1);return n[e]()+i}}var aw=iw,ow=aw,uw=ow("toUpperCase"),cw=uw;const Ba=fe(cw);function le(e){return function(){return e}}const Fd=Math.cos,ji=Math.sin,tt=Math.sqrt,Ti=Math.PI,Fa=2*Ti,tu=Math.PI,ru=2*tu,zt=1e-6,sw=ru-zt;function zd(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function lw(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return zd;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class fw{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?zd:lw(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n}
9,${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,c=n-t,s=i-r,f=o-t,l=u-r,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>zt)if(!(Math.abs(l*c-s*f)>zt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=n-o,v=i-u,y=c*c+s*s,p=d*d+v*v,b=Math.sqrt(y),w=Math.sqrt(h),x=a*Math.tan((tu-Math.acos((y+h-p)/(2*b*w)))/2),O=x/w,m=x/b;Math.abs(O-1)>zt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*d>f*v)},${this._x1=t+m*c},${this._y1=r+m*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),s=t+u,f=r+c,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>zt||Math.abs(this._y1-f)>zt)&&this._append`L${s},${f}`,n&&(h<0&&(h=h%ru+ru),h>sw?this._append`A${n},${n},0,1,${l},${t-u},${r-c}A${n},${n},0,1,${l},${this._x1=s},${this._y1=f}`:h>zt&&this._append`A${n},${n},0,${+(h>=tu)},${l},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Mc(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new fw(t)}function Cc(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Ud(e){this._context=e}Ud.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function za(e){return new Ud(e)}function Wd(e){return e[0]}function qd(e){return e[1]}function Hd(e,t){var r=le(!0),n=null,i=za,a=null,o=Mc(u);e=typeof e=="function"?e:e===void 0?Wd:le(e),t=typeof t=="function"?t:t===void 0?qd:le(t);function u(c){var s,f=(c=Cc(c)).length,l,h=!1,d;for(n==null&&(a=i(d=o())),s=0;s<=f;++s)!(s<f&&r(l=c[s],s,c))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,s,c),+t(l,s,c));if(d)return a=null,d+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:le(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:le(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:le(!!c),u):r},u.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),u):i},u.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),u):n},u}function fi(e,t,r){var n=null,i=le(!0),a=null,o=za,u=null,c=Mc(s);e=typeof e=="function"?e:e===void 0?Wd:le(+e),t=typeof t=="function"?t:le(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?qd:le(+r);function s(l){var h,d,v,y=(l=Cc(l)).length,p,b=!1,w,x=new Array(y),O=new Array(y);for(a==null&&(u=o(w=c())),h=0;h<=y;++h){if(!(h<y&&i(p=l[h],h,l))===b)if(b=!b)d=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),v=h-1;v>=d;--v)u.point(x[v],O[v]);u.lineEnd(),u.areaEnd()}b&&(x[h]=+e(p,h,l),O[h]=+t(p,h,l),u.point(n?+n(p,h,l):x[h],r?+r(p,h,l):O[h]))}if(w)return u=null,w+""||null}function f(){return Hd().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:le(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:le(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:le(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:le(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:le(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:le(+l),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(l){return arguments.length?(i=typeof l=="function"?l:le(!!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}class Gd{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function hw(e){return new Gd(e,!0)}function dw(e){return new Gd(e,!1)}const Ic={draw(e,t){const r=tt(t/Ti);e.moveTo(r,0),e.arc(0,0,r,0,Fa)}},pw={draw(e,t){const r=tt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Kd=tt(1/3),vw=Kd*2,yw={draw(e,t){const r=tt(t/vw),n=r*Kd;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},mw={draw(e,t){const r=tt(t),n=-r/2;e.rect(n,n,r,r)}},gw=.8908130915292852,Vd=ji(Ti/10)/ji(7*Ti/10),bw=ji(Fa/10)*Vd,xw=-Fd(Fa/10)*Vd,ww={draw(e,t){const r=tt(t*gw),n=bw*r,i=xw*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Fa*a/5,u=Fd(o),c=ji(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},wo=tt(3),Ow={draw(e,t){const r=-tt(t/(wo*3));e.moveTo(0,r*2),e.lineTo(-wo*r,-r),e.lineTo(wo*r,-r),e.closePath()}},Ue=-.5,We=tt(3)/2,nu=1/tt(12),Sw=(nu/2+1)*3,_w={draw(e,t){const r=tt(t/Sw),n=r/2,i=r*nu,a=n,o=r*nu+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Ue*n-We*i,We*n+Ue*i),e.lineTo(Ue*a-We*o,We*a+Ue*o),e.lineTo(Ue*u-We*c,We*u+Ue*c),e.lineTo(Ue*n+We*i,Ue*i-We*n),e.lineTo(Ue*a+We*o,Ue*o-We*a),e.lineTo(Ue*u+We*c,Ue*c-We*u),e.closePath()}};function Pw(e,t){let r=null,n=Mc(i);e=typeof e=="function"?e:le(e||Ic),t=typeof t=="function"?t:le(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:le(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:le(+a),i):t}
vendor: 6,361 bytes, line 9
9,i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ei(){}function Mi(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Xd(e){this._context=e}Xd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Mi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Mi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Aw(e){return new Xd(e)}function Yd(e){this._context=e}Yd.prototype={areaStart:Ei,areaEnd:Ei,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Mi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $w(e){return new Yd(e)}function Zd(e){this._context=e}Zd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Mi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jw(e){return new Zd(e)}function Jd(e){this._context=e}Jd.prototype={areaStart:Ei,areaEnd:Ei,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Tw(e){return new Jd(e)}function Gs(e){return e<0?-1:1}function Ks(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Gs(a)+Gs(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Vs(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Oo(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function Ci(e){this._context=e}Ci.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Oo(this,this._t0,Vs(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Oo(this,Vs(this,r=Ks(this,e,t)),r);break;default:Oo(this,this._t0,r=Ks(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Qd(e){this._context=new ep(e)}(Qd.prototype=Object.create(Ci.prototype)).point=function(e,t){Ci.prototype.point.call(this,t,e)};function ep(e){this._context=e}ep.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Ew(e){return new Ci(e)}function Mw(e){return new Qd(e)}function tp(e){this._context=e}tp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Xs(e),i=Xs(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Xs(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Cw(e){return new tp(e)}function Ua(e,t){this._context=e,this._t=t}Ua.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 10,167 bytes, lines 9-12
9default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Iw(e){return new Ua(e,.5)}function Nw(e){return new Ua(e,0)}function Dw(e){return new Ua(e,1)}function gr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function iu(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function kw(e,t){return e[t]}function Lw(e){const t=[];return t.key=e,t}function Rw(){var e=le([]),t=iu,r=gr,n=kw;function i(a){var o=Array.from(e.apply(this,arguments),Lw),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=Cc(t(o));u<c;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:le(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:le(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?iu:typeof a=="function"?a:le(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??gr,i):r},i}function Bw(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}gr(e,t)}}function Fw(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}gr(e,t)}}function zw(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,c=0,s=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,h=f[n-1][1]||0,d=(l-h)/2,v=0;v<u;++v){var y=e[t[v]],p=y[n][1]||0,b=y[n-1][1]||0;d+=p-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,gr(e,t)}}function gn(e){"@babel/helpers - typeof";return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(e)}var Uw=["type","size","sizeType"];function au(){return au=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},au.apply(this,arguments)}function Ys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ys(Object(r),!0).forEach(function(n){Ww(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ys(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ww(e,t,r){return t=qw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qw(e){var t=Hw(e,"string");return gn(t)=="symbol"?t:t+""}function Hw(e,t){if(gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gw(e,t){if(e==null)return{};var r=Kw(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Kw(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var rp={symbolCircle:Ic,symbolCross:pw,symbolDiamond:yw,symbolSquare:mw,symbolStar:ww,symbolTriangle:Ow,symbolWye:_w},Vw=Math.PI/180,Xw=function(t){var r="symbol".concat(Ba(t));return rp[r]||Ic},Yw=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*Vw;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},Zw=function(t,r){rp["symbol".concat(Ba(t))]=r},Nc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,c=Gw(t,Uw),s=Zs(Zs({},c),{},{type:n,size:a,sizeType:u}),f=function(){var p=Xw(n),b=Pw().type(p).size(Yw(a,u,n));return b()},l=s.className,h=s.cx,d=s.cy,v=te(s,!0);return h===+h&&d===+d&&a===+a?A.createElement("path",au({},v,{className:re("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(d,")"),d:f()})):null};Nc.registerSymbol=Zw;function br(e){"@babel/helpers - typeof";return br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},br(e)}function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ou.apply(this,arguments)}function Js(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Js(Object(r),!0).forEach(function(n){bn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Js(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ip(n.key),n)}}function t1(e,t,r){return t&&e1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function r1(e,t,r){return t=Ii(t),n1(e,np()?Reflect.construct(t,r||[],Ii(e).constructor):t.apply(e,r))}function n1(e,t){if(t&&(br(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return i1(e)}function i1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function np(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(np=function(){return!!e})()}function Ii(e){return Ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ii(e)}function a1(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uu(e,t)}function uu(e,t){return uu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uu(e,t)}function bn(e,t,r){return t=ip(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ip(e){var t=o1(e,"string");return br(t)=="symbol"?t:t+""}function o1(e,t){if(br(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qe=32,Dc=function(e){function t(){return Qw(this,t),r1(this,t,arguments)}return a1(t,e),t1(t,[{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 A.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 A.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,`
10            A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
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 A.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(A.isValidElement(n.legendIcon)){var s=Jw({},n);return delete s.legendIcon,A.cloneElement(n.legendIcon,s)}return A.createElement(Nc,{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},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(d,v){var y=d.formatter||c,p=re(bn(bn({"recharts-legend-item":!0},"legend-item-".concat(v),!0),"inactive",d.inactive));if(d.type==="none")return null;var b=Z(d.value)?null:d.value;mt(!Z(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 w=d.inactive?s:d.color;return A.createElement("li",ou({className:p,style:l,key:"legend-item-".concat(v)},$i(n.props,d,v)),A.createElement(Zo,{width:o,height:o,viewBox:f,style:h},n.renderIcon(d)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},y?y(b,d,v):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 A.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])}(k.PureComponent);
vendor: 4,719 bytes, line 12
12bn(Dc,"displayName","Legend");bn(Dc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var u1=Pa;function c1(){this.__data__=new u1,this.size=0}var s1=c1;function l1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var f1=l1;function h1(e){return this.__data__.get(e)}var d1=h1;function p1(e){return this.__data__.has(e)}var v1=p1,y1=Pa,m1=Oc,g1=Sc,b1=200;function x1(e,t){var r=this.__data__;if(r instanceof y1){var n=r.__data__;if(!m1||n.length<b1-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new g1(n)}return r.set(e,t),this.size=r.size,this}var w1=x1,O1=Pa,S1=s1,_1=f1,P1=d1,A1=v1,$1=w1;function qr(e){var t=this.__data__=new O1(e);this.size=t.size}qr.prototype.clear=S1;qr.prototype.delete=_1;qr.prototype.get=P1;qr.prototype.has=A1;qr.prototype.set=$1;var ap=qr,j1="__lodash_hash_undefined__";function T1(e){return this.__data__.set(e,j1),this}var E1=T1;function M1(e){return this.__data__.has(e)}var C1=M1,I1=Sc,N1=E1,D1=C1;function Ni(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new I1;++t<r;)this.add(e[t])}Ni.prototype.add=Ni.prototype.push=N1;Ni.prototype.has=D1;var op=Ni;function k1(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var up=k1;function L1(e,t){return e.has(t)}var cp=L1,R1=op,B1=up,F1=cp,z1=1,U1=2;function W1(e,t,r,n,i,a){var o=r&z1,u=e.length,c=t.length;if(u!=c&&!(o&&c>u))return!1;var s=a.get(e),f=a.get(t);if(s&&f)return s==t&&f==e;var l=-1,h=!0,d=r&U1?new R1:void 0;for(a.set(e,t),a.set(t,e);++l<u;){var v=e[l],y=t[l];if(n)var p=o?n(y,v,l,t,e,a):n(v,y,l,e,t,a);if(p!==void 0){if(p)continue;h=!1;break}if(d){if(!B1(t,function(b,w){if(!F1(d,w)&&(v===b||i(v,b,r,n,a)))return d.push(w)})){h=!1;break}}else if(!(v===y||i(v,y,r,n,a))){h=!1;break}}return a.delete(e),a.delete(t),h}var sp=W1,q1=lt,H1=q1.Uint8Array,G1=H1;function K1(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var V1=K1;function X1(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var kc=X1,Qs=ti,el=G1,Y1=wc,Z1=sp,J1=V1,Q1=kc,eO=1,tO=2,rO="[object Boolean]",nO="[object Date]",iO="[object Error]",aO="[object Map]",oO="[object Number]",uO="[object RegExp]",cO="[object Set]",sO="[object String]",lO="[object Symbol]",fO="[object ArrayBuffer]",hO="[object DataView]",tl=Qs?Qs.prototype:void 0,So=tl?tl.valueOf:void 0;function dO(e,t,r,n,i,a,o){switch(r){case hO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fO:return!(e.byteLength!=t.byteLength||!a(new el(e),new el(t)));case rO:case nO:case oO:return Y1(+e,+t);case iO:return e.name==t.name&&e.message==t.message;case uO:case sO:return e==t+"";case aO:var u=J1;case cO:var c=n&eO;if(u||(u=Q1),e.size!=t.size&&!c)return!1;var s=o.get(e);if(s)return s==t;n|=tO,o.set(e,t);var f=Z1(u(e),u(t),n,i,a,o);return o.delete(e),f;case lO:if(So)return So.call(e)==So.call(t)}return!1}var pO=dO;function vO(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var lp=vO,yO=lp,mO=Re;function gO(e,t,r){var n=t(e);return mO(e)?n:yO(n,r(e))}var bO=gO;function xO(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var wO=xO;function OO(){return[]}var SO=OO,_O=wO,PO=SO,AO=Object.prototype,$O=AO.propertyIsEnumerable,rl=Object.getOwnPropertySymbols,jO=rl?function(e){return e==null?[]:(e=Object(e),_O(rl(e),function(t){return $O.call(e,t)}))}:PO,TO=jO;function EO(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var MO=EO,CO=Ot,IO=St,NO="[object Arguments]";function DO(e){return IO(e)&&CO(e)==NO}var kO=DO,nl=kO,LO=St,fp=Object.prototype,RO=fp.hasOwnProperty,BO=fp.propertyIsEnumerable,FO=nl(function(){return arguments}())?nl:function(e){return LO(e)&&RO.call(e,"callee")&&!BO.call(e,"callee")},Lc=FO,Di={exports:{}};function zO(){return!1}var UO=zO;Di.exports;(function(e,t){var r=lt,n=UO,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,c=u?u.isBuffer:void 0,s=c||n;e.exports=s})(Di,Di.exports);var hp=Di.exports,WO=9007199254740991,qO=/^(?:0|[1-9]\d*)$/;function HO(e,t){var r=typeof e;return t=t??WO,!!t&&(r=="number"||r!="symbol"&&qO.test(e))&&e>-1&&e%1==0&&e<t}var Rc=HO,GO=9007199254740991;function KO(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=GO}var Bc=KO,VO=Ot,XO=Bc,YO=St,ZO="[object Arguments]",JO="[object Array]",QO="[object Boolean]",eS="[object Date]",tS="[object Error]",rS="[object Function]",nS="[object Map]",iS="[object Number]",aS="[object Object]",oS="[object RegExp]",uS="[object Set]",cS="[object String]",sS="[object WeakMap]",lS="[object ArrayBuffer]",fS="[object DataView]",hS="[object Float32Array]",dS="[object Float64Array
12]",pS="[object Int8Array]",vS="[object Int16Array]",yS="[object Int32Array]",mS="[object Uint8Array]",gS="[object Uint8ClampedArray]",bS="[object Uint16Array]",xS="[object Uint32Array]",he={};he[hS]=he[dS]=he[pS]=he[vS]=he[yS]=he[mS]=he[gS]=he[bS]=he[xS]=!0;he[ZO]=he[JO]=he[lS]=he[QO]=he[fS]=he[eS]=he[tS]=he[rS]=he[nS]=he[iS]=he[aS]=he[oS]=he[uS]=he[cS]=he[sS]=!1;function wS(e){return YO(e)&&XO(e.length)&&!!he[VO(e)]}var OS=wS;function SS(e){return function(t){return e(t)}}var dp=SS,ki={exports:{}};ki.exports;(function(e,t){var r=wd,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u})(ki,ki.exports);var _S=ki.exports,PS=OS,AS=dp,il=_S,al=il&&il.isTypedArray,$S=al?AS(al):PS,pp=$S,jS=MO,TS=Lc,ES=Re,MS=hp,CS=Rc,IS=pp,NS=Object.prototype,DS=NS.hasOwnProperty;function kS(e,t){var r=ES(e),n=!r&&TS(e),i=!r&&!n&&MS(e),a=!r&&!n&&!i&&IS(e),o=r||n||i||a,u=o?jS(e.length,String):[],c=u.length;for(var s in e)(t||DS.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||CS(s,c)))&&u.push(s);return u}var LS=kS,RS=Object.prototype;function BS(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||RS;return e===r}var FS=BS;function zS(e,t){return function(r){return e(t(r))}}var vp=zS,US=vp,WS=US(Object.keys,Object),qS=WS,HS=FS,GS=qS,KS=Object.prototype,VS=KS.hasOwnProperty;function XS(e){if(!HS(e))return GS(e);var t=[];for(var r in Object(e))VS.call(e,r)&&r!="constructor"&&t.push(r);return t}var YS=XS,ZS=xc,JS=Bc;function QS(e){return e!=null&&JS(e.length)&&!ZS(e)}var ni=QS,e_=LS,t_=YS,r_=ni;function n_(e){return r_(e)?e_(e):t_(e)}var Wa=n_,i_=bO,a_=TO,o_=Wa;function u_(e){return i_(e,o_,a_)}var c_=u_,ol=c_,s_=1,l_=Object.prototype,f_=l_.hasOwnProperty;function h_(e,t,r,n,i,a){var o=r&s_,u=ol(e),c=u.length,s=ol(t),f=s.length;if(c!=f&&!o)return!1;for(var l=c;l--;){var h=u[l];if(!(o?h in t:f_.call(t,h)))return!1}var d=a.get(e),v=a.get(t);if(d&&v)return d==t&&v==e;var y=!0;a.set(e,t),a.set(t,e);for(var p=o;++l<c;){h=u[l];var b=e[h],w=t[h];if(n)var x=o?n(w,b,h,t,e,a):n(b,w,h,e,t,a);if(!(x===void 0?b===w||i(b,w,r,n,a):x)){y=!1;break}p||(p=h=="constructor")}if(y&&!p){var O=e.constructor,m=t.constructor;O!=m&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof m=="function"&&m instanceof m)&&(y=!1)}return a.delete(e),a.delete(t),y}var d_=h_,p_=rr,v_=lt,y_=p_(v_,"DataView"),m_=y_,g_=rr,b_=lt,x_=g_(b_,"Promise"),w_=x_,O_=rr,S_=lt,__=O_(S_,"Set"),yp=__,P_=rr,A_=lt,$_=P_(A_,"WeakMap"),j_=$_,cu=m_,su=Oc,lu=w_,fu=yp,hu=j_,mp=Ot,Hr=Sd,ul="[object Map]",T_="[object Object]",cl="[object Promise]",sl="[object Set]",ll="[object WeakMap]",fl="[object DataView]",E_=Hr(cu),M_=Hr(su),C_=Hr(lu),I_=Hr(fu),N_=Hr(hu),Ut=mp;(cu&&Ut(new cu(new ArrayBuffer(1)))!=fl||su&&Ut(new su)!=ul||lu&&Ut(lu.resolve())!=cl||fu&&Ut(new fu)!=sl||hu&&Ut(new hu)!=ll)&&(Ut=function(e){var t=mp(e),r=t==T_?e.constructor:void 0,n=r?Hr(r):"";if(n)switch(n){case E_:return fl;case M_:return ul;case C_:return cl;case I_:return sl;case N_:return ll}return t});var D_=Ut,_o=ap,k_=sp,L_=pO,R_=d_,hl=D_,dl=Re,pl=hp,B_=pp,F_=1,vl="[object Arguments]",yl="[object Array]",hi="[object Object]",z_=Object.prototype,ml=z_.hasOwnProperty;function U_(e,t,r,n,i,a){var o=dl(e),u=dl(t),c=o?yl:hl(e),s=u?yl:hl(t);c=c==vl?hi:c,s=s==vl?hi:s;var f=c==hi,l=s==hi,h=c==s;if(h&&pl(e)){if(!pl(t))return!1;o=!0,f=!1}if(h&&!f)return a||(a=new _o),o||B_(e)?k_(e,t,r,n,i,a):L_(e,t,c,r,n,i,a);if(!(r&F_)){var d=f&&ml.call(e,"__wrapped__"),v=l&&ml.call(t,"__wrapped__");
12if(d||v){var y=d?e.value():e,p=v?t.value():t;return a||(a=new _o),i(y,p,r,n,a)}}return h?(a||(a=new _o),R_(e,t,r,n,i,a)):!1}var W_=U_,q_=W_,gl=St;function gp(e,t,r,n,i){return e===t?!0:e==null||t==null||!gl(e)&&!gl(t)?e!==e&&t!==t:q_(e,t,r,n,gp,i)}var Fc=gp,H_=ap,G_=Fc,K_=1,V_=2;function X_(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var u=r[i];if(o&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){u=r[i];var c=u[0],s=e[c],f=u[1];if(o&&u[2]){if(s===void 0&&!(c in e))return!1}else{var l=new H_;if(n)var h=n(s,f,c,e,t,l);if(!(h===void 0?G_(f,s,K_|V_,n,l):h))return!1}}return!0}var Y_=X_,Z_=It;function J_(e){return e===e&&!Z_(e)}var bp=J_,Q_=bp,eP=Wa;function tP(e){for(var t=eP(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Q_(i)]}return t}var rP=tP;function nP(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var xp=nP,iP=Y_,aP=rP,oP=xp;function uP(e){var t=aP(e);return t.length==1&&t[0][2]?oP(t[0][0],t[0][1]):function(r){return r===e||iP(r,e,t)}}var cP=uP;function sP(e,t){return e!=null&&t in Object(e)}var lP=sP,fP=jd,hP=Lc,dP=Re,pP=Rc,vP=Bc,yP=$a;function mP(e,t,r){t=fP(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=yP(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&vP(i)&&pP(o,i)&&(dP(e)||hP(e)))}var gP=mP,bP=lP,xP=gP;function wP(e,t){return e!=null&&xP(e,t,bP)}var OP=wP,SP=Fc,_P=Td,PP=OP,AP=bc,$P=bp,jP=xp,TP=$a,EP=1,MP=2;function CP(e,t){return AP(e)&&$P(t)?jP(TP(e),t):function(r){var n=_P(r,e);return n===void 0&&n===t?PP(r,e):SP(t,n,EP|MP)}}var IP=CP;function NP(e){return e}var Gr=NP;function DP(e){return function(t){return t==null?void 0:t[e]}}var kP=DP,LP=Ac;function RP(e){return function(t){return LP(t,e)}}var BP=RP,FP=kP,zP=BP,UP=bc,WP=$a;function qP(e){return UP(e)?FP(WP(e)):zP(e)}var HP=qP,GP=cP,KP=IP,VP=Gr,XP=Re,YP=HP;function ZP(e){return typeof e=="function"?e:e==null?VP:typeof e=="object"?XP(e)?KP(e[0],e[1]):GP(e):YP(e)}var Nt=ZP;function JP(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var wp=JP;function QP(e){return e!==e}var eA=QP;function tA(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var rA=tA,nA=wp,iA=eA,aA=rA;function oA(e,t,r){return t===t?aA(e,t,r):nA(e,iA,r)}var uA=oA,cA=uA;function sA(e,t){var r=e==null?0:e.length;return!!r&&cA(e,t,0)>-1}var lA=sA;function fA(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var hA=fA;function dA(){}var pA=dA,Po=yp,vA=pA,yA=kc,mA=1/0,gA=Po&&1/yA(new Po([,-0]))[1]==mA?function(e){return new Po(e)}:vA,bA=gA,xA=op,wA=lA,OA=hA,SA=cp,_A=bA,PA=kc,AA=200;function $A(e,t,r){var n=-1,i=wA,a=e.length,o=!0,u=[],c=u;if(r)o=!1,i=OA;else if(a>=AA){var s=t?null:_A(e);if(s)return PA(s);o=!1,i=SA,c=new xA}else c=t?[]:u;e:for(;++n<a;){var f=e[n],l=t?t(f):f;if(f=r||f!==0?f:0,o&&l===l){for(var h=c.length;h--;)if(c[h]===l)continue e;t&&c.push(l),u.push(f)}else i(c,l,r)||(c!==u&&c.push(l),u.push(f))}return u}var jA=$A,TA=Nt,EA=jA;function MA(e,t){return e&&e.length?EA(e,TA(t)):[]}var CA=MA;const bl=fe(CA);function Op(e,t,r){return t===!0?bl(e,r):Z(t)?bl(e,t):e}function xr(e){"@babel/helpers - typeof";return xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xr(e)}var IA=["ref"];function xl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xl(Object(r),!0).forEach(function(n){qa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_p(n.key),n)}}function DA(e,t,r){return t&&wl(e.prototype,t),r&&wl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function kA(e,t,r){return t=Li(t),LA(e,Sp()?Reflect.construct(t,r||[],Li(e).constructor):t.apply(e,r))}function LA(e,t){if(t&&(xr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RA(e)}function RA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sp=function(){return!!e})()}
vendor: 18,380 bytes, lines 12-13
12function Li(e){return Li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Li(e)}function BA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&du(e,t)}function du(e,t){return du=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},du(e,t)}function qa(e,t,r){return t=_p(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _p(e){var t=FA(e,"string");return xr(t)=="symbol"?t:t+""}function FA(e,t){if(xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function zA(e,t){if(e==null)return{};var r=UA(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function UA(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function WA(e){return e.value}function qA(e,t){if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return A.createElement(e,t);t.ref;var r=zA(t,IA);return A.createElement(Dc,r)}var Ol=1,vr=function(e){function t(){var r;NA(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=kA(this,t,[].concat(i)),qa(r,"lastBoundingBox",{width:-1,height:-1}),r}return BA(t,e),DA(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Ol||Math.abs(i.height-this.lastBoundingBox.height)>Ol)&&(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?ft({},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,h;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 v=this.getBBoxSnapshot();h={top:((f||0)-v.height)/2}}else h=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return ft(ft({},l),h)}},{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=ft(ft({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return A.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(d){n.wrapperNode=d}},qA(a,ft(ft({},this.props),{},{payload:Op(f,s,WA)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ft(ft({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&z(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(k.PureComponent);qa(vr,"displayName","Legend");qa(vr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Sl=ti,HA=Lc,GA=Re,_l=Sl?Sl.isConcatSpreadable:void 0;function KA(e){return GA(e)||HA(e)||!!(_l&&e&&e[_l])}var VA=KA,XA=lp,YA=VA;function Pp(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=YA),i||(i=[]);++a<o;){var u=e[a];t>0&&r(u)?t>1?Pp(u,t-1,r,n,i):XA(i,u):n||(i[i.length]=u)}return i}var Ap=Pp;function ZA(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),u=o.length;u--;){var c=o[e?u:++i];if(r(a[c],c,a)===!1)break}return t}}var JA=ZA,QA=JA,e$=QA(),t$=e$,r$=t$,n$=Wa;function i$(e,t){return e&&r$(e,t,n$)}var $p=i$,a$=ni;function o$(e,t){return function(r,n){if(r==null)return r;if(!a$(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var u$=o$,c$=$p,s$=u$,l$=s$(c$),zc=l$,f$=zc,h$=ni;function d$(e,t){var r=-1,n=h$(e)?Array(e.length):[];return f$(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var jp=d$;function p$(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var v$=p$,Pl=Br;function y$(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=Pl(e),o=t!==void 0,u=t===null,c=t===t,s=Pl(t);if(!u&&!s&&!a&&e>t||a&&o&&c&&!u&&!s||n&&o&&c||!r&&c||!i)return 1;if(!n&&!a&&!s&&e<t||s&&r&&i&&!n&&!a||u&&r&&i||!o&&i||!c)return-1}return 0}var m$=y$,g$=m$;function b$(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,u=r.length;++n<o;){var c=g$(i[n],a[n]);if(c){if(n>=u)return c;var s=r[n];return c*(s=="desc"?-1:1)}}return e.index-t.index}var x$=b$,Ao=Pc,w$=Ac,O$=Nt,S$=jp,_$=v$,P$=dp,A$=x$,$$=Gr,j$=Re;function T$(e,t,r){t.length?t=Ao(t,function(a){return j$(a)?function(o){return w$(o,a.length===1?a[0]:a)}:a}):t=[$$];var n=-1;t=Ao(t,P$(O$));var i=S$(e,function(a,o,u){var c=Ao(t,function(s){return s(a)});return{criteria:c,index:++n,value:a}});return _$(i,function(a,o){return A$(a,o,r)})}var E$=T$;function M$(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var C$=M$,I$=C$,Al=Math.max;function N$(e,t,r){return t=Al(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Al(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=r(o),I$(e,this,u)}}var D$=N$;function k$(e){return function(){return e}}var L$=k$,R$=rr,B$=function(){try{var e=R$(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Tp=B$,F$=L$,$l=Tp,z$=Gr,U$=$l?function(e,t){return $l(e,"toString",{configurable:!0,enumerable:!1,value:F$(t),writable:!0})}:z$,W$=U$,q$=800,H$=16,G$=Date.now;function K$(e){var t=0,r=0;return function(){var n=G$(),i=H$-(n-r);if(r=n,i>0){if(++t>=q$)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var V$=K$,X$=W$,Y$=V$,Z$=Y$(X$),J$=Z$,Q$=Gr,ej=D$,tj=J$;function rj(e,t){return tj(ej(e,t,Q$),e+"")}var nj=rj,ij=wc,aj=ni,oj=Rc,uj=It;function cj(e,t,r){if(!uj(r))return!1;var n=typeof t;return(n=="number"?aj(r)&&oj(t,r.length):n=="string"&&t in r)?ij(r[t],e):!1}var Ha=cj,sj=Ap,lj=E$,fj=nj,jl=Ha,hj=fj(function(e,t){if(e==null)return[];var r=t.length;return r>1&&jl(e,t[0],t[1])?t=[]:r>2&&jl(t[0],t[1],t[2])&&(t=[t[0]]),lj(e,sj(t,1),[])}),dj=hj;const Uc=fe(dj);function xn(e){"@babel/helpers - typeof";return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(e)}function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pu.apply(this,arguments)}function pj(e,t){return gj(e)||mj(e,t)||yj(e,t)||vj()}function vj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yj(e,t){if(e){if(typeof e=="string")return Tl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tl(e,t)}}function Tl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);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 gj(e){if(Array.isArray(e))return e}function El(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $o(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?El(Object(r),!0).forEach(function(n){bj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):El(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bj(e,t,r){return t=xj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xj(e){var t=wj(e,"string");return xn(t)=="symbol"?t:t+""}function wj(e,t){if(xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oj(e){return Array.isArray(e)&&Pe(e[0])&&Pe(e[1])?e.join(" ~ "):e}var Sj=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,c=t.labelStyle,s=c===void 0?{}:c,f=t.payload,l=t.formatter,h=t.itemSorter,d=t.wrapperClassName,v=t.labelClassName,y=t.label,p=t.labelFormatter,b=t.accessibilityLayer,w=b===void 0?!1:b,x=function(){if(f&&f.length){var T={padding:0,margin:0},C=(h?Uc(f,h):f).map(function(L,D){if(L.type==="none")return null;var E=$o({display:"block",paddingTop:4,paddingBottom:4,color:L.color||"#000"},u),I=L.formatter||l||Oj,R=L.value,F=L.name,H=R,G=F;if(I&&H!=null&&G!=null){var W=I(R,F,L,D,f);if(Array.isArray(W)){var K=pj(W,2);H=K[0],G=K[1]}else H=W}return A.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:E},Pe(G)?A.createElement("span",{className:"recharts-tooltip-item-name"},G):null,Pe(G)?A.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,A.createElement("span",{className:"recharts-tooltip-item-value"},H),A.createElement("span",{className:"recharts-tooltip-item-unit"},L.unit||""))});return A.createElement("ul",{className:"recharts-tooltip-item-list",style:T},C)}return null},O=$o({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=$o({margin:0},s),g=!ne(y),S=g?y:"",_=re("recharts-default-tooltip",d),P=re("recharts-tooltip-label",v);g&&p&&f!==void 0&&f!==null&&(S=p(y,f));var N=w?{role:"status","aria-live":"assertive"}:{};return A.createElement("div",pu({className:_,style:O},N),A.createElement("p",{className:P,style:m},A.isValidElement(S)?S:"".concat(S)),x())};function wn(e){"@babel/helpers - typeof";return wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wn(e)}function di(e,t,r){return t=_j(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _j(e){var t=Pj(e,"string");return wn(t)=="symbol"?t:t+""}function Pj(e,t){if(wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nn="recharts-tooltip-wrapper",Aj={visibility:"hidden"};function $j(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return re(nn,di(di(di(di({},"".concat(nn,"-right"),z(r)&&t&&z(t.x)&&r>=t.x),"".concat(nn,"-left"),z(r)&&t&&z(t.x)&&r<t.x),"".concat(nn,"-bottom"),z(n)&&t&&z(t.y)&&n>=t.y),"".concat(nn,"-top"),z(n)&&t&&z(t.y)&&n<t.y))}function Ml(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,c=e.viewBox,s=e.viewBoxDimension;if(a&&z(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var h=f,d=c[n];return h<d?Math.max(l,c[n]):Math.max(f,c[n])}var v=l+u,y=c[n]+s;return v>y?Math.max(f,c[n]):Math.max(l,c[n])}function jj(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Tj(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,c=e.viewBox,s,f,l;return o.height>0&&o.width>0&&r?(f=Ml({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=Ml({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=jj({translateX:f,translateY:l,useTranslate3d:u})):s=Aj,{cssProperties:s,cssClasses:$j({translateX:f,translateY:l,coordinate:r})}}function wr(e){"@babel/helpers - typeof";return wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wr(e)}function Cl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Il(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cl(Object(r),!0).forEach(function(n){yu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ej(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mp(n.key),n)}}function Cj(e,t,r){return t&&Mj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ij(e,t,r){return t=Ri(t),Nj(e,Ep()?Reflect.construct(t,r||[],Ri(e).constructor):t.apply(e,r))}function Nj(e,t){if(t&&(wr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dj(e)}function Dj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ep(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ep=function(){return!!e})()}function Ri(e){return Ri=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ri(e)}function kj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vu(e,t)}function vu(e,t){return vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vu(e,t)}function yu(e,t,r){return t=Mp(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mp(e){var t=Lj(e,"string");return wr(t)=="symbol"?t:t+""}function Lj(e,t){if(wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Nl=1,Rj=function(e){function t(){var r;Ej(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Ij(this,t,[].concat(i)),yu(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),yu(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 kj(t,e),Cj(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Nl||Math.abs(n.height-this.state.lastBoundingBox.height)>Nl)&&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,h=i.isAnimationActive,d=i.offset,v=i.position,y=i.reverseDirection,p=i.useTranslate3d,b=i.viewBox,w=i.wrapperStyle,x=Tj({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:d,position:v,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:b}
13),O=x.cssClasses,m=x.cssProperties,g=Il(Il({transition:h&&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},w);return A.createElement("div",{tabIndex:-1,className:O,style:g,ref:function(_){n.wrapperNode=_}},s)}}])}(k.PureComponent),Bj=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ii={isSsr:Bj()};function Or(e){"@babel/helpers - typeof";return Or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Or(e)}function Dl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dl(Object(r),!0).forEach(function(n){Wc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ip(n.key),n)}}function Uj(e,t,r){return t&&zj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wj(e,t,r){return t=Bi(t),qj(e,Cp()?Reflect.construct(t,r||[],Bi(e).constructor):t.apply(e,r))}function qj(e,t){if(t&&(Or(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hj(e)}function Hj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cp=function(){return!!e})()}function Bi(e){return Bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bi(e)}function Gj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mu(e,t)}function mu(e,t){return mu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mu(e,t)}function Wc(e,t,r){return t=Ip(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ip(e){var t=Kj(e,"string");return Or(t)=="symbol"?t:t+""}function Kj(e,t){if(Or(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Or(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Vj(e){return e.dataKey}function Xj(e,t){return A.isValidElement(e)?A.cloneElement(e,t):typeof e=="function"?A.createElement(e,t):A.createElement(Sj,t)}var it=function(e){function t(){return Fj(this,t),Wj(this,t,arguments)}return Gj(t,e),Uj(t,[{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,h=i.isAnimationActive,d=i.offset,v=i.payload,y=i.payloadUniqBy,p=i.position,b=i.reverseDirection,w=i.useTranslate3d,x=i.viewBox,O=i.wrapperStyle,m=v??[];l&&m.length&&(m=Op(v.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),y,Vj));var g=m.length>0;return A.createElement(Rj,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:h,active:a,coordinate:f,hasPayload:g,offset:d,position:p,reverseDirection:b,useTranslate3d:w,viewBox:x,wrapperStyle:O},Xj(s,kl(kl({},this.props),{},{payload:m})))}}])}(k.PureComponent);Wc(it,"displayName","Tooltip");Wc(it,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ii.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 Yj=lt,Zj=function(){return Yj.Date.now()},Jj=Zj,Qj=/\s/;function eT(e){for(var t=e.length;t--&&Qj.test(e.charAt(t)););return t}var tT=eT,rT=tT,nT=/^\s+/;function iT(e){return e&&e.slice(0,rT(e)+1).replace(nT,"")}var aT=iT,oT=aT,Ll=It,uT=Br,Rl=NaN,cT=/^[-+]0x[0-9a-f]+$/i,sT=/^0b[01]+$/i,lT=/^0o[0-7]+$/i,fT=parseInt;function hT(e){if(typeof e=="number")return e;if(uT(e))return Rl;if(Ll(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ll(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=oT(e);var r=sT.test(e);return r||lT.test(e)?fT(e.slice(2),r?2:8):cT.test(e)?Rl:+e}
vendor: 17,015 bytes, lines 13-20
13var Np=hT,dT=It,jo=Jj,Bl=Np,pT="Expected a function",vT=Math.max,yT=Math.min;function mT(e,t,r){var n,i,a,o,u,c,s=0,f=!1,l=!1,h=!0;if(typeof e!="function")throw new TypeError(pT);t=Bl(t)||0,dT(r)&&(f=!!r.leading,l="maxWait"in r,a=l?vT(Bl(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function d(g){var S=n,_=i;return n=i=void 0,s=g,o=e.apply(_,S),o}function v(g){return s=g,u=setTimeout(b,t),f?d(g):o}function y(g){var S=g-c,_=g-s,P=t-S;return l?yT(P,a-_):P}function p(g){var S=g-c,_=g-s;return c===void 0||S>=t||S<0||l&&_>=a}function b(){var g=jo();if(p(g))return w(g);u=setTimeout(b,y(g))}function w(g){return u=void 0,h&&n?d(g):(n=i=void 0,o)}function x(){u!==void 0&&clearTimeout(u),s=0,n=c=i=u=void 0}function O(){return u===void 0?o:w(jo())}function m(){var g=jo(),S=p(g);if(n=arguments,i=this,c=g,S){if(u===void 0)return v(c);if(l)return clearTimeout(u),u=setTimeout(b,t),d(c)}return u===void 0&&(u=setTimeout(b,t)),o}return m.cancel=x,m.flush=O,m}var gT=mT,bT=gT,xT=It,wT="Expected a function";function OT(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(wT);return xT(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),bT(e,t,{leading:n,maxWait:t,trailing:i})}var ST=OT;const Dp=fe(ST);function On(e){"@babel/helpers - typeof";return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}function Fl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fl(Object(r),!0).forEach(function(n){_T(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _T(e,t,r){return t=PT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PT(e){var t=AT(e,"string");return On(t)=="symbol"?t:t+""}function AT(e,t){if(On(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(On(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $T(e,t){return MT(e)||ET(e,t)||TT(e,t)||jT()}function jT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TT(e,t){if(e){if(typeof e=="string")return zl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zl(e,t)}}function zl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ET(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);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 MT(e){if(Array.isArray(e))return e}var CT=k.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,c=u===void 0?"100%":u,s=e.minWidth,f=s===void 0?0:s,l=e.minHeight,h=e.maxHeight,d=e.children,v=e.debounce,y=v===void 0?0:v,p=e.id,b=e.className,w=e.onResize,x=e.style,O=x===void 0?{}:x,m=k.useRef(null),g=k.useRef();g.current=w,k.useImperativeHandle(t,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var S=k.useState({containerWidth:i.width,containerHeight:i.height}),_=$T(S,2),P=_[0],N=_[1],j=k.useCallback(function(C,L){N(function(D){var E=Math.round(C),I=Math.round(L);return D.containerWidth===E&&D.containerHeight===I?D:{containerWidth:E,containerHeight:I}})},[]);k.useEffect(function(){var C=function(F){var H,G=F[0].contentRect,W=G.width,K=G.height;j(W,K),(H=g.current)===null||H===void 0||H.call(g,W,K)};y>0&&(C=Dp(C,y,{trailing:!0,leading:!1}));var L=new ResizeObserver(C),D=m.current.getBoundingClientRect(),E=D.width,I=D.height;return j(E,I),L.observe(m.current),function(){L.disconnect()}},[j,y]);var T=k.useMemo(function(){var C=P.containerWidth,L=P.containerHeight;if(C<0||L<0)return null;mt(qt(o)||qt(c),`The width(%s) and height(%s) are both fixed numbers,
15       maybe you don't need to use a ResponsiveContainer.`,o,c),mt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var D=qt(o)?C:o,E=qt(c)?L:c;r&&r>0&&(D?E=D/r:E&&(D=E*r),h&&E>h&&(E=h)),mt(D>0||E>0,`The width(%s) and height(%s) of chart should be greater than 0,
16       please check the style of container, or the props width(%s) and height(%s),
17       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
18       height and width.`,D,E,o,c,f,l,r);var I=!Array.isArray(d)&&yt(d.type).endsWith("Chart");return A.Children.map(d,function(R){return A.isValidElement(R)?k.cloneElement(R,pi({width:D,height:E},I?{style:pi({height:"100%",width:"100%",maxHeight:E,maxWidth:D},R.props.style)}:{})):R})},[r,d,c,h,l,f,P,o]);return A.createElement("div",{id:p?"".concat(p):void 0,className:re("recharts-responsive-container",b),style:pi(pi({},O),{},{width:o,height:c,minWidth:f,minHeight:l,maxHeight:h}),ref:m},T)}),kp=function(t){return null};kp.displayName="Cell";function Sn(e){"@babel/helpers - typeof";return Sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sn(e)}function Ul(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ul(Object(r),!0).forEach(function(n){IT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ul(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IT(e,t,r){return t=NT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NT(e){var t=DT(e,"string");return Sn(t)=="symbol"?t:t+""}function DT(e,t){if(Sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cr={widthCache:{},cacheCount:0},kT=2e3,LT={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Wl="recharts_measurement_span";function RT(e){var t=gu({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var pn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ii.isSsr)return{width:0,height:0};var n=RT(r),i=JSON.stringify({text:t,copyStyle:n});if(cr.widthCache[i])return cr.widthCache[i];try{var a=document.getElementById(Wl);a||(a=document.createElement("span"),a.setAttribute("id",Wl),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=gu(gu({},LT),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return cr.widthCache[i]=c,++cr.cacheCount>kT&&(cr.cacheCount=0,cr.widthCache={}),c}catch{return{width:0,height:0}}},BT=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function _n(e){"@babel/helpers - typeof";return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(e)}function Fi(e,t){return WT(e)||UT(e,t)||zT(e,t)||FT()}function FT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
19In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zT(e,t){if(e){if(typeof e=="string")return ql(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ql(e,t)}}function ql(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function UT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);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 WT(e){if(Array.isArray(e))return e}function qT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GT(n.key),n)}}function HT(e,t,r){return t&&Hl(e.prototype,t),r&&Hl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function GT(e){var t=KT(e,"string");return _n(t)=="symbol"?t:t+""}function KT(e,t){if(_n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gl=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Kl=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,VT=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,XT=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Lp={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},YT=Object.keys(Lp),fr="NaN";function ZT(e,t){return e*Lp[t]}var vi=function(){function e(t,r){qT(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!VT.test(r)&&(this.num=NaN,this.unit=""),YT.includes(r)&&(this.num=ZT(t,r),this.unit="px")}return HT(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=XT.exec(r))!==null&&n!==void 0?n:[],a=Fi(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])}();function Rp(e){if(e.includes(fr))return fr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Gl.exec(t))!==null&&r!==void 0?r:[],i=Fi(n,4),a=i[1],o=i[2],u=i[3],c=vi.parse(a??""),s=vi.parse(u??""),f=o==="*"?c.multiply(s):c.divide(s);if(f.isNaN())return fr;t=t.replace(Gl,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=Kl.exec(t))!==null&&l!==void 0?l:[],d=Fi(h,4),v=d[1],y=d[2],p=d[3],b=vi.parse(v??""),w=vi.parse(p??""),x=y==="+"?b.add(w):b.subtract(w);if(x.isNaN())return fr;t=t.replace(Kl,x.toString())}return t}var Vl=/\(([^()]*)\)/;function JT(e){for(var t=e;t.includes("(");){var r=Vl.exec(t),n=Fi(r,2),i=n[1];t=t.replace(Vl,Rp(i))}return t}function QT(e){var t=e.replace(/\s+/g,"");return t=JT(t),t=Rp(t),t}function eE(e){try{return QT(e)}catch{return fr}}function To(e){var t=eE(e.slice(5,-1));return t===fr?"":t}var tE=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],rE=["dx","dy","angle","className","breakAll"];function bu(){return bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bu.apply(this,arguments)}function Xl(e,t){if(e==null)return{};var r=nE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nE(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Yl(e,t){return uE(e)||oE(e,t)||aE(e,t)||iE()}function iE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aE(e,t){if(e){if(typeof e=="string")return Zl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zl(e,t)}}function Zl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function oE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);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 uE(e){if(Array.isArray(e))return e}var Bp=/[ \f\n\r\t\v\u2028\u2029]+/,Fp=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];ne(r)||(n?a=r.toString().split(""):a=r.toString().split(Bp));var o=a.map(function(c){return{word:c,width:pn(c,i).width}}),u=n?0:pn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},cE=function(t,r,n,i,a){var o=t.maxLines,u=t.children,c=t.style,s=t.breakAll,f=z(o),l=u,h=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return D.reduce(function(E,I){var R=I.word,F=I.width,H=E[E.length-1];if(H&&(i==null||a||H.width+F+n<Number(i)))H.words.push(R),H.width+=F+n;else{var G={words:[R],width:F};E.push(G)}return E},[])},d=h(r),v=function(D){return D.reduce(function(E,I){return E.width>I.width?E:I})};if(!f)return d;for(var y="…",p=function(D){var E=l.slice(0,D),I=Fp({breakAll:s,style:c,children:E+y}).wordsWithComputedWidth,R=h(I),F=R.length>o||v(R).width>Number(i);return[F,R]},b=0,w=l.length-1,x=0,O;b<=w&&x<=l.length-1;){var m=Math.floor((b+w)/2),g=m-1,S=p(g),_=Yl(S,2),P=_[0],N=_[1],j=p(m),T=Yl(j,1),C=T[0];if(!P&&!C&&(b=m+1),P&&C&&(w=m-1),!P&&C){O=N;break}x++}return O||d},Jl=function(t){var r=ne(t)?[]:t.toString().split(Bp);return[{words:r}]},sE=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!ii.isSsr){var c,s,f=Fp({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;c=l,s=h}else return Jl(i);return cE({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return Jl(i)},Ql="#808080",zi=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,c=t.capHeight,s=c===void 0?"0.71em":c,f=t.scaleToFit,l=f===void 0?!1:f,h=t.textAnchor,d=h===void 0?"start":h,v=t.verticalAnchor,y=v===void 0?"end":v,p=t.fill,b=p===void 0?Ql:p,w=Xl(t,tE),x=k.useMemo(function(){return sE({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:l,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,l,w.style,w.width]),O=w.dx,m=w.dy,g=w.angle,S=w.className,_=w.breakAll,P=Xl(w,rE);if(!Pe(n)||!Pe(a))return null;var N=n+(z(O)?O:0),j=a+(z(m)?m:0),T;switch(y){case"start":T=To("calc(".concat(s,")"));break;case"middle":T=To("calc(".concat((x.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:T=To("calc(".concat(x.length-1," * -").concat(u,")"));break}var C=[];if(l){var L=x[0].width,D=w.width;C.push("scale(".concat((z(D)?D/L:1)/L,")"))}return g&&C.push("rotate(".concat(g,", ").concat(N,", ").concat(j,")")),C.length&&(P.transform=C.join(" ")),A.createElement("text",bu({},te(P,!0),{x:N,y:j,className:re("recharts-text",S),textAnchor:d,fill:b.includes("url")?Ql:b}),x.map(function(E,I){var R=E.words.join(_?"":" ");
20return A.createElement("tspan",{x:N,dy:I===0?T:u,key:"".concat(R,"-").concat(I)},R)}))};function Et(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function lE(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function qc(e){let t,r,n;e.length!==2?(t=Et,r=(u,c)=>Et(e(u),c),n=(u,c)=>e(u)-c):(t=e===Et||e===lE?e:fE,r=e,n=e);function i(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<0?s=l+1:f=l}while(s<f)}return s}function a(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<=0?s=l+1:f=l}while(s<f)}return s}function o(u,c,s=0,f=u.length){const l=i(u,c,s,f-1);return l>s&&n(u[l-1],c)>-n(u[l],c)?l-1:l}return{left:i,center:o,right:a}}function fE(){return 0}function zp(e){return e===null?NaN:+e}function*hE(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const dE=qc(Et),ai=dE.right;qc(zp).center;class ef extends Map{constructor(t,r=yE){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(tf(this,t))}has(t){return super.has(tf(this,t))}set(t,r){return super.set(pE(this,t),r)}delete(t){return super.delete(vE(this,t))}}function tf({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function pE({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function vE({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function yE(e){return e!==null&&typeof e=="object"?e.valueOf():e}function mE(e=Et){if(e===Et)return Up;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Up(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const gE=Math.sqrt(50),bE=Math.sqrt(10),xE=Math.sqrt(2);function Ui(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=gE?10:a>=bE?5:a>=xE?2:1;let u,c,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),c=Math.round(t*s),u/s<e&&++u,c/s>t&&--c,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),c=Math.round(t/s),u*s<e&&++u,c*s>t&&--c),c<u&&.5<=r&&r<2?Ui(e,t,r*2):[u,c,s]}function xu(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Ui(t,e,r):Ui(e,t,r);if(!(a>=i))return[];const u=a-i+1,c=new Array(u);if(n)if(o<0)for(let s=0;s<u;++s)c[s]=(a-s)/-o;else for(let s=0;s<u;++s)c[s]=(a-s)*o;else if(o<0)for(let s=0;s<u;++s)c[s]=(i+s)/-o;else for(let s=0;s<u;++s)c[s]=(i+s)*o;return c}function wu(e,t,r){return t=+t,e=+e,r=+r,Ui(e,t,r)[2]}function Ou(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?wu(t,e,r):wu(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function rf(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function nf(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Wp(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Up:mE(i);n>r;){if(n-r>600){const c=n-r+1,s=t-r+1,f=Math.log(c),l=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*l*(c-l)/c)*(s-c/2<0?-1:1),d=Math.max(r,Math.floor(t-s*l/c+h)),v=Math.min(n,Math.floor(t+(c-s)*l/c+h));Wp(e,t,d,v,i)}const a=e[t];let o=r,u=n;for(an(e,r,t),i(e[n],a)>0&&an(e,r,n);o<u;){for(an(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?an(e,r,u):(++u,an(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function an(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function wE(e,t,r){if(e=Float64Array.from(hE(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return nf(e);if(t>=1)return rf(e);var n,i=(n-1)*t,a=Math.floor(i),o=rf(Wp(e,a).subarray(0,a+1)),u=nf(e.subarray(a+1));return o+(u-o)*(i-a)}}function OE(e,t,r=zp){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function SE(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Xe(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function _t(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}
20const Su=Symbol("implicit");function Hc(){var e=new ef,t=[],r=[],n=Su;function i(a){let o=e.get(a);if(o===void 0){if(n!==Su)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new ef;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Hc(t,r).unknown(n)},Xe.apply(i,arguments),i}function Pn(){var e=Hc().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,c=0,s=0,f=.5;delete e.unknown;function l(){var h=t().length,d=i<n,v=d?i:n,y=d?n:i;a=(y-v)/Math.max(1,h-c+s*2),u&&(a=Math.floor(a)),v+=(y-v-a*(h-c))*f,o=a*(1-c),u&&(v=Math.round(v),o=Math.round(o));var p=SE(h).map(function(b){return v+a*b});return r(d?p.reverse():p)}return e.domain=function(h){return arguments.length?(t(h),l()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(u=!!h,l()):u},e.padding=function(h){return arguments.length?(c=Math.min(1,s=+h),l()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),l()):c},e.paddingOuter=function(h){return arguments.length?(s=+h,l()):s},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},e.copy=function(){return Pn(t(),[n,i]).round(u).paddingInner(c).paddingOuter(s).align(f)},Xe.apply(l(),arguments)}function qp(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return qp(t())},e}function vn(){return qp(Pn.apply(null,arguments).paddingInner(1))}function Gc(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Hp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function oi(){}var An=.7,Wi=1/An,yr="\\s*([+-]?\\d+)\\s*",$n="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ot="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_E=/^#([0-9a-f]{3,8})$/,PE=new RegExp(`^rgb\\(${yr},${yr},${yr}\\)$`),AE=new RegExp(`^rgb\\(${ot},${ot},${ot}\\)$`),$E=new RegExp(`^rgba\\(${yr},${yr},${yr},${$n}\\)$`),jE=new RegExp(`^rgba\\(${ot},${ot},${ot},${$n}\\)$`),TE=new RegExp(`^hsl\\(${$n},${ot},${ot}\\)$`),EE=new RegExp(`^hsla\\(${$n},${ot},${ot},${$n}\\)$`),af={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gc(oi,jn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:of,formatHex:of,formatHex8:ME,formatHsl:CE,formatRgb:uf,toString:uf});function of(){return this.rgb().formatHex()}function ME(){return this.rgb().formatHex8()}function CE(){return Gp(this).formatHsl()}function uf(){return this.rgb().formatRgb()}function jn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=_E.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?cf(t):r===3?new Le(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?yi(t>>
vendor: 7,476 bytes, line 20
2024&255,t>>16&255,t>>8&255,(t&255)/255):r===4?yi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=PE.exec(e))?new Le(t[1],t[2],t[3],1):(t=AE.exec(e))?new Le(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=$E.exec(e))?yi(t[1],t[2],t[3],t[4]):(t=jE.exec(e))?yi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=TE.exec(e))?ff(t[1],t[2]/100,t[3]/100,1):(t=EE.exec(e))?ff(t[1],t[2]/100,t[3]/100,t[4]):af.hasOwnProperty(e)?cf(af[e]):e==="transparent"?new Le(NaN,NaN,NaN,0):null}function cf(e){return new Le(e>>16&255,e>>8&255,e&255,1)}function yi(e,t,r,n){return n<=0&&(e=t=r=NaN),new Le(e,t,r,n)}function IE(e){return e instanceof oi||(e=jn(e)),e?(e=e.rgb(),new Le(e.r,e.g,e.b,e.opacity)):new Le}function _u(e,t,r,n){return arguments.length===1?IE(e):new Le(e,t,r,n??1)}function Le(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Gc(Le,_u,Hp(oi,{brighter(e){return e=e==null?Wi:Math.pow(Wi,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?An:Math.pow(An,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Le(Vt(this.r),Vt(this.g),Vt(this.b),qi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sf,formatHex:sf,formatHex8:NE,formatRgb:lf,toString:lf}));function sf(){return`#${Ht(this.r)}${Ht(this.g)}${Ht(this.b)}`}function NE(){return`#${Ht(this.r)}${Ht(this.g)}${Ht(this.b)}${Ht((isNaN(this.opacity)?1:this.opacity)*255)}`}function lf(){const e=qi(this.opacity);return`${e===1?"rgb(":"rgba("}${Vt(this.r)}, ${Vt(this.g)}, ${Vt(this.b)}${e===1?")":`, ${e})`}`}function qi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ht(e){return e=Vt(e),(e<16?"0":"")+e.toString(16)}function ff(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Je(e,t,r,n)}function Gp(e){if(e instanceof Je)return new Je(e.h,e.s,e.l,e.opacity);if(e instanceof oi||(e=jn(e)),!e)return new Je;if(e instanceof Je)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,c=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=c<.5?a+i:2-a-i,o*=60):u=c>0&&c<1?0:o,new Je(o,u,c,e.opacity)}function DE(e,t,r,n){return arguments.length===1?Gp(e):new Je(e,t,r,n??1)}function Je(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Gc(Je,DE,Hp(oi,{brighter(e){return e=e==null?Wi:Math.pow(Wi,e),new Je(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?An:Math.pow(An,e),new Je(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Le(Eo(e>=240?e-240:e+120,i,n),Eo(e,i,n),Eo(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Je(hf(this.h),mi(this.s),mi(this.l),qi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=qi(this.opacity);return`${e===1?"hsl(":"hsla("}${hf(this.h)}, ${mi(this.s)*100}%, ${mi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function hf(e){return e=(e||0)%360,e<0?e+360:e}function mi(e){return Math.max(0,Math.min(1,e||0))}function Eo(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Kc=e=>()=>e;function kE(e,t){return function(r){return e+r*t}}function LE(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function RE(e){return(e=+e)==1?Kp:function(t,r){return r-t?LE(t,r,e):Kc(isNaN(t)?r:t)}}function Kp(e,t){var r=t-e;return r?kE(e,r):Kc(isNaN(e)?t:e)}const df=function e(t){var r=RE(t);function n(i,a){var o=r((i=_u(i)).r,(a=_u(a)).r),u=r(i.g,a.g),c=r(i.b,a.b),s=Kp(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=c(f),i.opacity=s(f),i+""}}return n.gamma=e,n}(1);function BE(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function FE(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function zE(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Kr(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function UE(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Hi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function WE(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Kr(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Pu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mo=new RegExp(Pu.source,"g");function qE(e){return function(){return e}}function HE(e){return function(t){return e(t)+""}}function GE(e,t){var r=Pu.lastIndex=Mo.lastIndex=0,n,i,a,o=-1,u=[],c=[];for(e=e+"",t=t+"";(n=Pu.exec(e))&&(i=Mo.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,c.push({i:o,x:Hi(n,i)})),r=Mo.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?HE(c[0].x):qE(t):(t=c.length,function(s){for(var f=0,l;f<t;++f)u[(l=c[f]).i]=l.x(s);return u.join("")})}function Kr(e,t){var r=typeof t,n;return t==null||r==="boolean"?Kc(t):(r==="number"?Hi:r==="string"?(n=jn(t))?(t=n,df):GE:t instanceof jn?df:t instanceof Date?UE:FE(t)?BE:Array.isArray(t)?zE:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?WE:Hi)(e,t)}function Vc(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function KE(e,t){t===void 0&&(t=e,e=Kr);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function VE(e){return function(){return e}}function Gi(e){return+e}var pf=[0,1];function De(e){return e}function Au(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:VE(isNaN(t)?NaN:.5)}function XE(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function YE(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Au(i,n),a=r(o,a)):(n=Au(n,i),a=r(a,o)),function(u){return a(n(u))}}function ZE(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Au(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var c=ai(e,u,1,n)-1;return a[c](i[c](u))}}function ui(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ga(){var e=pf,t=pf,r=Kr,n,i,a,o=De,u,c,s;function f(){var h=Math.min(e.length,t.length);return o!==De&&(o=XE(e[0],e[h-1])),u=h>2?ZE:YE,c=s=null,l}function l(h){return h==null||isNaN(h=+h)?a:(c||(c=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((s||(s=u(t,e.map(n),Hi)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Gi),f()):e.slice()},l.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},l.rangeRound=function(h){return t=Array.from(h),r=Vc,f()},l.clamp=function(h){return arguments.length?(o=h?!0:De,f()):o!==De},l.interpolate=function(h){return arguments.length?(r=h,f()):r},l.unknown=function(h){return arguments.length?(a=h,l):a},function(h,d){return n=h,i=d,f()}}function Xc(){return Ga()(De,De)}
vendor: 6,672 bytes, line 20
20function JE(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ki(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Sr(e){return e=Ki(Math.abs(e)),e?e[1]:NaN}function QE(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),a.push(r.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function eM(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var tM=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Tn(e){if(!(t=tM.exec(e)))throw new Error("invalid format: "+e);var t;return new Yc({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Tn.prototype=Yc.prototype;function Yc(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Yc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function rM(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Vp;function nM(e,t){var r=Ki(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(Vp=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Ki(e,Math.max(0,t+a-1))[0]}function vf(e,t){var r=Ki(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const yf={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:JE,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>vf(e*100,t),r:vf,s:nM,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function mf(e){return e}var gf=Array.prototype.map,bf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function iM(e){var t=e.grouping===void 0||e.thousands===void 0?mf:QE(gf.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?mf:eM(gf.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function s(l){l=Tn(l);var h=l.fill,d=l.align,v=l.sign,y=l.symbol,p=l.zero,b=l.width,w=l.comma,x=l.precision,O=l.trim,m=l.type;m==="n"?(w=!0,m="g"):yf[m]||(x===void 0&&(x=12),O=!0,m="g"),(p||h==="0"&&d==="=")&&(p=!0,h="0",d="=");var g=y==="$"?r:y==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",S=y==="$"?n:/[%p]/.test(m)?o:"",_=yf[m],P=/[defgprs%]/.test(m);x=x===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function N(j){var T=g,C=S,L,D,E;if(m==="c")C=_(j)+C,j="";else{j=+j;var I=j<0||1/j<0;if(j=isNaN(j)?c:_(Math.abs(j),x),O&&(j=rM(j)),I&&+j==0&&v!=="+"&&(I=!1),T=(I?v==="("?v:u:v==="-"||v==="("?"":v)+T,C=(m==="s"?bf[8+Vp/3]:"")+C+(I&&v==="("?")":""),P){for(L=-1,D=j.length;++L<D;)if(E=j.charCodeAt(L),48>E||E>57){C=(E===46?i+j.slice(L+1):j.slice(L))+C,j=j.slice(0,L);break}}}w&&!p&&(j=t(j,1/0));var R=T.length+j.length+C.length,F=R<b?new Array(b-R+1).join(h):"";switch(w&&p&&(j=t(F+j,F.length?b-C.length:1/0),F=""),d){case"<":j=T+j+C+F;break;case"=":j=T+F+j+C;break;case"^":j=F.slice(0,R=F.length>>1)+T+j+C+F.slice(R);break;default:j=F+T+j+C;break}return a(j)}return N.toString=function(){return l+""},N}function f(l,h){var d=s((l=Tn(l),l.type="f",l)),v=Math.max(-8,Math.min(8,Math.floor(Sr(h)/3)))*3,y=Math.pow(10,-v),p=bf[8+v/3];return function(b){return d(y*b)+p}}return{format:s,formatPrefix:f}}var gi,Zc,Xp;aM({thousands:",",grouping:[3],currency:["$",""]});function aM(e){return gi=iM(e),Zc=gi.format,Xp=gi.formatPrefix,gi}function oM(e){return Math.max(0,-Sr(Math.abs(e)))}function uM(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Sr(t)/3)))*3-Sr(Math.abs(e)))}function cM(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Sr(t)-Sr(e))+1}function Yp(e,t,r,n){var i=Ou(e,t,r),a;switch(n=Tn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=uM(i,o))&&(n.precision=a),Xp(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=cM(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=oM(i))&&(n.precision=a-(n.type==="%")*2);break}}return Zc(n)}function Dt(e){var t=e.domain;return e.ticks=function(r){var n=t();return xu(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Yp(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],c,s,f=10;for(u<o&&(s=o,o=u,u=s,s=i,i=a,a=s);f-- >0;){if(s=wu(o,u,r),s===c)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;c=s}return e},e}function Vi(){var e=Xc();return e.copy=function(){return ui(e,Vi())},Xe.apply(e,arguments),Dt(e)}function Zp(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Gi),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Zp(e).unknown(t)},e=arguments.length?Array.from(e,Gi):[0,1],Dt(r)}function Jp(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function xf(e){return Math.log(e)}function wf(e){return Math.exp(e)}function sM(e){return-Math.log(-e)}function lM(e){return-Math.exp(-e)}function fM(e){return isFinite(e)?+("1e"+e):e<0?0:e}function hM(e){return e===10?fM:e===Math.E?Math.exp:t=>Math.pow(e,t)}function dM(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Of(e){return(t,r)=>-e(-t,r)}
vendor: 4,915 bytes, line 20
20function Jc(e){const t=e(xf,wf),r=t.domain;let n=10,i,a;function o(){return i=dM(n),a=hM(n),r()[0]<0?(i=Of(i),a=Of(a),e(sM,lM)):e(xf,wf),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const c=r();let s=c[0],f=c[c.length-1];const l=f<s;l&&([s,f]=[f,s]);let h=i(s),d=i(f),v,y;const p=u==null?10:+u;let b=[];if(!(n%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),s>0){for(;h<=d;++h)for(v=1;v<n;++v)if(y=h<0?v/a(-h):v*a(h),!(y<s)){if(y>f)break;b.push(y)}}else for(;h<=d;++h)for(v=n-1;v>=1;--v)if(y=h>0?v/a(-h):v*a(h),!(y<s)){if(y>f)break;b.push(y)}b.length*2<p&&(b=xu(s,f,p))}else b=xu(h,d,Math.min(d-h,p)).map(a);return l?b.reverse():b},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=Tn(c)).precision==null&&(c.trim=!0),c=Zc(c)),u===1/0)return c;const s=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=s?c(f):""}},t.nice=()=>r(Jp(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function Qp(){const e=Jc(Ga()).domain([1,10]);return e.copy=()=>ui(e,Qp()).base(e.base()),Xe.apply(e,arguments),e}function Sf(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function _f(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Qc(e){var t=1,r=e(Sf(t),_f(t));return r.constant=function(n){return arguments.length?e(Sf(t=+n),_f(t)):t},Dt(r)}function ev(){var e=Qc(Ga());return e.copy=function(){return ui(e,ev()).constant(e.constant())},Xe.apply(e,arguments)}function Pf(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function pM(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function vM(e){return e<0?-e*e:e*e}function es(e){var t=e(De,De),r=1;function n(){return r===1?e(De,De):r===.5?e(pM,vM):e(Pf(r),Pf(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Dt(t)}function ts(){var e=es(Ga());return e.copy=function(){return ui(e,ts()).exponent(e.exponent())},Xe.apply(e,arguments),e}function yM(){return ts.apply(null,arguments).exponent(.5)}function Af(e){return Math.sign(e)*e*e}function mM(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function tv(){var e=Xc(),t=[0,1],r=!1,n;function i(a){var o=mM(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Af(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Gi)).map(Af)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return tv(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Xe.apply(i,arguments),Dt(i)}function rv(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=OE(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[ai(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(Et),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return rv().domain(e).range(t).unknown(n)},Xe.apply(a,arguments)}function nv(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[ai(n,c,0,r)]:a}function u(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,u()):[e,t]},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?[e,n[0]]:s>=r?[n[r-1],t]:[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 nv().domain([e,t]).range(i).unknown(a)},Xe.apply(Dt(o),arguments)}function iv(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[ai(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return iv().domain(e).range(t).unknown(r)},Xe.apply(i,arguments)}const Co=new Date,Io=new Date;function Ae(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>
vendor: 4,159 bytes, line 20
20(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const c=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return c;let s;do c.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return c},i.filter=a=>Ae(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Co.setTime(+a),Io.setTime(+o),e(Co),e(Io),Math.floor(r(Co,Io))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Xi=Ae(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Xi.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ae(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Xi);Xi.range;const dt=1e3,He=dt*60,pt=He*60,bt=pt*24,rs=bt*7,$f=bt*30,No=bt*365,Gt=Ae(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*dt)},(e,t)=>(t-e)/dt,e=>e.getUTCSeconds());Gt.range;const ns=Ae(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dt)},(e,t)=>{e.setTime(+e+t*He)},(e,t)=>(t-e)/He,e=>e.getMinutes());ns.range;const is=Ae(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*He)},(e,t)=>(t-e)/He,e=>e.getUTCMinutes());is.range;const as=Ae(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dt-e.getMinutes()*He)},(e,t)=>{e.setTime(+e+t*pt)},(e,t)=>(t-e)/pt,e=>e.getHours());as.range;const os=Ae(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*pt)},(e,t)=>(t-e)/pt,e=>e.getUTCHours());os.range;const ci=Ae(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*He)/bt,e=>e.getDate()-1);ci.range;const Ka=Ae(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/bt,e=>e.getUTCDate()-1);Ka.range;const av=Ae(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/bt,e=>Math.floor(e/bt));av.range;function nr(e){return Ae(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*He)/rs)}const Va=nr(0),Yi=nr(1),gM=nr(2),bM=nr(3),_r=nr(4),xM=nr(5),wM=nr(6);Va.range;Yi.range;gM.range;bM.range;_r.range;xM.range;wM.range;function ir(e){return Ae(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/rs)}const Xa=ir(0),Zi=ir(1),OM=ir(2),SM=ir(3),Pr=ir(4),_M=ir(5),PM=ir(6);Xa.range;Zi.range;OM.range;SM.range;Pr.range;_M.range;PM.range;const us=Ae(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());us.range;const cs=Ae(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());cs.range;const xt=Ae(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());xt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ae(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});xt.range;const wt=Ae(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());wt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ae(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});wt.range;function ov(e,t,r,n,i,a){const o=[[Gt,1,dt],[Gt,5,5*dt],[Gt,15,15*dt],[Gt,30,30*dt],[a,1,He],[a,5,5*He],[a,15,15*He],[a,30,30*He],[i,1,pt],[i,3,3*pt],[i,6,6*pt],[i,12,12*pt],[n,1,bt],[n,2,2*bt],[r,1,rs],[t,1,$f],[t,3,3*$f],[e,1,No]];function u(s,f,l){const h=f<s;h&&([s,f]=[f,s]);const d=l&&typeof l.range=="function"?l:c(s,f,l),v=d?d.range(s,+f+1):[];return h?v.reverse():v}
vendor: 6,357 bytes, line 20
20function c(s,f,l){const h=Math.abs(f-s)/l,d=qc(([,,p])=>p).right(o,h);if(d===o.length)return e.every(Ou(s/No,f/No,l));if(d===0)return Xi.every(Math.max(Ou(s,f,l),1));const[v,y]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return v.every(y)}return[u,c]}const[AM,$M]=ov(wt,cs,Xa,av,os,is),[jM,TM]=ov(xt,us,Va,ci,as,ns);function Do(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ko(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function on(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function EM(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,c=e.shortMonths,s=un(i),f=cn(i),l=un(a),h=cn(a),d=un(o),v=cn(o),y=un(u),p=cn(u),b=un(c),w=cn(c),x={a:I,A:R,b:F,B:H,c:null,d:If,e:If,f:QM,g:sC,G:fC,H:YM,I:ZM,j:JM,L:uv,m:eC,M:tC,p:G,q:W,Q:kf,s:Lf,S:rC,u:nC,U:iC,V:aC,w:oC,W:uC,x:null,X:null,y:cC,Y:lC,Z:hC,"%":Df},O={a:K,A:ce,b:me,B:J,c:null,d:Nf,e:Nf,f:yC,g:AC,G:jC,H:dC,I:pC,j:vC,L:sv,m:mC,M:gC,p:oe,q:ge,Q:kf,s:Lf,S:bC,u:xC,U:wC,V:OC,w:SC,W:_C,x:null,X:null,y:PC,Y:$C,Z:TC,"%":Df},m={a:N,A:j,b:T,B:C,c:L,d:Mf,e:Mf,f:GM,g:Ef,G:Tf,H:Cf,I:Cf,j:UM,L:HM,m:zM,M:WM,p:P,q:FM,Q:VM,s:XM,S:qM,u:DM,U:kM,V:LM,w:NM,W:RM,x:D,X:E,y:Ef,Y:Tf,Z:BM,"%":KM};x.x=g(r,x),x.X=g(n,x),x.c=g(t,x),O.x=g(r,O),O.X=g(n,O),O.c=g(t,O);function g(U,X){return function(Y){var B=[],ve=-1,Q=0,we=U.length,Oe,ke,Pt;for(Y instanceof Date||(Y=new Date(+Y));++ve<we;)U.charCodeAt(ve)===37&&(B.push(U.slice(Q,ve)),(ke=jf[Oe=U.charAt(++ve)])!=null?Oe=U.charAt(++ve):ke=Oe==="e"?" ":"0",(Pt=X[Oe])&&(Oe=Pt(Y,ke)),B.push(Oe),Q=ve+1);return B.push(U.slice(Q,ve)),B.join("")}}function S(U,X){return function(Y){var B=on(1900,void 0,1),ve=_(B,U,Y+="",0),Q,we;if(ve!=Y.length)return null;if("Q"in B)return new Date(B.Q);if("s"in B)return new Date(B.s*1e3+("L"in B?B.L:0));if(X&&!("Z"in B)&&(B.Z=0),"p"in B&&(B.H=B.H%12+B.p*12),B.m===void 0&&(B.m="q"in B?B.q:0),"V"in B){if(B.V<1||B.V>53)return null;"w"in B||(B.w=1),"Z"in B?(Q=ko(on(B.y,0,1)),we=Q.getUTCDay(),Q=we>4||we===0?Zi.ceil(Q):Zi(Q),Q=Ka.offset(Q,(B.V-1)*7),B.y=Q.getUTCFullYear(),B.m=Q.getUTCMonth(),B.d=Q.getUTCDate()+(B.w+6)%7):(Q=Do(on(B.y,0,1)),we=Q.getDay(),Q=we>4||we===0?Yi.ceil(Q):Yi(Q),Q=ci.offset(Q,(B.V-1)*7),B.y=Q.getFullYear(),B.m=Q.getMonth(),B.d=Q.getDate()+(B.w+6)%7)}else("W"in B||"U"in B)&&("w"in B||(B.w="u"in B?B.u%7:"W"in B?1:0),we="Z"in B?ko(on(B.y,0,1)).getUTCDay():Do(on(B.y,0,1)).getDay(),B.m=0,B.d="W"in B?(B.w+6)%7+B.W*7-(we+5)%7:B.w+B.U*7-(we+6)%7);return"Z"in B?(B.H+=B.Z/100|0,B.M+=B.Z%100,ko(B)):Do(B)}}function _(U,X,Y,B){for(var ve=0,Q=X.length,we=Y.length,Oe,ke;ve<Q;){if(B>=we)return-1;if(Oe=X.charCodeAt(ve++),Oe===37){if(Oe=X.charAt(ve++),ke=m[Oe in jf?X.charAt(ve++):Oe],!ke||(B=ke(U,Y,B))<0)return-1}else if(Oe!=Y.charCodeAt(B++))return-1}return B}function P(U,X,Y){var B=s.exec(X.slice(Y));return B?(U.p=f.get(B[0].toLowerCase()),Y+B[0].length):-1}function N(U,X,Y){var B=d.exec(X.slice(Y));return B?(U.w=v.get(B[0].toLowerCase()),Y+B[0].length):-1}function j(U,X,Y){var B=l.exec(X.slice(Y));return B?(U.w=h.get(B[0].toLowerCase()),Y+B[0].length):-1}function T(U,X,Y){var B=b.exec(X.slice(Y));return B?(U.m=w.get(B[0].toLowerCase()),Y+B[0].length):-1}function C(U,X,Y){var B=y.exec(X.slice(Y));return B?(U.m=p.get(B[0].toLowerCase()),Y+B[0].length):-1}function L(U,X,Y){return _(U,t,X,Y)}function D(U,X,Y){return _(U,r,X,Y)}function E(U,X,Y){return _(U,n,X,Y)}function I(U){return o[U.getDay()]}function R(U){return a[U.getDay()]}function F(U){return c[U.getMonth()]}function H(U){return u[U.getMonth()]}function G(U){return i[+(U.getHours()>=12)]}function W(U){return 1+~~(U.getMonth()/3)}function K(U){return o[U.getUTCDay()]}function ce(U){return a[U.getUTCDay()]}function me(U){return c[U.getUTCMonth()]}function J(U){return u[U.getUTCMonth()]}function oe(U){return i[+(U.getUTCHours()>=12)]}function ge(U){return 1+~~(U.getUTCMonth()/3)}return{format:function(U){var X=g(U+="",x);return X.toString=function(){return U},X},parse:function(U){var X=S(U+="",!1);return X.toString=function(){return U},X},utcFormat:function(U){var X=g(U+="",O);return X.toString=function(){return U},X},utcParse:function(U){var X=S(U+="",!0);return X.toString=function(){return U},X}}}var jf={"-":"",_:" ",0:"0"},Te=/^\s*\d+/,MM=/^%/,CM=/[\\^$*+?|[\]().{}]/g;function ee(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function IM(e){return e.replace(CM,"\\$&")}function un(e){return new RegExp("^(?:"+e.map(IM).join("|")+")","i")}function cn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function NM(e,t,r){var n=Te.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function DM(e,t,r){var n=Te.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function kM(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function LM(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function RM(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Tf(e,t,r){var n=Te.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Ef(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function BM(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function FM(e,t,r){var n=Te.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function zM(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Mf(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function UM(e,t,r){var n=Te.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Cf(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function WM(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function qM(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function HM(e,t,r){var n=Te.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function GM(e,t,r){var n=Te.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function KM(e,t,r){var n=MM.exec(t.slice(r,r+1));return n?r+n[0].length:-1}
20function VM(e,t,r){var n=Te.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function XM(e,t,r){var n=Te.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function If(e,t){return ee(e.getDate(),t,2)}function YM(e,t){return ee(e.getHours(),t,2)}function ZM(e,t){return ee(e.getHours()%12||12,t,2)}function JM(e,t){return ee(1+ci.count(xt(e),e),t,3)}function uv(e,t){return ee(e.getMilliseconds(),t,3)}function QM(e,t){return uv(e,t)+"000"}function eC(e,t){return ee(e.getMonth()+1,t,2)}function tC(e,t){return ee(e.getMinutes(),t,2)}function rC(e,t){return ee(e.getSeconds(),t,2)}function nC(e){var t=e.getDay();return t===0?7:t}function iC(e,t){return ee(Va.count(xt(e)-1,e),t,2)}function cv(e){var t=e.getDay();return t>=4||t===0?_r(e):_r.ceil(e)}function aC(e,t){return e=cv(e),ee(_r.count(xt(e),e)+(xt(e).getDay()===4),t,2)}function oC(e){return e.getDay()}function uC(e,t){return ee(Yi.count(xt(e)-1,e),t,2)}function cC(e,t){return ee(e.getFullYear()%100,t,2)}function sC(e,t){return e=cv(e),ee(e.getFullYear()%100,t,2)}function lC(e,t){return ee(e.getFullYear()%1e4,t,4)}function fC(e,t){var r=e.getDay();return e=r>=4||r===0?_r(e):_r.ceil(e),ee(e.getFullYear()%1e4,t,4)}function hC(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ee(t/60|0,"0",2)+ee(t%60,"0",2)}function Nf(e,t){return ee(e.getUTCDate(),t,2)}function dC(e,t){return ee(e.getUTCHours(),t,2)}function pC(e,t){return ee(e.getUTCHours()%12||12,t,2)}function vC(e,t){return ee(1+Ka.count(wt(e),e),t,3)}function sv(e,t){return ee(e.getUTCMilliseconds(),t,3)}function yC(e,t){return sv(e,t)+"000"}function mC(e,t){return ee(e.getUTCMonth()+1,t,2)}function gC(e,t){return ee(e.getUTCMinutes(),t,2)}function bC(e,t){return ee(e.getUTCSeconds(),t,2)}function xC(e){var t=e.getUTCDay();return t===0?7:t}function wC(e,t){return ee(Xa.count(wt(e)-1,e),t,2)}function lv(e){var t=e.getUTCDay();return t>=4||t===0?Pr(e):Pr.ceil(e)}function OC(e,t){return e=lv(e),ee(Pr.count(wt(e),e)+(wt(e).getUTCDay()===4),t,2)}function SC(e){return e.getUTCDay()}function _C(e,t){return ee(Zi.count(wt(e)-1,e),t,2)}function PC(e,t){return ee(e.getUTCFullYear()%100,t,2)}function AC(e,t){return e=lv(e),ee(e.getUTCFullYear()%100,t,2)}function $C(e,t){return ee(e.getUTCFullYear()%1e4,t,4)}function jC(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Pr(e):Pr.ceil(e),ee(e.getUTCFullYear()%1e4,t,4)}function TC(){return"+0000"}function Df(){return"%"}function kf(e){return+e}function Lf(e){return Math.floor(+e/1e3)}var sr,fv,hv;EC({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function EC(e){return sr=EM(e),fv=sr.format,sr.parse,hv=sr.utcFormat,sr.utcParse,sr}function MC(e){return new Date(e)}function CC(e){return e instanceof Date?+e:+new Date(+e)}function ss(e,t,r,n,i,a,o,u,c,s){var f=Xc(),l=f.invert,h=f.domain,d=s(".%L"),v=s(":%S"),y=s("%I:%M"),p=s("%I %p"),b=s("%a %d"),w=s("%b %d"),x=s("%B"),O=s("%Y");function m(g){return(c(g)<g?d:u(g)<g?v:o(g)<g?y:a(g)<g?p:n(g)<g?i(g)<g?b:w:r(g)<g?x:O)(g)}return f.invert=function(g){return new Date(l(g))},f.domain=function(g){return arguments.length?h(Array.from(g,CC)):h().map(MC)},f.ticks=function(g){var S=h();return e(S[0],S[S.length-1],g??10)},f.tickFormat=function(g,S){return S==null?m:s(S)},f.nice=function(g){var S=h();return(!g||typeof g.range!="function")&&(g=t(S[0],S[S.length-1],g??10)),g?h(Jp(S,g)):f},f.copy=function(){return ui(f,ss(e,t,r,n,i,a,o,u,c,s))},f}function IC(){return Xe.apply(ss(jM,TM,xt,us,Va,ci,as,ns,Gt,fv).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function NC(){return Xe.apply(ss(AM,$M,wt,cs,Xa,Ka,os,is,Gt,hv).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ya(){var e=0,t=1,r,n,i,a,o=De,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?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},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(h){var d,v;return arguments.length?([d,v]=h,o=l(d,v),s):[o(0),o(1)]}}return s.range=f(Kr),s.rangeRound=f(Vc),s.unknown=function(l){return arguments.length?(c=l,s
vendor: 63,213 bytes, lines 20-46
20):c},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),s}}function kt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function dv(){var e=Dt(Ya()(De));return e.copy=function(){return kt(e,dv())},_t.apply(e,arguments)}function pv(){var e=Jc(Ya()).domain([1,10]);return e.copy=function(){return kt(e,pv()).base(e.base())},_t.apply(e,arguments)}function vv(){var e=Qc(Ya());return e.copy=function(){return kt(e,vv()).constant(e.constant())},_t.apply(e,arguments)}function ls(){var e=es(Ya());return e.copy=function(){return kt(e,ls()).exponent(e.exponent())},_t.apply(e,arguments)}function DC(){return ls.apply(null,arguments).exponent(.5)}function yv(){var e=[],t=De;function r(n){if(n!=null&&!isNaN(n=+n))return t((ai(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Et),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>wE(e,a/n))},r.copy=function(){return yv(t).domain(e)},_t.apply(r,arguments)}function Za(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,s=De,f,l=!1,h;function d(y){return isNaN(y=+y)?h:(y=.5+((y=+f(y))-a)*(n*y<n*a?u:c),s(l?Math.max(0,Math.min(1,y)):y))}d.domain=function(y){return arguments.length?([e,t,r]=y,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,d):[e,t,r]},d.clamp=function(y){return arguments.length?(l=!!y,d):l},d.interpolator=function(y){return arguments.length?(s=y,d):s};function v(y){return function(p){var b,w,x;return arguments.length?([b,w,x]=p,s=KE(y,[b,w,x]),d):[s(0),s(.5),s(1)]}}return d.range=v(Kr),d.rangeRound=v(Vc),d.unknown=function(y){return arguments.length?(h=y,d):h},function(y){return f=y,i=y(e),a=y(t),o=y(r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,d}}function mv(){var e=Dt(Za()(De));return e.copy=function(){return kt(e,mv())},_t.apply(e,arguments)}function gv(){var e=Jc(Za()).domain([.1,1,10]);return e.copy=function(){return kt(e,gv()).base(e.base())},_t.apply(e,arguments)}function bv(){var e=Qc(Za());return e.copy=function(){return kt(e,bv()).constant(e.constant())},_t.apply(e,arguments)}function fs(){var e=es(Za());return e.copy=function(){return kt(e,fs()).exponent(e.exponent())},_t.apply(e,arguments)}function kC(){return fs.apply(null,arguments).exponent(.5)}const Rf=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Pn,scaleDiverging:mv,scaleDivergingLog:gv,scaleDivergingPow:fs,scaleDivergingSqrt:kC,scaleDivergingSymlog:bv,scaleIdentity:Zp,scaleImplicit:Su,scaleLinear:Vi,scaleLog:Qp,scaleOrdinal:Hc,scalePoint:vn,scalePow:ts,scaleQuantile:rv,scaleQuantize:nv,scaleRadial:tv,scaleSequential:dv,scaleSequentialLog:pv,scaleSequentialPow:ls,scaleSequentialQuantile:yv,scaleSequentialSqrt:DC,scaleSequentialSymlog:vv,scaleSqrt:yM,scaleSymlog:ev,scaleThreshold:iv,scaleTime:IC,scaleUtc:NC,tickFormat:Yp},Symbol.toStringTag,{value:"Module"}));var LC=Br;function RC(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(u===void 0?o===o&&!LC(o):r(o,u)))var u=o,c=a}return c}var xv=RC;function BC(e,t){return e>t}var FC=BC,zC=xv,UC=FC,WC=Gr;function qC(e){return e&&e.length?zC(e,WC,UC):void 0}var HC=qC;const Ja=fe(HC);function GC(e,t){return e<t}var KC=GC,VC=xv,XC=KC,YC=Gr;function ZC(e){return e&&e.length?VC(e,YC,XC):void 0}var JC=ZC;const Qa=fe(JC);var QC=Pc,eI=Nt,tI=jp,rI=Re;function nI(e,t){var r=rI(e)?QC:tI;return r(e,eI(t))}var iI=nI,aI=Ap,oI=iI;function uI(e,t){return aI(oI(e,t),1)}var cI=uI;const sI=fe(cI);var lI=Fc;function fI(e,t){return lI(e,t)}var hI=fI;const hs=fe(hI);var Vr=1e9,dI={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},ps,pe=!0,Ke="[DecimalError] ",Xt=Ke+"Invalid argument: ",ds=Ke+"Exponent out of range: ",Xr=Math.floor,Wt=Math.pow,pI=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ze,$e=1e7,de=7,wv=9007199254740991,Ji=Xr(wv/de),q={};q.absoluteValue=q.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};q.comparedTo=q.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};q.decimalPlaces=q.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*de;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};q.dividedBy=q.div=function(e){return gt(this,new this.constructor(e))};q.dividedToIntegerBy=q.idiv=function(e){var t=this,r=t.constructor;return se(gt(t,new r(e),0,1),r.precision)};q.equals=q.eq=function(e){return!this.cmp(e)};q.exponent=function(){return xe(this)};q.greaterThan=q.gt=function(e){return this.cmp(e)>0};q.greaterThanOrEqualTo=q.gte=function(e){return this.cmp(e)>=0};q.isInteger=q.isint=function(){return this.e>this.d.length-2};q.isNegative=q.isneg=function(){return this.s<0};q.isPositive=q.ispos=function(){return this.s>0};q.isZero=function(){return this.s===0};q.lessThan=q.lt=function(e){return this.cmp(e)<0};q.lessThanOrEqualTo=q.lte=function(e){return this.cmp(e)<1};q.logarithm=q.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(ze))throw Error(Ke+"NaN");if(r.s<1)throw Error(Ke+(r.s?"NaN":"-Infinity"));return r.eq(ze)?new n(0):(pe=!1,t=gt(En(r,a),En(e,a),a),pe=!0,se(t,i))};q.minus=q.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_v(t,e):Ov(t,(e.s=-e.s,e))};q.modulo=q.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Ke+"NaN");return r.s?(pe=!1,t=gt(r,e,0,1).times(e),pe=!0,r.minus(t)):se(new n(r),i)};q.naturalExponential=q.exp=function(){return Sv(this)};q.naturalLogarithm=q.ln=function(){return En(this)};q.negated=q.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};q.plus=q.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ov(t,e):_v(t,(e.s=-e.s,e))};q.precision=q.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Xt+e);if(t=xe(i)+1,n=i.d.length-1,r=n*de+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};q.squareRoot=q.sqrt=function(){var e,t,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(e=xe(u),pe=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=at(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Xr((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(gt(u,a,o+2)).times(.5),at(a.d).slice(0,o)===(t=at(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(se(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return pe=!0,se(n,r)};q.times=q.mul=function(e){var t,r,n,i,a,o,u,c,s,f=this,l=f.constructor,h=f.d,d=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,c=h.length,s=d.length,c<s&&(a=h,h=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(t=0,i=c+n;i>n;)u=a[i]+d[n]*h[i-n-1]+t,a[i--]=u%$e|0,t=u/$e|0;a[i]=(a[i]+t)%$e|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,pe?se(e,l.precision):e};q.toDecimalPlaces=q.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ct(e,0,Vr),t===void 0?t=n.rounding:ct(t,0,8),se(r,e+xe(r)+1,t))};q.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Qt(n,!0):(ct(e,0,Vr),t===void 0?t=i.rounding:ct(t,0,8),n=se(new i(n),e+1,t),r=Qt(n,!0,e+1)),r};q.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Qt(i):(ct(e,0,Vr),t===void 0?t=a.rounding:ct(t,0,8),n=se(new a(i),e+xe(i)+1,t),r=Qt(n.abs(),!1,e+xe(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};q.toInteger=q.toint=function(){var e=this,t=e.constructor;return se(new t(e),xe(e)+1,t.rounding)};q.toNumber=function(){return+this};q.toPower=q.pow=function(e){var t,r,n,i,a,o,u=this,c=u.constructor,s=12,f=+(e=new c(e));if(!e.s)return new c(ze);if(u=new c(u),!u.s){if(e.s<1)throw Error(Ke+"Infinity");return u}if(u.eq(ze))return u;if(n=c.precision,e.eq(ze))return se(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=wv){for(i=new c(ze),t=Math.ceil(n/de+4),pe=!1;r%2&&(i=i.times(u),Ff(i.d,t)),r=Xr(r/2),r!==0;)u=u.times(u),Ff(u.d,t);return pe=!0,e.s<0?new c(ze).div(i):se(i,n)}}else if(a<0)throw Error(Ke+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,pe=!1,i=e.times(En(u,n+s)),pe=!0,i=Sv(i),i.s=a,i};q.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=xe(i),n=Qt(i,r<=a.toExpNeg||r>=a.toExpPos)):(ct(e,1,Vr),t===void 0?t=a.rounding:ct(t,0,8),i=se(new a(i),e,t),r=xe(i),n=Qt(i,e<=r||r<=a.toExpNeg,e)),n};q.toSignificantDigits=q.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ct(e,1,Vr),t===void 0?t=n.rounding:ct(t,0,8)),se(new n(r),e,t)};q.toString=q.valueOf=q.val=q.toJSON=q[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=xe(e),r=e.constructor;return Qt(e,t<=r.toExpNeg||t>=r.toExpPos)};function Ov(e,t){var r,n,i,a,o,u,c,s,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),pe?se(t,l):t;if(c=e.d,s=t.d,o=e.e,i=t.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/de),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)/$e|0,c[a]%=$e;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,pe?se(t,l):t}function ct(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Xt+e)}function at(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=de-n.length,r&&(a+=$t(r)),a+=n;o=e[t],n=o+"",r=de-n.length,r&&(a+=$t(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var gt=function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%$e|0,o=a/$e|0;return o&&n.unshift(o),n}function t(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*$e+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,c,s,f,l,h,d,v,y,p,b,w,x,O,m,g,S,_,P=n.constructor,N=n.s==i.s?1:-1,j=n.d,T=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(Ke+"Division by zero");for(c=n.e-i.e,S=T.length,m=j.length,d=new P(N),v=d.d=[],s=0;T[s]==(j[s]||0);)++s;if(T[s]>(j[s]||0)&&--c,a==null?w=a=P.precision:o?w=a+(xe(n)-xe(i))+1:w=a,w<0)return new P(0);if(w=w/de+2|0,s=0,S==1)for(f=0,T=T[0],w++;(s<m||f)&&w--;s++)x=f*$e+(j[s]||0),v[s]=x/T|0,f=x%T|0;else{for(f=$e/(T[0]+1)|0,f>1&&(T=e(T,f),j=e(j,f),S=T.length,m=j.length),O=S,y=j.slice(0,S),p=y.length;p<S;)y[p++]=0;_=T.slice(),_.unshift(0),g=T[0],T[1]>=$e/2&&++g;do f=0,u=t(T,y,S,p),u<0?(b=y[0],S!=p&&(b=b*$e+(y[1]||0)),f=b/g|0,f>1?(f>=$e&&(f=$e-1),l=e(T,f),h=l.length,p=y.length,u=t(l,y,h,p),u==1&&(f--,r(l,S<h?_:T,h))):(f==0&&(u=f=1),l=T.slice()),h=l.length,h<p&&l.unshift(0),r(y,l,p),u==-1&&(p=y.length,u=t(T,y,S,p),u<1&&(f++,r(y,S<p?_:T,p))),p=y.length):u===0&&(f++,y=[0]),v[s++]=f,u&&y[0]?y[p++]=j[O]||0:(y=[j[O]],p=1);while((O++<m||y[0]!==void 0)&&w--)}return v[0]||v.shift(),d.e=c,se(d,o?a+xe(d)+1:a)}}();function Sv(e,t){var r,n,i,a,o,u,c=0,s=0,f=e.constructor,l=f.precision;if(xe(e)>16)throw Error(ds+xe(e));if(!e.s)return new f(ze);for(pe=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Wt(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(ze),f.precision=u;;){if(i=se(i.times(e),u),r=r.times(++c),o=a.plus(gt(i,r,u)),at(o.d).slice(0,u)===at(a.d).slice(0,u)){for(;s--;)a=se(a.times(a),u);return f.precision=l,t==null?(pe=!0,se(a,l)):a}a=o}}function xe(e){for(var t=e.e*de,r=e.d[0];r>=10;r/=10)t++;return t}function Lo(e,t,r){if(t>e.LN10.sd())throw pe=!0,r&&(e.precision=r),Error(Ke+"LN10 precision limit exceeded");return se(new e(e.LN10),t)}function $t(e){for(var t="";e--;)t+="0";return t}function En(e,t){var r,n,i,a,o,u,c,s,f,l=1,h=10,d=e,v=d.d,y=d.constructor,p=y.precision;if(d.s<1)throw Error(Ke+(d.s?"NaN":"-Infinity"));if(d.eq(ze))return new y(0);if(t==null?(pe=!1,s=p):s=t,d.eq(10))return t==null&&(pe=!0),Lo(y,s);if(s+=h,y.precision=s,r=at(v),n=r.charAt(0),a=xe(d),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)d=d.times(e),r=at(d.d),n=r.charAt(0),l++;a=xe(d),n>1?(d=new y("0."+r),a++):d=new y(n+"."+r.slice(1))}else return c=Lo(y,s+2,p).times(a+""),d=En(new y(n+"."+r.slice(1)),s-h).plus(c),y.precision=p,t==null?(pe=!0,se(d,p)):d;for(u=o=d=gt(d.minus(ze),d.plus(ze),s),f=se(d.times(d),s),i=3;;){if(o=se(o.times(f),s),c=u.plus(gt(o,new y(i),s)),at(c.d).slice(0,s)===at(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(Lo(y,s+2,p).times(a+""))),u=gt(u,new y(l),s),y.precision=p,t==null?(pe=!0,se(u,p)):u;u=c,i+=2}}function Bf(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Xr(r/de),e.d=[],n=(r+1)%de,r<0&&(n+=de),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=de;n<i;)e.d.push(+t.slice(n,n+=de));t=t.slice(n),n=de-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),pe&&(e.e>Ji||e.e<-Ji))throw Error(ds+r)}else e.s=0,e.e=0,e.d=[0];return e}function se(e,t,r){var n,i,a,o,u,c,s,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=de,i=t,s=l[f=0];else{if(f=Math.ceil((n+1)/de),a=l.length,f>=a)return e;for(s=a=l[f],o=1;a>=10;a/=10)o++;n%=de,i=n-de+o}if(r!==void 0&&(a=Wt(10,o-i-1),u=s/a%10|0,c=t<0||l[f+1]!==void 0||s%a,c=r<4?(u||c)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?s/Wt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return c?(a=xe(e),l.length=1,t=t-a-1,l[0]=Wt(10,(de-t%de)%de),e.e=Xr(-t/de)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=Wt(10,de-n),l[f]=i>0?(s/Wt(10,o-i)%Wt(10,i)|0)*a:0),c)for(;;)if(f==0){(l[0]+=a)==$e&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=$e)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(pe&&(e.e>Ji||e.e<-Ji))throw Error(ds+xe(e));return e}function _v(e,t){var r,n,i,a,o,u,c,s,f,l,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),pe?se(t,d):t;if(c=e.d,l=t.d,n=t.e,s=e.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/de),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,t.s=-t.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]=$e-1;--c[a],c[i]+=$e}c[i]-=l[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,pe?se(t,d):t):new h(0)}function Qt(e,t,r){var n,i=xe(e),a=at(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+$t(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+$t(-i-1)+a,r&&(n=r-o)>0&&(a+=$t(n))):i>=o?(a+=$t(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+$t(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=$t(n))),e.s<0?"-"+a:a}function Ff(e,t){if(e.length>t)return e.length=t,!0}function Pv(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(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 Bf(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,pI.test(a))Bf(o,a);else throw Error(Xt+a)}if(i.prototype=q,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=Pv,i.config=i.set=vI,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function vI(e){if(!e||typeof e!="object")throw Error(Ke+"Object expected");var t,r,n,i=["precision",1,Vr,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Xr(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Xt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Xt+r+": "+n);return this}var ps=Pv(dI);ze=new ps(1);const ue=ps;function yI(e){return xI(e)||bI(e)||gI(e)||mI()}function mI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gI(e,t){if(e){if(typeof e=="string")return $u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $u(e,t)}}function bI(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function xI(e){if(Array.isArray(e))return $u(e)}function $u(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var wI=function(t){return t},Av={},$v=function(t){return t===Av},zf=function(t){return function r(){return arguments.length===0||arguments.length===1&&$v(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},OI=function e(t,r){return t===1?r:zf(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!==Av}).length;return o>=t?r.apply(void 0,i):e(t-o,zf(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 $v(l)?c.shift():l});return r.apply(void 0,yI(f).concat(c))}))})},eo=function(t){return OI(t.length,t)},ju=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},SI=eo(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),_I=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return wI;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))}},Tu=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},jv=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,c){return u===r[c]})||(r=a,n=t.apply(void 0,a)),n}};function PI(e){var t;return e===0?t=1:t=Math.floor(new ue(e).abs().log(10).toNumber())+1,t}function AI(e,t,r){for(var n=new ue(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var $I=eo(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),jI=eo(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),TI=eo(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const to={rangeStep:AI,getDigitCount:PI,interpolateNumber:$I,uninterpolateNumber:jI,uninterpolateTruncation:TI};function Eu(e){return CI(e)||MI(e)||Tv(e)||EI()}function EI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MI(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function CI(e){if(Array.isArray(e))return Mu(e)}function Mn(e,t){return DI(e)||NI(e,t)||Tv(e,t)||II()}function II(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tv(e,t){if(e){if(typeof e=="string")return Mu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mu(e,t)}}function Mu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function NI(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function DI(e){if(Array.isArray(e))return e}function Ev(e){var t=Mn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Mv(e,t,r){if(e.lte(0))return new ue(0);var n=to.getDigitCount(e.toNumber()),i=new ue(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ue(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new ue(Math.ceil(c))}function kI(e,t,r){var n=1,i=new ue(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ue(10).pow(to.getDigitCount(e)-1),i=new ue(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ue(Math.floor(e)))}else e===0?i=new ue(Math.floor((t-1)/2)):r||(i=new ue(Math.floor(e)));var o=Math.floor((t-1)/2),u=_I(SI(function(c){return i.add(new ue(c-o).mul(n)).toNumber()}),ju);return u(0,t)}function Cv(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ue(0),tickMin:new ue(0),tickMax:new ue(0)};var a=Mv(new ue(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ue(0):(o=new ue(e).add(t).div(2),o=o.sub(new ue(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ue(t).sub(o).div(a).toNumber()),s=u+c+1;return s>r?Cv(e,t,r,n,i+1):(s<r&&(c=t>0?c+(r-s):c,u=t>0?u:u+(r-s)),{step:a,tickMin:o.sub(new ue(u).mul(a)),tickMax:o.add(new ue(c).mul(a))})}function LI(e){var t=Mn(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=Ev([r,n]),c=Mn(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(Eu(ju(0,i-1).map(function(){return 1/0}))):[].concat(Eu(ju(0,i-1).map(function(){return-1/0})),[f]);return r>n?Tu(l):l}if(s===f)return kI(s,i,a);var h=Cv(s,f,o,a),d=h.step,v=h.tickMin,y=h.tickMax,p=to.rangeStep(v,y.add(new ue(.1).mul(d)),d);return r>n?Tu(p):p}function RI(e,t){var r=Mn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Ev([n,i]),u=Mn(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(t,2),l=Mv(new ue(s).sub(c).div(f-1),a,0),h=[].concat(Eu(to.rangeStep(new ue(c),new ue(s).sub(new ue(.99).mul(l)),l)),[s]);return n>i?Tu(h):h}var BI=jv(LI),FI=jv(RI),zI="Invariant failed";function er(e,t){throw new Error(zI)}var UI=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ar(e){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ar(e)}function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qi.apply(this,arguments)}function WI(e,t){return KI(e)||GI(e,t)||HI(e,t)||qI()}function qI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HI(e,t){if(e){if(typeof e=="string")return Uf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uf(e,t)}}function Uf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);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 KI(e){if(Array.isArray(e))return e}function VI(e,t){if(e==null)return{};var r=XI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function YI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dv(n.key),n)}}function JI(e,t,r){return t&&ZI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QI(e,t,r){return t=ea(t),e2(e,Iv()?Reflect.construct(t,r||[],ea(e).constructor):t.apply(e,r))}function e2(e,t){if(t&&(Ar(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t2(e)}function t2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Iv=function(){return!!e})()}function ea(e){return ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ea(e)}function r2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cu(e,t)}function Cu(e,t){return Cu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cu(e,t)}function Nv(e,t,r){return t=Dv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dv(e){var t=n2(e,"string");return Ar(t)=="symbol"?t:t+""}function n2(e,t){if(Ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ro=function(e){function t(){return YI(this,t),QI(this,t,arguments)}return r2(t,e),JI(t,[{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,h=VI(n,UI),d=te(h,!1);this.props.direction==="x"&&f.type!=="number"&&er();var v=c.map(function(y){var p=s(y,u),b=p.x,w=p.y,x=p.value,O=p.errorVal;if(!O)return null;var m=[],g,S;if(Array.isArray(O)){var _=WI(O,2);g=_[0],S=_[1]}else g=S=O;if(a==="vertical"){var P=f.scale,N=w+i,j=N+o,T=N-o,C=P(x-g),L=P(x+S);m.push({x1:L,y1:j,x2:L,y2:T}),m.push({x1:C,y1:N,x2:L,y2:N}),m.push({x1:C,y1:j,x2:C,y2:T})}else if(a==="horizontal"){var D=l.scale,E=b+i,I=E-o,R=E+o,F=D(x-g),H=D(x+S);m.push({x1:I,y1:H,x2:R,y2:H}),m.push({x1:E,y1:F,x2:E,y2:H}),m.push({x1:I,y1:F,x2:R,y2:F})}return A.createElement(je,Qi({className:"recharts-errorBar",key:"bar-".concat(m.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},d),m.map(function(G){return A.createElement("line",Qi({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return A.createElement(je,{className:"recharts-errorBars"},v)}}])}(A.Component);Nv(ro,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Nv(ro,"displayName","ErrorBar");function Cn(e){"@babel/helpers - typeof";return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cn(e)}function Wf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wf(Object(r),!0).forEach(function(n){i2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i2(e,t,r){return t=a2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a2(e){var t=o2(e,"string");return Cn(t)=="symbol"?t:t+""}function o2(e,t){if(Cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kv=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Fe(r,vr);if(!o)return null;var u=vr.defaultProps,c=u!==void 0?Ft(Ft({},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 h=l.item,d=l.props,v=d.sectors||d.data||[];return f.concat(v.map(function(y){return{type:o.props.iconType||h.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):s=(n||[]).map(function(f){var l=f.item,h=l.type.defaultProps,d=h!==void 0?Ft(Ft({},h),l.props):{},v=d.dataKey,y=d.name,p=d.legendType,b=d.hide;return{inactive:b,dataKey:v,type:c.iconType||p||"square",color:vs(l),value:y||v,payload:d}}),Ft(Ft(Ft({},c),vr.getWithHeight(o,i)),{},{payload:s,item:o})};function In(e){"@babel/helpers - typeof";return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(e)}function qf(e){return l2(e)||s2(e)||c2(e)||u2()}function u2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
25In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c2(e,t){if(e){if(typeof e=="string")return Iu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Iu(e,t)}}function s2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function l2(e){if(Array.isArray(e))return Iu(e)}function Iu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Hf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hf(Object(r),!0).forEach(function(n){mr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mr(e,t,r){return t=f2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f2(e){var t=h2(e,"string");return In(t)=="symbol"?t:t+""}function h2(e,t){if(In(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(In(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function st(e,t,r){return ne(e)||ne(t)?r:Pe(t)?Ge(e,t,r):Z(t)?t(e):r}function yn(e,t,r,n){var i=sI(e,function(u){return st(u,t)});if(r==="number"){var a=i.filter(function(u){return z(u)||parseFloat(u)});return a.length?[Qa(a),Ja(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!ne(u)}):i;return o.map(function(u){return Pe(u)||u instanceof Date?u:""})}var d2=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n==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,h=s>=u-1?i[0].coordinate:i[s+1].coordinate,d=void 0;if(Qe(l-f)!==Qe(h-l)){var v=[];if(Qe(h-l)===Qe(c[1]-c[0])){d=h;var y=l+c[1]-c[0];v[0]=Math.min(y,(y+f)/2),v[1]=Math.max(y,(y+f)/2)}else{d=f;var p=h+c[1]-c[0];v[0]=Math.min(l,(p+l)/2),v[1]=Math.max(l,(p+l)/2)}var b=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(t>b[0]&&t<=b[1]||t>=v[0]&&t<=v[1]){o=i[s].index;break}}else{var w=Math.min(f,h),x=Math.max(f,h);if(t>(w+l)/2&&t<=(x+l)/2){o=i[s].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},vs=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.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},p2=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),c=0,s=u.length;c<s;c++)for(var f=a[u[c]].stackGroups,l=Object.keys(f),h=0,d=l.length;h<d;h++){var v=f[l[h]],y=v.items,p=v.cateAxisId,b=y.filter(function(S){return yt(S.type).indexOf("Bar")>=0});if(b&&b.length){var w=b[0].type.defaultProps,x=w!==void 0?ye(ye({},w),b[0].props):b[0].props,O=x.barSize,m=x[p];o[m]||(o[m]=[]);var g=ne(O)?r:O;o[m].push({item:b[0],stackList:b.slice(1),barSize:ne(g)?void 0:Jt(g,n,0)})}}return o},v2=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,c=o.length;if(c<1)return null;var s=Jt(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,d=i/c,v=o.reduce(function(O,m){return O+m.barSize||0},0);v+=(c-1)*s,v>=i&&(v-=(c-1)*s,s=0),v>=i&&d>0&&(h=!0,d*=.9,v=c*d);var y=(i-v)/2>>0,p={offset:y-s,size:0};f=o.reduce(function(O,m){var g={item:m.item,position:{offset:p.offset+p.size+s,size:h?d:m.barSize}},S=[].concat(qf(O),[g]);return p=S[S.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(_){S.push({item:_,position:p})}),S},l)}else{var b=Jt(n,i,0,!0);i-2*b-(c-1)*s<=0&&(s=0);var w=(i-2*b-(c-1)*s)/c;w>1&&(w>>=0);var x=u===+u?Math.min(w,u):w;f=o.reduce(function(O,m,g){var S=[].concat(qf(O),[{item:m.item,position:{offset:b+(w+s)*g+(w-x)/2,size:x}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(_){S.push({item:_,position:S[S.length-1].position})}),S},l)}return f},y2=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=kv({children:a,legendWidth:c});if(s){var f=i||{},l=f.width,h=f.height,d=s.align,v=s.verticalAlign,y=s.layout;if((y==="vertical"||y==="horizontal"&&v==="middle")&&d!=="center"&&z(t[d]))return ye(ye({},t),{},mr({},d,t[d]+(l||0)));if((y==="horizontal"||y==="vertical"&&d==="center")&&v!=="middle"&&z(t[v]))return ye(ye({},t),{},mr({},v,t[v]+(h||0)))}return t},m2=function(t,r,n){return ne(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Lv=function(t,r,n,i,a){var o=r.props.children,u=et(o,ro).filter(function(s){return m2(i,a,s.props.direction)});if(u&&u.length){var c=u.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var l=st(f,n);if(ne(l))return s;var h=Array.isArray(l)?[Qa(l),Ja(l)]:[l,l],d=c.reduce(function(v,y){var p=st(f,y,0),b=h[0]-Math.abs(Array.isArray(p)?p[0]:p),w=h[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(b,v[0]),Math.max(w,v[1])]},[1/0,-1/0]);return[Math.min(d[0],s[0]),Math.max(d[1],s[1])]},[1/0,-1/0])}return null},g2=function(t,r,n,i,a){var o=r.map(function(u){return Lv(t,u,n,a,i)}).filter(function(u){return!ne(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},Rv=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&Lv(t,c,s,i)||yn(t,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},[])},Bv=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Fv=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var a,o,u=t.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},vt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,s=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(s=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?Qe(u[0]-u[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var h=a?a.indexOf(l):l;return{coordinate:i(h)+s,value:l,offset:s}});return f.filter(function(l){return!ri(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+s,value:l,index:h,offset:s}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+s,value:l,offset:s}}):i.domain().map(function(l,h){return{coordinate:i(l)+s,value:a?a[l]:l,index:h,offset:s}})},Ro=new WeakMap,bi=function(t,r){if(typeof r!="function")return t;Ro.has(t)||Ro.set(t,new WeakMap);var n=Ro.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},b2=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:Pn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Vi(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:vn(),realScaleType:"point"}:a==="category"?{scale:Pn(),realScaleType:"band"}:{scale:Vi(),realScaleType:"linear"};if(Zt(i)){var c="scale".concat(Ba(i));return{scale:(Rf[c]||vn)(),realScaleType:Rf[c]?c:"point"}}return Z(i)?{scale:i}:{scale:vn(),realScaleType:"point"}},Gf=1e-4,x2=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-Gf,o=Math.max(i[0],i[1])+Gf,u=t(r[0]),c=t(r[n-1]);(u<a||u>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},w2=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},O2=function(t,r){if(!r||r.length!==2||!z(r[0])||!z(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!z(t[0])||t[0]<n)&&(a[0]=n),(!z(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},S2=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var c=ri(t[u][n][1])?t[u][n][0]:t[u][n][1];c>=0?(t[u][n][0]=a,t[u][n][1]=a+c,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+c,o=t[u][n][1])}},_2=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=ri(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},P2={sign:S2,expand:Bw,none:gr,silhouette:Fw,wiggle:zw,positive:_2},A2=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=P2[n],o=Rw().keys(i).value(function(u,c){return+st(u,c,0)}).order(iu).offset(a);return o(t)},$2=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,c={},s=u.reduce(function(l,h){var d,v=(d=h.type)!==null&&d!==void 0&&d.defaultProps?ye(ye({},h.type.defaultProps),h.props):h.props,y=v.stackId,p=v.hide;if(p)return l;var b=v[n],w=l[b]||{hasStack:!1,stackGroups:{}};if(Pe(y)){var x=w.stackGroups[y]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(h),w.hasStack=!0,w.stackGroups[y]=x}else w.stackGroups[Ra("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return ye(ye({},l),{},mr({},b,w))},c),f={};return Object.keys(s).reduce(function(l,h){var d=s[h];if(d.hasStack){var v={};d.stackGroups=Object.keys(d.stackGroups).reduce(function(y,p){var b=d.stackGroups[p];return ye(ye({},y),{},mr({},p,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:A2(t,b.items,a)}))},v)}return ye(ye({},l),{},mr({},h,d))},f)},j2=function(t,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=t.domain();if(!s.length)return null;var f=BI(s,a,u);return t.domain([Qa(f),Ja(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=FI(l,a,u);return{niceTicks:h}}return null},Kf=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var c=st(o,r.dataKey,r.domain[u]);return ne(c)?null:r.scale(c)-a/2+i},T2=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},E2=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Pe(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},M2=function(t){return t.reduce(function(r,n){return[Qa(n.concat([r[0]]).filter(z)),Ja(n.concat([r[1]]).filter(z))]},[1/0,-1/0])},zv=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,c=u.reduce(function(s,f){var l=M2(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})},Vf=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Xf=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Nu=function(t,r,n){if(Z(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(z(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Vf.test(t[0])){var a=+Vf.exec(t[0])[1];i[0]=r[0]-a}else Z(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(z(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Xf.test(t[1])){var o=+Xf.exec(t[1])[1];i[1]=r[1]+o}else Z(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},ta=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Uc(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},Yf=function(t,r,n){return!t||!t.length||hs(t,Ge(n,"type.defaultProps.domain"))?r:t},Uv=function(t,r){var n=t.type.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,c=n.tooltipType,s=n.chartType,f=n.hide;return ye(ye({},te(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:vs(t),value:st(r,i),type:c,payload:r,chartType:s,hide:f})};function Nn(e){"@babel/helpers - typeof";return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nn(e)}function Zf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zf(Object(r),!0).forEach(function(n){C2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C2(e,t,r){return t=I2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I2(e){var t=N2(e,"string");return Nn(t)=="symbol"?t:t+""}function N2(e,t){if(Nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ra=Math.PI/180,D2=function(t){return t*180/Math.PI},Me=function(t,r,n,i){return{x:t+Math.cos(-ra*i)*n,y:r+Math.sin(-ra*i)*n}},k2=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},L2=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=k2({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:D2(s),angleInRadian:s}},R2=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},B2=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},Qf=function(t,r){var n=t.x,i=t.y,a=L2({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=R2(r),l=f.startAngle,h=f.endAngle,d=u,v;if(l<=h){for(;d>h;)d-=360;for(;d<l;)d+=360;v=d>=l&&d<=h}else{for(;d>l;)d-=360;for(;d<h;)d+=360;v=d>=h&&d<=l}return v?Jf(Jf({},r),{},{radius:o,angle:B2(d,r)}):null};function Dn(e){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(e)}var F2=["offset"];function z2(e){return H2(e)||q2(e)||W2(e)||U2()}function U2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
26In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W2(e,t){if(e){if(typeof e=="string")return Du(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Du(e,t)}}function q2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function H2(e){if(Array.isArray(e))return Du(e)}function Du(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function G2(e,t){if(e==null)return{};var r=K2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function K2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function eh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eh(Object(r),!0).forEach(function(n){V2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V2(e,t,r){return t=X2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X2(e){var t=Y2(e,"string");return Dn(t)=="symbol"?t:t+""}function Y2(e,t){if(Dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kn.apply(this,arguments)}var Z2=function(t){var r=t.value,n=t.formatter,i=ne(t.children)?r:t.children;return Z(n)?n(i):i},J2=function(t,r){var n=Qe(r-t),i=Math.min(Math.abs(r-t),360);return n*i},Q2=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,c=a,s=c.cx,f=c.cy,l=c.innerRadius,h=c.outerRadius,d=c.startAngle,v=c.endAngle,y=c.clockWise,p=(l+h)/2,b=J2(d,v),w=b>=0?1:-1,x,O;i==="insideStart"?(x=d+w*o,O=y):i==="insideEnd"?(x=v-w*o,O=!y):i==="end"&&(x=v+w*o,O=y),O=b<=0?O:!O;var m=Me(s,f,p,x),g=Me(s,f,p,x+(O?1:-1)*359),S="M".concat(m.x,",").concat(m.y,`
27    A`).concat(p,",").concat(p,",0,1,").concat(O?0:1,`,
28    `).concat(g.x,",").concat(g.y),_=ne(t.id)?Ra("recharts-radial-line-"):t.id;return A.createElement("text",kn({},n,{dominantBaseline:"central",className:re("recharts-radial-bar-label",u)}),A.createElement("defs",null,A.createElement("path",{id:_,d:S})),A.createElement("textPath",{xlinkHref:"#".concat(_)},r))},eN=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,s=a.outerRadius,f=a.startAngle,l=a.endAngle,h=(f+l)/2;if(i==="outside"){var d=Me(o,u,s+n,h),v=d.x,y=d.y;return{x:v,y,textAnchor:v>=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 p=(c+s)/2,b=Me(o,u,p,h),w=b.x,x=b.y;return{x:w,y:x,textAnchor:"middle",verticalAnchor:"middle"}},tN=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,c=o.y,s=o.width,f=o.height,l=f>=0?1:-1,h=l*i,d=l>0?"end":"start",v=l>0?"start":"end",y=s>=0?1:-1,p=y*i,b=y>0?"end":"start",w=y>0?"start":"end";if(a==="top"){var x={x:u+s/2,y:c-l*i,textAnchor:"middle",verticalAnchor:d};return _e(_e({},x),n?{height:Math.max(c-n.y,0),width:s}:{})}if(a==="bottom"){var O={x:u+s/2,y:c+f+h,textAnchor:"middle",verticalAnchor:v};return _e(_e({},O),n?{height:Math.max(n.y+n.height-(c+f),0),width:s}:{})}if(a==="left"){var m={x:u-p,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return _e(_e({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var g={x:u+s+p,y:c+f/2,textAnchor:w,verticalAnchor:"middle"};return _e(_e({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:f}:{})}var S=n?{width:s,height:f}:{};return a==="insideLeft"?_e({x:u+p,y:c+f/2,textAnchor:w,verticalAnchor:"middle"},S):a==="insideRight"?_e({x:u+s-p,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},S):a==="insideTop"?_e({x:u+s/2,y:c+h,textAnchor:"middle",verticalAnchor:v},S):a==="insideBottom"?_e({x:u+s/2,y:c+f-h,textAnchor:"middle",verticalAnchor:d},S):a==="insideTopLeft"?_e({x:u+p,y:c+h,textAnchor:w,verticalAnchor:v},S):a==="insideTopRight"?_e({x:u+s-p,y:c+h,textAnchor:b,verticalAnchor:v},S):a==="insideBottomLeft"?_e({x:u+p,y:c+f-h,textAnchor:w,verticalAnchor:d},S):a==="insideBottomRight"?_e({x:u+s-p,y:c+f-h,textAnchor:b,verticalAnchor:d},S):Fr(a)&&(z(a.x)||qt(a.x))&&(z(a.y)||qt(a.y))?_e({x:u+Jt(a.x,s),y:c+Jt(a.y,f),textAnchor:"end",verticalAnchor:"end"},S):_e({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},S)},rN=function(t){return"cx"in t&&z(t.cx)};function Ie(e){var t=e.offset,r=t===void 0?5:t,n=G2(e,F2),i=_e({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,h=i.textBreakAll;if(!a||ne(u)&&ne(c)&&!k.isValidElement(s)&&!Z(s))return null;if(k.isValidElement(s))return k.cloneElement(s,i);var d;if(Z(s)){if(d=k.createElement(s,i),k.isValidElement(d))return d}else d=Z2(i);var v=rN(a),y=te(i,!0);if(v&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Q2(i,d,y);var p=v?eN(i):tN(i);return A.createElement(zi,kn({className:re("recharts-label",l)},y,p,{breakAll:h}),d)}Ie.displayName="Label";var Wv=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,c=t.radius,s=t.innerRadius,f=t.outerRadius,l=t.x,h=t.y,d=t.top,v=t.left,y=t.width,p=t.height,b=t.clockWise,w=t.labelViewBox;if(w)return w;if(z(y)&&z(p)){if(z(l)&&z(h))return{x:l,y:h,width:y,height:p};if(z(d)&&z(v))return{x:d,y:v,width:y,height:p}}return z(l)&&z(h)?{x:l,y:h,width:0,height:0}:z(r)&&z(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||c||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},nN=function(t,r){return t?t===!0?A.createElement(Ie,{key:"label-implicit",viewBox:r}):Pe(t)?A.createElement(Ie,{key:"label-implicit",viewBox:r,value:t}):k.isValidElement(t)?t.type===Ie?k.cloneElement(t,{key:"label-implicit",viewBox:r}):A.createElement(Ie,{key:"label-implicit",content:t,viewBox:r}):Z(t)?A.createElement(Ie,{key:"label-implicit",content:t,viewBox:r}):Fr(t)?A.createElement(Ie,kn({viewBox:r},t,{key:"label-implicit"})):null:null},iN=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=Wv(t),o=et(i,Ie).map(function(c,s){return k.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=nN(t.label,r||a);return[u].concat(z2(o))};Ie.parseViewBox=Wv;Ie.renderCallByParent=iN;function aN(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var oN=aN;const uN=fe(oN);function Ln(e){"@babel/helpers - typeof";return Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ln(e)}var cN=["valueAccessor"],sN=["data","dataKey","clockWise","id","textBreakAll"];function lN(e){return pN(e)||dN(e)||hN(e)||fN()}function fN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
29In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hN(e,t){if(e){if(typeof e=="string")return ku(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ku(e,t)}}function dN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pN(e){if(Array.isArray(e))return ku(e)}function ku(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function na(){return na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},na.apply(this,arguments)}function th(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?th(Object(r),!0).forEach(function(n){vN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):th(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vN(e,t,r){return t=yN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yN(e){var t=mN(e,"string");return Ln(t)=="symbol"?t:t+""}function mN(e,t){if(Ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nh(e,t){if(e==null)return{};var r=gN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var bN=function(t){return Array.isArray(t.value)?uN(t.value):t.value};function Yt(e){var t=e.valueAccessor,r=t===void 0?bN:t,n=nh(e,cN),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=nh(n,sN);return!i||!i.length?null:A.createElement(je,{className:"recharts-label-list"},i.map(function(f,l){var h=ne(a)?r(f,l):st(f&&f.payload,a),d=ne(u)?{}:{id:"".concat(u,"-").concat(l)};return A.createElement(Ie,na({},te(f,!0),s,d,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:Ie.parseViewBox(ne(o)?f:rh(rh({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}Yt.displayName="LabelList";function xN(e,t){return e?e===!0?A.createElement(Yt,{key:"labelList-implicit",data:t}):A.isValidElement(e)||Z(e)?A.createElement(Yt,{key:"labelList-implicit",data:t,content:e}):Fr(e)?A.createElement(Yt,na({data:t},e,{key:"labelList-implicit"})):null:null}function wN(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=et(n,Yt).map(function(o,u){return k.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=xN(e.label,t);return[a].concat(lN(i))}Yt.renderCallByParent=wN;function Rn(e){"@babel/helpers - typeof";return Rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(e)}function Lu(){return Lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lu.apply(this,arguments)}function ih(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ah(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ih(Object(r),!0).forEach(function(n){ON(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ih(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ON(e,t,r){return t=SN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SN(e){var t=_N(e,"string");return Rn(t)=="symbol"?t:t+""}function _N(e,t){if(Rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PN=function(t,r){var n=Qe(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},xi=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,c=t.cornerRadius,s=t.cornerIsExternal,f=c*(u?1:-1)+i,l=Math.asin(c/f)/ra,h=s?a:a+o*l,d=Me(r,n,f,h),v=Me(r,n,i,h),y=s?a-o*l:a,p=Me(r,n,f*Math.cos(l*ra),y);return{center:d,circleTangency:v,lineTangency:p,theta:l}},qv=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,c=PN(o,u),s=o+c,f=Me(r,n,a,o),l=Me(r,n,a,s),h="M ".concat(f.x,",").concat(f.y,`
30    A `).concat(a,",").concat(a,`,0,
31    `).concat(+(Math.abs(c)>180),",").concat(+(o>s),`,
32    `).concat(l.x,",").concat(l.y,`
33  `);if(i>0){var d=Me(r,n,i,o),v=Me(r,n,i,s);h+="L ".concat(v.x,",").concat(v.y,`
34            A `).concat(i,",").concat(i,`,0,
35            `).concat(+(Math.abs(c)>180),",").concat(+(o<=s),`,
36            `).concat(d.x,",").concat(d.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},AN=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,c=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,l=Qe(f-s),h=xi({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),d=h.circleTangency,v=h.lineTangency,y=h.theta,p=xi({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),b=p.circleTangency,w=p.lineTangency,x=p.theta,O=c?Math.abs(s-f):Math.abs(s-f)-y-x;if(O<0)return u?"M ".concat(v.x,",").concat(v.y,`
37        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
38        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
39      `):qv({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var m="M ".concat(v.x,",").concat(v.y,`
40    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(d.x,",").concat(d.y,`
41    A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(b.x,",").concat(b.y,`
42    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(w.x,",").concat(w.y,`
43  `);if(i>0){var g=xi({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),S=g.circleTangency,_=g.lineTangency,P=g.theta,N=xi({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),j=N.circleTangency,T=N.lineTangency,C=N.theta,L=c?Math.abs(s-f):Math.abs(s-f)-P-C;if(L<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(T.x,",").concat(T.y,`
44      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(j.x,",").concat(j.y,`
45      A`).concat(i,",").concat(i,",0,").concat(+(L>180),",").concat(+(l>0),",").concat(S.x,",").concat(S.y,`
46      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(_.x,",").concat(_.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},$N={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Hv=function(t){var r=ah(ah({},$N),t),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,h=r.className;if(o<a||f===l)return null;var d=re("recharts-sector",h),v=o-a,y=Jt(u,v,0,!0),p;return y>0&&Math.abs(f-l)<360?p=AN({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(y,v/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):p=qv({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),A.createElement("path",Lu({},te(r,!0),{className:d,d:p,role:"img"}))};function Bn(e){"@babel/helpers - typeof";return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn(e)}function Ru(){return Ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
46for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ru.apply(this,arguments)}function oh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oh(Object(r),!0).forEach(function(n){jN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jN(e,t,r){return t=TN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TN(e){var t=EN(e,"string");return Bn(t)=="symbol"?t:t+""}function EN(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ch={curveBasisClosed:$w,curveBasisOpen:jw,curveBasis:Aw,curveBumpX:hw,curveBumpY:dw,curveLinearClosed:Tw,curveLinear:za,curveMonotoneX:Ew,curveMonotoneY:Mw,curveNatural:Cw,curveStep:Iw,
46curveStepAfter:Dw,curveStepBefore:Nw},wi=function(t){return t.x===+t.x&&t.y===+t.y},sn=function(t){return t.x},ln=function(t){return t.y},MN=function(t,r){if(Z(t))return t;var n="curve".concat(Ba(t));return(n==="curveMonotone"||n==="curveBump")&&r?ch["".concat(n).concat(r==="vertical"?"Y":"X")]:ch[n]||za},CN=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,c=t.connectNulls,s=c===void 0?!1:c,f=MN(n,u),l=s?a.filter(function(y){return wi(y)}):a,h;if(Array.isArray(o)){var d=s?o.filter(function(y){return wi(y)}):o,v=l.map(function(y,p){return uh(uh({},y),{},{base:d[p]})});return u==="vertical"?h=fi().y(ln).x1(sn).x0(function(y){return y.base.x}):h=fi().x(sn).y1(ln).y0(function(y){return y.base.y}),h.defined(wi).curve(f),h(v)}return u==="vertical"&&z(o)?h=fi().y(ln).x1(sn).x0(o):z(o)?h=fi().x(sn).y1(ln).y0(o):h=Hd().x(sn).y(ln),h.defined(wi).curve(f),h(l)},sh=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?CN(t):i;return k.createElement("path",Ru({},te(t,!1),Ai(t),{className:re("recharts-curve",r),d:o,ref:a}))},Gv={exports:{}},IN="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",NN=IN,DN=NN;function Kv(){}function Vv(){}Vv.resetWarningCache=Kv;var kN=function(){function e(n,i,a,o,u,c){if(c!==DN){var s=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 s.name="Invariant Violation",s}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Vv,resetWarningCache:Kv};return r.PropTypes=r,r};Gv.exports=kN();var LN=Gv.exports;const ie=fe(LN);var RN=Object.getOwnPropertyNames,BN=Object.getOwnPropertySymbols,FN=Object.prototype.hasOwnProperty;function lh(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Oi(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);var c=e(r,n,i);return a.delete(r),a.delete(n),c}}function fh(e){return RN(e).concat(BN(e))}var zN=Object.hasOwn||function(e,t){return FN.call(e,t)};function ar(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var UN="__v",WN="__o",qN="_owner",hh=Object.getOwnPropertyDescriptor,dh=Object.keys;function HN(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function GN(e,t){return ar(e.getTime(),t.getTime())}function KN(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function VN(e,t){return e===t}function ph(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,u,c=0;(o=a.next())&&!o.done;){for(var s=t.entries(),f=!1,l=0;(u=s.next())&&!u.done;){if(i[l]){l++;continue}var h=o.value,d=u.value;if(r.equals(h[0],d[0],c,l,e,t,r)&&r.equals(h[1],d[1],h[0],d[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;c++}return!0}var XN=ar;function YN(e,t,r){var n=dh(e),i=n.length;if(dh(t).length!==i)return!1;for(;i-- >0;)if(!Xv(e,t,r,n[i]))return!1;return!0}function fn(e,t,r){var n=fh(e),i=n.length;if(fh(t).length!==i)return!1;for(var a,o,u;i-- >0;)if(a=n[i],!Xv(e,t,r,a)||(o=hh(e,a),u=hh(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function ZN(e,t){return ar(e.valueOf(),t.valueOf())}function JN(e,t){return e.source===t.source&&e.flags===t.flags}function vh(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,u;(o=a.next())&&!o.done;){for(var c=t.values(),s=!1,f=0;(u=c.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function QN(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function eD(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Xv(e,t,r,n){return(n===qN||n===WN||n===UN)&&(e.$$typeof||t.$$typeof)?!0:zN(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var tD="[object Arguments]",rD="[object Boolean]",nD="[object Date]",iD="[object Error]",aD="[object Map]",oD="[object Number]",uD="[object Object]",cD="[object RegExp]",sD="[object Set]",lD="[object String]",fD="[object URL]",hD=Array.isArray,yh=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,mh=Object.assign,dD=Object.prototype.toString.call.bind(Object.prototype.toString);function pD(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,u=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,s=e.areRegExpsEqual,f=e.areSetsEqual,l=e.areTypedArraysEqual,h=e.areUrlsEqual;return function(v,y,p){if(v===y)return!0;
46if(v==null||y==null)return!1;var b=typeof v;if(b!==typeof y)return!1;if(b!=="object")return b==="number"?o(v,y,p):b==="function"?i(v,y,p):!1;var w=v.constructor;if(w!==y.constructor)return!1;if(w===Object)return u(v,y,p);if(hD(v))return t(v,y,p);if(yh!=null&&yh(v))return l(v,y,p);if(w===Date)return r(v,y,p);if(w===RegExp)return s(v,y,p);if(w===Map)return a(v,y,p);if(w===Set)return f(v,y,p);var x=dD(v);return x===nD?r(v,y,p):x===cD?s(v,y,p):x===aD?a(v,y,p):x===sD?f(v,y,p):x===uD?typeof v.then!="function"&&typeof y.then!="function"&&u(v,y,p):x===fD?h(v,y,p):x===iD?n(v,y,p):x===tD?u(v,y,p):x===rD||x===oD||x===lD?c(v,y,p):!1}}function vD(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?fn:HN,areDatesEqual:GN,areErrorsEqual:KN,areFunctionsEqual:VN,areMapsEqual:n?lh(ph,fn):ph,areNumbersEqual:XN,areObjectsEqual:n?fn:YN,arePrimitiveWrappersEqual:ZN,areRegExpsEqual:JN,areSetsEqual:n?lh(vh,fn):vh,areTypedArraysEqual:n?fn:QN,areUrlsEqual:eD};if(r&&(i=mh({},i,r(i))),t){var a=Oi(i.areArraysEqual),o=Oi(i.areMapsEqual),u=Oi(i.areObjectsEqual),c=Oi(i.areSetsEqual);i=mh({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:c})}return i}function yD(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function mD(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(c,s){var f=n(),l=f.cache,h=l===void 0?t?new WeakMap:void 0:l,d=f.meta;return r(c,s,{cache:h,equals:i,meta:d,strict:a})};if(t)return function(c,s){return r(c,s,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(c,s){return r(c,s,o)}}var gD=Lt();Lt({strict:!0});Lt({circular:!0});Lt({circular:!0,strict:!0});Lt({createInternalComparator:function(){return ar}});Lt({strict:!0,createInternalComparator:function(){return ar}});Lt({circular:!0,createInternalComparator:function(){return ar}});Lt({circular:!0,createInternalComparator:function(){return ar},strict:!0});function Lt(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,u=vD(e),c=pD(u),s=n?n(c):yD(c);return mD({circular:r,comparator:c,createState:i,equals:s,strict:o})}function bD(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function gh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):bD(i)};requestAnimationFrame(n)}function Bu(e){"@babel/helpers - typeof";return Bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bu(e)}function xD(e){return _D(e)||SD(e)||OD(e)||wD()}function wD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
47In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OD(e,t){if(e){if(typeof e=="string")return bh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bh(e,t)}}function bh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function SD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _D(e){if(Array.isArray(e))return e}function PD(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=xD(o),c=u[0],s=u.slice(1);if(typeof c=="number"){gh(i.bind(null,s),c);return}i(c),gh(i.bind(null,s));return}Bu(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Fn(e){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fn(e)}function xh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 45,543 bytes, lines 47-64
47t%2?xh(Object(r),!0).forEach(function(n){Yv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yv(e,t,r){return t=AD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AD(e){var t=$D(e,"string");return Fn(t)==="symbol"?t:String(t)}function $D(e,t){if(Fn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jD=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},TD=function(t){return t},ED=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},mn=function(t,r){return Object.keys(r).reduce(function(n,i){return wh(wh({},n),{},Yv({},i,t(i,r[i])))},{})},Oh=function(t,r,n){return t.map(function(i){return"".concat(ED(i)," ").concat(r,"ms ").concat(n)}).join(",")};function MD(e,t){return ND(e)||ID(e,t)||Zv(e,t)||CD()}function CD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
48In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ID(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);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 ND(e){if(Array.isArray(e))return e}function DD(e){return RD(e)||LD(e)||Zv(e)||kD()}function kD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
49In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zv(e,t){if(e){if(typeof e=="string")return Fu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fu(e,t)}}function LD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RD(e){if(Array.isArray(e))return Fu(e)}function Fu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ia=1e-4,Jv=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},Qv=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Sh=function(t,r){return function(n){var i=Jv(t,r);return Qv(i,n)}},BD=function(t,r){return function(n){var i=Jv(t,r),a=[].concat(DD(i.map(function(o,u){return o*u}).slice(1)),[0]);return Qv(a,n)}},_h=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var 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(p){return parseFloat(p)}),f=MD(s,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=Sh(i,o),h=Sh(a,u),d=BD(i,o),v=function(b){return b>1?1:b<0?0:b},y=function(b){for(var w=b>1?1:b,x=w,O=0;O<8;++O){var m=l(x)-w,g=d(x);if(Math.abs(m-w)<ia||g<ia)return h(x);x=v(x-m/g)}return h(x)};return y.isStepper=!1,y},FD=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,c=function(f,l,h){var d=-(f-l)*n,v=h*a,y=h+(d-v)*u/1e3,p=h*u/1e3+f;return Math.abs(p-l)<ia&&Math.abs(y)<ia?[l,0]:[p,y]};return c.isStepper=!0,c.dt=u,c},zD=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return _h(i);case"spring":return FD();default:if(i.split("(")[0]==="cubic-bezier")return _h(i)}return typeof i=="function"?i:null};function zn(e){"@babel/helpers - typeof";return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn(e)}function Ph(e){return qD(e)||WD(e)||ey(e)||UD()}function UD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
50In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qD(e){if(Array.isArray(e))return Uu(e)}function Ah(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ah(Object(r),!0).forEach(function(n){zu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ah(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zu(e,t,r){return t=HD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HD(e){var t=GD(e,"string");return zn(t)==="symbol"?t:String(t)}function GD(e,t){if(zn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KD(e,t){return YD(e)||XD(e,t)||ey(e,t)||VD()}function VD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
51In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ey(e,t){if(e){if(typeof e=="string")return Uu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uu(e,t)}}function Uu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);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 YD(e){if(Array.isArray(e))return e}var aa=function(t,r,n){return t+(r-t)*n},Wu=function(t){var r=t.from,n=t.to;return r!==n},ZD=function e(t,r,n){var i=mn(function(a,o){if(Wu(o)){var u=t(o.from,o.to,o.velocity),c=KD(u,2),s=c[0],f=c[1];return Ee(Ee({},o),{},{from:s,velocity:f})}return o},r);return n<1?mn(function(a,o){return Wu(o)?Ee(Ee({},o),{},{velocity:aa(o.velocity,i[a].velocity,n),from:aa(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const JD=function(e,t,r,n,i){var a=jD(e,t),o=a.reduce(function(p,b){return Ee(Ee({},p),{},zu({},b,[e[b],t[b]]))},{}),u=a.reduce(function(p,b){return Ee(Ee({},p),{},zu({},b,{from:e[b],velocity:0,to:t[b]}))},{}),c=-1,s,f,l=function(){return null},h=function(){return mn(function(b,w){return w.from},u)},d=function(){return!Object.values(u).filter(Wu).length},v=function(b){s||(s=b);var w=b-s,x=w/r.dt;u=ZD(r,u,x),i(Ee(Ee(Ee({},e),t),h())),s=b,d()||(c=requestAnimationFrame(l))},y=function(b){f||(f=b);var w=(b-f)/n,x=mn(function(m,g){return aa.apply(void 0,Ph(g).concat([r(w)]))},o);if(i(Ee(Ee(Ee({},e),t),x)),w<1)c=requestAnimationFrame(l);else{var O=mn(function(m,g){return aa.apply(void 0,Ph(g).concat([r(1)]))},o);i(Ee(Ee(Ee({},e),t),O))}};return l=r.isStepper?v:y,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(c)}}};function $r(e){"@babel/helpers - typeof";return $r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$r(e)}var QD=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function ek(e,t){if(e==null)return{};var r=tk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tk(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Bo(e){return ak(e)||ik(e)||nk(e)||rk()}function rk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
52In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nk(e,t){if(e){if(typeof e=="string")return qu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qu(e,t)}}function ik(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ak(e){if(Array.isArray(e))return qu(e)}function qu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$h(Object(r),!0).forEach(function(n){dn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$h(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dn(e,t,r){return t=ty(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ok(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ty(n.key),n)}}function ck(e,t,r){return t&&uk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ty(e){var t=sk(e,"string");return $r(t)==="symbol"?t:String(t)}function sk(e,t){if($r(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($r(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hu(e,t)}function Hu(e,t){return Hu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hu(e,t)}function fk(e){var t=hk();return function(){var n=oa(e),i;if(t){var a=oa(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Gu(this,i)}}function Gu(e,t){if(t&&($r(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ku(e)}function Ku(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hk(){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 oa(e){return oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oa(e)}var Mt=function(e){lk(r,e);var t=fk(r);function r(n,i){var a;ok(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,s=o.from,f=o.to,l=o.steps,h=o.children,d=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Ku(a)),a.changeStyle=a.changeStyle.bind(Ku(a)),!u||d<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),Gu(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof h=="function")return a.state={style:s},Gu(a);a.state={style:c?dn({},c,s):s}}else a.state={style:{}};return a}return ck(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,h=this.state.style;if(u){if(!o){var d={style:c?dn({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(d);return}if(!(gD(i.to,f)&&i.canBegin&&i.isActive)){var v=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=v||s?l:i.to;if(this.state&&h){var p={style:c?dn({},c,y):y};(c&&h[c]!==y||!c&&h!==y)&&this.setState(p)}this.runAnimation(Ye(Ye({},this.props),{},{from:y,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,h=i.onAnimationStart,d=JD(o,u,zD(s),c,this.changeStyle),v=function(){a.stopJSAnimation=d()};this.manager.start([h,f,v,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,h=l===void 0?0:l,d=function(y,p,b){if(b===0)return y;var w=p.duration,x=p.easing,O=x===void 0?"ease":x,m=p.style,g=p.properties,S=p.onAnimationEnd,_=b>0?o[b-1]:p,P=g||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(Bo(y),[a.runJSAnimation.bind(a,{from:_.style,to:m,duration:w,easing:O}),w]);var N=Oh(P,w,O),j=Ye(Ye(Ye({},_.style),m),{},{transition:N});return[].concat(Bo(y),[j,w,S]).filter(TD)};return this.manager.start([c].concat(Bo(o.reduce(d,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=PD());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,s=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,h=i.steps,d=i.children,v=this.manager;if(this.unSubscribe=v.subscribe(this.handleStyleChange),typeof s=="function"||typeof d=="function"||s==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var y=u?dn({},u,c):c,p=Oh(Object.keys(y),o,s);v.start([f,a,Ye(Ye({},y),{},{transition:p}),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=ek(i,QD),s=k.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 v=d.props,y=v.style,p=y===void 0?{}:y,b=v.className,w=k.cloneElement(d,Ye(Ye({},c),{},{style:Ye(Ye({},p),f),className:b}));return w};return s===1?l(k.Children.only(a)):A.createElement("div",null,k.Children.map(a,function(h){return l(h)}))}}]),r}(k.PureComponent);Mt.displayName="Animate";Mt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Mt.propTypes={from:ie.oneOfType([ie.object,ie.string]),to:ie.oneOfType([ie.object,ie.string]),attributeName:ie.string,duration:ie.number,begin:ie.number,easing:ie.oneOfType([ie.string,ie.func]),steps:ie.arrayOf(ie.shape({duration:ie.number.isRequired,style:ie.object.isRequired,easing:ie.oneOfType([ie.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ie.func]),properties:ie.arrayOf("string"),onAnimationEnd:ie.func})),children:ie.oneOfType([ie.node,ie.func]),isActive:ie.bool,canBegin:ie.bool,onAnimationEnd:ie.func,shouldReAnimate:ie.bool,onAnimationStart:ie.func,onAnimationReStart:ie.func};function Un(e){"@babel/helpers - typeof";return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Un(e)}function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ua.apply(this,arguments)}function dk(e,t){return mk(e)||yk(e,t)||vk(e,t)||pk()}function pk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
53In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vk(e,t){if(e){if(typeof e=="string")return jh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jh(e,t)}}function jh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);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 mk(e){if(Array.isArray(e))return e}function Th(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Eh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Th(Object(r),!0).forEach(function(n){gk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Th(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gk(e,t,r){return t=bk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bk(e){var t=xk(e,"string");return Un(t)=="symbol"?t:t+""}function xk(e,t){if(Un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mh=function(t,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],h=0,d=4;h<d;h++)l[h]=a[h]>o?o:a[h];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(t+c*l[0],",").concat(r)),f+="L ".concat(t+n-c*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,`,
54        `).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,`,
55        `).concat(t+n-c*l[2],",").concat(r+i)),f+="L ".concat(t+c*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,`,
56        `).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var v=Math.min(o,a);f="M ".concat(t,",").concat(r+u*v,`
57            A `).concat(v,",").concat(v,",0,0,").concat(s,",").concat(t+c*v,",").concat(r,`
58            L `).concat(t+n-c*v,",").concat(r,`
59            A `).concat(v,",").concat(v,",0,0,").concat(s,",").concat(t+n,",").concat(r+u*v,`
60            L `).concat(t+n,",").concat(r+i-u*v,`
61            A `).concat(v,",").concat(v,",0,0,").concat(s,",").concat(t+n-c*v,",").concat(r+i,`
62            L `).concat(t+c*v,",").concat(r+i,`
63            A `).concat(v,",").concat(v,",0,0,").concat(s,",").concat(t,",").concat(r+i-u*v," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},wk=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.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),h=Math.max(o,o+c);return n>=s&&n<=f&&i>=l&&i<=h}return!1},Ok={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ys=function(t){var r=Eh(Eh({},Ok),t),n=k.useRef(),i=k.useState(-1),a=dk(i,2),o=a[0],u=a[1];k.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var c=r.x,s=r.y,f=r.width,l=r.height,h=r.radius,d=r.className,v=r.animationEasing,y=r.animationDuration,p=r.animationBegin,b=r.isAnimationActive,w=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||f===0||l===0)return null;var x=re("recharts-rectangle",d);return w?A.createElement(Mt,{canBegin:o>0,from:{width:f,height:l,x:c,y:s},to:{width:f,height:l,x:c,y:s},duration:y,animationEasing:v,isActive:w},function(O){var m=O.width,g=O.height,S=O.x,_=O.y;return A.createElement(Mt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:y,isActive:b,easing:v},A.createElement("path",ua({},te(r,!0),{className:x,d:Mh(S,_,m,g,h),ref:n})))}):A.createElement("path",ua({},te(r,!0),{className:x,d:Mh(c,s,f,l,h)}))};function Vu(){return Vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vu.apply(this,arguments)}var ry=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=re("recharts-dot",a);return r===+r&&n===+n&&i===+i?k.createElement("circle",Vu({},te(t,!1),Ai(t),{className:o,cx:r,cy:n,r:i})):null};function Wn(e){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(e)}var Sk=["x","y","top","left","width","height","className"];function Xu(){return Xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xu.apply(this,arguments)}function Ch(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _k(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ch(Object(r),!0).forEach(function(n){Pk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ch(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pk(e,t,r){return t=Ak(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ak(e){var t=$k(e,"string");return Wn(t)=="symbol"?t:t+""}function $k(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jk(e,t){if(e==null)return{};var r=Tk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Ek=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},Mk=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,c=t.left,s=c===void 0?0:c,f=t.width,l=f===void 0?0:f,h=t.height,d=h===void 0?0:h,v=t.className,y=jk(t,Sk),p=_k({x:n,y:a,top:u,left:s,width:l,height:d},y);return!z(n)||!z(a)||!z(l)||!z(d)||!z(u)||!z(s)?null:A.createElement("path",Xu({},te(p,!0),{className:re("recharts-cross",v),d:Ek(n,a,l,d,u,s)}))},Ck=vp,Ik=Ck(Object.getPrototypeOf,Object),Nk=Ik,Dk=Ot,kk=Nk,Lk=St,Rk="[object Object]",Bk=Function.prototype,Fk=Object.prototype,ny=Bk.toString,zk=Fk.hasOwnProperty,Uk=ny.call(Object);function Wk(e){if(!Lk(e)||Dk(e)!=Rk)return!1;var t=kk(e);if(t===null)return!0;var r=zk.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ny.call(r)==Uk}var qk=Wk;const Hk=fe(qk);var Gk=Ot,Kk=St,Vk="[object Boolean]";function Xk(e){return e===!0||e===!1||Kk(e)&&Gk(e)==Vk}var Yk=Xk;const Zk=fe(Yk);function qn(e){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(e)}function ca(){return ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ca.apply(this,arguments)}function Jk(e,t){return rL(e)||tL(e,t)||eL(e,t)||Qk()}function Qk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
64In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eL(e,t){if(e){if(typeof e=="string")return Ih(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ih(e,t)}}function Ih(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);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 rL(e){if(Array.isArray(e))return e}function Nh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nh(Object(r),!0).forEach(function(n){nL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nL(e,t,r){return t=iL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iL(e){var t=aL(e,"string");return qn(t)=="symbol"?t:t+""}function aL(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kh=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},oL={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},uL=function(t){var r=Dh(Dh({},oL),t),n=k.useRef(),i=k.useState(-1),a=Jk(i,2),o=a[0],u=a[1];k.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,h=r.height,d=r.className,v=r.animationEasing,y=r.animationDuration,p=r.animationBegin,b=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var w=re("recharts-trapezoid",d);return b?A.createElement(Mt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:s},to:{upperWidth:f,lowerWidth:l,height:h,x:c,y:s},duration:y,animationEasing:v,isActive:b},function(x){var O=x.upperWidth,m=x.lowerWidth,g=x.height,S=x.x,_=x.y;return A.createElement(Mt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:y,easing:v},A.createElement("path",ca({},te(r,!0),{className:w,d:kh(S,_,O,m,g),ref:n})))}):A.createElement("g",null,A.createElement("path",ca({},te(r,!0),{className:w,d:kh(c,s,f,l,h)})))},cL=["option","shapeType","propTransformer","activeClassName","isActive"];function Hn(e){"@babel/helpers - typeof";return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hn(e)}function sL(e,t){if(e==null)return{};var r=lL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lL(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Lh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lh(Object(r),!0).forEach(function(n){fL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fL(e,t,r){return t=hL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hL(e){var t=dL(e,"string");return Hn(t)=="symbol"?t:t+""}function dL(e,t){if(Hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pL(e,t){return sa(sa({},t),e)}function vL(e,t){return e==="symbols"}function Rh(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return A.createElement(ys,r);case"trapezoid":return A.createElement(uL,r);case"sector":return A.createElement(Hv,r);case"symbols":if(vL(t))return A.createElement(Nc,r);break;default:return null}}function yL(e){return k.isValidElement(e)?e.props:e}function mL(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?pL:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,c=sL(e,cL),s;if(k.isValidElement(t))s=k.cloneElement(t,sa(sa({},c),yL(t)));else if(Z(t))s=t(c);else if(Hk(t)&&!Zk(t)){var f=i(t,c);s=A.createElement(Rh,{shapeType:r,elementProps:f})}else{var l=c;s=A.createElement(Rh,{shapeType:r,elementProps:l})}return u?A.createElement(je,{className:o},s):s}function no(e,t){return t!=null&&"trapezoids"in e.props}function io(e,t){return t!=null&&"sectors"in e.props}function Gn(e,t){return t!=null&&"points"in e.props}function gL(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function bL(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function xL(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function wL(e,t){var r;return no(e,t)?r=gL:io(e,t)?r=bL:Gn(e,t)&&(r=xL),r}function OL(e,t){var r;return no(e,t)?r="trapezoids":io(e,t)?r="sectors":Gn(e,t)&&(r="points"),r}function SL(e,t){if(no(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(io(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Gn(e,t)?t.payload:{}}function _L(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=OL(r,t),a=SL(r,t),o=n.filter(function(c,s){var f=hs(a,c),l=r.props[i].filter(function(v){var y=wL(r,t);return y(v,t)}),h=r.props[i].indexOf(l[l.length-1]),d=s===h;return f&&d}),u=n.indexOf(o[o.length-1]);return u}var PL=Math.ceil,AL=Math.max;function $L(e,t,r,n){for(var i=-1,a=AL(PL((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var jL=$L,TL=Np,Bh=1/0,EL=17976931348623157e292;function ML(e){if(!e)return e===0?e:0;if(e=TL(e),e===Bh||e===-Bh){var t=e<0?-1:1;return t*EL}return e===e?e:0}var iy=ML,CL=jL,IL=Ha,Fo=iy;function NL(e){return function(t,r,n){return n&&typeof n!="number"&&IL(t,r,n)&&(r=n=void 0),t=Fo(t),r===void 0?(r=t,t=0):r=Fo(r),n=n===void 0?t<r?1:-1:Fo(n),CL(t,r,n,e)}}var DL=NL,kL=DL,LL=kL(),RL=LL;const la=fe(RL);function Kn(e){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(e)}function Fh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fh(Object(r),!0).forEach(function(n){ay(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ay(e,t,r){return t=BL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BL(e){var t=FL(e,"string");return Kn(t)=="symbol"?t:t+""}function FL(e,t){if(Kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zL=["Webkit","Moz","O","ms"],UL=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=zL.reduce(function(a,o){return zh(zh({},a),{},ay({},o+n,r))},{});return i[t]=r,i};function jr(e){"@babel/helpers - typeof";return jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jr(e)}function fa(){return fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fa.apply(this,arguments)}function Uh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uh(Object(r),!0).forEach(function(n){Be(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uy(n.key),n)}}function qL(e,t,r){return t&&Wh(e.prototype,t),r&&Wh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function HL(e,t,r){return t=ha(t),GL(e,oy()?Reflect.construct(t,r||[],ha(e).constructor):t.apply(e,r))}function GL(e,t){if(t&&(jr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KL(e)}function KL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oy=function(){return!!e})()}function ha(e){return ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ha(e)}function VL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yu(e,t)}function Yu(e,t){return Yu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yu(e,t)}function Be(e,t,r){return t=uy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uy(e){var t=XL(e,"string");return jr(t)=="symbol"?t:t+""}function XL(e,t){if(jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var YL=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,s=vn().domain(la(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}},qh=function(t){return t.changedTouches&&!!t.changedTouches.length},Tr=function(e){function t(r){var n;return WL(this,t),n=HL(this,t,[r]),Be(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Be(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Be(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()}),Be(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Be(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Be(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Be(n,"handleSlideDragStart",function(i){var a=qh(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 VL(t,e),qL(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,c=u.gap,s=u.data,f=s.length-1,l=Math.min(i,a),h=Math.max(i,a),d=t.getIndexInRange(o,l),v=t.getIndexInRange(o,h);return{startIndex:d-d%c,endIndex:v===f?f:v-v%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=st(a[n],u,n);return Z(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,h=c.startIndex,d=c.endIndex,v=c.onChange,y=n.pageX-a;y>0?y=Math.min(y,s+f-l-u,s+f-l-o):y<0&&(y=Math.max(y,s-o,s-u));var p=this.getIndex({startX:o+y,endX:u+y});(p.startIndex!==h||p.endIndex!==d)&&v&&v(p),this.setState({startX:o+y,endX:u+y,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=qh(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,h=f.width,d=f.travellerWidth,v=f.onChange,y=f.gap,p=f.data,b={startX:this.state.startX,endX:this.state.endX},w=n.pageX-a;w>0?w=Math.min(w,l+h-d-s):w<0&&(w=Math.max(w,l-s)),b[o]=s+w;var x=this.getIndex(b),O=x.startIndex,m=x.endIndex,g=function(){var _=p.length-1;return o==="startX"&&(u>c?O%y===0:m%y===0)||u<c&&m===_||o==="endX"&&(u>c?m%y===0:O%y===0)||u>c&&m===_};this.setState(Be(Be({},o,s+w),"brushMoveStartX",n.pageX),function(){v&&g()&&v(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 h=l+n;if(!(h===-1||h>=u.length)){var d=u[h];i==="startX"&&d>=s||i==="endX"&&d<=c||this.setState(Be({},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 A.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=k.Children.only(s);return l?A.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,h=c.traveller,d=c.ariaLabel,v=c.data,y=c.startIndex,p=c.endIndex,b=Math.max(n,this.props.x),w=zo(zo({},te(this.props,!1)),{},{x:b,y:s,width:f,height:l}),x=d||"Min value: ".concat((a=v[y])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=v[p])===null||o===void 0?void 0:o.name);return A.createElement(je,{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"}},t.renderTraveller(h,w))}},{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 A.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill: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,h=f.endX,d=5,v={pointerEvents:"none",fill:s};return A.createElement(je,{className:"recharts-brush-texts"},A.createElement(zi,fa({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-d,y:o+u/2},v),this.getTextOfTick(i)),A.createElement(zi,fa({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+c+d,y:o+u/2},v),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,h=this.state,d=h.startX,v=h.endX,y=h.isTextActive,p=h.isSli
64deMoving,b=h.isTravellerMoving,w=h.isTravellerFocused;if(!i||!i.length||!z(u)||!z(c)||!z(s)||!z(f)||s<=0||f<=0)return null;var x=re("recharts-brush",a),O=A.Children.count(o)===1,m=UL("userSelect","none");return A.createElement(je,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(d,v),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(v,"endX"),(y||p||b||w||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 A.createElement(A.Fragment,null,A.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),A.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),A.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 A.isValidElement(n)?a=A.cloneElement(n,i):Z(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,s=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return zo({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?YL({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 h=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:h}}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}}])}(k.PureComponent);Be(Tr,"displayName","Brush");Be(Tr,"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 ZL=zc;function JL(e,t){var r;return ZL(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var QL=JL,eR=up,tR=Nt,rR=QL,nR=Re,iR=Ha;function aR(e,t,r){var n=nR(e)?eR:rR;return r&&iR(e,t,r)&&(t=void 0),n(e,tR(t))}var oR=aR;const uR=fe(oR);var ut=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Hh=Tp;function cR(e,t,r){t=="__proto__"&&Hh?Hh(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var sR=cR,lR=sR,fR=$p,hR=Nt;function dR(e,t){var r={};return t=hR(t),fR(e,function(n,i,a){lR(r,i,t(n,i,a))}),r}var pR=dR;const vR=fe(pR);function yR(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var mR=yR,gR=zc;function bR(e,t){var r=!0;return gR(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var xR=bR,wR=mR,OR=xR,SR=Nt,_R=Re,PR=Ha;function AR(e,t,r){var n=_R(e)?wR:OR;return r&&PR(e,t,r)&&(t=void 0),n(e,SR(t))}var $R=AR;const cy=fe($R);var jR=["x","y"];function Vn(e){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(e)}function Zu(){return Zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zu.apply(this,arguments)}function Gh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gh(Object(r),!0).forEach(function(n){TR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TR(e,t,r){return t=ER(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ER(e){var t=MR(e,"string");return Vn(t)=="symbol"?t:t+""}function MR(e,t){if(Vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CR(e,t){if(e==null)return{};var r=IR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function IR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function NR(e,t){var r=e.x,n=e.y,i=CR(e,jR),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=p
vendor: 100,403 bytes, lines 64-74
64arseInt(u,10),s="".concat(t.height||i.height),f=parseInt(s,10),l="".concat(t.width||i.width),h=parseInt(l,10);return hn(hn(hn(hn(hn({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function Kh(e){return A.createElement(mL,Zu({shapeType:"rectangle",propTransformer:NR,activeClassName:"recharts-active-bar"},e))}var DR=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=z(n)||J0(n);return a?t(n,i):(a||er(),r)}},kR=["value","background"],sy;function Er(e){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(e)}function LR(e,t){if(e==null)return{};var r=RR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},da.apply(this,arguments)}function Vh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vh(Object(r),!0).forEach(function(n){Tt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fy(n.key),n)}}function FR(e,t,r){return t&&Xh(e.prototype,t),r&&Xh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zR(e,t,r){return t=pa(t),UR(e,ly()?Reflect.construct(t,r||[],pa(e).constructor):t.apply(e,r))}function UR(e,t){if(t&&(Er(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WR(e)}function WR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ly(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ly=function(){return!!e})()}function pa(e){return pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pa(e)}function qR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ju(e,t)}function Ju(e,t){return Ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ju(e,t)}function Tt(e,t,r){return t=fy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fy(e){var t=HR(e,"string");return Er(t)=="symbol"?t:t+""}function HR(e,t){if(Er(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ct=function(e){function t(){var r;BR(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=zR(this,t,[].concat(i)),Tt(r,"state",{isAnimationFinished:!1}),Tt(r,"id",Ra("recharts-bar-")),Tt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Tt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return qR(t,e),FR(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,c=a.activeIndex,s=a.activeBar,f=te(this.props,!1);return n&&n.map(function(l,h){var d=h===c,v=d?s:o,y=be(be(be({},f),l),{},{isActive:d,option:v,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return A.createElement(je,da({className:"recharts-bar-rectangle"},$i(i.props,l,h),{key:"rectangle-".concat(l==null?void 0:l.x,"-").concat(l==null?void 0:l.y,"-").concat(l==null?void 0:l.value,"-").concat(h)}),A.createElement(Kh,y))})}},{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,h=this.state.prevData;return A.createElement(Mt,{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 v=d.t,y=a.map(function(p,b){var w=h&&h[b];if(w){var x=ur(w.x,p.x),O=ur(w.y,p.y),m=ur(w.width,p.width),g=ur(w.height,p.height);return be(be({},p),{},{x:x(v),y:O(v),width:m(v),height:g(v)})}if(o==="horizontal"){var S=ur(0,p.height),_=S(v);return be(be({},p),{},{y:p.y+p.height-_,height:_})}var P=ur(0,p.width),N=P(v);return be(be({},p),{},{width:N})});return A.createElement(je,null,n.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!hs(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=te(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,h=LR(s,kR);if(!l)return null;var d=be(be(be(be(be({},h),{},{fill:"#eee"},l),c),$i(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return A.createElement(Kh,da({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=et(f,ro);if(!l)return null;var h=s==="vertical"?o[0].height/2:o[0].width/2,d=function(p,b){var w=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:w,errorVal:st(p,b)}},v={clipPath:n?"url(#clipPath-".concat(i,")"):null};return A.createElement(je,v,l.map(function(y){return A.cloneElement(y,{key:"error-bar-".concat(i,"-").concat(y.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,offset:h,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,h=n.height,d=n.isAnimationActive,v=n.background,y=n.id;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,b=re("recharts-bar",o),w=u&&u.allowDataOverflow,x=c&&c.allowDataOverflow,O=w||x,m=ne(y)?this.id:y;return A.createElement(je,{className:b},w||x?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(m)},A.createElement("rect",{x:w?s:s-l/2,y:x?f:f-h/2,width:w?l:l*2,height:x?h:h*2}))):null,A.createElement(je,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!d||p)&&Yt.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}}])}(k.PureComponent);sy=Ct;Tt(Ct,"displayName","Bar");Tt(Ct,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ii.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Tt(Ct,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,c=e.yAxisTicks,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,d=w2(n,r);if(!d)return null;var v=t.layout,y=r.type.defaultProps,p=y!==void 0?be(be({},y),r.props):r.props,b=p.dataKey,w=p.children,x=p.minPointSize,O=v==="horizontal"?o:a,m=s?O.scale.domain():null,g=T2({numericAxis:O}),S=et(w,kp),_=l.map(function(P,N){var j,T,C,L,D,E;s?j=O2(s[f+N],m):(j=st(P,b),Array.isArray(j)||(j=[g,j]));var I=DR(x,sy.defaultProps.minPointSize)(j[1],N);if(v==="horizontal"){var R,F=[o.scale(j[0]),o.scale(j[1])],H=F[0],G=F[1];T=Kf({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:P,index:N}),C=(R=G??H)!==null&&R!==void 0?R:void 0,L=d.size;var W=H-G;if(D=Number.isNaN(W)?0:W,E={x:T,y:o.y,width:L,height:o.height},Math.abs(I)>0&&Math.abs(D)<Math.abs(I)){var K=Qe(D||I)*(Math.abs(I)-Math.abs(D));C-=K,D+=K}}else{var ce=[a.scale(j[0]),a.scale(j[1])],me=ce[0],J=ce[1];if(T=me,C=Kf({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:P,index:N}),L=J-me,D=d.size,E={x:a.x,y:C,width:a.width,height:D},Math.abs(I)>0&&Math.abs(L)<Math.abs(I)){var oe=Qe(L||I)*(Math.abs(I)-Math.abs(L));L+=oe}}return be(be(be({},P),{},{x:T,y:C,width:L,height:D,value:s?j:j[1],payload:P,background:E},S&&S[N]&&S[N].props),{},{tooltipPayload:[Uv(r,P)],tooltipPosition:{x:T+L/2,y:C+D/2}})});return be({data:_,layout:v},h)});function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}function GR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hy(n.key),n)}}function KR(e,t,r){return t&&Yh(e.prototype,t),r&&Yh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zh(Object(r),!0).forEach(function(n){ao(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ao(e,t,r){return t=hy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hy(e){var t=VR(e,"string");return Xn(t)=="symbol"?t:t+""}function VR(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var XR=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.layout,s=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},h=!!Fe(s,Ct);return f.reduce(function(d,v){var y=r[v],p=y.orientation,b=y.domain,w=y.padding,x=w===void 0?{}:w,O=y.mirror,m=y.reversed,g="".concat(p).concat(O?"Mirror":""),S,_,P,N,j;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var T=b[1]-b[0],C=1/0,L=y.categoricalDomain.sort(tx);if(L.forEach(function(ce,me){me>0&&(C=Math.min((ce||0)-(L[me-1]||0),C))}),Number.isFinite(C)){var D=C/T,E=y.layout==="vertical"?n.height:n.width;if(y.padding==="gap"&&(S=D*E/2),y.padding==="no-gap"){var I=Jt(t.barCategoryGap,D*E),R=D*E/2;S=R-I-(R-I)/E*I}}}i==="xAxis"?_=[n.left+(x.left||0)+(S||0),n.left+n.width-(x.right||0)-(S||0)]:i==="yAxis"?_=c==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(S||0),n.top+n.height-(x.bottom||0)-(S||0)]:_=y.range,m&&(_=[_[1],_[0]]);var F=b2(y,a,h),H=F.scale,G=F.realScaleType;H.domain(b).range(_),x2(H);var W=j2(H,Ze(Ze({},y),{},{realScaleType:G}));i==="xAxis"?(j=p==="top"&&!O||p==="bottom"&&O,P=n.left,N=l[g]-j*y.height):i==="yAxis"&&(j=p==="left"&&!O||p==="right"&&O,P=l[g]-j*y.width,N=n.top);var K=Ze(Ze(Ze({},y),W),{},{realScaleType:G,x:P,y:N,scale:H,width:i==="xAxis"?n.width:y.width,height:i==="yAxis"?n.height:y.height});return K.bandSize=ta(K,W),!y.hide&&i==="xAxis"?l[g]+=(j?-1:1)*K.height:y.hide||(l[g]+=(j?-1:1)*K.width),Ze(Ze({},d),{},ao({},v,K))},{})},dy=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},YR=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return dy({x:r,y:n},{x:i,y:a})},py=function(){function e(t){GR(this,e),this.scale=t}return KR(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var 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 e(r)}}])}();ao(py,"EPS",1e-4);var ms=function(t){var r=Object.keys(t).reduce(function(n,i){return Ze(Ze({},n),{},ao({},i,py.create(t[i])))},{});return Ze(Ze({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return vR(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return cy(i,function(a,o){return r[o].isInRange(a)})}})};function ZR(e){return(e%180+180)%180}var JR=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=ZR(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)},QR=Nt,eB=ni,tB=Wa;function rB(e){return function(t,r,n){var i=Object(t);if(!eB(t)){var a=QR(r);t=tB(t),r=function(u){return a(i[u],u,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var nB=rB,iB=iy;function aB(e){var t=iB(e),r=t%1;return t===t?r?t-r:t:0}var oB=aB,uB=wp,cB=Nt,sB=oB,lB=Math.max;function fB(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:sB(r);return i<0&&(i=lB(n+i,0)),uB(e,cB(t),i)}var hB=fB,dB=nB,pB=hB,vB=dB(pB),yB=vB;const mB=fe(yB);var gB=i0(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),gs=k.createContext(void 0),bs=k.createContext(void 0),vy=k.createContext(void 0),yy=k.createContext({}),my=k.createContext(void 0),gy=k.createContext(0),by=k.createContext(0),Jh=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,c=t.width,s=t.height,f=gB(a);return A.createElement(gs.Provider,{value:n},A.createElement(bs.Provider,{value:i},A.createElement(yy.Provider,{value:a},A.createElement(vy.Provider,{value:f},A.createElement(my.Provider,{value:o},A.createElement(gy.Provider,{value:s},A.createElement(by.Provider,{value:c},u)))))))},bB=function(){return k.useContext(my)},xy=function(t){var r=k.useContext(gs);r==null&&er();var n=r[t];return n==null&&er(),n},xB=function(){var t=k.useContext(gs);return jt(t)},wB=function(){var t=k.useContext(bs),r=mB(t,function(n){return cy(n.domain,Number.isFinite)});return r||jt(t)},wy=function(t){var r=k.useContext(bs);r==null&&er();var n=r[t];return n==null&&er(),n},OB=function(){var t=k.useContext(vy);return t},SB=function(){return k.useContext(yy)},xs=function(){return k.useContext(by)},ws=function(){return k.useContext(gy)};function Mr(e){"@babel/helpers - typeof";return Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mr(e)}function _B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Sy(n.key),n)}}function AB(e,t,r){return t&&PB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $B(e,t,r){return t=va(t),jB(e,Oy()?Reflect.construct(t,r||[],va(e).constructor):t.apply(e,r))}function jB(e,t){if(t&&(Mr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TB(e)}function TB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Oy=function(){return!!e})()}function va(e){return va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},va(e)}function EB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qu(e,t)}function Qu(e,t){return Qu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qu(e,t)}function Qh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ed(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qh(Object(r),!0).forEach(function(n){Os(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Os(e,t,r){return t=Sy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sy(e){var t=MB(e,"string");return Mr(t)=="symbol"?t:t+""}function MB(e,t){if(Mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function CB(e,t){return kB(e)||DB(e,t)||NB(e,t)||IB()}function IB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
65In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NB(e,t){if(e){if(typeof e=="string")return td(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return td(e,t)}}function td(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function DB(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);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 kB(e){if(Array.isArray(e))return e}function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ec.apply(this,arguments)}var LB=function(t,r){var n;return A.isValidElement(t)?n=A.cloneElement(t,r):Z(t)?n=t(r):n=A.createElement("line",ec({},r,{className:"recharts-reference-line-line"})),n},RB=function(t,r,n,i,a,o,u,c,s){var f=a.x,l=a.y,h=a.width,d=a.height;if(n){var v=s.y,y=t.y.apply(v,{position:o});if(ut(s,"discard")&&!t.y.isInRange(y))return null;var p=[{x:f+h,y},{x:f,y}];return c==="left"?p.reverse():p}if(r){var b=s.x,w=t.x.apply(b,{position:o});if(ut(s,"discard")&&!t.x.isInRange(w))return null;var x=[{x:w,y:l+d},{x:w,y:l}];return u==="top"?x.reverse():x}if(i){var O=s.segment,m=O.map(function(g){return t.apply(g,{position:o})});return ut(s,"discard")&&uR(m,function(g){return!t.isInRange(g)})?null:m}return null};function BB(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,c=e.alwaysShow,s=bB(),f=xy(i),l=wy(a),h=OB();if(!s||!h)return null;mt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=ms({x:f.scale,y:l.scale}),v=Pe(t),y=Pe(r),p=n&&n.length===2,b=RB(d,v,y,p,h,e.position,f.orientation,l.orientation,e);if(!b)return null;var w=CB(b,2),x=w[0],O=x.x,m=x.y,g=w[1],S=g.x,_=g.y,P=ut(e,"hidden")?"url(#".concat(s,")"):void 0,N=ed(ed({clipPath:P},te(e,!0)),{},{x1:O,y1:m,x2:S,y2:_});return A.createElement(je,{className:re("recharts-reference-line",u)},LB(o,N),Ie.renderCallByParent(e,YR({x1:O,y1:m,x2:S,y2:_})))}var oo=function(e){function t(){return _B(this,t),$B(this,t,arguments)}return EB(t,e),AB(t,[{key:"render",value:function(){return A.createElement(BB,this.props)}}])}(A.Component);Os(oo,"displayName","ReferenceLine");Os(oo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function tc(){return tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tc.apply(this,arguments)}function Cr(e){"@babel/helpers - typeof";return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cr(e)}function rd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rd(Object(r),!0).forEach(function(n){uo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Py(n.key),n)}}function UB(e,t,r){return t&&zB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WB(e,t,r){return t=ya(t),qB(e,_y()?Reflect.construct(t,r||[],ya(e).constructor):t.apply(e,r))}function qB(e,t){if(t&&(Cr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HB(e)}function HB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_y=function(){return!!e})()}function ya(e){return ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ya(e)}function GB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rc(e,t)}function rc(e,t){return rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rc(e,t)}function uo(e,t,r){return t=Py(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Py(e){var t=KB(e,"string");return Cr(t)=="symbol"?t:t+""}function KB(e,t){if(Cr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var VB=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=ms({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return ut(t,"discard")&&!o.isInRange(u)?null:u},co=function(e){function t(){return FB(this,t),WB(this,t,arguments)}return GB(t,e),UB(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,c=n.clipPathId,s=Pe(i),f=Pe(a);if(mt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=VB(this.props);if(!l)return null;var h=l.x,d=l.y,v=this.props,y=v.shape,p=v.className,b=ut(this.props,"hidden")?"url(#".concat(c,")"):void 0,w=nd(nd({clipPath:b},te(this.props,!0)),{},{cx:h,cy:d});return A.createElement(je,{className:re("recharts-reference-dot",p)},t.renderDot(y,w),Ie.renderCallByParent(this.props,{x:h-o,y:d-o,width:2*o,height:2*o}))}}])}(A.Component);uo(co,"displayName","ReferenceDot");uo(co,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});uo(co,"renderDot",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):Z(e)?r=e(t):r=A.createElement(ry,tc({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nc.apply(this,arguments)}function Ir(e){"@babel/helpers - typeof";return Ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ir(e)}function id(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ad(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?id(Object(r),!0).forEach(function(n){so(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):id(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$y(n.key),n)}}function ZB(e,t,r){return t&&YB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JB(e,t,r){return t=ma(t),QB(e,Ay()?Reflect.construct(t,r||[],ma(e).constructor):t.apply(e,r))}function QB(e,t){if(t&&(Ir(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eF(e)}function eF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ay(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ay=function(){return!!e})()}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ma(e)}function tF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ic(e,t)}function ic(e,t){return ic=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ic(e,t)}function so(e,t,r){return t=$y(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $y(e){var t=rF(e,"string");return Ir(t)=="symbol"?t:t+""}function rF(e,t){if(Ir(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ir(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nF=function(t,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 h=ms({x:f.scale,y:l.scale}),d={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(c,{position:"start"}):h.y.rangeMin},v={x:r?h.x.apply(u,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(s,{position:"end"}):h.y.rangeMax};return ut(a,"discard")&&(!h.isInRange(d)||!h.isInRange(v))?null:dy(d,v)},lo=function(e){function t(){return XB(this,t),JB(this,t,arguments)}return tF(t,e),ZB(t,[{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;mt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Pe(i),h=Pe(a),d=Pe(o),v=Pe(u),y=this.props.shape;if(!l&&!h&&!d&&!v&&!y)return null;var p=nF(l,h,d,v,this.props);if(!p&&!y)return null;var b=ut(this.props,"hidden")?"url(#".concat(f,")"):void 0;return A.createElement(je,{className:re("recharts-reference-area",c)},t.renderRect(y,ad(ad({clipPath:b},te(this.props,!0)),p)),Ie.renderCallByParent(this.props,p))}}])}(A.Component);so(lo,"displayName","ReferenceArea");so(lo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});so(lo,"renderRect",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):Z(e)?r=e(t):r=A.createElement(ys,nc({},t,{className:"recharts-reference-area-rect"})),r});function jy(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function iF(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return JR(n,r)}function aF(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function ga(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function oF(e,t){return jy(e,t+1)}function uF(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,c=0,s=1,f=o,l=function(){var v=n==null?void 0:n[c];if(v===void 0)return{v:jy(n,s)};var y=c,p,b=function(){return p===void 0&&(p=r(v,y)),p},w=v.coordinate,x=c===0||ga(e,w,b,f,u);x||(c=0,f=o,s+=1),x&&(f=w+e*(b()/2+i),c+=s)},h;s<=a.length;)if(h=l(),h)return h.v;return[]}function Yn(e){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(e)}function od(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?od(Object(r),!0).forEach(function(n){cF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):od(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cF(e,t,r){return t=sF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sF(e){var t=lF(e,"string");return Yn(t)=="symbol"?t:t+""}function lF(e,t){if(Yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fF(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,c=t.end,s=function(h){var d=a[h],v,y=function(){return v===void 0&&(v=r(d,h)),v};if(h===o-1){var p=e*(d.coordinate+e*y()/2-c);a[h]=d=Ce(Ce({},d),{},{tickCoord:p>0?d.coordinate-p*e:d.coordinate})}else a[h]=d=Ce(Ce({},d),{},{tickCoord:d.coordinate});var b=ga(e,d.tickCoord,y,u,c);b&&(c=d.tickCoord-e*(y()/2+i),a[h]=Ce(Ce({},d),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function hF(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=t.start,s=t.end;if(a){var f=n[u-1],l=r(f,u-1),h=e*(f.coordinate+e*l/2-s);o[u-1]=f=Ce(Ce({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var d=ga(e,f.tickCoord,function(){return l},c,s);d&&(s=f.tickCoord-e*(l/2+i),o[u-1]=Ce(Ce({},f),{},{isShow:!0}))}for(var v=a?u-1:u,y=function(w){var x=o[w],O,m=function(){return O===void 0&&(O=r(x,w)),O};if(w===0){var g=e*(x.coordinate-e*m()/2-c);o[w]=x=Ce(Ce({},x),{},{tickCoord:g<0?x.coordinate-g*e:x.coordinate})}else o[w]=x=Ce(Ce({},x),{},{tickCoord:x.coordinate});var S=ga(e,x.tickCoord,m,c,s);S&&(c=x.tickCoord+e*(m()/2+i),o[w]=Ce(Ce({},x),{},{isShow:!0}))},p=0;p<v;p++)y(p);return o}function Ss(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,c=e.interval,s=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(z(c)||ii.isSsr)return oF(i,typeof c=="number"&&z(c)?c:0);var h=[],d=u==="top"||u==="bottom"?"width":"height",v=f&&d==="width"?pn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=function(x,O){var m=Z(s)?s(x.value,O):x.value;return d==="width"?iF(pn(m,{fontSize:t,letterSpacing:r}),v,l):pn(m,{fontSize:t,letterSpacing:r})[d]},p=i.length>=2?Qe(i[1].coordinate-i[0].coordinate):1,b=aF(a,p,d);return c==="equidistantPreserveStart"?uF(p,b,y,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=hF(p,b,y,i,o,c==="preserveStartEnd"):h=fF(p,b,y,i,o),h.filter(function(w){return w.isShow}))}var dF=["viewBox"],pF=["viewBox"],vF=["ticks"];function Nr(e){"@babel/helpers - typeof";return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nr(e)}function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hr.apply(this,arguments)}function ud(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ud(Object(r),!0).forEach(function(n){_s(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ud(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uo(e,t){if(e==null)return{};var r=yF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ey(n.key),n)}}function gF(e,t,r){return t&&cd(e.prototype,t),r&&cd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bF(e,t,r){return t=ba(t),xF(e,Ty()?Reflect.construct(t,r||[],ba(e).constructor):t.apply(e,r))}function xF(e,t){if(t&&(Nr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wF(e)}function wF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ty(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ty=function(){return!!e})()}function ba(e){return ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ba(e)}function OF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ac(e,t)}function ac(e,t){return ac=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ac(e,t)}function _s(e,t,r){return t=Ey(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ey(e){var t=SF(e,"string");return Nr(t)=="symbol"?t:t+""}function SF(e,t){if(Nr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yr=function(e){function t(r){var n;return mF(this,t),n=bF(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return OF(t,e),gF(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Uo(n,dF),u=this.props,c=u.viewBox,s=Uo(u,pF);return!pr(a,c)||!pr(o,s)||!pr(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,h=i.tickMargin,d,v,y,p,b,w,x=l?-1:1,O=n.tickSize||f,m=z(n.tickCoord)?n.tickCoord:n.coordinate;switch(s){case"top":d=v=n.coordinate,p=o+ +!l*c,y=p-x*O,w=y-x*h,b=m;break;case"left":y=p=n.coordinate,v=a+ +!l*u,d=v-x*O,b=d-x*h,w=m;break;case"right":y=p=n.coordinate,v=a+ +l*u,d=v+x*O,b=d+x*h,w=m;break;default:d=v=n.coordinate,p=o+ +l*c,y=p+x*O,w=y+x*h,b=m;break}return{line:{x1:d,y1:y,x2:v,y2:p},tick:{x:b,y:w}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.orientation,s=n.mirror,f=n.axisLine,l=Se(Se(Se({},te(this.props,!1)),te(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!s||c==="bottom"&&s);l=Se(Se({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var d=+(c==="left"&&!s||c==="right"&&s);l=Se(Se({},l),{},{x1:i+d*o,y1:a,x2:i+d*o,y2:a+u})}return A.createElement("line",hr({},l,{className:re("recharts-cartesian-axis-line",Ge(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,h=u.unit,d=Ss(Se(Se({},this.props),{},{ticks:n}),i,a),v=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),p=te(this.props,!1),b=te(f,!1),w=Se(Se({},p),{},{fill:"none"},te(c,!1)),x=d.map(function(O,m){var g=o.getTickLineCoord(O),S=g.line,_=g.tick,P=Se(Se(Se(Se({textAnchor:v,verticalAnchor:y},p),{},{stroke:"none",fill:s},b),_),{},{index:m,payload:O,visibleTicksCount:d.length,tickFormatter:l});return A.createElement(je,hr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},$i(o.props,O,m)),c&&A.createElement("line",hr({},w,S,{className:re("recharts-cartesian-axis-tick-line",Ge(c,"className"))})),f&&t.renderTickItem(f,P,"".concat(Z(l)?l(O.value,m):O.value).concat(h||"")))});return A.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,h=l.ticks,d=Uo(l,vF),v=h;return Z(c)&&(v=h&&h.length>0?c(this.props):c(d)),o<=0||u<=0||!v||!v.length?null:A.createElement(je,{className:re("recharts-cartesian-axis",s),ref:function(p){n.layerReference=p}},a&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Ie.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=re(i.className,"recharts-cartesian-axis-tick-value");return A.isValidElement(n)?o=A.cloneElement(n,Se(Se({},i),{},{className:u})):Z(n)?o=n(Se(Se({},i),{},{className:u})):o=A.createElement(zi,hr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(k.Component);_s(Yr,"displayName","CartesianAxis");_s(Yr,"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 _F=["x1","y1","x2","y2","key"],PF=["offset"];function tr(e){"@babel/helpers - typeof";return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tr(e)}function sd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sd(Object(r),!0).forEach(function(n){AF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AF(e,t,r){return t=$F(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $F(e){var t=jF(e,"string");return tr(t)=="symbol"?t:t+""}function jF(e,t){if(tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kt(){return Kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kt.apply(this,arguments)}function ld(e,t){if(e==null)return{};var r=TF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var EF=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,c=t.ry;return A.createElement("rect",{x:i,y:a,ry:c,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function My(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(Z(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,c=ld(t,_F),s=te(c,!1);s.offset;var f=ld(s,PF);r=A.createElement("line",Kt({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function MF(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=Ne(Ne({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return My(i,s)});return A.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function CF(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=Ne(Ne({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return My(i,s)});return A.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function IF(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,c=e.horizontal,s=c===void 0?!0:c;if(!s||!t||!t.length)return null;var f=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,d){return h-d});i!==f[0]&&f.unshift(0);var l=f.map(function(h,d){var v=!f[d+1],y=v?i+o-h:f[d+1]-h;if(y<=0)return null;var p=d%t.length;return A.createElement("rect",{key:"react-".concat(d),y:h,x:n,height:y,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function NF(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,c=e.height,s=e.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(h){return Math.round(h+a-a)}).sort(function(h,d){return h-d});a!==f[0]&&f.unshift(0);var l=f.map(function(h,d){var v=!f[d+1],y=v?a+u-h:f[d+1]-h;if(y<=0)return null;var p=d%n.length;return A.createElement("rect",{key:"react-".concat(d),x:h,y:o,width:y,height:c,stroke:"none",fill:n[p],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var DF=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return Fv(Ss(Ne(Ne(Ne({},Yr.defaultProps),n),{},{ticks:vt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},kF=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return Fv(Ss(Ne(Ne(Ne({},Yr.defaultProps),n),{},{ticks:vt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},lr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function oc(e){var t,r,n,i,a,o,u=xs(),c=ws(),s=SB(),f=Ne(Ne({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:lr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:lr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:lr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:lr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:lr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:lr.verticalFill,x:z(e.x)?e.x:s.left,y:z(e.y)?e.y:s.top,width:z(e.width)?e.width:s.width,height:z(e.height)?e.height:s.height}),l=f.x,h=f.y,d=f.width,v=f.height,y=f.syncWithTicks,p=f.horizontalValues,b=f.verticalValues,w=xB(),x=wB();if(!z(d)||d<=0||!z(v)||v<=0||!z(l)||l!==+l||!z(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||DF,m=f.horizontalCoordinatesGenerator||kF,g=f.horizontalPoints,S=f.verticalPoints;if((!g||!g.length)&&Z(m)){var _=p&&p.length,P=m({yAxis:x?Ne(Ne({},x),{},{ticks:_?p:x.ticks}):void 0,width:u,height:c,offset:s},_?!0:y);mt(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(tr(P),"]")),Array.isArray(P)&&(g=P)}if((!S||!S.length)&&Z(O)){var N=b&&b.length,j=O({xAxis:w?Ne(Ne({},w),{},{ticks:N?b:w.ticks}):void 0,width:u,height:c,offset:s},N?!0:y);mt(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(tr(j),"]")),Array.isArray(j)&&(S=j)}return A.createElement("g",{className:"recharts-cartesian-grid"},A.createElement(EF,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),A.createElement(MF,Kt({},f,{offset:s,horizontalPoints:g,xAxis:w,yAxis:x})),A.createElement(CF,Kt({},f,{offset:s,verticalPoints:S,xAxis:w,yAxis:x})),A.createElement(IF,Kt({},f,{horizontalPoints:g})),A.createElement(NF,Kt({},f,{verticalPoints:S})))}oc.displayName="CartesianGrid";function Dr(e){"@babel/helpers - typeof";return Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(e)}function LF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ny(n.key),n)}}function BF(e,t,r){return t&&RF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FF(e,t,r){return t=xa(t),zF(e,Cy()?Reflect.construct(t,r||[],xa(e).constructor):t.apply(e,r))}function zF(e,t){if(t&&(Dr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UF(e)}function UF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cy=function(){return!!e})()}function xa(e){return xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xa(e)}function WF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uc(e,t)}function uc(e,t){return uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uc(e,t)}function Iy(e,t,r){return t=Ny(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ny(e){var t=qF(e,"string");return Dr(t)=="symbol"?t:t+""}function qF(e,t){if(Dr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function cc(){return cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cc.apply(this,arguments)}function HF(e){var t=e.xAxisId,r=xs(),n=ws(),i=xy(t);return i==null?null:k.createElement(Yr,cc({},i,{className:re("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return vt(o,!0)}}))}var Zn=function(e){function t(){return LF(this,t),FF(this,t,arguments)}return WF(t,e),BF(t,[{key:"render",value:function(){return k.createElement(HF,this.props)}}])}(k.Component);Iy(Zn,"displayName","XAxis");Iy(Zn,"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 kr(e){"@babel/helpers - typeof";return kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kr(e)}function GF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ly(n.key),n)}}function VF(e,t,r){return t&&KF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XF(e,t,r){return t=wa(t),YF(e,Dy()?Reflect.construct(t,r||[],wa(e).constructor):t.apply(e,r))}function YF(e,t){if(t&&(kr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZF(e)}function ZF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dy=function(){return!!e})()}function wa(e){return wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wa(e)}function JF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sc(e,t)}function sc(e,t){return sc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sc(e,t)}function ky(e,t,r){return t=Ly(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ly(e){var t=QF(e,"string");return kr(t)=="symbol"?t:t+""}function QF(e,t){if(kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function lc(){return lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lc.apply(this,arguments)}var e3=function(t){var r=t.yAxisId,n=xs(),i=ws(),a=wy(r);return a==null?null:k.createElement(Yr,lc({},a,{className:re("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return vt(u,!0)}}))},Jn=function(e){function t(){return GF(this,t),XF(this,t,arguments)}return JF(t,e),VF(t,[{key:"render",value:function(){return k.createElement(e3,this.props)}}])}(k.Component);ky(Jn,"displayName","YAxis");ky(Jn,"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 fd(e){return i3(e)||n3(e)||r3(e)||t3()}function t3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
66In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r3(e,t){if(e){if(typeof e=="string")return fc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fc(e,t)}}function n3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i3(e){if(Array.isArray(e))return fc(e)}function fc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var hc=function(t,r,n,i,a){var o=et(t,oo),u=et(t,co),c=[].concat(fd(o),fd(u)),s=et(t,lo),f="".concat(i,"Id"),l=i[0],h=r;if(c.length&&(h=c.reduce(function(y,p){if(p.props[f]===n&&ut(p.props,"extendDomain")&&z(p.props[l])){var b=p.props[l];return[Math.min(y[0],b),Math.max(y[1],b)]}return y},h)),s.length){var d="".concat(l,"1"),v="".concat(l,"2");h=s.reduce(function(y,p){if(p.props[f]===n&&ut(p.props,"extendDomain")&&z(p.props[d])&&z(p.props[v])){var b=p.props[d],w=p.props[v];return[Math.min(y[0],b,w),Math.max(y[1],b,w)]}return y},h)}return a&&a.length&&(h=a.reduce(function(y,p){return z(p)?[Math.min(y[0],p),Math.max(y[1],p)]:y},h)),h},Ry={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,s,f){this.fn=c,this.context=s,this.once=f||!1}function a(c,s,f,l,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var d=new i(f,l||c,h),v=r?r+s:s;return c._events[v]?c._events[v].fn?c._events[v]=[c._events[v],d]:c._events[v].push(d):(c._events[v]=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)t.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 h=0,d=l.length,v=new Array(d);h<d;h++)v[h]=l[h].fn;return v},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,h,d,v){var y=r?r+s:s;if(!this._events[y])return!1;var p=this._events[y],b=arguments.length,w,x;if(p.fn){switch(p.once&&this.removeListener(s,p.fn,void 0,!0),b){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,f),!0;case 3:return p.fn.call(p.context,f,l),!0;case 4:return p.fn.call(p.context,f,l,h),!0;case 5:return p.fn.call(p.context,f,l,h,d),!0;case 6:return p.fn.call(p.context,f,l,h,d,v),!0}for(x=1,w=new Array(b-1);x<b;x++)w[x-1]=arguments[x];p.fn.apply(p.context,w)}else{var O=p.length,m;for(x=0;x<O;x++)switch(p[x].once&&this.removeListener(s,p[x].fn,void 0,!0),b){case 1:p[x].fn.call(p[x].context);break;case 2:p[x].fn.call(p[x].context,f);break;case 3:p[x].fn.call(p[x].context,f,l);break;case 4:p[x].fn.call(p[x].context,f,l,h);break;default:if(!w)for(m=1,w=new Array(b-1);m<b;m++)w[m-1]=arguments[m];p[x].fn.apply(p[x].context,w)}}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,h){var d=r?r+s:s;if(!this._events[d])return this;if(!f)return o(this,d),this;var v=this._events[d];if(v.fn)v.fn===f&&(!h||v.once)&&(!l||v.context===l)&&o(this,d);else{for(var y=0,p=[],b=v.length;y<b;y++)(v[y].fn!==f||h&&!v[y].once||l&&v[y].context!==l)&&p.push(v[y]);p.length?this._events[d]=p.length===1?p[0]:p: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,e.exports=u})(Ry);var a3=Ry.exports;const o3=fe(a3);var Wo=new o3,qo="recharts.syncMouseEvents";function Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}function u3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,By(n.key),n)}}function s3(e,t,r){return t&&c3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ho(e,t,r){return t=By(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function By(e){var t=l3(e,"string");return Qn(t)=="symbol"?t:t+""}function l3(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var f3=function(){function e(){u3(this,e),Ho(this,"activeIndex",0),Ho(this,"coordinateList",[]),Ho(this,"layout","horizontal")}return s3(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,c=r.layout,s=c===void 0?null:c,f=r.offset,l=f===void 0?null:f,h=r.mouseHandlerCallback,d=h===void 0?null:h;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,h=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:h})}}}])}();function h3(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&z(n)&&z(i))return!0}return!1}function d3(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function Fy(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Me(t,r,n,i),u=Me(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function p3(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,c=t.cy,s=t.innerRadius,f=t.outerRadius,l=t.angle,h=Me(u,c,s,l),d=Me(u,c,f,l);n=h.x,i=h.y,a=d.x,o=d.y}else return Fy(t);return[{x:n,y:i},{x:a,y:o}]}function ei(e){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(e)}function hd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Si(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hd(Object(r),!0).forEach(function(n){v3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function v3(e,t,r){return t=y3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y3(e){var t=m3(e,"string");return ei(t)=="symbol"?t:t+""}function m3(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function g3(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,c=e.offset,s=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,h=e.chartName,d=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!d||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var v,y=sh;if(h==="ScatterChart")v=o,y=Mk;else if(h==="BarChart")v=d3(l,o,c,f),y=ys;else if(l==="radial"){var p=Fy(o),b=p.cx,w=p.cy,x=p.radius,O=p.startAngle,m=p.endAngle;v={cx:b,cy:w,startAngle:O,endAngle:m,innerRadius:x,outerRadius:x},y=Hv}else v={points:p3(l,o,c)},y=sh;var g=Si(Si(Si(Si({stroke:"#ccc",pointerEvents:"none"},c),v),te(d,!1)),{},{payload:u,payloadIndex:s,className:re("recharts-tooltip-cursor",d.className)});return k.isValidElement(d)?k.cloneElement(d,g):k.createElement(y,g)}var b3=["item"],x3=["children","className","width","height","style","compact","title","desc"];function Lr(e){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lr(e)}function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dr.apply(this,arguments)}function dd(e,t){return S3(e)||O3(e,t)||Uy(e,t)||w3()}function w3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
67In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);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 S3(e){if(Array.isArray(e))return e}function pd(e,t){if(e==null)return{};var r=_3(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function P3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Wy(n.key),n)}}function $3(e,t,r){return t&&A3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function j3(e,t,r){return t=Oa(t),T3(e,zy()?Reflect.construct(t,r||[],Oa(e).constructor):t.apply(e,r))}function T3(e,t){if(t&&(Lr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E3(e)}function E3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zy=function(){return!!e})()}function Oa(e){return Oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oa(e)}function M3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dc(e,t)}function dc(e,t){return dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dc(e,t)}function Rr(e){return N3(e)||I3(e)||Uy(e)||C3()}function C3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
68In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uy(e,t){if(e){if(typeof e=="string")return pc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pc(e,t)}}function I3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function N3(e){if(Array.isArray(e))return pc(e)}function pc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vd(Object(r),!0).forEach(function(n){V(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V(e,t,r){return t=Wy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wy(e){var t=D3(e,"string");return Lr(t)=="symbol"?t:t+""}function D3(e,t){if(Lr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var k3={xAxis:["bottom","top"],yAxis:["left","right"]},L3={width:"100%",height:"100%"},qy={x:0,y:0};function _i(e){return e}var R3=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},B3=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return M(M(M({},i),Me(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return M(M(M({},i),Me(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return qy},fo=function(t,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(Rr(u),Rr(s)):u},[]);return o.length>0?o:t&&t.length&&z(i)&&z(a)?t.slice(i,a+1):[]};function Hy(e){return e==="number"?[0,"auto"]:void 0}var vc=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=fo(r,t);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&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var d=l===void 0?u:l;h=Ko(d,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Rr(c),[Uv(s,h)]):c},[])},yd=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=R3(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=d2(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,h=vc(t,r,f,l),d=B3(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:d}}return null},F3=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,d=Bv(f,a);return n.reduce(function(v,y){var p,b=y.type.defaultProps!==void 0?M(M({},y.type.defaultProps),y.props):y.props,w=b.type,x=b.dataKey,O=b.allowDataOverflow,m=b.allowDuplicatedCategory,g=b.scale,S=b.ticks,_=b.includeHidden,P=b[o];if(v[P])return v;var N=fo(t.data,{graphicalItems:i.filter(function(W){var K,ce=o in W.props?W.props[o]:(K=W.type.defaultProps)===null||K===void 0?void 0:K[o];return ce===P}),dataStartIndex:c,dataEndIndex:s}),j=N.length,T,C,L;h3(b.domain,O,w)&&(T=Nu(b.domain,null,O),d&&(w==="number"||g!=="auto")&&(L=yn(N,x,"category")));var D=Hy(w);if(!T||T.length===0){var E,I=(E=b.domain)!==null&&E!==void 0?E:D;if(x){if(T=yn(N,x,w),w==="category"&&d){var R=ex(T);m&&R?(C=T,T=la(0,j)):m||(T=Yf(I,T,y).reduce(function(W,K){return W.indexOf(K)>=0?W:[].concat(Rr(W),[K])},[]))}else if(w==="category")m?T=T.filter(function(W){return W!==""&&!ne(W)}):T=Yf(I,T,y).reduce(function(W,K){return W.indexOf(K)>=0||K===""||ne(K)?W:[].concat(Rr(W),[K])},[]);else if(w==="number"){var F=g2(N,i.filter(function(W){var K,ce,me=o in W.props?W.props[o]:(K=W.type.defaultProps)===null||K===void 0?void 0:K[o],J="hide"in W.props?W.props.hide:(ce=W.type.defaultProps)===null||ce===void 0?void 0:ce.hide;return me===P&&(_||!J)}),x,a,f);F&&(T=F)}d&&(w==="number"||g!=="auto")&&(L=yn(N,x,"category"))}else d?T=la(0,j):u&&u[P]&&u[P].hasStack&&w==="number"?T=h==="expand"?[0,1]:zv(u[P].stackGroups,c,s):T=Rv(N,i.filter(function(W){var K=o in W.props?W.props[o]:W.type.defaultProps[o],ce="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return K===P&&(_||!ce)}),w,f,!0);if(w==="number")T=hc(l,T,P,a,S),I&&(T=Nu(I,T,O));else if(w==="category"&&I){var H=I,G=T.every(function(W){return H.indexOf(W)>=0});G&&(T=H)}}return M(M({},v),{},V({},P,M(M({},b),{},{axisType:a,domain:T,categoricalDomain:L,duplicateDomain:C,originalDomain:(p=b.domain)!==null&&p!==void 0?p:D,isCategorical:d,layout:f})))},{})},z3=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=fo(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),d=h.length,v=Bv(f,a),y=-1;return n.reduce(function(p,b){var w=b.type.defaultProps!==void 0?M(M({},b.type.defaultProps),b.props):b.props,x=w[o],O=Hy("number");if(!p[x]){y++;var m;return v?m=la(0,d):u&&u[x]&&u[x].hasStack?(m=zv(u[x].stackGroups,c,s),m=hc(l,m,x,a)):(m=Nu(O,Rv(h,n.filter(function(g){var S,_,P=o in g.props?g.props[o]:(S=g.type.defaultProps)===null||S===void 0?void 0:S[o],N="hide"in g.props?g.props.hide:(_=g.type.defaultProps)===null||_===void 0?void 0:_.hide;return P===x&&!N}),"number",f),i.defaultProps.allowDataOverflow),m=hc(l,m,x,a)),M(M({},p),{},V({},x,M(M({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ge(k3,"".concat(a,".").concat(y%2),null),domain:m,originalDomain:O,isCategorical:v,layout:f})))}return p},{})},U3=function(t,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=t.children,l="".concat(i,"Id"),h=et(f,a),d={};return h&&h.length?d=F3(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(d=z3(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),d},W3=function(t){var r=jt(t),n=vt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Uc(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ta(r,n)}},md=function(t){var r=t.children,n=t.defaultShowTooltip,i=Fe(r,Tr),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},q3=function(t){return!t||!t.length?!1:t.some(function(r){var n=yt(r&&r.type);return n&&n.indexOf("Bar")>=0})},gd=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},H3=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,c=u===void 0?{}:u,s=n.width,f=n.height,l=n.children,h=n.margin||{},d=Fe(l,Tr),v=Fe(l,vr),y=Object.keys(c).reduce(function(m,g){var S=c[g],_=S.orientation;return!S.mirror&&!S.hide?M(M({},m),{},V({},_,m[_]+S.width)):m},{left:h.left||0,right:h.right||0}),p=Object.keys(o).reduce(function(m,g){var S=o[g],_=S.orientation;return!S.mirror&&!S.hide?M(M({},m),{},V({},_,Ge(m,"".concat(_))+S.height)):m},{top:h.top||0,bottom:h.bottom||0}),b=M(M({},p),y),w=b.bottom;d&&(b.bottom+=d.props.height||Tr.defaultProps.height),v&&r&&(b=y2(b,i,n,r));var x=s-b.left-b.right,O=f-b.top-b.bottom;return M(M({brushBottom:w},b),{},{width:Math.max(x,0),height:Math.max(O,0)})},G3=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},K3=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,c=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,h=function(b,w){var x=w.graphicalItems,O=w.stackGroups,m=w.offset,g=w.updateId,S=w.dataStartIndex,_=w.dataEndIndex,P=b.barSize,N=b.layout,j=b.barGap,T=b.barCategoryGap,C=b.maxBarSize,L=gd(N),D=L.numericAxisName,E=L.cateAxisName,I=q3(x),R=[];return x.forEach(function(F,H){var G=fo(b.data,{graphicalItems:[F],dataStartIndex:S,dataEndIndex:_}),W=F.type.defaultProps!==void 0?M(M({},F.type.defaultProps),F.props):F.props,K=W.dataKey,ce=W.maxBarSize,me=W["".concat(D,"Id")],J=W["".concat(E,"Id")],oe={},ge=c.reduce(function(Rt,Bt){var ho=w["".concat(Bt.axisType,"Map")],Ps=W["".concat(Bt.axisType,"Id")];ho&&ho[Ps]||Bt.axisType==="zAxis"||er();var As=ho[Ps];return M(M({},Rt),{},V(V({},Bt.axisType,As),"".concat(Bt.axisType,"Ticks"),vt(As)))},oe),U=ge[E],X=ge["".concat(E,"Ticks")],Y=O&&O[me]&&O[me].hasStack&&E2(F,O[me].stackGroups),B=yt(F.type).indexOf("Bar")>=0,ve=ta(U,X),Q=[],we=I&&p2({barSize:P,stackGroups:O,totalSize:G3(ge,E)});if(B){var Oe,ke,Pt=ne(ce)?C:ce,or=(Oe=(ke=ta(U,X,!0))!==null&&ke!==void 0?ke:Pt)!==null&&Oe!==void 0?Oe:0;Q=v2({barGap:j,barCategoryGap:T,bandSize:or!==ve?or:ve,sizeList:we[J],maxBarSize:Pt}),or!==ve&&(Q=Q.map(function(Rt){return M(M({},Rt),{},{position:M(M({},Rt.position),{},{offset:Rt.position.offset-or/2})})}))}var si=F&&F.type&&F.type.getComposedData;si&&R.push({props:M(M({},si(M(M({},ge),{},{displayedData:G,props:b,dataKey:K,item:F,bandSize:ve,barPosition:Q,offset:m,stackedData:Y,layout:N,dataStartIndex:S,dataEndIndex:_}))),{},V(V(V({key:F.key||"item-".concat(H)},D,ge[D]),E,ge[E]),"animationId",g)),childIndex:hx(F,b.children),item:F})}),R},d=function(b,w){var x=b.props,O=b.dataStartIndex,m=b.dataEndIndex,g=b.updateId;if(!Ws({props:x}))return null;var S=x.children,_=x.layout,P=x.stackOffset,N=x.data,j=x.reverseStackOrder,T=gd(_),C=T.numericAxisName,L=T.cateAxisName,D=et(S,n),E=$2(N,D,"".concat(C,"Id"),"".concat(L,"Id"),P,j),I=c.reduce(function(W,K){var ce="".concat(K.axisType,"Map");return M(M({},W),{},V({},ce,U3(x,M(M({},K),{},{graphicalItems:D,stackGroups:K.axisType===C&&E,dataStartIndex:O,dataEndIndex:m}))))},{}),R=H3(M(M({},I),{},{props:x,graphicalItems:D}),w==null?void 0:w.legendBBox);Object.keys(I).forEach(function(W){I[W]=f(x,I[W],R,W.replace("Map",""),r)});var F=I["".concat(L,"Map")],H=W3(F),G=h(x,M(M({},I),{},{dataStartIndex:O,dataEndIndex:m,updateId:g,graphicalItems:D,stackGroups:E,offset:R}));return M(M({formattedGraphicalItems:G,graphicalItems:D,offset:R,stackGroups:E},H),I)},v=function(p){function b(w){var x,O,m;return P3(this,b),m=j3(this,b,[w]),V(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),V(m,"accessibilityManager",new f3),V(m,"handleLegendBBoxUpdate",function(g){if(g){var S=m.state,_=S.dataStartIndex,P=S.dataEndIndex,N=S.updateId;m.setState(M({legendBBox:g},d({props:m.props,dataStartIndex:_,dataEndIndex:P,updateId:N},M(M({},m.state),{},{legendBBox:g}))))}}),V(m,"handleReceiveSyncEvent",function(g,S,_){if(m.props.syncId===g){if(_===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(S)}}),V(m,"handleBrushChange",function(g){var S=g.startIndex,_=g.endIndex;if(S!==m.state.dataStartIndex||_!==m.state.dataEndIndex){var P=m.state.updateId;m.setState(function(){return M({dataStartIndex:S,dataEndIndex:_},d({props:m.props,dataStartIndex:S,dataEndIndex:_,updateId:P},m.state))}),m.triggerSyncEvent({dataStartIndex:S,dataEndIndex:_})}}),V(m,"handleMouseEnter",function(g){var S=m.getMouseInfo(g);if(S){var _=M(M({},S),{},{isTooltipActive:!0});m.setState(_),m.triggerSyncEvent(_);var P=m.props.onMouseEnter;Z(P)&&P(_,g)}}),V(m,"triggeredAfterMouseMove",function(g){var S=m.getMouseInfo(g),_=S?M(M({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var P=m.props.onMouseMove;Z(P)&&P(_,g)}),V(m,"handleItemMouseEnter",function(g){m.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),V(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),V(m,"handleMouseMove",function(g){g.persist(),m.throttleTriggeredAfterMouseMove(g)}),V(m,"handleMouseLeave",function(g){m.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var _=m.props.onMouseLeave;Z(_)&&_(S,g)}),V(m,"handleOuterEvent",function(g){var S=fx(g),_=Ge(m.props,"".concat(S));if(S&&Z(_)){var P,N;/.*touch.*/i.test(S)?N=m.getMouseInfo(g.changedTouches[0]):N=m.getMouseInfo(g),_((P=N)!==null&&P!==void 0?P:{},g)}}),V(m,"handleClick",function(g){var S=m.getMouseInfo(g);if(S){var _=M(M({},S),{},{isTooltipActive:!0});m.setState(_),m.triggerSyncEvent(_);var P=m.props.onClick;Z(P)&&P(_,g)}}),V(m,"handleMouseDown",function(g){var S=m.props.onMouseDown;if(Z(S)){var _=m.getMouseInfo(g);S(_,g)}}),V(m,"handleMouseUp",function(g){var S=m.props.onMouseUp;if(Z(S)){var _=m.getMouseInfo(g);S(_,g)}}),V(m,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),V(m,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseDown(g.changedTouches[0])}),V(m,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseUp(g.changedTouches[0])}),V(m,"handleDoubleClick",function(g){var S=m.props.onDoubleClick;if(Z(S)){var _=m.getMouseInfo(g);S(_,g)}}),V(m,"handleContextMenu",function(g){var S=m.props.onContextMenu;if(Z(S)){var _=m.getMouseInfo(g);S(_,g)}}),V(m,"triggerSyncEvent",function(g){m.props.syncId!==void 0&&Wo.emit(qo,m.props.syncId,g,m.eventEmitterSymbol)}),V(m,"applySyncEvent",function(g){var S=m.props,_=S.layout,P=S.syncMethod,N=m.state.updateId,j=g.dataStartIndex,T=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)m.setState(M({dataStartIndex:j,dataEndIndex:T},d({props:m.props,dataStartIndex:j,dataEndIndex:T,updateId:N},m.state)));else if(g.activeTooltipIndex!==void 0){var C=g.chartX,L=g.chartY,D=g.activeTooltipIndex,E=m.state,I=E.offset,R=E.tooltipTicks;if(!I)return;if(typeof P=="function")D=P(R,g);else if(P==="value"){D=-1;for(var F=0;F<R.length;F++)if(R[F].value===g.activeLabel){D=F;break}}var H=M(M({},I),{},{x:I.left,y:I.top}),G=Math.min(C,H.x+H.width),W=Math.min(L,H.y+H.height),K=R[D]&&R[D].value,ce=vc(m.state,m.props.data,D),me=R[D]?{x:_==="horizontal"?R[D].coordinate:G,y:_==="horizontal"?W:R[D].coordinate}:qy;m.setState(M(M({},g),{},{activeLabel:K,activeCoordinate:me,activePayload:ce,activeTooltipIndex:D}))}else m.setState(g)}),V(m,"renderCursor",function(g){var S,_=m.state,P=_.isTooltipActive,N=_.activeCoordinate,j=_.activePayload,T=_.offset,C=_.activeTooltipIndex,L=_.tooltipAxisBandSize,D=m.getTooltipEventType(),E=(S=g.props.active)!==null&&S!==void 0?S:P,I=m.props.layout,R=g.key||"_recharts-cursor";return A.createElement(g3,{key:R,activeCoordinate:N,activePayload:j,activeTooltipIndex:C,chartName:r,element:g,isActive:E,layout:I,offset:T,tooltipAxisBandSize:L,tooltipEventType:D})}),V(m,"renderPolarAxis",function(g,S,_){var P=Ge(g,"type.axisType"),N=Ge(m.state,"".concat(P,"Map")),j=g.type.defaultProps,T=j!==void 0?M(M({},j),g.props):g.props,C=N&&N[T["".concat(P,"Id")]];return k.cloneElement(g,M(M({},C),{},{className:re(P,C.className),key:g.key||"".concat(S,"-").concat(_),ticks:vt(C,!0)}))}),V(m,"renderPolarGrid",function(g){var S=g.props,_=S.radialLines,P=S.polarAngles,N=S.polarRadius,j=m.state,T=j.radiusAxisMap,C=j.angleAxisMap,L=jt(T),D=jt(C),E=D.cx,I=D.cy,R=D.innerRadius,F=D.outerRadius;return k.cloneElement(g,{polarAngles:Array.isArray(P)?P:vt(D,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray(N)?N:vt(L,!0).map(function(H){return H.coordinate}),cx:E,cy:I,innerRadius:R,outerRadius:F,key:g.key||"polar-grid",radialLines:_})}),V(m,"renderLegend",function(){var g=m.state.formattedGraphicalItems,S=m.props,_=S.children,P=S.width,N=S.height,j=m.props.margin||{},T=P-(j.left||0)-(j.right||0),C=kv({children:_,formattedGraphicalItems:g,legendWidth:T,legendContent:s});if(!C)return null;var L=C.item,D=pd(C,b3);return k.cloneElement(L,M(M({},D),{},{chartWidth:P,chartHeight:N,margin:j,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),V(m,"renderTooltip",function(){var g,S=m.props,_=S.children,P=S.accessibilityLayer,N=Fe(_,it);if(!N)return null;var j=m.state,T=j.isTooltipActive,C=j.activeCoordinate,L=j.activePayload,D=j.activeLabel,E=j.offset,I=(g=N.props.active)!==null&&g!==void 0?g:T;return k.cloneElement(N,{viewBox:M(M({},E),{},{x:E.left,y:E.top}),active:I,label:D,payload:I?L:[],coordinate:C,accessibilityLayer:P})}),V(m,"renderBrush",function(g){var S=m.props,_=S.margin,P=S.data,N=m.state,j=N.offset,T=N.dataStartIndex,C=N.dataEndIndex,L=N.updateId;return k.cloneElement(g,{key:g.key||"_recharts-brush",onChange:bi(m.handleBrushChange,g.props.onChange),data:P,x:z(g.props.x)?g.props.x:j.left,y:z(g.props.y)?g.props.y:j.top+j.height+j.brushBottom-(_.bottom||0),width:z(g.props.width)?g.props.width:j.width,startIndex:T,endIndex:C,updateId:"brush-".concat(L)})}),V(m,"renderReferenceElement",function(g,S,_){if(!g)return null;var P=m,N=P.clipPathId,j=m.state,T=j.xAxisMap,C=j.yAxisMap,L=j.offset,D=g.type.defaultProps||{},E=g.props,I=E.xAxisId,R=I===void 0?D.xAxisId:I,F=E.yAxisId,H=F===void 0?D.yAxisId:F;return k.cloneElement(g,{key:g.key||"".concat(S,"-").concat(_),xAxis:T[R],yAxis:C[H],viewBox:{x:L.left,y:L.top,width:L.width,height:L.height},clipPathId:N})}),V(m,"renderActivePoints",function(g){var S=g.item,_=g.activePoint,P=g.basePoint,N=g.childIndex,j=g.isRange,T=[],C=S.props.key,L=S.item.type.defaultProps!==void 0?M(M({},S.item.type.defaultProps),S.item.props):S.item.props,D=L.activeDot,E=L.dataKey,I=M(M({index:N,dataKey:E,cx:_.x,cy:_.y,r:4,fill:vs(S.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},te(D,!1)),Ai(D));return T.push(b.renderActiveDot(D,I,"".concat(C,"-activePoint-").concat(N))),P?T.push(b.renderActiveDot(D,M(M({},I),{},{cx:P.x,cy:P.y}),"".concat(C,"-basePoint-").concat(N))):j&&T.push(null),T}),V(m,"renderGraphicChild",function(g,S,_){var P=m.filterFormatItem(g,S,_);if(!P)return null;var N=m.getTooltipEventType(),j=m.state,T=j.isTooltipActive,C=j.tooltipAxis,L=j.activeTooltipIndex,D=j.activeLabel,E=m.props.children,I=Fe(E,it),R=P.props,F=R.points,H=R.isRange,G=R.baseLine,W=P.item.type.defaultProps!==void 0?M(M({},P.item.type.defaultProps),P.item.props):P.item.props,K=W.activeDot,ce=W.hide,me=W.activeBar,J=W.activeShape,oe=!!(!ce&&T&&I&&(K||me||J)),ge={};N!=="axis"&&I&&I.props.trigger==="click"?ge={onClick:bi(m.handleItemMouseEnter,g.props.onClick)}:N!=="axis"&&(ge={onMouseLeave:bi(m.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:bi(m.handleItemMouseEnter,g.props.onMouseEnter)});var U=k.cloneElement(g,M(M({},P.props),ge));function X(Bt){return typeof C.dataKey=="function"?C.dataKey(Bt.payload):null}if(oe)if(L>=0){var Y,B;if(C.dataKey&&!C.allowDuplicatedCategory){var ve=typeof C.dataKey=="function"?X:"payload.".concat(C.dataKey.toString());Y=Ko(F,ve,D),B=H&&G&&Ko(G,ve,D)}else Y=F==null?void 0:F[L],B=H&&G&&G[L];if(J||me){var Q=g.props.activeIndex!==void 0?g.props.activeIndex:L;return[k.cloneElement(g,M(M(M({},P.props),ge),{},{activeIndex:Q})),null,null]}if(!ne(Y))return[U].concat(Rr(m.renderActivePoints({item:P,activePoint:Y,basePoint:B,childIndex:L,isRange:H})))}else{var we,Oe=(we=m.getItemByXY(m.state.activeCoordinate))!==null&&we!==void 0?we:{graphicalItem:U},ke=Oe.graphicalItem,Pt=ke.item,or=Pt===void 0?g:Pt,si=ke.childIndex,Rt=M(M(M({},P.props),ge),{},{activeIndex:si});return[k.cloneElement(or,Rt),null,null]}return H?[U,null,null]:[U,null]}),V(m,"renderCustomized",function(g,S,_){return k.cloneElement(g,M(M({key:"recharts-customized-".concat(_)},m.props),m.state))}),V(m,"renderMap",{CartesianGrid:{handler:_i,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:_i},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:_i},YAxis:{handler:_i},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=w.id)!==null&&x!==void 0?x:Ra("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=Dp(m.triggeredAfterMouseMove,(O=w.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return M3(b,p),$3(b,[{key:"componentDidMount",value:function(){var x,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,O=x.children,m=x.data,g=x.height,S=x.layout,_=Fe(O,it);if(_){var P=_.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var N=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,j=vc(this.state,m,P,N),T=this.state.tooltipTicks[P].coordinate,C=(this.state.offset.top+g)/2,L=S==="horizontal",D=L?{x:T,y:C}:{y:T,x:C},E=this.state.formattedGraphicalItems.find(function(R){var F=R.item;return F.type.name==="Scatter"});E&&(D=M(M({},D),E.props.points[P].tooltipPosition),j=E.props.points[P].tooltipPayload);var I={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:N,activePayload:j,activeCoordinate:D};this.setState(I),this.renderCursor(_),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.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,g;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0}})}return null}},{key:"componentDidUpdate",value:function(x){Xo([Fe(x.children,it)],[Fe(this.props.children,it)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Fe(this.props.children,it);if(x&&typeof x.props.shared=="boolean"){var O=x.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),g=BT(m),S={chartX:Math.round(x.pageX-g.left),chartY:Math.round(x.pageY-g.top)},_=m.width/O.offsetWidth||1,P=this.inRange(S.chartX,S.chartY,_);if(!P)return null;var N=this.state,j=N.xAxisMap,T=N.yAxisMap,C=this.getTooltipEventType(),L=yd(this.state,this.props.data,this.props.layout,P);if(C!=="axis"&&j&&T){var D=jt(j).scale,E=jt(T).scale,I=D&&D.invert?D.invert(S.chartX):null,R=E&&E.invert?E.invert(S.chartY):null;return M(M({},S),{},{xValue:I,yValue:R},L)}return L?M(M({},S),L):null}},{key:"inRange",value:function(x,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,S=x/m,_=O/m;if(g==="horizontal"||g==="vertical"){var P=this.state.offset,N=S>=P.left&&S<=P.left+P.width&&_>=P.top&&_<=P.top+P.height;return N?{x:S,y:_}:null}var j=this.state,T=j.angleAxisMap,C=j.radiusAxisMap;if(T&&C){var L=jt(T);return Qf({x:S,y:_},L)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,O=this.getTooltipEventType(),m=Fe(x,it),g={};m&&O==="axis"&&(m.props.trigger==="click"?g={onClick:this.handleClick}:g={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var S=Ai(this.props,this.handleOuterEvent);return M(M({},S),g)}},{key:"addListener",value:function(){Wo.on(qo,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Wo.removeListener(qo,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,O,m){for(var g=this.state.formattedGraphicalItems,S=0,_=g.length;S<_;S++){var P=g[S];if(P.item===x||P.props.key===x.key||O===yt(P.item.type)&&m===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,O=this.state.offset,m=O.left,g=O.top,S=O.height,_=O.width;return A.createElement("defs",null,A.createElement("clipPath",{id:x},A.createElement("rect",{x:m,y:g,height:S,width:_})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(O,m){var g=dd(m,2),S=g[0],_=g[1];return M(M({},O),{},V({},S,_.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(O,m){var g=dd(m,2),S=g[0],_=g[1];return M(M({},O),{},V({},S,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[x])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(x){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[x])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(x){var O=this.state,m=O.formattedGraphicalItems,g=O.activeItem;if(m&&m.length)for(var S=0,_=m.length;S<_;S++){var P=m[S],N=P.props,j=P.item,T=j.type.defaultProps!==void 0?M(M({},j.type.defaultProps),j.props):j.props,C=yt(j.type);if(C==="Bar"){var L=(N.data||[]).find(function(R){return wk(x,R)});if(L)return{graphicalItem:P,payload:L}}else if(C==="RadialBar"){var D=(N.data||[]).find(function(R){return Qf(x,R)});if(D)return{graphicalItem:P,payload:D}}else if(no(P,g)||io(P,g)||Gn(P,g)){var E=_L({graphicalItem:P,activeTooltipItem:g,itemData:T.data}),I=T.activeIndex===void 0?E:T.activeIndex;return{graphicalItem:M(M({},P),{},{childIndex:I}),payload:Gn(P,g)?T.data[E]:P.props.data[E]}}}return null}},{key:"render",value:function(){var x=this;if(!Ws(this))return null;var O=this.props,m=O.children,g=O.className,S=O.width,_=O.height,P=O.style,N=O.compact,j=O.title,T=O.desc,C=pd(O,x3),L=te(C,!1);if(N)return A.createElement(Jh,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement(Zo,dr({},L,{width:S,height:_,title:j,desc:T}),this.renderClipPath(),Hs(m,this.renderMap)));if(this.props.accessibilityLayer){var D,E;L.tabIndex=(D=this.props.tabIndex)!==null&&D!==void 0?D:0,L.role=(E=this.props.role)!==null&&E!==void 0?E:"application",L.onKeyDown=function(R){x.accessibilityManager.keyboardEvent(R)},L.onFocus=function(){x.accessibilityManager.focus()}}var I=this.parseEventsOfWrapper();return A.createElement(Jh,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement("div",dr({className:re("recharts-wrapper",g),style:M({position:"relative",cursor:"default",width:S,height:_},P)},I,{ref:function(F){x.container=F}}),A.createElement(Zo,dr({},L,{width:S,height:_,title:j,desc:T,style:L3}),this.renderClipPath(),Hs(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(k.Component);V(v,"displayName",r),V(v,"defaultProps",M({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),V(v,"getDerivedStateFromProps",function(p,b){var w=p.dataKey,x=p.data,O=p.children,m=p.width,g=p.height,S=p.layout,_=p.stackOffset,P=p.margin,N=b.dataStartIndex,j=b.dataEndIndex;if(b.updateId===void 0){var T=md(p);return M(M(M({},T),{},{updateId:0},d(M(M({props:p},T),{},{updateId:0}),b)),{},{prevDataKey:w,prevData:x,prevWidth:m,prevHeight:g,prevLayout:S,prevStackOffset:_,prevMargin:P,prevChildren:O})}if(w!==b.prevDataKey||x!==b.prevData||m!==b.prevWidth||g!==b.prevHeight||S!==b.prevLayout||_!==b.prevStackOffset||!pr(P,b.prevMargin)){var C=md(p),L={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},D=M(M({},yd(b,x,S)),{},{updateId:b.updateId+1}),E=M(M(M({},C),L),D);return M(M(M({},E),d(M({props:p},E),b)),{},{prevDataKey:w,prevData:x,prevWidth:m,prevHeight:g,prevLayout:S,prevStackOffset:_,prevMargin:P,prevChildren:O})}if(!Xo(O,b.prevChildren)){var I,R,F,H,G=Fe(O,Tr),W=G&&(I=(R=G.props)===null||R===void 0?void 0:R.startIndex)!==null&&I!==void 0?I:N,K=G&&(F=(H=G.props)===null||H===void 0?void 0:H.endIndex)!==null&&F!==void 0?F:j,ce=W!==N||K!==j,me=!ne(x),J=me&&!ce?b.updateId:b.updateId+1;return M(M({updateId:J},d(M(M({props:p},b),{},{updateId:J,dataStartIndex:W,dataEndIndex:K}),b)),{},{prevChildren:O,dataStartIndex:W,dataEndIndex:K})}return null}),V(v,"renderActiveDot",function(p,b,w){var x;return k.isValidElement(p)?x=k.cloneElement(p,b):Z(p)?x=p(b):x=A.createElement(ry,b),A.createElement(je,{className:"recharts-active-dot",key:w},x)});var y=k.forwardRef(function(b,w){return A.createElement(v,dr({},b,{ref:w}))});return y.displayName=v.displayName,y},bd=K3({chartName:"BarChart",GraphicalChild:Ct,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Zn},{axisType:"yAxis",AxisComp:Jn}],formatAxisMap:XR});const V3={light:"",dark:".dark"},Gy=k.createContext(null);function Ky(){const e=k.useContext(Gy);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const yc=k.forwardRef(({id:e,className:t,children:r,config:n,...i},a)=>{const o=k.useId(),u=`chart-${e||o.replace(/:/g,"")}`;return $.jsx(Gy.Provider,{value:{config:n},children:$.jsxs("div",{"data-chart":u,ref:a,className:ht("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...i,children:[$.jsx(X3,{id:u,config:n}),$.jsx(CT,{children:r})]})})});yc.displayName="Chart";const X3=({id:e,config:t})=>{const r=Object.entries(t).filter(([n,i])=>i.theme||i.color);return r.length?$.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(V3).map(([n,i])=>`
69${i} [data-chart=${e}] {
70${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(`
71`)}
72}
73`).join(`
74`)}}):null},xd=it,mc=k.forwardRef(({active:e,payload:t,className:r,indicator:n="dot",hideLabel:i=!1,hideIndicator:a=!1,label:o,labelFormatter:u,labelClassName:c,formatter:s,color:f,nameKey:l,labelKey:h},d)=>{const{config:v}=Ky(),y=k.useMemo(()=>{var m;if(i||!(t!=null&&t.length))return null;const[b]=t,w=`${h||b.dataKey||b.name||"value"}
74`,x=gc(v,b,w),O=!h&&typeof o=="string"?((m=v[o])==null?void 0:m.label)||o:x==null?void 0:x.label;return u?$.jsx("div",{className:ht("font-medium",c),children:u(O,t)}):O?$.jsx("div",{className:ht("font-medium",c),children:O}):null},[o,u,t,i,c,v,h]);if(!e||!(t!=null&&t.length))return null;const p=t.length===1&&n!=="dot";return $.jsxs("div",{ref:d,className:ht("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:[p?null:y,$.jsx("div",{className:"grid gap-1.5",children:t.map((b,w)=>{const x=`${l||b.name||b.dataKey||"value"}`,O=gc(v,b,x),m=f||b.payload.fill||b.color;return $.jsx("div",{className:ht("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&&(b==null?void 0:b.value)!==void 0&&b.name?s(b.value,b.name,b,w,b.payload):$.jsxs($.Fragment,{children:[O!=null&&O.icon?$.jsx(O.icon,{}):!a&&$.jsx("div",{className:ht("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":p&&n==="dashed"}),style:{"--color-bg":m,"--color-border":m}}),$.jsxs("div",{className:ht("flex flex-1 justify-between leading-none",p?"items-end":"items-center"),children:[$.jsxs("div",{className:"grid gap-1.5",children:[p?y:null,$.jsx("span",{className:"text-muted-foreground",children:(O==null?void 0:O.label)||b.name})]}),b.value&&$.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:b.value.toLocaleString()})]})]})},b.dataKey)})})]})});mc.displayName="ChartTooltip";const Y3=k.forwardRef(({className:e,hideIcon:t=!1,payload:r,verticalAlign:n="bottom",nameKey:i},a)=>{const{config:o}=Ky();return r!=null&&r.length?$.jsx("div",{ref:a,className:ht("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",e),children:r.map(u=>{const c=`${i||u.dataKey||"value"}`,s=gc(o,u,c);return $.jsxs("div",{className:ht("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[s!=null&&s.icon&&!t?$.jsx(s.icon,{}):$.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:u.color}}),s==null?void 0:s.label]},u.value)})}):null});Y3.displayName="ChartLegend";function gc(e,t,r){if(typeof t!="object"||t===null)return;const n="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let i=r;return r in t&&typeof t[r]=="string"?i=t[r]:n&&r in n&&typeof n[r]=="string"&&(i=n[r]),i in e?e[i]:e[r]}const pz=()=>{const{user:e,loading:t,sessionToken:r,companies:n,switchCompany:i,isDemoMode:a}=em(),{demoData:o,demoDataLoading:u}=tm(),[c,s]=k.useState(!1),[f,l]=k.useState(""),[h,d]=k.useState(null),[v,y]=k.useState(new Date().getFullYear()),[p,b]=k.useState(new Date().getMonth()),[w,x]=k.useState(!1),[O,m]=k.useState(!1),g=k.useMemo(()=>{if(!a||!o)return null;const E=v,I=p,R=new Date(E,I+1,0).getDate(),F=o.timeEntries.filter(J=>{const oe=new Date(J.date);return oe.getFullYear()===E&&oe.getMonth()===I}),H=new Map;for(let J=1;J<=R;J++)H.set(J,0);F.forEach(J=>{const oe=new Date(J.date).getDate(),ge=J.duration_minutes/60;H.set(oe,(H.get(oe)||0)+ge)});const G=Array.from(H.entries()).map(([J,oe])=>({day:J,date:new Date(E,I,J).toISOString().split("T")[0],hours:Math.round(oe*100)/100})),W=F.reduce((J,oe)=>J+oe.duration_minutes/60,0),K=new Map;F.forEach(J=>{const oe=o.projects.find(U=>U.id===J.project_id),ge=o.customers.find(U=>U.id===(oe==null?void 0:oe.customer_id));if(oe){const U=K.get(oe.id);U?U.hours+=J.duration_minutes/60:K.set(oe.id,{projectName:oe.name,customerName:(ge==null?void 0:ge.name)||"Unbekannt",hours:J.duration_minutes/60})}});const ce=Array.from(K.entries()).map(([J,oe])=>({projectId:J,...oe,hours:Math.round(oe.hours*100)/100}));return{currentMonth:{name:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"][I],year:E,month:I,daysInMonth:R},dailyHours:G,totalMonthHours:Math.round(W*100)/100,contractedHoursPerDay:8,isManagerOrAdmin:!0,projectStats:ce}},[a,o,v,p]),S=async(E,I,R)=>
74{if(a||!(e!=null&&e.companyId))return;x(!0);const{data:F,error:H}=await Pi.functions.invoke("get-dashboard-data",{body:{sessionToken:E,companyId:e.companyId,year:I,month:R}});H?(console.error("Dashboard data error:",H),nt.error("Fehler beim Laden der Dashboard-Daten")):F!=null&&F.success&&d(F.data),x(!1)};k.useEffect(()=>{if(a){!u&&o&&m(!0);return}if(t||!r||O)return;(async()=>{var H,G;const I=e==null?void 0:e.companyId,[R,F]=await Promise.all([Pi.functions.invoke("get-company",{body:{sessionToken:r,companyId:I}}),Pi.functions.invoke("get-dashboard-data",{body:{sessionToken:r,companyId:I,year:v,month:p}})]);(H=R.data)!=null&&H.success&&!R.data.company.onboarding_completed&&(l(R.data.company.email),s(!0)),F.error?(console.error("Dashboard data error:",F.error),nt.error("Fehler beim Laden der Dashboard-Daten")):(G=F.data)!=null&&G.success&&d(F.data.data),m(!0)})()},[t,r,O,v,p,a,u,o]);const _=async E=>{if(!r)return;let I=p,R=v;E==="prev"?p===0?(I=11,R=v-1):I=p-1:p===11?(I=0,R=v+1):I=p+1,b(I),y(R),await S(r,R,I)},P=()=>{s(!1),nt.success("Willkommen bei TimeZilla!")},N=E=>{const I=Math.floor(E),R=Math.round((E-I)*60);return`${I}:${R.toString().padStart(2,"0")}`},j=["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],T=v===new Date().getFullYear()&&p===new Date().getMonth(),C=a?g:h;if(t||!O||a&&u)return $.jsx("div",{className:"min-h-screen bg-secondary/30 flex items-center justify-center",children:$.jsx("p",{className:"text-muted-foreground",children:"Lädt..."})});const L={hours:{label:"Stunden",color:"hsl(var(--primary))"}},D={hours:{label:"Stunden",color:"hsl(var(--accent))"}};return $.jsxs($.Fragment,{children:[$.jsx(rm,{title:"Dashboard",noIndex:!0}),$.jsx(wm,{open:c,companyEmail:f,onComplete:P}),$.jsxs("div",{className:"min-h-screen bg-secondary/30",children:[$.jsx(ym,{user:e,companies:n,onSwitchCompany:i}),$.jsx(mm,{}),$.jsxs("main",{className:"container mx-auto px-4 py-8",children:[$.jsxs("div",{className:"flex items-center justify-between mb-8",children:[$.jsxs("div",{children:[$.jsxs("h1",{className:"text-3xl font-bold",children:["Willkommen, ",e==null?void 0:e.firstName,"!"]}),$.jsxs("p",{className:"text-muted-foreground",children:["Ihre Rolle: ",am((e==null?void 0:e.roles)||[])]})]}),$.jsxs("div",{className:"flex items-center gap-2",children:[$.jsx(Go,{variant:"outline",size:"icon",onClick:()=>_("prev"),disabled:w,children:$.jsx(gm,{className:"h-4 w-4"})}),$.jsxs("span",{className:"text-lg font-medium min-w-[160px] text-center",children:[j[p]," ",v]}),$.jsx(Go,{variant:"outline",size:"icon",onClick:()=>_("next"),disabled:w||T,children:$.jsx(bm,{className:"h-4 w-4"})})]})]}),$.jsxs(po,{className:"mb-8",children:[$.jsxs(vo,{children:[$.jsxs("div",{className:"flex items-center gap-2",children:[$.jsx(nm,{className:"h-5 w-5 text-primary"}),$.jsx(yo,{children:"Meine Stunden"})]}),$.jsxs($s,{className:"flex items-center gap-4",children:[$.jsxs("span",{children:["Gesamt: ",C?N(C.totalMonthHours):"0:00"," Stunden"]}),$.jsxs("span",{className:"flex items-center gap-1",children:[$.jsx("span",{className:"w-3 h-0.5 bg-destructive inline-block"}),$.jsxs("span",{className:"text-xs",children:["Vertragliche Arbeitszeit: ",(C==null?void 0:C.contractedHoursPerDay)??8,"h/Tag"]})]})]})]}),$.jsx(mo,{children:w?$.jsx("div",{className:"h-[300px] flex items-center justify-center text-muted-foreground",children:"Lädt..."}):C&&C.dailyHours.length>0?$.jsx(yc,{config:L,className:"h-[300px] w-full",children:$.jsxs(bd,{data:C.dailyHours,margin:{top:10,right:10,left:0,bottom:20},children:[$.jsx(oc,{strokeDasharray:"3 3",vertical:!1}),$.jsx(Zn,{dataKey:"day",tickLine:!1,axisLine:!1,fontSize:11,tickMargin:8}),$.jsx(Jn,{tickLine:!1,axisLine:!1,fontSize:11,tickFormatter:E=>`${E}h`,width:40}),$.jsx(oo,{y:C.contractedHoursPerDay,stroke:"hsl(var(--destructive))",strokeWidth:2,strokeDasharray:"4 4"}),$.jsx(xd,{content:$.jsx(mc,{labelFormatter:(E,I)=>I&&I[0]?new Date(I[0].payload.date).toLocaleDateString("de-DE",{weekday:"short",day:"2-digit",month:"2-digit"}):E,formatter:E=>[`${N(E)} `,"Stunden"]})}),$.jsx(Ct,{dataKey:"hours",fill:"var(--color-hours)",radius:[4,4,0,0],maxBarSize:20})]})}):$.jsx("div",{className:"h-[300px] flex items-center justify-center text-muted-foreground",children:"Noch keine Buchungen in diesem Monat"})})]}),(C==null?void 0:C.isManagerOrAdmin)&&C.projectStats.length>0&&$.jsxs(po,{children:[$.jsxs(vo,{children:[$.jsxs("div",{className:"flex items-center gap-2",children:[$.jsx(Ts,{className:"h-5 w-5 text-primary"}),$.jsx(yo,{children:"Meine Projekte"})]}),$.jsx($s,{children:"Gebuchte Stunden pro Projekt"})]}),$.jsx(mo,{children:$.jsx(yc,{config:D,className:"h-[300px] w-full",children:$.jsxs(bd,{data:C.projectStats,layout:"vertical",margin:{top:10,right:10,left:0,bottom:10},children:[$.jsx(oc,{strokeDasharray:"3 3",horizontal:!1}
74),$.jsx(Zn,{type:"number",tickLine:!1,axisLine:!1,fontSize:11,tickFormatter:E=>`${E}h`}),$.jsx(Jn,{type:"category",dataKey:"projectName",tickLine:!1,axisLine:!1,fontSize:11,width:150,tickFormatter:E=>E.length>20?`${E.substring(0,20)}...`:E}),$.jsx(xd,{content:$.jsx(mc,{labelFormatter:(E,I)=>{if(I&&I[0]){const R=I[0].payload;return`${R.projectName} (${R.customerName})`}return""},formatter:E=>[`${N(E)} `,"Stunden"]})}),$.jsx(Ct,{dataKey:"hours",fill:"var(--color-hours)",radius:[0,4,4,0],maxBarSize:30})]})})})]}),(C==null?void 0:C.isManagerOrAdmin)&&C.projectStats.length===0&&$.jsxs(po,{children:[$.jsx(vo,{children:$.jsxs("div",{className:"flex items-center gap-2",children:[$.jsx(Ts,{className:"h-5 w-5 text-muted-foreground"}),$.jsx(yo,{className:"text-muted-foreground",children:"Meine Projekte"})]})}),$.jsx(mo,{children:$.jsx("p",{className:"text-muted-foreground text-center py-8",children:"Ihnen sind noch keine Projekte zugewiesen."})})]})]}),$.jsx(im,{})]})]})};export{pz as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.