vendor: 9,448 bytes, line 1
1import{b3 as Xn,aZ as ai,bi as se,bK as R,aX as te,a1 as P,bs as E,aY as lt,b4 as Mw,b0 as Cw,c7 as $w,cm as Ph,bg as Iw,bu as kw,bh as Nw,q as Ja,a as Th,L as oi,cq as Rw}from"./index-B4NHUQaw.js";import{b as Dw}from"./editorial-admin.functions-CkOfDxmY.js";import{a as qw}from"./podcast.functions-B5hVSW35.js";import{g as Lw}from"./social-stats.functions-DcvLNmYF.js";import{r as jh}from"./restore-points-P8QG6Nwv.js";import{E as Eh}from"./eye-CG_VIHuE.js";import{H as Mh}from"./headphones-BljmcxT9.js";import{L as Ch}from"./leaf-DvUweIU5.js";import{S as $h}from"./share-2-BBt2srrj.js";import{a as Ih,C as Bw}from"./chart-column-BzoqAvXv.js";import{H as Qa}from"./history-DXH_dVMs.js";import{R as Fw}from"./refresh-cw-D8H2lbJL.js";import{U as zw}from"./users-G3R9hW33.js";import{A as Ww}from"./activity-nQ4Kg7bQ.js";import{A as Uw}from"./arrow-up-right-DEGodcLJ.js";import{P as Hw}from"./plus-BZSBoLeL.js";import{T as Gw}from"./trending-up-DwVfCt3f.js";const Kw=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Vw=Xn("earth",Kw);const Xw=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],kh=Xn("monitor",Xw);const Yw=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Zw=Xn("smartphone",Yw);const Jw=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]],Qw=Xn("tablet",Jw);const e1=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],t1=Xn("trending-down",e1);var eo,Nh;function Ne(){if(Nh)return eo;Nh=1;var e=Array.isArray;return eo=e,eo}var to,Rh;function gb(){if(Rh)return to;Rh=1;var e=typeof ai=="object"&&ai&&ai.Object===Object&&ai;return to=e,to}var ro,Dh;function st(){if(Dh)return ro;Dh=1;var e=gb(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return ro=r,ro}var no,qh;function Yn(){if(qh)return no;qh=1;var e=st(),t=e.Symbol;return no=t,no}var io,Lh;function r1(){if(Lh)return io;Lh=1;var e=Yn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(u?o[i]=s:delete o[i]),f}return io=a,io}var ao,Bh;function n1(){if(Bh)return ao;Bh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return ao=r,ao}var oo,Fh;function Ot(){if(Fh)return oo;Fh=1;var e=Yn(),t=r1(),r=n1(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return oo=o,oo}var uo,zh;function _t(){if(zh)return uo;zh=1;function e(t){return t!=null&&typeof t=="object"}return uo=e,uo}var so,Wh;function Br(){if(Wh)return so;Wh=1;var e=Ot(),t=_t(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return so=n,so}var co,Uh;function xf(){if(Uh)return co;Uh=1;var e=Ne(),t=Br(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return co=i,co}var lo,Hh;function It(){if(Hh)return lo;Hh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return lo=e,lo}var fo,Gh;function wf(){if(Gh)return fo;Gh=1;var e=Ot(),t=It(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return fo=o,fo}var ho,Kh;function i1(){if(Kh)return ho;Kh=1;var e=st(),t=e["__core-js_shared__"];return ho=t,ho}var po,Vh;function a1(){if(Vh)return po;Vh=1;var e=i1(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return po=r,po}var vo,Xh;function bb(){if(Xh)return vo;Xh=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return vo=r,vo}var yo,Yh;function o1(){if(Yh)return yo;Yh=1;var e=wf(),t=a1(),r=It(),n=bb(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!r(h)||t(h))return!1;var p=e(h)?f:a;return p.test(n(h))}return yo=l,yo}var mo,Zh;function u1(){if(Zh)return mo;Zh=1;function e(t,r){return t?.[r]}return mo=e,mo}var go,Jh;function nr(){if(Jh)return go;Jh=1;var e=o1(),t=u1();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return go=r,go}var bo,Qh;function ba(){if(Qh)return bo;Qh=1;var e=nr(),t=e(Object,"create");return bo=t,bo}var xo,ed;function s1(){if(ed)return xo;ed=1;var e=ba();function t(){this.__data__=e?e(null):{},this.size=0}return xo=t,xo}var wo,td;function c1(){if(td)return wo;td=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return wo=e,wo}var Oo,rd;function l1(){if(rd)return Oo;rd=1;var e=ba(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return Oo=i,Oo}var _o,nd;function f1(){if(nd)return _o;nd=1;var e=ba(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return _o=n,_o}var So,id;function h1(){if(id)return So;id=1;var e=ba(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return So=r,So}var Ao,ad;function d1(){if(ad)return Ao;ad=1;var e=s1(),t=c1(),r=l1(),n=f1(),i=h1();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ao=a,Ao}var Po,od;function p1(){if(od)return Po;od=1;function e(){this.__data__=[],this.size=0}return Po=e,Po}var To,ud;function Of(){if(ud)return To;ud=1;function e(t,r){return t===r||t!==t&&r!==r}return To=e,To}var jo,sd;function xa(){if(sd)return jo;sd=1;var e=Of();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return jo=t,jo}var Eo,cd;function v1(){if(cd)return Eo;cd=1;var e=xa(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return Eo=n,Eo}var Mo,ld;function y1(){if(ld)return Mo;ld=1;var e=xa();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Mo=t,Mo}var Co,fd;function m1(){if(fd)return Co;fd=1;var e=xa();function t(r){return e(this.__data__,r)>-1}return Co=t,Co}var $o,hd;function g1(){if(hd)return $o;hd=1;var e=xa();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return $o=t,$o}var Io,dd;function wa(){if(dd)return Io;dd=1;var e=p1(),t=v1(),r=y1(),n=m1(),i=g1();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Io=a,Io}var ko,pd;function _f(){if(pd)return ko;pd=1;var e=nr(),t=st(),r=e(t,"Map");return ko=r,ko}var No,vd;function b1(){if(vd)return No;vd=1;var e=d1(),t=wa(),r=_f();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return No=n,No}var Ro,yd;function x1(){if(yd)return Ro;yd=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Ro=e,Ro}var Do,md;function Oa(){if(md)return Do;md=1;var e=x1();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Do=t,Do}var qo,gd;function w1(){if(gd)return qo;gd=1;var e=Oa();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return qo=t,qo}var Lo,bd;function O1(){if(bd)return Lo;bd=1;var e=Oa();function t(r){return e(this,r).get(r)}return Lo=t,Lo}var Bo,xd;function _1(){if(xd)return Bo;xd=1;var e=Oa();function t(r){return e(this,r).has(r)}return Bo=t,Bo}var Fo,wd;function S1(){if(wd)return Fo;wd=1;var e=Oa();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Fo=t,Fo}var zo,Od;function Sf(){if(Od)return zo;Od=1;var e=b1(),t=w1(),r=O1(),n=_1(),i=S1();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,zo=a,zo}var Wo,_d;function xb(){if(_d)return Wo;_d=1;var e=Sf(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return a.cache=s.set(u,c)||s,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,Wo=r,Wo}var Uo,Sd;function A1(){if(Sd)return Uo;
1Sd=1;var e=xb(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Uo=r,Uo}var Ho,Ad;function P1(){if(Ad)return Ho;Ad=1;var e=A1(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,s,c){a.push(s?c.replace(r,"$1"):u||o)}),a});return Ho=n,Ho}var Go,Pd;function Af(){if(Pd)return Go;Pd=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Go=e,Go}var Ko,Td;function T1(){if(Td)return Ko;Td=1;var e=Yn(),t=Af(),r=Ne(),n=Br(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return Ko=o,Ko}var Vo,jd;function wb(){if(jd)return Vo;jd=1;var e=T1();function t(r){return r==null?"":e(r)}return Vo=t,Vo}var Xo,Ed;function Ob(){if(Ed)return Xo;Ed=1;var e=Ne(),t=xf(),r=P1(),n=wb();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Xo=i,Xo}var Yo,Md;function _a(){if(Md)return Yo;Md=1;var e=Br();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Yo=t,Yo}var Zo,Cd;function Pf(){if(Cd)return Zo;Cd=1;var e=Ob(),t=_a();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Zo=r,Zo}var Jo,$d;function _b(){if($d)return Jo;$d=1;var e=Pf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Jo=t,Jo}var j1=_b();const Ge=se(j1);var Qo,Id;function E1(){if(Id)return Qo;Id=1;function e(t){return t==null}return Qo=e,Qo}var M1=E1();const Q=se(M1);var eu,kd;function C1(){if(kd)return eu;kd=1;var e=Ot(),t=Ne(),r=_t(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return eu=i,eu}var $1=C1();const Jt=se($1);var I1=wf();const Y=se(I1);var k1=It();const Fr=se(k1);var tu={exports:{}},ne={};var Nd;function N1(){if(Nd)return ne;Nd=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(d){if(typeof d=="object"&&d!==null){var b=d.$$typeof;switch(b){case e:switch(d=d.type,d){case r:case i:case n:case c:case f:return d;default:switch(d=d&&d.$$typeof,d){case u:case o:case s:case h:case l:case a:return d;default:return b}}case t:return b}}}return ne.ContextConsumer=o,ne.ContextProvider=a,ne.Element=e,ne.ForwardRef=s,ne.Fragment=r,ne.Lazy=h,ne.Memo=l,ne.Portal=t,ne.Profiler=i,ne.StrictMode=n,ne.Suspense=c,ne.SuspenseList=f,ne.isAsyncMode=function(){return!1},ne.isConcurrentMode=function(){return!1},ne.isContextConsumer=function(d){return v(d)===o},ne.isContextProvider=function(d){return v(d)===a},ne.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},ne.isForwardRef=function(d){return v(d)===s},ne.isFragment=function(d){return v(d)===r},ne.isLazy=function(d){return v(d)===h},ne.isMemo=function(d){return v(d)===l},ne.isPortal=function(d){return v(d)===t},ne.isProfiler=function(d){return v(d)===i},ne.isStrictMode=function(d){return v(d)===n},ne.isSuspense=function(d){return v(d)===c},ne.isSuspenseList=function(d){return v(d)===f},ne.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===c||d===f||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===l||d.$$typeof===a||d.$$typeof===o||d.$$typeof===s||d.$$typeof===y||d.getModuleId!==void 0)},ne.typeOf=v,ne}var Rd;function R1(){return Rd||(Rd=1,tu.exports=N1()),tu.exports}var D1=R1(),ru,Dd;function Sb(){if(Dd)return ru;Dd=1;var e=Ot(),t=_t(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return ru=n,ru}var nu,qd;function q1(){if(qd)return nu;qd=1;var e=Sb();function t(r){return e(r)&&r!=+r}return nu=t,nu}var L1=q1();const zr=se(L1);var B1=Sb();const F1=se(B1);var Je=function(t){return t===0?0:t>0?1:-1},Ht=function(t){return Jt(t)&&t.indexOf("%")===t.length-1},L=function(t){return F1(t)&&!zr(t)},z1=function(t){return Q(t)},Oe=function(t){return L(t)||Jt(t)},W1=0,Zn=function(t){var r=++W1;return"".concat(t||"").concat(r)},Qt=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(!L(t)&&!Jt(t))return n;var a;if(Ht(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return zr(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},U1=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},Ue=function(t,r){return L(t)&&L(r)?function(n){return t+n*(r-t)}:function(){return r}};function wi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ge(n,t))===r})}var H1=function(t,r){return L(t)&&L(r)?t-r:Jt(t)&&Jt(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 rl(e){"@babel/helpers - typeof";return rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rl(e)}var G1=["viewBox","children"],K1=["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
1dering","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"],Ld=["points","pathLength"],iu={svg:G1,polygon:Ld,polyline:Ld},Tf=["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
1Capture","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"],Oi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(R.isValidElement(t)&&(n=t.props),!Fr(n))return null;var i={};return Object.keys(n).forEach(function(a){Tf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},V1=function(t,r,n){return function(i){return t(r,n,i),null}},_i=function(t,r,n){if(!Fr(t)||rl(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Tf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=V1(o,r,n))}),i},X1=["children"],Y1=["children"];function Bd(e,t){if(e==null)return{};var r=Z1(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 Z1(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 nl(e){"@babel/helpers - typeof";return nl=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},nl(e)}var Fd={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"},pt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},zd=null,au=null,jf=function e(t){if(t===zd&&Array.isArray(au))return au;var r=[];return R.Children.forEach(t,function(n){Q(n)||(D1.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),au=r,zd=t,r};function Qe(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return pt(i)}):n=[pt(t)],jf(e).forEach(function(i){var a=Ge(i,"type.displayName")||Ge(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function qe(e,t){var r=Qe(e,t);return r&&r[0]}var Wd=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!L(n)||n<=0||!L(i)||i<=0)},J1=["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"],Q1=function(t){return t&&t.type&&Jt(t.type)&&J1.indexOf(t.type)>=0},eO=function(t){return t&&nl(t)==="object"&&"clipDot"in t}
1,tO=function(t,r,n,i){var a,o=(a=iu?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Y(t)&&(i&&o.includes(r)||K1.includes(r))||n&&Tf.includes(r)},J=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(R.isValidElement(t)&&(i=t.props),!Fr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;tO((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},il=function e(t,r){if(t===r)return!0;var n=R.Children.count(t);if(n!==R.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Ud(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(!Ud(a,o))return!1}return!0},Ud=function(t,r){if(Q(t)&&Q(r))return!0;if(!Q(t)&&!Q(r)){var n=t.props||{},i=n.children,a=Bd(n,X1),o=r.props||{},u=o.children,s=Bd(o,Y1);return i&&u?pr(a,s)&&il(i,u):!i&&!u?pr(a,s):!1}return!1},Hd=function(t,r){var n=[],i={};return jf(t).forEach(function(a,o){if(Q1(a))n.push(a);else if(a){var u=pt(a.type),s=r[u]||{},c=s.handler,f=s.once;if(c&&(!f||!i[u])){var l=c(a,u,o);n.push(l),i[u]=!0}}}),n},rO=function(t){var r=t&&t.type;return r&&Fd[r]?Fd[r]:null},nO=function(t,r){return jf(r).indexOf(t)},iO=["children","width","height","viewBox","className","style","title","desc"];function al(){return al=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},al.apply(this,arguments)}function aO(e,t){if(e==null)return{};var r=oO(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 oO(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ol(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,s=e.desc,c=aO(e,iO),f=i||{width:r,height:n,x:0,y:0},l=te("recharts-surface",a);return P.createElement("svg",al({},J(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),P.createElement("title",null,u),P.createElement("desc",null,s),t)}var uO=["children","className"];function ul(){return ul=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},ul.apply(this,arguments)}function sO(e,t){if(e==null)return{};var r=cO(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 cO(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 he=P.forwardRef(function(e,t){var r=e.children,n=e.className,i=sO(e,uO),a=te("recharts-layer",n);return P.createElement("g",ul({className:a},J(i,!0),{ref:t}),r)}),vt=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]},ou,Gd;function lO(){if(Gd)return ou;Gd=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return ou=e,ou}var uu,Kd;function fO(){if(Kd)return uu;Kd=1;var e=lO();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return uu=t,uu}var su,Vd;function Ab(){if(Vd)return su;Vd=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function s(c){return u.test(c)}return su=s,su}var cu,Xd;function hO(){if(Xd)return cu;Xd=1;function e(t){return t.split("")}return cu=e,cu}var lu,Yd;function dO(){if(Yd)return lu;Yd=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=c+"?",v="["+a+"]?",d="(?:"+p+"(?:"+[f,l,h].join("|")+")"+v+y+")*",b=v+y+d,x="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(s+"(?="+s+")|"+x+b,"g");function O(g){return g.match(w)||[]}return lu=O,lu}var fu,Zd;function pO(){if(Zd)return fu;Zd=1;var e=hO(),t=Ab(),r=dO();function n(i){return t(i)?r(i):e(i)}return fu=n,fu}var hu,Jd;function vO(){if(Jd)return hu;Jd=1;var e=fO(),t=Ab(),r=pO(),n=wb();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),c=u?e(u,1).join(""):o.slice(1);return s[a]()+c}}return hu=i,hu}var du,Qd;function yO(){if(Qd)return du;Qd=1;var e=vO(),t=e("toUpperCase");return du=t,du}var mO=yO();const Sa=se(mO);function ue(e){return function(){return e}}const Pb=Math.cos,Si=Math.sin,et=Math.sqrt,Ai=Math.PI,Aa=2*Ai,sl=Math.PI,cl=2*sl,Wt=1e-6,gO=cl-Wt;function Tb(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function bO(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Tb;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 xO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Tb:bO(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}
1,${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,c=i-r,f=o-t,l=u-r,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Wt)if(!(Math.abs(l*s-c*f)>Wt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-u,v=s*s+c*c,d=p*p+y*y,b=Math.sqrt(v),x=Math.sqrt(h),w=a*Math.tan((sl-Math.acos((v+h-d)/(2*b*x)))/2),O=w/x,g=w/b;Math.abs(O-1)>Wt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*p>f*y)},${this._x1=t+g*s},${this._y1=r+g*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),c=t+u,f=r+s,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>Wt||Math.abs(this._y1-f)>Wt)&&this._append`L${c},${f}`,n&&(h<0&&(h=h%cl+cl),h>gO?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:h>Wt&&this._append`A${n},${n},0,${+(h>=sl)},${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 Ef(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 xO(t)}function Mf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function jb(e){this._context=e}jb.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 Pa(e){return new jb(e)}function Eb(e){return e[0]}function Mb(e){return e[1]}function Cb(e,t){var r=ue(!0),n=null,i=Pa,a=null,o=Ef(u);e=typeof e=="function"?e:e===void 0?Eb:ue(e),t=typeof t=="function"?t:t===void 0?Mb:ue(t);function u(s){var c,f=(s=Mf(s)).length,l,h=!1,p;for(n==null&&(a=i(p=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,c,s),+t(l,c,s));if(p)return a=null,p+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:ue(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:ue(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:ue(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function ui(e,t,r){var n=null,i=ue(!0),a=null,o=Pa,u=null,s=Ef(c);e=typeof e=="function"?e:e===void 0?Eb:ue(+e),t=typeof t=="function"?t:ue(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Mb:ue(+r);function c(l){var h,p,y,v=(l=Mf(l)).length,d,b=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=s())),h=0;h<=v;++h){if(!(h<v&&i(d=l[h],h,l))===b)if(b=!b)p=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=h-1;y>=p;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}b&&(w[h]=+e(d,h,l),O[h]=+t(d,h,l),u.point(n?+n(d,h,l):w[h],r?+r(d,h,l):O[h]))}if(x)return u=null,x+""||null}function f(){return Cb().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:ue(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:ue(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:ue(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:ue(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:ue(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ue(+l),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(l){return arguments.length?(i=typeof l=="function"?l:ue(!!l),c):i},c.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),c):o},c.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),c):a},c}class $b{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 wO(e){return new $b(e,!0)}function OO(e){return new $b(e,!1)}const Cf={draw(e,t){const r=et(t/Ai);e.moveTo(r,0),e.arc(0,0,r,0,Aa)}},_O={draw(e,t){const r=et(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()}},Ib=et(1/3),SO=Ib*2,AO={draw(e,t){const r=et(t/SO),n=r*Ib;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},PO={draw(e,t){const r=et(t),n=-r/2;e.rect(n,n,r,r)}},TO=.8908130915292852,kb=Si(Ai/10)/Si(7*Ai/10),jO=Si(Aa/10)*kb,EO=-Pb(Aa/10)*kb,MO={draw(e,t){const r=et(t*TO),n=jO*r,i=EO*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Aa*a/5,u=Pb(o),s=Si(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},pu=et(3),CO={draw(e,t){const r=-et(t/(pu*3));e.moveTo(0,r*2),e.lineTo(-pu*r,-r),e.lineTo(pu*r,-r),e.closePath()}},Fe=-.5,ze=et(3)/2,ll=1/et(12),$O=(ll/2+1)*3,IO={draw(e,t){const r=et(t/$O),n=r/2,i=r*ll,a=n,o=r*ll+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Fe*n-ze*i,ze*n+Fe*i),e.lineTo(Fe*a-ze*o,ze*a+Fe*o),e.lineTo(Fe*u-ze*s,ze*u+Fe*s),e.lineTo(Fe*n+ze*i,Fe*i-ze*n),e.lineTo(Fe*a+ze*o,Fe*o-ze*a),e.lineTo(Fe*u+ze*s,Fe*s-ze*u),e.closePath()}};function kO(e,t){let r=null,n=Ef(i);e=typeof e=="function"?e:ue(e||Cf),t=typeof t=="function"?t:ue(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:ue(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ue(+a),i):t}
1,i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Pi(){}function Ti(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 Nb(e){this._context=e}Nb.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:Ti(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:Ti(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function NO(e){return new Nb(e)}function Rb(e){this._context=e}Rb.prototype={areaStart:Pi,areaEnd:Pi,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:Ti(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function RO(e){return new Rb(e)}function Db(e){this._context=e}Db.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:Ti(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function DO(e){return new Db(e)}function qb(e){this._context=e}qb.prototype={areaStart:Pi,areaEnd:Pi,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 qO(e){return new qb(e)}function ep(e){return e<0?-1:1}function tp(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(ep(a)+ep(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function rp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function vu(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 ji(e){this._context=e}ji.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:vu(this,this._t0,rp(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,vu(this,rp(this,r=tp(this,e,t)),r);break;default:vu(this,this._t0,r=tp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};
1function Lb(e){this._context=new Bb(e)}(Lb.prototype=Object.create(ji.prototype)).point=function(e,t){ji.prototype.point.call(this,t,e)};function Bb(e){this._context=e}Bb.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 LO(e){return new ji(e)}function BO(e){return new Lb(e)}function Fb(e){this._context=e}Fb.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=np(e),i=np(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 np(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 FO(e){return new Fb(e)}function Ta(e,t){this._context=e,this._t=t}Ta.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function zO(e){return new Ta(e,.5)}function WO(e){return new Ta(e,0)}function UO(e){return new Ta(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 fl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function HO(e,t){return e[t]}function GO(e){const t=[];return t.key=e,t}function KO(){var e=ue([]),t=fl,r=gr,n=HO;function i(a){var o=Array.from(e.apply(this,arguments),GO),u,s=o.length,c=-1,f;for(const l of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(l,o[u].key,c,a)]).data=l;for(u=0,f=Mf(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ue(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ue(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?fl:typeof a=="function"?a:ue(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??gr,i):r},i}function VO(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}gr(e,t)}}function XO(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 YO(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,c=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,h=f[n-1][1]||0,p=(l-h)/2,y=0;y<u;++y){var v=e[t[y]],d=v[n][1]||0,b=v[n-1][1]||0;p+=d-b}s+=l,c+=p*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,gr(e,t)}}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 ZO=["type","size","sizeType"];function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hl.apply(this,arguments)}function ip(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ap(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ip(Object(r),!0).forEach(function(n){JO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ip(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JO(e,t,r){return t=QO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QO(e){var t=e_(e,"string");return dn(t)=="symbol"?t:t+""}function e_(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 t_(e,t){if(e==null)return{};var r=r_(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 r_(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 zb={symbolCircle:Cf,symbolCross:_O,symbolDiamond:AO,symbolSquare:PO,symbolStar:MO,symbolTriangle:CO,symbolWye:IO},n_=Math.PI/180,i_=function(t){var r="symbol".concat(Sa(t));return zb[r]||Cf},a_=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*n_;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}},o_=function(t,r){zb["symbol".concat(Sa(t))]=r},$f=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,s=t_(t,ZO),c=ap(ap({},s),{},{type:n,size:a,sizeType:u}),f=function(){var d=i_(n),b=kO().type(d).size(a_(a,u,n));return b()},l=c.className,h=c.cx,p=c.cy,y=J(c,!0);return h===+h&&p===+p&&a===+a?P.createElement("path",hl({}
1,y,{className:te("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};$f.registerSymbol=o_;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 dl(){return dl=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},dl.apply(this,arguments)}function op(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 u_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?op(Object(r),!0).forEach(function(n){pn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):op(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c_(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,Ub(n.key),n)}}function l_(e,t,r){return t&&c_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function f_(e,t,r){return t=Ei(t),h_(e,Wb()?Reflect.construct(t,r||[],Ei(e).constructor):t.apply(e,r))}function h_(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 d_(e)}function d_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wb=function(){return!!e})()}function Ei(e){return Ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ei(e)}function p_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pl(e,t)}function pl(e,t){return pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pl(e,t)}function pn(e,t,r){return t=Ub(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ub(e){var t=v_(e,"string");return br(t)=="symbol"?t:t+""}function v_(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 We=32,If=(function(e){function t(){return s_(this,t),f_(this,t,arguments)}return p_(t,e),l_(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=We/2,o=We/6,u=We/3,s=n.inactive?i:n.color;if(n.type==="plainline")return P.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:We,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return P.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,` 2 A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,` 3 H`).concat(We,"M").concat(2*u,",").concat(a,` 4 A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return P.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(We/8,"h").concat(We,"v").concat(We*3/4,"h").concat(-We,"z"),className:"recharts-legend-icon"});if(P.isValidElement(n.legendIcon)){var c=u_({},n);return delete c.legendIcon,P.cloneElement(n.legendIcon,c)}return P.createElement($f,{fill:s,cx:a,cy:a,size:We,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,s=i.formatter,c=i.inactiveColor,f={x:0,y:0,width:We,height:We},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var v=p.formatter||s,d=te(pn(pn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var b=Y(p.value)?null:p.value;vt(!Y(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=p.inactive?c:p.color;return P.createElement("li",dl({className:d,style:l,key:"legend-item-".concat(y)},_i(n.props,p,y)),P.createElement(ol,{width:o,height:o,viewBox:f,style:h},n.renderIcon(p)),P.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(b,p,y):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return P.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])}
vendor: 10,610 bytes, line 4
4)(R.PureComponent);pn(If,"displayName","Legend");pn(If,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var yu,up;function y_(){if(up)return yu;up=1;var e=wa();function t(){this.__data__=new e,this.size=0}return yu=t,yu}var mu,sp;function m_(){if(sp)return mu;sp=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return mu=e,mu}var gu,cp;function g_(){if(cp)return gu;cp=1;function e(t){return this.__data__.get(t)}return gu=e,gu}var bu,lp;function b_(){if(lp)return bu;lp=1;function e(t){return this.__data__.has(t)}return bu=e,bu}var xu,fp;function x_(){if(fp)return xu;fp=1;var e=wa(),t=_f(),r=Sf(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!t||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(s)}return u.set(a,o),this.size=u.size,this}return xu=i,xu}var wu,hp;function Hb(){if(hp)return wu;hp=1;var e=wa(),t=y_(),r=m_(),n=g_(),i=b_(),a=x_();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,wu=o,wu}var Ou,dp;function w_(){if(dp)return Ou;dp=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Ou=t,Ou}var _u,pp;function O_(){if(pp)return _u;pp=1;function e(t){return this.__data__.has(t)}return _u=e,_u}var Su,vp;function Gb(){if(vp)return Su;vp=1;var e=Sf(),t=w_(),r=O_();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,Su=n,Su}var Au,yp;function Kb(){if(yp)return Au;yp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return Au=e,Au}var Pu,mp;function Vb(){if(mp)return Pu;mp=1;function e(t,r){return t.has(r)}return Pu=e,Pu}var Tu,gp;function Xb(){if(gp)return Tu;gp=1;var e=Gb(),t=Kb(),r=Vb(),n=1,i=2;function a(o,u,s,c,f,l){var h=s&n,p=o.length,y=u.length;if(p!=y&&!(h&&y>p))return!1;var v=l.get(o),d=l.get(u);if(v&&d)return v==u&&d==o;var b=-1,x=!0,w=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++b<p;){var O=o[b],g=u[b];if(c)var m=h?c(g,O,b,u,o,l):c(O,g,b,o,u,l);if(m!==void 0){if(m)continue;x=!1;break}if(w){if(!t(u,function(_,S){if(!r(w,S)&&(O===_||f(O,_,s,c,l)))return w.push(S)})){x=!1;break}}else if(!(O===g||f(O,g,s,c,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return Tu=a,Tu}var ju,bp;function __(){if(bp)return ju;bp=1;var e=st(),t=e.Uint8Array;return ju=t,ju}var Eu,xp;function S_(){if(xp)return Eu;xp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Eu=e,Eu}var Mu,wp;function kf(){if(wp)return Mu;wp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Mu=e,Mu}var Cu,Op;function A_(){if(Op)return Cu;Op=1;var e=Yn(),t=__(),r=Of(),n=Xb(),i=S_(),a=kf(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",v="[object String]",d="[object Symbol]",b="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function g(m,_,S,A,$,j,T){switch(S){case x:if(m.byteLength!=_.byteLength||m.byteOffset!=_.byteOffset)return!1;m=m.buffer,_=_.buffer;case b:return!(m.byteLength!=_.byteLength||!j(new t(m),new t(_)));case s:case c:case h:return r(+m,+_);case f:return m.name==_.name&&m.message==_.message;case p:case v:return m==_+"";case l:var M=i;case y:var I=A&o;if(M||(M=a),m.size!=_.size&&!I)return!1;var C=T.get(m);if(C)return C==_;A|=u,T.set(m,_);var N=n(M(m),M(_),A,$,j,T);return T.delete(m),N;case d:if(O)return O.call(m)==O.call(_)}return!1}return Cu=g,Cu}var $u,_p;function Yb(){if(_p)return $u;_p=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return $u=e,$u}var Iu,Sp;function P_(){if(Sp)return Iu;Sp=1;var e=Yb(),t=Ne();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Iu=r,Iu}var ku,Ap;function T_(){if(Ap)return ku;Ap=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return ku=e,ku}var Nu,Pp;function j_(){if(Pp)return Nu;Pp=1;function e(){return[]}return Nu=e,Nu}var Ru,Tp;function E_(){if(Tp)return Ru;Tp=1;var e=T_(),t=j_(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return Ru=a,Ru}var Du,jp;function M_(){if(jp)return Du;jp=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Du=e,Du}var qu,Ep;function C_(){if(Ep)return qu;Ep=1;var e=Ot(),t=_t(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return qu=n,qu}var Lu,Mp;function Nf(){if(Mp)return Lu;Mp=1;var e=C_(),t=_t(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Lu=a,Lu}var an={exports:{}},Bu,Cp;function $_(){if(Cp)return Bu;Cp=1;function e(){return!1}return Bu=e,Bu}an.exports;var $p;function Zb(){return $p||($p=1,(function(e,t){var r=st(),n=$_(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;e.exports=c})(an,an.exports)),an.exports}var Fu,Ip;function Rf(){if(Ip)return Fu;Ip=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Fu=r,Fu}var zu,kp;function Df(){if(kp)return zu;kp=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return zu=t,zu}var Wu,Np;function I_(){if(Np)return Wu;Np=1;var e=Ot(),t=Df(),r=_t(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",v="[object WeakMap]",d="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",g="[object Int16Array]",m="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",A="[object Uint16Array]",$="[object Uint32Array]",j={};j[x]=j[w]=j[O]=j[g]=j[m]=j[_]=j[S]=j[A]=j[$]=!0,j[n]=j[i]=j[d]=j[a]=j[b]=j[o]=j[u]=j[s]=j[c]=j[f]=j[l]=j[h]=j[p]=j[y]=j[v]=!1;function T(M){return r(M)&&t(M.length)&&!!j[e(M)]}return Wu=T,Wu}var Uu,Rp;function Jb(){if(Rp)return Uu;Rp=1;function e(t){return function(r){return t(r)}}return Uu=e,Uu}var on={exports:{}};on.exports;var Dp;function k_(){return Dp||(Dp=1,(function(e,t){var r=gb(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(on,on.exports)),on.exports}var Hu,qp;function Qb(){if(qp)return Hu;qp=1;var e=I_(),t=Jb(),r=k_(),n=r&&r.isTypedArray,i=n?t(n):e;return Hu=i,Hu}var Gu,Lp;function N_(){if(Lp)return Gu;Lp=1;var e=M_(),t=Nf(),r=Ne(),n=Zb(),i=Rf(),a=Qb(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),h=!l&&t(c),p=!l&&!h&&n(c),y=!l&&!h&&!p&&a(c),v=l||h||p||y,d=v?e(c.length,String):[],b=d.length;for(var x in c)(f||u.call(c,x))&&!(v&&(x=="length"||p&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,b)))&&d.push(x);return d}return Gu=s,Gu}var Ku,Bp;function R_(){if(Bp)return Ku;Bp=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Ku=t,Ku}var Vu,Fp;function e0(){if(Fp)return Vu;Fp=1;function e(t,r){return function(n){return t(r(n))}}return Vu=e,Vu}var Xu,zp;function D_(){if(zp)return Xu;zp=1;var e=e0(),t=e(Object.keys,Object);return Xu=t,Xu}var Yu,Wp;function q_(){if(Wp)return Yu;Wp=1;var e=R_(),t=D_(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return Yu=i,Yu}var Zu,Up;function Jn(){if(Up)return Zu;Up=1;var e=wf(),t=Df();function r(n){return n!=null&&t(n.length)&&!e(n)}return Zu=r,Zu}var Ju,Hp;function ja(){if(Hp)return Ju;Hp=1;var e=N_(),t=q_(),r=Jn();function n(i){return r(i)?e(i):t(i)}return Ju=n,Ju}var Qu,Gp;function L_(){if(Gp)return Qu;Gp=1;var e=P_(),t=E_(),r=ja();function n(i){return e(i,r,t)}return Qu=n,Qu}var es,Kp;function B_(){if(Kp)return es;Kp=1;var e=L_(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,f){var l=u&t,h=e(a),p=h.length,y=e(o),v=y.length;if(p!=v&&!l)return!1;for(var d=p;d--;){var b=h[d];if(!(l?b in o:n.call(o,b)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var g=l;++d<p;){b=h[d];var m=a[b],_=o[b];if(s)var S=l?s(_,m,b,o,a,f):s(m,_,b,a,o,f);if(!(S===void 0?m===_||c(m,_,u,s,f):S)){O=!1;break}g||(g=b=="constructor")}if(O&&!g){var A=a.constructor,$=o.constructor;A!=$&&"constructor"in a&&"constructor"in o&&!(typeof A=="function"&&A instanceof A&&typeof $=="function"&&$ instanceof $)&&(O=!1)}return f.delete(a),f.delete(o),O}return es=i,es}var ts,Vp;function F_(){if(Vp)return ts;Vp=1;var e=nr(),t=st(),r=e(t,"DataView");return ts=r,ts}var rs,Xp;function z_(){if(Xp)return rs;Xp=1;var e=nr(),t=st(),r=e(t,"Promise");return rs=r,rs}var ns,Yp;function t0(){if(Yp)return ns;Yp=1;var e=nr(),t=st(),r=e(t,"Set");return ns=r,ns}var is,Zp;function W_(){if(Zp)return is;Zp=1;var e=nr(),t=st(),r=e(t,"WeakMap");return is=r,is}var as,Jp;function U_(){if(Jp)return as;Jp=1;var e=F_(),t=_f(),r=z_(),n=t0(),i=W_(),a=Ot(),o=bb(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",p=o(e),y=o(t),v=o(r),d=o(n),b=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=h||t&&x(new t)!=u||r&&x(r.resolve())!=c||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),g=O==s?w.constructor:void 0,m=g?o(g):"";if(m)switch(m){case p:return h;case y:return u;case v:return c;case d:return f;case b:return l}return O}),as=x,as}var os,Qp;function H_(){if(Qp)return os;Qp=1;var e=Hb(),t=Xb(),r=A_(),n=B_(),i=U_(),a=Ne(),o=Zb(),u=Qb(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(v,d,b,x,w,O){var g=a(v),m=a(d),_=g?f:i(v),S=m?f:i(d);_=_==c?l:_,S=S==c?l:S;var A=_==l,$=S==l,j=_==S;if(j&&o(v)){if(!o(d))return!1;g=!0,A=!1}if(j&&!A)return O||(O=new e),g||u(v)?t(v,d,b,x,w,O):r(v,d,_,b,x,w,O);if(!(b&s)){var T=A&&p.call(v,"__wrapped__"),M=$&&p.call(d,"__wrapped__");
4if(T||M){var I=T?v.value():v,C=M?d.value():d;return O||(O=new e),w(I,C,b,x,O)}}return j?(O||(O=new e),n(v,d,b,x,w,O)):!1}return os=y,os}var us,ev;function qf(){if(ev)return us;ev=1;var e=H_(),t=_t();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return us=r,us}var ss,tv;function G_(){if(tv)return ss;tv=1;var e=Hb(),t=qf(),r=1,n=2;function i(a,o,u,s){var c=u.length,f=c,l=!s;if(a==null)return!f;for(a=Object(a);c--;){var h=u[c];if(l&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++c<f;){h=u[c];var p=h[0],y=a[p],v=h[1];if(l&&h[2]){if(y===void 0&&!(p in a))return!1}else{var d=new e;if(s)var b=s(y,v,p,a,o,d);if(!(b===void 0?t(v,y,r|n,s,d):b))return!1}}return!0}return ss=i,ss}var cs,rv;function r0(){if(rv)return cs;rv=1;var e=It();function t(r){return r===r&&!e(r)}return cs=t,cs}var ls,nv;function K_(){if(nv)return ls;nv=1;var e=r0(),t=ja();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return ls=r,ls}var fs,iv;function n0(){if(iv)return fs;iv=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return fs=e,fs}var hs,av;function V_(){if(av)return hs;av=1;var e=G_(),t=K_(),r=n0();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return hs=n,hs}var ds,ov;function X_(){if(ov)return ds;ov=1;function e(t,r){return t!=null&&r in Object(t)}return ds=e,ds}var ps,uv;function Y_(){if(uv)return ps;uv=1;var e=Ob(),t=Nf(),r=Ne(),n=Rf(),i=Df(),a=_a();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,h=!1;++f<l;){var p=a(s[f]);if(!(h=u!=null&&c(u,p)))break;u=u[p]}return h||++f!=l?h:(l=u==null?0:u.length,!!l&&i(l)&&n(p,l)&&(r(u)||t(u)))}return ps=o,ps}var vs,sv;function Z_(){if(sv)return vs;sv=1;var e=X_(),t=Y_();function r(n,i){return n!=null&&t(n,i,e)}return vs=r,vs}var ys,cv;function J_(){if(cv)return ys;cv=1;var e=qf(),t=_b(),r=Z_(),n=xf(),i=r0(),a=n0(),o=_a(),u=1,s=2;function c(f,l){return n(f)&&i(l)?a(o(f),l):function(h){var p=t(h,f);return p===void 0&&p===l?r(h,f):e(l,p,u|s)}}return ys=c,ys}var ms,lv;function Wr(){if(lv)return ms;lv=1;function e(t){return t}return ms=e,ms}var gs,fv;function Q_(){if(fv)return gs;fv=1;function e(t){return function(r){return r?.[t]}}return gs=e,gs}var bs,hv;function eS(){if(hv)return bs;hv=1;var e=Pf();function t(r){return function(n){return e(n,r)}}return bs=t,bs}var xs,dv;function tS(){if(dv)return xs;dv=1;var e=Q_(),t=eS(),r=xf(),n=_a();function i(a){return r(a)?e(n(a)):t(a)}return xs=i,xs}var ws,pv;function kt(){if(pv)return ws;pv=1;var e=V_(),t=J_(),r=Wr(),n=Ne(),i=tS();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return ws=a,ws}var Os,vv;function i0(){if(vv)return Os;vv=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return Os=e,Os}var _s,yv;function rS(){if(yv)return _s;yv=1;function e(t){return t!==t}return _s=e,_s}var Ss,mv;function nS(){if(mv)return Ss;mv=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return Ss=e,Ss}var As,gv;function iS(){if(gv)return As;gv=1;var e=i0(),t=rS(),r=nS();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return As=n,As}var Ps,bv;function aS(){if(bv)return Ps;bv=1;var e=iS();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Ps=t,Ps}var Ts,xv;function oS(){if(xv)return Ts;xv=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return Ts=e,Ts}var js,wv;function uS(){if(wv)return js;wv=1;function e(){}return js=e,js}var Es,Ov;function sS(){if(Ov)return Es;Ov=1;var e=t0(),t=uS(),r=kf(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Es=i,Es}var Ms,_v;function cS(){if(_v)return Ms;_v=1;var e=Gb(),t=aS(),r=oS(),n=Vb(),i=sS(),a=kf(),o=200;function u(s,c,f){var l=-1,h=t,p=s.length,y=!0,v=[],d=v;if(f)y=!1,h=r;else if(p>=o){var b=c?null:i(s);if(b)return a(b);y=!1,h=n,d=new e}else d=c?[]:v;e:for(;++l<p;){var x=s[l],w=c?c(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=d.length;O--;)if(d[O]===w)continue e;c&&d.push(w),v.push(x)}else h(d,w,f)||(d!==v&&d.push(w),v.push(x))}return v}return Ms=u,Ms}var Cs,Sv;function lS(){if(Sv)return Cs;Sv=1;var e=kt(),t=cS();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Cs=r,Cs}var fS=lS();const Av=se(fS);function a0(e,t,r){return t===!0?Av(e,r):Y(t)?Av(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 hS=["ref"];function Pv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
4t%2?Pv(Object(r),!0).forEach(function(n){Ea(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tv(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,u0(n.key),n)}}function pS(e,t,r){return t&&Tv(e.prototype,t),r&&Tv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vS(e,t,r){return t=Mi(t),yS(e,o0()?Reflect.construct(t,r||[],Mi(e).constructor):t.apply(e,r))}function yS(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 mS(e)}function mS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o0=function(){return!!e})()}function Mi(e){return Mi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mi(e)}function gS(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&&vl(e,t)}function vl(e,t){return vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vl(e,t)}function Ea(e,t,r){return t=u0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u0(e){var t=bS(e,"string");return xr(t)=="symbol"?t:t+""}function bS(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 xS(e,t){if(e==null)return{};var r=wS(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 wS(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 OS(e){return e.value}function _S(e,t){if(P.isValidElement(e))return P.cloneElement(e,t);if(typeof e=="function")return P.createElement(e,t);t.ref;var r=xS(t,hS);return P.createElement(If,r)}var jv=1,vr=(function(e){function t(){var r;dS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=vS(this,t,[].concat(i)),Ea(r,"lastBoundingBox",{width:-1,height:-1}),r}
4return gS(t,e),pS(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)>jv||Math.abs(i.height-this.lastBoundingBox.height)>jv)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ct({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,c=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 p=this.getBBoxSnapshot();l={left:((c||0)-p.width)/2}}else l=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();h={top:((f||0)-y.height)/2}}else h=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return ct(ct({},l),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,l=ct(ct({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return P.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(p){n.wrapperNode=p}},_S(a,ct(ct({},this.props),{},{payload:a0(f,c,OS)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ct(ct({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&L(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(R.PureComponent);Ea(vr,"displayName","Legend");Ea(vr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var $s,Ev;function SS(){if(Ev)return $s;Ev=1;var e=Yn(),t=Nf(),r=Ne(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return $s=i,$s}var Is,Mv;function s0(){if(Mv)return Is;Mv=1;var e=Yb(),t=SS();function r(n,i,a,o,u){var s=-1,c=n.length;for(a||(a=t),u||(u=[]);++s<c;){var f=n[s];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return Is=r,Is}var ks,Cv;function AS(){if(Cv)return ks;Cv=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),s=u.length;s--;){var c=u[t?s:++a];if(n(o[c],c,o)===!1)break}return r}}return ks=e,ks}var Ns,$v;function PS(){if($v)return Ns;$v=1;var e=AS(),t=e();return Ns=t,Ns}var Rs,Iv;function c0(){if(Iv)return Rs;Iv=1;var e=PS(),t=ja();function r(n,i){return n&&e(n,i,t)}return Rs=r,Rs}var Ds,kv;function TS(){if(kv)return Ds;kv=1;var e=Jn();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return Ds=t,Ds}var qs,Nv;function Lf(){if(Nv)return qs;Nv=1;var e=c0(),t=TS(),r=t(e);return qs=r,qs}var Ls,Rv;function l0(){if(Rv)return Ls;Rv=1;var e=Lf(),t=Jn();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,s,c){o[++a]=i(u,s,c)}),o}return Ls=r,Ls}var Bs,Dv;function jS(){if(Dv)return Bs;Dv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Bs=e,Bs}var Fs,qv;function ES(){if(qv)return Fs;qv=1;var e=Br();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),s=n!==void 0,c=n===null,f=n===n,l=e(n);if(!c&&!l&&!u&&r>n||u&&s&&f&&!c&&!l||a&&s&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||c&&i&&o||!s&&o||!f)return-1}return 0}return Fs=t,Fs}var zs,Lv;function MS(){if(Lv)return zs;Lv=1;var e=ES();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=c)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}
4return zs=t,zs}var Ws,Bv;function CS(){if(Bv)return Ws;Bv=1;var e=Af(),t=Pf(),r=kt(),n=l0(),i=jS(),a=Jb(),o=MS(),u=Wr(),s=Ne();function c(f,l,h){l.length?l=e(l,function(v){return s(v)?function(d){return t(d,v.length===1?v[0]:v)}:v}):l=[u];var p=-1;l=e(l,a(r));var y=n(f,function(v,d,b){var x=e(l,function(w){return w(v)});return{criteria:x,index:++p,value:v}});return i(y,function(v,d){return o(v,d,h)})}return Ws=c,Ws}var Us,Fv;function $S(){if(Fv)return Us;Fv=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Us=e,Us}var Hs,zv;function IS(){if(zv)return Hs;zv=1;var e=$S(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=t(o.length-i,0),c=Array(s);++u<s;)c[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(c),e(n,this,f)}}return Hs=r,Hs}var Gs,Wv;function kS(){if(Wv)return Gs;Wv=1;function e(t){return function(){return t}}return Gs=e,Gs}var Ks,Uv;function f0(){if(Uv)return Ks;Uv=1;var e=nr(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Ks=t,Ks}var Vs,Hv;function NS(){if(Hv)return Vs;Hv=1;var e=kS(),t=f0(),r=Wr(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Vs=n,Vs}var Xs,Gv;function RS(){if(Gv)return Xs;Gv=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),s=t-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Xs=n,Xs}var Ys,Kv;function DS(){if(Kv)return Ys;Kv=1;var e=NS(),t=RS(),r=t(e);return Ys=r,Ys}var Zs,Vv;function qS(){if(Vv)return Zs;Vv=1;var e=Wr(),t=IS(),r=DS();function n(i,a){return r(t(i,a,e),i+"")}return Zs=n,Zs}var Js,Xv;function Ma(){if(Xv)return Js;Xv=1;var e=Of(),t=Jn(),r=Rf(),n=It();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?t(u)&&r(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return Js=i,Js}var Qs,Yv;function LS(){if(Yv)return Qs;Yv=1;var e=s0(),t=CS(),r=qS(),n=Ma(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Qs=i,Qs}var BS=LS();const Bf=se(BS);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 yl(){return yl=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},yl.apply(this,arguments)}function FS(e,t){return HS(e)||US(e,t)||WS(e,t)||zS()}function zS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WS(e,t){if(e){if(typeof e=="string")return Zv(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 Zv(e,t)}}function Zv(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 US(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function HS(e){if(Array.isArray(e))return e}function Jv(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 ec(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
5t%2?Jv(Object(r),!0).forEach(function(n){GS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GS(e,t,r){return t=KS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KS(e){var t=VS(e,"string");return vn(t)=="symbol"?t:t+""}function VS(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 XS(e){return Array.isArray(e)&&Oe(e[0])&&Oe(e[1])?e.join(" ~ "):e}var YS=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,s=t.labelStyle,c=s===void 0?{}:s,f=t.payload,l=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,v=t.label,d=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,w=function(){if(f&&f.length){var T={padding:0,margin:0},M=(h?Bf(f,h):f).map(function(I,C){if(I.type==="none")return null;var N=ec({display:"block",paddingTop:4,paddingBottom:4,color:I.color||"#000"},u),q=I.formatter||l||XS,B=I.value,F=I.name,H=B,K=F;if(q&&H!=null&&K!=null){var W=q(B,F,I,C,f);if(Array.isArray(W)){var V=FS(W,2);H=V[0],K=V[1]}else H=W}return P.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:N},Oe(K)?P.createElement("span",{className:"recharts-tooltip-item-name"},K):null,Oe(K)?P.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,P.createElement("span",{className:"recharts-tooltip-item-value"},H),P.createElement("span",{className:"recharts-tooltip-item-unit"},I.unit||""))});return P.createElement("ul",{className:"recharts-tooltip-item-list",style:T},M)}return null},O=ec({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),g=ec({margin:0},c),m=!Q(v),_=m?v:"",S=te("recharts-default-tooltip",p),A=te("recharts-tooltip-label",y);m&&d&&f!==void 0&&f!==null&&(_=d(v,f));var $=x?{role:"status","aria-live":"assertive"}:{};return P.createElement("div",yl({className:S,style:O},$),P.createElement("p",{className:A,style:g},P.isValidElement(_)?_:"".concat(_)),w())};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 si(e,t,r){return t=ZS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZS(e){var t=JS(e,"string");return yn(t)=="symbol"?t:t+""}function JS(e,t){if(yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xr="recharts-tooltip-wrapper",QS={visibility:"hidden"};function eA(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return te(Xr,si(si(si(si({},"".concat(Xr,"-right"),L(r)&&t&&L(t.x)&&r>=t.x),"".concat(Xr,"-left"),L(r)&&t&&L(t.x)&&r<t.x),"".concat(Xr,"-bottom"),L(n)&&t&&L(t.y)&&n>=t.y),"".concat(Xr,"-top"),L(n)&&t&&L(t.y)&&n<t.y))}function Qv(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&L(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,p=s[n];return h<p?Math.max(l,s[n]):Math.max(f,s[n])}var y=l+u,v=s[n]+c;return y>v?Math.max(f,s[n]):Math.max(l,s[n])}function tA(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 rA(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,c,f,l;return o.height>0&&o.width>0&&r?(f=Qv({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=Qv({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=tA({translateX:f,translateY:l,useTranslate3d:u}
5)):c=QS,{cssProperties:c,cssClasses:eA({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 ey(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 ty(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ey(Object(r),!0).forEach(function(n){gl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ey(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 iA(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,d0(n.key),n)}}function aA(e,t,r){return t&&iA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oA(e,t,r){return t=Ci(t),uA(e,h0()?Reflect.construct(t,r||[],Ci(e).constructor):t.apply(e,r))}function uA(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 sA(e)}function sA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(h0=function(){return!!e})()}function Ci(e){return Ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ci(e)}function cA(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&&ml(e,t)}function ml(e,t){return ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ml(e,t)}function gl(e,t,r){return t=d0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d0(e){var t=lA(e,"string");return wr(t)=="symbol"?t:t+""}function lA(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 ry=1,fA=(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=oA(this,t,[].concat(i)),gl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),gl(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,c,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(c=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),r}return cA(t,e),aA(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>ry||Math.abs(n.height-this.state.lastBoundingBox.height)>ry)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.children,f=i.coordinate,l=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,v=i.reverseDirection,d=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,w=rA({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewB
5ox:b}),O=w.cssClasses,g=w.cssProperties,m=ty(ty({transition:h&&a?"transform ".concat(u,"ms ").concat(s):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return P.createElement("div",{tabIndex:-1,className:O,style:m,ref:function(S){n.wrapperNode=S}},c)}}])})(R.PureComponent),hA=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ur={isSsr:hA()};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 ny(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ny(Object(r),!0).forEach(function(n){Ff(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ny(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pA(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,v0(n.key),n)}}function vA(e,t,r){return t&&pA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yA(e,t,r){return t=$i(t),mA(e,p0()?Reflect.construct(t,r||[],$i(e).constructor):t.apply(e,r))}function mA(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 gA(e)}function gA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p0=function(){return!!e})()}function $i(e){return $i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$i(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&&bl(e,t)}function bl(e,t){return bl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bl(e,t)}function Ff(e,t,r){return t=v0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v0(e){var t=xA(e,"string");return Or(t)=="symbol"?t:t+""}function xA(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 wA(e){return e.dataKey}function OA(e,t){return P.isValidElement(e)?P.cloneElement(e,t):typeof e=="function"?P.createElement(e,t):P.createElement(YS,t)}var rt=(function(e){function t(){return dA(this,t),yA(this,t,arguments)}return bA(t,e),vA(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.content,f=i.coordinate,l=i.filterNull,h=i.isAnimationActive,p=i.offset,y=i.payload,v=i.payloadUniqBy,d=i.position,b=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,g=y??[];l&&g.length&&(g=a0(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,wA));var m=g.length>0;return P.createElement(fA,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:h,active:a,coordinate:f,hasPayload:m,offset:p,position:d,reverseDirection:b,useTranslate3d:x,viewB
5ox:w,wrapperStyle:O},OA(c,iy(iy({},this.props),{},{payload:g})))}}])})(R.PureComponent);Ff(rt,"displayName","Tooltip");Ff(rt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ur.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 tc,ay;function _A(){if(ay)return tc;ay=1;var e=st(),t=function(){return e.Date.now()};return tc=t,tc}var rc,oy;function SA(){if(oy)return rc;oy=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return rc=t,rc}var nc,uy;function AA(){if(uy)return nc;uy=1;var e=SA(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return nc=r,nc}var ic,sy;function y0(){if(sy)return ic;sy=1;var e=AA(),t=It(),r=Br(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=t(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=e(c);var l=a.test(c);return l||o.test(c)?u(c.slice(2),l?2:8):i.test(c)?n:+c}return ic=s,ic}var ac,cy;function PA(){if(cy)return ac;cy=1;var e=It(),t=_A(),r=y0(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var f,l,h,p,y,v,d=0,b=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(b=!!c.leading,x="maxWait"in c,h=x?i(r(c.maxWait)||0,s):h,w="trailing"in c?!!c.trailing:w);function O(M){var I=f,C=l;return f=l=void 0,d=M,p=u.apply(C,I),p}function g(M){return d=M,y=setTimeout(S,s),b?O(M):p}function m(M){var I=M-v,C=M-d,N=s-I;return x?a(N,h-C):N}function _(M){var I=M-v,C=M-d;return v===void 0||I>=s||I<0||x&&C>=h}function S(){var M=t();if(_(M))return A(M);y=setTimeout(S,m(M))}function A(M){return y=void 0,w&&f?O(M):(f=l=void 0,p)}function $(){y!==void 0&&clearTimeout(y),d=0,f=v=l=y=void 0}function j(){return y===void 0?p:A(t())}function T(){var M=t(),I=_(M);if(f=arguments,l=this,v=M,I){if(y===void 0)return g(v);if(x)return clearTimeout(y),y=setTimeout(S,s),O(v)}return y===void 0&&(y=setTimeout(S,s)),p}return T.cancel=$,T.flush=j,T}return ac=o,ac}var oc,ly;function TA(){if(ly)return oc;ly=1;var e=PA(),t=It(),r="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return oc=n,oc}var jA=TA();const m0=se(jA);function mn(e){"@babel/helpers - typeof";return mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mn(e)}function fy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ci(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fy(Object(r),!0).forEach(function(n){EA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EA(e,t,r){return t=MA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MA(e){var t=CA(e,"string");return mn(t)=="symbol"?t:t+""}function CA(e,t){if(mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $A(e,t){return RA(e)||NA(e,t)||kA(e,t)||IA()}function IA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 6In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kA(e,t){if(e){if(typeof e=="string")return hy(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 hy(e,t)}}function hy(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(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;
6!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function RA(e){if(Array.isArray(e))return e}var DA=R.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,s=u===void 0?"100%":u,c=e.minWidth,f=c===void 0?0:c,l=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,v=y===void 0?0:y,d=e.id,b=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,g=R.useRef(null),m=R.useRef();m.current=x,R.useImperativeHandle(t,function(){return Object.defineProperty(g.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),g.current},configurable:!0})});var _=R.useState({containerWidth:i.width,containerHeight:i.height}),S=$A(_,2),A=S[0],$=S[1],j=R.useCallback(function(M,I){$(function(C){var N=Math.round(M),q=Math.round(I);return C.containerWidth===N&&C.containerHeight===q?C:{containerWidth:N,containerHeight:q}})},[]);R.useEffect(function(){var M=function(F){var H,K=F[0].contentRect,W=K.width,V=K.height;j(W,V),(H=m.current)===null||H===void 0||H.call(m,W,V)};v>0&&(M=m0(M,v,{trailing:!0,leading:!1}));var I=new ResizeObserver(M),C=g.current.getBoundingClientRect(),N=C.width,q=C.height;return j(N,q),I.observe(g.current),function(){I.disconnect()}},[j,v]);var T=R.useMemo(function(){var M=A.containerWidth,I=A.containerHeight;if(M<0||I<0)return null;vt(Ht(o)||Ht(s),`The width(%s) and height(%s) are both fixed numbers, 7 maybe you don't need to use a ResponsiveContainer.`,o,s),vt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var C=Ht(o)?M:o,N=Ht(s)?I:s;r&&r>0&&(C?N=C/r:N&&(C=N*r),h&&N>h&&(N=h)),vt(C>0||N>0,`The width(%s) and height(%s) of chart should be greater than 0, 8 please check the style of container, or the props width(%s) and height(%s), 9 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 10 height and width.`,C,N,o,s,f,l,r);var q=!Array.isArray(p)&&pt(p.type).endsWith("Chart");return P.Children.map(p,function(B){return P.isValidElement(B)?R.cloneElement(B,ci({width:C,height:N},q?{style:ci({height:"100%",width:"100%",maxHeight:N,maxWidth:C},B.props.style)}:{})):B})},[r,p,s,h,l,f,A,o]);return P.createElement("div",{id:d?"".concat(d):void 0,className:te("recharts-responsive-container",b),style:ci(ci({},O),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:h}),ref:g},T)}),g0=function(t){return null};g0.displayName="Cell";function gn(e){"@babel/helpers - typeof";return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(e)}function dy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dy(Object(r),!0).forEach(function(n){qA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qA(e,t,r){return t=LA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LA(e){var t=BA(e,"string");return gn(t)=="symbol"?t:t+""}function BA(e,t){if(gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sr={widthCache:{},cacheCount:0},FA=2e3,zA={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},py="recharts_measurement_span";function WA(e){var t=xl({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var sn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ur.isSsr)return{width:0,height:0};var n=WA(r),i=JSON.stringify({text:t,copyStyle:n});if(sr.widthCache[i])return sr.widthCache[i];try{var a=document.getElementById(py);a||(a=document.createElement("span"),a.setAttribute("id",py),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=xl(xl({},zA),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return sr.widthCache[i]=s,++sr.cacheCount>FA&&(sr.cacheCount=0,sr.widthCache={}),s}catch{return{width:0,height:0}}},UA=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Ii(e,t){return VA(e)||KA(e,t)||GA(e,t)||HA()}
10function HA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 11In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GA(e,t){if(e){if(typeof e=="string")return vy(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 vy(e,t)}}function vy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function KA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function VA(e){if(Array.isArray(e))return e}function XA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yy(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZA(n.key),n)}}function YA(e,t,r){return t&&yy(e.prototype,t),r&&yy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZA(e){var t=JA(e,"string");return bn(t)=="symbol"?t:t+""}function JA(e,t){if(bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var my=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,gy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,QA=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,eP=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,b0={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},tP=Object.keys(b0),fr="NaN";function rP(e,t){return e*b0[t]}var li=(function(){function e(t,r){XA(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!QA.test(r)&&(this.num=NaN,this.unit=""),tP.includes(r)&&(this.num=rP(t,r),this.unit="px")}return YA(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=eP.exec(r))!==null&&n!==void 0?n:[],a=Ii(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function x0(e){if(e.includes(fr))return fr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=my.exec(t))!==null&&r!==void 0?r:[],i=Ii(n,4),a=i[1],o=i[2],u=i[3],s=li.parse(a??""),c=li.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return fr;t=t.replace(my,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=gy.exec(t))!==null&&l!==void 0?l:[],p=Ii(h,4),y=p[1],v=p[2],d=p[3],b=li.parse(y??""),x=li.parse(d??""),w=v==="+"?b.add(x):b.subtract(x);if(w.isNaN())return fr;t=t.replace(gy,w.toString())}return t}var by=/\(([^()]*)\)/;function nP(e){for(var t=e;t.includes("(");){var r=by.exec(t),n=Ii(r,2),i=n[1];t=t.replace(by,x0(i))}return t}function iP(e){var t=e.replace(/\s+/g,"");return t=nP(t),t=x0(t),t}function aP(e){try{return iP(e)}catch{return fr}}function uc(e){var t=aP(e.slice(5,-1));return t===fr?"":t}var oP=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],uP=["dx","dy","angle","className","breakAll"];function wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
11for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wl.apply(this,arguments)}function xy(e,t){if(e==null)return{};var r=sP(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 sP(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 wy(e,t){return hP(e)||fP(e,t)||lP(e,t)||cP()}function cP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 12In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lP(e,t){if(e){if(typeof e=="string")return Oy(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 Oy(e,t)}}function Oy(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 fP(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function hP(e){if(Array.isArray(e))return e}var w0=/[ \f\n\r\t\v\u2028\u2029]+/,O0=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Q(r)||(n?a=r.toString().split(""):a=r.toString().split(w0));var o=a.map(function(s){return{word:s,width:sn(s,i).width}}),u=n?0:sn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},dP=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=L(o),l=u,h=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce(function(N,q){var B=q.word,F=q.width,H=N[N.length-1];if(H&&(i==null||a||H.width+F+n<Number(i)))H.words.push(B),H.width+=F+n;else{var K={words:[B],width:F};N.push(K)}return N},[])},p=h(r),y=function(C){return C.reduce(function(N,q){return N.width>q.width?N:q})};if(!f)return p;for(var v="â¦",d=function(C){var N=l.slice(0,C),q=O0({breakAll:c,style:s,children:N+v}).wordsWithComputedWidth,B=h(q),F=B.length>o||y(B).width>Number(i);return[F,B]},b=0,x=l.length-1,w=0,O;b<=x&&w<=l.length-1;){var g=Math.floor((b+x)/2),m=g-1,_=d(m),S=wy(_,2),A=S[0],$=S[1],j=d(g),T=wy(j,1),M=T[0];if(!A&&!M&&(b=g+1),A&&M&&(x=g-1),!A&&M){O=$;break}w++}return O||p},_y=function(t){var r=Q(t)?[]:t.toString().split(w0);return[{words:r}]},pP=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!Ur.isSsr){var s,c,f=O0({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;s=l,c=h}else return _y(i);return dP({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return _y(i)},Sy="#808080",ki=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,s=t.capHeight,c=s===void 0?"0.71em":s,f=t.scaleToFit,l=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,v=y===void 0?"end":y,d=t.fill,b=d===void 0?Sy:d,x=xy(t,oP),w=R.useMemo(function(){return pP({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),O=x.dx,g=x.dy,m=x.angle,_=x.className,S=x.breakAll,A=xy(x,uP);if(!Oe(n)||!Oe(a))return null;var $=n+(L(O)?O:0),j=a+(L(g)?g:0),T;switch(v){case"start":T=uc("calc(".concat(c,")"));break;case"middle":T=uc("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:T=uc("calc(".concat(w.length-1," * -").concat(u,")"));break}var M=[];if(l){var I=w[0].width,C=x.width;M.push("scale(".concat((L(C)?C/I:1)/I,")"))}return m&&M.push("rotate(".concat(m,", ").concat($,", ").concat(j,")")),M.length&&(A.transform=M.join(" ")),P.createElement("text",wl({},J(A,!0),{x:$,y:j,className:te("recharts-text",_),textAnchor:p,fill:b.includes("url")?Sy:b}),w.map(function(N,q){var B=N.words.join(S?"":" ");
12return P.createElement("tspan",{x:$,dy:q===0?T:u,key:"".concat(B,"-").concat(q)},B)}))};function Ct(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function vP(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function zf(e){let t,r,n;e.length!==2?(t=Ct,r=(u,s)=>Ct(e(u),s),n=(u,s)=>e(u)-s):(t=e===Ct||e===vP?e:yP,r=e,n=e);function i(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<0?c=l+1:f=l}while(c<f)}return c}function a(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<=0?c=l+1:f=l}while(c<f)}return c}function o(u,s,c=0,f=u.length){const l=i(u,s,c,f-1);return l>c&&n(u[l-1],s)>-n(u[l],s)?l-1:l}return{left:i,center:o,right:a}}function yP(){return 0}function _0(e){return e===null?NaN:+e}function*mP(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const gP=zf(Ct),Qn=gP.right;zf(_0).center;class Ay extends Map{constructor(t,r=wP){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(Py(this,t))}has(t){return super.has(Py(this,t))}set(t,r){return super.set(bP(this,t),r)}delete(t){return super.delete(xP(this,t))}}function Py({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function bP({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function xP({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function wP(e){return e!==null&&typeof e=="object"?e.valueOf():e}function OP(e=Ct){if(e===Ct)return S0;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 S0(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const _P=Math.sqrt(50),SP=Math.sqrt(10),AP=Math.sqrt(2);function Ni(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>=_P?10:a>=SP?5:a>=AP?2:1;let u,s,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),s=Math.round(t*c),u/c<e&&++u,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),s=Math.round(t/c),u*c<e&&++u,s*c>t&&--s),s<u&&.5<=r&&r<2?Ni(e,t,r*2):[u,s,c]}function Ol(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Ni(t,e,r):Ni(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)s[c]=(a-c)/-o;else for(let c=0;c<u;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)s[c]=(i+c)/-o;else for(let c=0;c<u;++c)s[c]=(i+c)*o;return s}function _l(e,t,r){return t=+t,e=+e,r=+r,Ni(e,t,r)[2]}function Sl(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?_l(t,e,r):_l(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Ty(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function jy(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function A0(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?S0:OP(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),p=Math.max(r,Math.floor(t-c*l/s+h)),y=Math.min(n,Math.floor(t+(s-c)*l/s+h));A0(e,t,p,y,i)}const a=e[t];let o=r,u=n;for(Yr(e,r,t),i(e[n],a)>0&&Yr(e,r,n);o<u;){for(Yr(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Yr(e,r,u):(++u,Yr(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Yr(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function PP(e,t,r){if(e=Float64Array.from(mP(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return jy(e);if(t>=1)return Ty(e);var n,i=(n-1)*t,a=Math.floor(i),o=Ty(A0(e,a).subarray(0,a+1)),u=jy(e.subarray(a+1));return o+(u-o)*(i-a)}}function TP(e,t,r=_0){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 jP(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 Ve(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function St(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}
vendor: 13,173 bytes, line 12
12const Al=Symbol("implicit");function Wf(){var e=new Ay,t=[],r=[],n=Al;function i(a){let o=e.get(a);if(o===void 0){if(n!==Al)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 Ay;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 Wf(t,r).unknown(n)},Ve.apply(i,arguments),i}function xn(){var e=Wf().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,f=.5;delete e.unknown;function l(){var h=t().length,p=i<n,y=p?i:n,v=p?n:i;a=(v-y)/Math.max(1,h-s+c*2),u&&(a=Math.floor(a)),y+=(v-y-a*(h-s))*f,o=a*(1-s),u&&(y=Math.round(y),o=Math.round(o));var d=jP(h).map(function(b){return y+a*b});return r(p?d.reverse():d)}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?(s=Math.min(1,c=+h),l()):s},e.paddingInner=function(h){return arguments.length?(s=Math.min(1,h),l()):s},e.paddingOuter=function(h){return arguments.length?(c=+h,l()):c},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},e.copy=function(){return xn(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},Ve.apply(l(),arguments)}function P0(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return P0(t())},e}function cn(){return P0(xn.apply(null,arguments).paddingInner(1))}function Uf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function T0(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ei(){}var wn=.7,Ri=1/wn,yr="\\s*([+-]?\\d+)\\s*",On="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",at="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",EP=/^#([0-9a-f]{3,8})$/,MP=new RegExp(`^rgb\\(${yr},${yr},${yr}\\)$`),CP=new RegExp(`^rgb\\(${at},${at},${at}\\)$`),$P=new RegExp(`^rgba\\(${yr},${yr},${yr},${On}\\)$`),IP=new RegExp(`^rgba\\(${at},${at},${at},${On}\\)$`),kP=new RegExp(`^hsl\\(${On},${at},${at}\\)$`),NP=new RegExp(`^hsla\\(${On},${at},${at},${On}\\)$`),Ey={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};Uf(ei,_n,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:My,formatHex:My,formatHex8:RP,formatHsl:DP,formatRgb:Cy,toString:Cy});function My(){return this.rgb().formatHex()}function RP(){return this.rgb().formatHex8()}function DP(){return j0(this).formatHsl()}function Cy(){return this.rgb().formatRgb()}function _n(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=EP.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?$y(t):r===3?new ke(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?fi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?fi(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=MP.exec(e))?new ke(t[1],t[2],t[3],1):(t=CP.exec(e))?new ke(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=$P.exec(e))?fi(t[1],t[2],t[3],t[4]):(t=IP.exec(e))?fi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=kP.exec(e))?Ny(t[1],t[2]/100,t[3]/100,1):(t=NP.exec(e))?Ny(t[1],t[2]/100,t[3]/100,t[4]):Ey.hasOwnProperty(e)?$y(Ey[e]):e==="transparent"?new ke(NaN,NaN,NaN,0):null}function $y(e){return new ke(e>>16&255,e>>8&255,e&255,1)}function fi(e,t,r,n){return n<=0&&(e=t=r=NaN),new ke(e,t,r,n)}function qP(e){return e instanceof ei||(e=_n(e)),e?(e=e.rgb(),new ke(e.r,e.g,e.b,e.opacity)):new ke}function Pl(e,t,r,n){return arguments.length===1?qP(e):new ke(e,t,r,n??1)}function ke(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Uf(ke,Pl,T0(ei,{brighter(e){return e=e==null?Ri:Math.pow(Ri,e),new ke(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?wn:Math.pow(wn,e),new ke(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ke(Yt(this.r),Yt(this.g),Yt(this.b),Di(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:Iy,formatHex:Iy,formatHex8:LP,formatRgb:ky,toString:ky}));function Iy(){return`#${Gt(this.r)}${Gt(this.g)}${Gt(this.b)}`}function LP(){return`#${Gt(this.r)}${Gt(this.g)}${Gt(this.b)}${Gt((isNaN(this.opacity)?1:this.opacity)*255)}`}function ky(){const e=Di(this.opacity);return`${e===1?"rgb(":"rgba("}${Yt(this.r)}, ${Yt(this.g)}, ${Yt(this.b)}${e===1?")":`, ${e})`}`}function Di(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Gt(e){return e=Yt(e),(e<16?"0":"")+e.toString(16)}function Ny(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ze(e,t,r,n)}function j0(e){if(e instanceof Ze)return new Ze(e.h,e.s,e.l,e.opacity);if(e instanceof ei||(e=_n(e)),!e)return new Ze;if(e instanceof Ze)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new Ze(o,u,s,e.opacity)}function BP(e,t,r,n){return arguments.length===1?j0(e):new Ze(e,t,r,n??1)}function Ze(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Uf(Ze,BP,T0(ei,{brighter(e){return e=e==null?Ri:Math.pow(Ri,e),new Ze(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?wn:Math.pow(wn,e),new Ze(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 ke(sc(e>=240?e-240:e+120,i,n),sc(e,i,n),sc(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ze(Ry(this.h),hi(this.s),hi(this.l),Di(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=Di(this.opacity);return`${e===1?"hsl(":"hsla("}${Ry(this.h)}, ${hi(this.s)*100}%, ${hi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ry(e){return e=(e||0)%360,e<0?e+360:e}function hi(e){return Math.max(0,Math.min(1,e||0))}function sc(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 Hf=e=>()=>e;function FP(e,t){return function(r){return e+r*t}}function zP(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 WP(e){return(e=+e)==1?E0:function(t,r){return r-t?zP(t,r,e):Hf(isNaN(t)?r:t)}}function E0(e,t){var r=t-e;return r?FP(e,r):Hf(isNaN(e)?t:e)}const Dy=(function e(t){var r=WP(t);function n(i,a){var o=r((i=Pl(i)).r,(a=Pl(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=E0(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=c(f),i+""}}return n.gamma=e,n})(1);function UP(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 HP(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function GP(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]=Hr(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 KP(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function qi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function VP(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]=Hr(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Tl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cc=new RegExp(Tl.source,"g");function XP(e){return function(){return e}}function YP(e){return function(t){return e(t)+""}}function ZP(e,t){var r=Tl.lastIndex=cc.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=Tl.exec(e))&&(i=cc.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:qi(n,i)})),r=cc.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?YP(s[0].x):XP(t):(t=s.length,function(c){for(var f=0,l;f<t;++f)u[(l=s[f]).i]=l.x(c);return u.join("")})}function Hr(e,t){var r=typeof t,n;return t==null||r==="boolean"?Hf(t):(r==="number"?qi:r==="string"?(n=_n(t))?(t=n,Dy):ZP:t instanceof _n?Dy:t instanceof Date?KP:HP(t)?UP:Array.isArray(t)?GP:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?VP:qi)(e,t)}function Gf(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function JP(e,t){t===void 0&&(t=e,e=Hr);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 QP(e){return function(){return e}}function Li(e){return+e}var qy=[0,1];function Ce(e){return e}function jl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:QP(isNaN(t)?NaN:.5)}function eT(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function tT(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=jl(i,n),a=r(o,a)):(n=jl(n,i),a=r(a,o)),function(u){return a(n(u))}}function rT(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]=jl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=Qn(e,u,1,n)-1;return a[s](i[s](u))}}function ti(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ca(){var e=qy,t=qy,r=Hr,n,i,a,o=Ce,u,s,c;function f(){var h=Math.min(e.length,t.length);return o!==Ce&&(o=eT(e[0],e[h-1])),u=h>2?rT:tT,s=c=null,l}function l(h){return h==null||isNaN(h=+h)?a:(s||(s=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((c||(c=u(t,e.map(n),qi)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Li),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=Gf,f()},l.clamp=function(h){return arguments.length?(o=h?!0:Ce,f()):o!==Ce},l.interpolate=function(h){return arguments.length?(r=h,f()):r},l.unknown=function(h){return arguments.length?(a=h,l):a},function(h,p){return n=h,i=p,f()}}function Kf(){return Ca()(Ce,Ce)}
12function nT(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Bi(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function _r(e){return e=Bi(Math.abs(e)),e?e[1]:NaN}function iT(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function aT(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var oT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Sn(e){if(!(t=oT.exec(e)))throw new Error("invalid format: "+e);var t;return new Vf({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]})}Sn.prototype=Vf.prototype;function Vf(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+""}Vf.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 uT(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 Fi;function sT(e,t){var r=Bi(e,t);if(!r)return Fi=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Fi=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")+Bi(e,Math.max(0,t+a-1))[0]}function Ly(e,t){var r=Bi(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 By={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:nT,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)=>Ly(e*100,t),r:Ly,s:sT,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Fy(e){return e}var zy=Array.prototype.map,Wy=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function cT(e){var t=e.grouping===void 0||e.thousands===void 0?Fy:iT(zy.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?Fy:aT(zy.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"â":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(l,h){l=Sn(l);var p=l.fill,y=l.align,v=l.sign,d=l.symbol,b=l.zero,x=l.width,w=l.comma,O=l.precision,g=l.trim,m=l.type;m==="n"?(w=!0,m="g"):By[m]||(O===void 0&&(O=12),g=!0,m="g"),(b||p==="0"&&y==="=")&&(b=!0,p="0",y="=");var _=(h&&h.prefix!==void 0?h.prefix:"")+(d==="$"?r:d==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():""),S=(d==="$"?n:/[%p]/.test(m)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),A=By[m],$=/[defgprs%]/.test(m);O=O===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function j(T){var M=_,I=S,C,N,q;if(m==="c")I=A(T)+I,T="";else{T=+T;var B=T<0||1/T<0;if(T=isNaN(T)?s:A(Math.abs(T),O),g&&(T=uT(T)),B&&+T==0&&v!=="+"&&(B=!1),M=(B?v==="("?v:u:v==="-"||v==="("?"":v)+M,I=(m==="s"&&!isNaN(T)&&Fi!==void 0?Wy[8+Fi/3]:"")+I+(B&&v==="("?")":""),$){for(C=-1,N=T.length;++C<N;)if(q=T.charCodeAt(C),48>q||q>57){I=(q===46?i+T.slice(C+1):T.slice(C))+I,T=T.slice(0,C);break}}}w&&!b&&(T=t(T,1/0));var F=M.length+T.length+I.length,H=F<x?new Array(x-F+1).join(p):"";switch(w&&b&&(T=t(H+T,H.length?x-I.length:1/0),H=""),y){case"<":T=M+T+I+H;break;case"=":T=M+H+T+I;break;case"^":T=H.slice(0,F=H.length>>1)+M+T+I+H.slice(F);break;default:T=H+M+T+I;break}return a(T)}return j.toString=function(){return l+""},j}function f(l,h){var p=Math.max(-8,Math.min(8,Math.floor(_r(h)/3)))*3,y=Math.pow(10,-p),v=c((l=Sn(l),l.type="f",l),{suffix:Wy[8+p/3]});return function(d){return v(y*d)}}return{format:c,formatPrefix:f}}var di,Xf,M0;lT({thousands:",",grouping:[3],currency:["$",""]});function lT(e){return di=cT(e),Xf=di.format,M0=di.formatPrefix,di}function fT(e){return Math.max(0,-_r(Math.abs(e)))}function hT(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(_r(t)/3)))*3-_r(Math.abs(e)))}function dT(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,_r(t)-_r(e))+1}function C0(e,t,r,n){var i=Sl(e,t,r),a;switch(n=Sn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=hT(i,o))&&(n.precision=a),M0(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=dT(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=fT(i))&&(n.precision=a-(n.type==="%")*2);break}}return Xf(n)}function Nt(e){var t=e.domain;return e.ticks=function(r){var n=t();return Ol(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return C0(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],s,c,f=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);f-- >0;){if(c=_l(o,u,r),c===s)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;s=c}return e},e}function zi(){var e=Kf();return e.copy=function(){return ti(e,zi())},Ve.apply(e,arguments),Nt(e)}function $0(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,Li),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return $0(e).unknown(t)},e=arguments.length?Array.from(e,Li):[0,1],Nt(r)}function I0(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 Uy(e){return Math.log(e)}function Hy(e){return Math.exp(e)}function pT(e){return-Math.log(-e)}function vT(e){return-Math.exp(-e)}function yT(e){return isFinite(e)?+("1e"+e):e<0?0:e}function mT(e){return e===10?yT:e===Math.E?Math.exp:t=>Math.pow(e,t)}function gT(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 Gy(e){return(t,r)=>-e(-t,r)}function Yf(e){const t=e(Uy,Hy),r=t.domain;let n=10,i,a;function o(){return i=gT(n),a=mT(n),r()[0]<0?(i=Gy(i),a=Gy(a),e(pT,vT)):e(Uy,Hy),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const s=r();let c=s[0],f=s[s.length-1];const l=f<c;l&&([c,f]=[f,c]);let h=i(c),p=i(f),y,v;const d=u==null?10:+u;let b=[];if(!(n%1)&&p-h<d){if(h=Math.floor(h),p=Math.ceil(p),c>0){for(;h<=p;
12++h)for(y=1;y<n;++y)if(v=h<0?y/a(-h):y*a(h),!(v<c)){if(v>f)break;b.push(v)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(v=h>0?y/a(-h):y*a(h),!(v<c)){if(v>f)break;b.push(v)}b.length*2<d&&(b=Ol(c,f,d))}else b=Ol(h,p,Math.min(p-h,d)).map(a);return l?b.reverse():b},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=Sn(s)).precision==null&&(s.trim=!0),s=Xf(s)),u===1/0)return s;const c=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=c?s(f):""}},t.nice=()=>r(I0(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function k0(){const e=Yf(Ca()).domain([1,10]);return e.copy=()=>ti(e,k0()).base(e.base()),Ve.apply(e,arguments),e}function Ky(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Vy(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Zf(e){var t=1,r=e(Ky(t),Vy(t));return r.constant=function(n){return arguments.length?e(Ky(t=+n),Vy(t)):t},Nt(r)}function N0(){var e=Zf(Ca());return e.copy=function(){return ti(e,N0()).constant(e.constant())},Ve.apply(e,arguments)}function Xy(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function bT(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function xT(e){return e<0?-e*e:e*e}function Jf(e){var t=e(Ce,Ce),r=1;function n(){return r===1?e(Ce,Ce):r===.5?e(bT,xT):e(Xy(r),Xy(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Nt(t)}function Qf(){var e=Jf(Ca());return e.copy=function(){return ti(e,Qf()).exponent(e.exponent())},Ve.apply(e,arguments),e}function wT(){return Qf.apply(null,arguments).exponent(.5)}function Yy(e){return Math.sign(e)*e*e}function OT(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function R0(){var e=Kf(),t=[0,1],r=!1,n;function i(a){var o=OT(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Yy(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,Li)).map(Yy)),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 R0(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ve.apply(i,arguments),Nt(i)}function D0(){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]=TP(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Qn(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(Ct),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 D0().domain(e).range(t).unknown(n)},Ve.apply(a,arguments)}function q0(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Qn(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return q0().domain([e,t]).range(i).unknown(a)},Ve.apply(Nt(o),arguments)}function L0(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Qn(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 L0().domain(e).range(t).unknown(r)},Ve.apply(i,arguments)}const lc=new Date,fc=new Date;function _e(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>
12(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>_e(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)=>(lc.setTime(+a),fc.setTime(+o),e(lc),e(fc),Math.floor(r(lc,fc))),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 Wi=_e(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Wi.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?_e(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Wi);Wi.range;const ft=1e3,He=ft*60,ht=He*60,mt=ht*24,eh=mt*7,Zy=mt*30,hc=mt*365,Kt=_e(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ft)},(e,t)=>(t-e)/ft,e=>e.getUTCSeconds());Kt.range;const th=_e(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ft)},(e,t)=>{e.setTime(+e+t*He)},(e,t)=>(t-e)/He,e=>e.getMinutes());th.range;const rh=_e(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*He)},(e,t)=>(t-e)/He,e=>e.getUTCMinutes());rh.range;const nh=_e(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ft-e.getMinutes()*He)},(e,t)=>{e.setTime(+e+t*ht)},(e,t)=>(t-e)/ht,e=>e.getHours());nh.range;const ih=_e(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ht)},(e,t)=>(t-e)/ht,e=>e.getUTCHours());ih.range;const ri=_e(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*He)/mt,e=>e.getDate()-1);ri.range;const $a=_e(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mt,e=>e.getUTCDate()-1);$a.range;const B0=_e(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mt,e=>Math.floor(e/mt));B0.range;function ir(e){return _e(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)/eh)}const Ia=ir(0),Ui=ir(1),_T=ir(2),ST=ir(3),Sr=ir(4),AT=ir(5),PT=ir(6);Ia.range;Ui.range;_T.range;ST.range;Sr.range;AT.range;PT.range;function ar(e){return _e(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)/eh)}const ka=ar(0),Hi=ar(1),TT=ar(2),jT=ar(3),Ar=ar(4),ET=ar(5),MT=ar(6);ka.range;Hi.range;TT.range;jT.range;Ar.range;ET.range;MT.range;const ah=_e(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());ah.range;const oh=_e(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());oh.range;const gt=_e(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());gt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_e(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)});gt.range;const bt=_e(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());bt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_e(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)});bt.range;function F0(e,t,r,n,i,a){const o=[[Kt,1,ft],[Kt,5,5*ft],[Kt,15,15*ft],[Kt,30,30*ft],[a,1,He],[a,5,5*He],[a,15,15*He],[a,30,30*He],[i,1,ht],[i,3,3*ht],[i,6,6*ht],[i,12,12*ht],[n,1,mt],[n,2,2*mt],[r,1,eh],[t,1,Zy],[t,3,3*Zy],[e,1,hc]];function u(c,f,l){const h=f<c;h&&([c,f]=[f,c]);const p=l&&typeof l.range=="function"?l:s(c,f,l),y=p?p.range(c,+f+1):[];return h?y.reverse():y}function s(c,f,l){const h=Math.abs(f-c)/l,p=zf(([,,d])=>d).right(o,h);if(p===o.length)return e.every(Sl(c/hc,f/hc,l));if(p===0)return Wi.every(Math.max(Sl(c,f,l),1));const[y,v]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(v)}return[u,s]}const[CT,$T]=F0(bt,oh,ka,B0,ih,rh),[IT,kT]=F0(gt,ah,Ia,ri,nh,th);function dc(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 pc(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 Zr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function NT(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=Jr(i),f=Qr(i),l=Jr(a),h=Qr(a),p=Jr(o),y=Qr(o),v=Jr(u),d=Qr(u),b=Jr(s),x=Qr(s),w={a:q,A:B,b:F,B:H,c:null,d:nm,e:nm,f:ij,g:pj,G:yj,H:tj,I:rj,j:nj,L:z0,m:aj,M:oj,p:K,q:W,Q:om,s:um,S:uj,u:sj,U:cj,V:lj,w:fj,W:hj,x:null,X:null,y:dj,Y:vj,Z:mj,"%":am},O={a:V,A:ce,b:ve,B:Re,c:null,d:im,e:im,f:wj,g:Cj,G:Ij,H:gj,I:bj,j:xj,L:U0,m:Oj,M:_j,p:qt,q:$e,Q:om,s:um,S:Sj,u:Aj,U:Pj,V:Tj,w:jj,W:Ej,x:null,X:null,y:Mj,Y:$j,Z:kj,"%":am},g={a:$,A:j,b:T,B:M,c:I,d:tm,e:tm,f:ZT,g:em,G:Qy,H:rm,I:rm,j:KT,L:YT,m:GT,M:VT,p:A,q:HT,Q:QT,s:ej,S:XT,u:BT,U:FT,V:zT,w:LT,W:WT,x:C,X:N,y:em,Y:Qy,Z:UT,"%":JT};w.x=m(r,w),w.X=m(n,w),w.c=m(t,w),O.x=m(r,O),O.X=m(n,O),O.c=m(t,O);function m(z,X){return function(Z){var D=[],de=-1,ee=0,ge=z.length,be,Ie,At;for(Z instanceof Date||(Z=new Date(+Z));++de<ge;)z.charCodeAt(de)===37&&(D.push(z.slice(ee,de)),(Ie=Jy[be=z.charAt(++de)])!=null?be=z.charAt(++de):Ie=be==="e"?" ":"0",(At=X[be])&&(be=At(Z,Ie)),D.push(be),ee=de+1);return D.push(z.slice(ee,de)),D.join("")}}function _(z,X){return function(Z){var D=Zr(1900,void 0,1),de=S(D,z,Z+="",0),ee,ge;if(de!=Z.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(X&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(ee=pc(Zr(D.y,0,1)),ge=ee.getUTCDay(),ee=ge>4||ge===0?Hi.ceil(ee):Hi(ee),ee=$a.offset(ee,(D.V-1)*7),D.y=ee.getUTCFullYear(),D.m=ee.getUTCMonth(),D.d=ee.getUTCDate()+(D.w+6)%7):(ee=dc(Zr(D.y,0,1)),ge=ee.getDay(),ee=ge>4||ge===0?Ui.ceil(ee):Ui(ee),ee=ri.offset(ee,(D.V-1)*7),D.y=ee.getFullYear(),D.m=ee.getMonth(),D.d=ee.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),ge="Z"in D?pc(Zr(D.y,0,1)).getUTCDay():dc(Zr(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(ge+5)%7:D.w+D.U*7-(ge+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,pc(D)):dc(D)}}function S(z,X,Z,D){for(var de=0,ee=X.length,ge=Z.length,be,Ie;de<ee;){if(D>=ge)return-1;if(be=X.charCodeAt(de++),be===37){if(be=X.charAt(de++),Ie=g[be in Jy?X.charAt(de++):be],!Ie||(D=Ie(z,Z,D))<0)return-1}
vendor: 6,106 bytes, line 12
12else if(be!=Z.charCodeAt(D++))return-1}return D}function A(z,X,Z){var D=c.exec(X.slice(Z));return D?(z.p=f.get(D[0].toLowerCase()),Z+D[0].length):-1}function $(z,X,Z){var D=p.exec(X.slice(Z));return D?(z.w=y.get(D[0].toLowerCase()),Z+D[0].length):-1}function j(z,X,Z){var D=l.exec(X.slice(Z));return D?(z.w=h.get(D[0].toLowerCase()),Z+D[0].length):-1}function T(z,X,Z){var D=b.exec(X.slice(Z));return D?(z.m=x.get(D[0].toLowerCase()),Z+D[0].length):-1}function M(z,X,Z){var D=v.exec(X.slice(Z));return D?(z.m=d.get(D[0].toLowerCase()),Z+D[0].length):-1}function I(z,X,Z){return S(z,t,X,Z)}function C(z,X,Z){return S(z,r,X,Z)}function N(z,X,Z){return S(z,n,X,Z)}function q(z){return o[z.getDay()]}function B(z){return a[z.getDay()]}function F(z){return s[z.getMonth()]}function H(z){return u[z.getMonth()]}function K(z){return i[+(z.getHours()>=12)]}function W(z){return 1+~~(z.getMonth()/3)}function V(z){return o[z.getUTCDay()]}function ce(z){return a[z.getUTCDay()]}function ve(z){return s[z.getUTCMonth()]}function Re(z){return u[z.getUTCMonth()]}function qt(z){return i[+(z.getUTCHours()>=12)]}function $e(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var X=m(z+="",w);return X.toString=function(){return z},X},parse:function(z){var X=_(z+="",!1);return X.toString=function(){return z},X},utcFormat:function(z){var X=m(z+="",O);return X.toString=function(){return z},X},utcParse:function(z){var X=_(z+="",!0);return X.toString=function(){return z},X}}}var Jy={"-":"",_:" ",0:"0"},Ae=/^\s*\d+/,RT=/^%/,DT=/[\\^$*+?|[\]().{}]/g;function re(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 qT(e){return e.replace(DT,"\\$&")}function Jr(e){return new RegExp("^(?:"+e.map(qT).join("|")+")","i")}function Qr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function LT(e,t,r){var n=Ae.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function BT(e,t,r){var n=Ae.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function FT(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function zT(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function WT(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Qy(e,t,r){var n=Ae.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function em(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function UT(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 HT(e,t,r){var n=Ae.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function GT(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function tm(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function KT(e,t,r){var n=Ae.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function rm(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function VT(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function XT(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function YT(e,t,r){var n=Ae.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function ZT(e,t,r){var n=Ae.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function JT(e,t,r){var n=RT.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function QT(e,t,r){var n=Ae.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function ej(e,t,r){var n=Ae.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function nm(e,t){return re(e.getDate(),t,2)}function tj(e,t){return re(e.getHours(),t,2)}function rj(e,t){return re(e.getHours()%12||12,t,2)}function nj(e,t){return re(1+ri.count(gt(e),e),t,3)}function z0(e,t){return re(e.getMilliseconds(),t,3)}function ij(e,t){return z0(e,t)+"000"}function aj(e,t){return re(e.getMonth()+1,t,2)}function oj(e,t){return re(e.getMinutes(),t,2)}function uj(e,t){return re(e.getSeconds(),t,2)}function sj(e){var t=e.getDay();return t===0?7:t}function cj(e,t){return re(Ia.count(gt(e)-1,e),t,2)}function W0(e){var t=e.getDay();return t>=4||t===0?Sr(e):Sr.ceil(e)}function lj(e,t){return e=W0(e),re(Sr.count(gt(e),e)+(gt(e).getDay()===4),t,2)}function fj(e){return e.getDay()}function hj(e,t){return re(Ui.count(gt(e)-1,e),t,2)}function dj(e,t){return re(e.getFullYear()%100,t,2)}function pj(e,t){return e=W0(e),re(e.getFullYear()%100,t,2)}function vj(e,t){return re(e.getFullYear()%1e4,t,4)}function yj(e,t){var r=e.getDay();return e=r>=4||r===0?Sr(e):Sr.ceil(e),re(e.getFullYear()%1e4,t,4)}function mj(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+re(t/60|0,"0",2)+re(t%60,"0",2)}function im(e,t){return re(e.getUTCDate(),t,2)}function gj(e,t){return re(e.getUTCHours(),t,2)}function bj(e,t){return re(e.getUTCHours()%12||12,t,2)}function xj(e,t){return re(1+$a.count(bt(e),e),t,3)}function U0(e,t){return re(e.getUTCMilliseconds(),t,3)}function wj(e,t){return U0(e,t)+"000"}function Oj(e,t){return re(e.getUTCMonth()+1,t,2)}function _j(e,t){return re(e.getUTCMinutes(),t,2)}function Sj(e,t){return re(e.getUTCSeconds(),t,2)}function Aj(e){var t=e.getUTCDay();return t===0?7:t}function Pj(e,t){return re(ka.count(bt(e)-1,e),t,2)}function H0(e){var t=e.getUTCDay();return t>=4||t===0?Ar(e):Ar.ceil(e)}function Tj(e,t){return e=H0(e),re(Ar.count(bt(e),e)+(bt(e).getUTCDay()===4),t,2)}function jj(e){return e.getUTCDay()}function Ej(e,t){return re(Hi.count(bt(e)-1,e),t,2)}function Mj(e,t){return re(e.getUTCFullYear()%100,t,2)}function Cj(e,t){return e=H0(e),re(e.getUTCFullYear()%100,t,2)}function $j(e,t){return re(e.getUTCFullYear()%1e4,t,4)}function Ij(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ar(e):Ar.ceil(e),re(e.getUTCFullYear()%1e4,t,4)}function kj(){return"+0000"}function am(){return"%"}function om(e){return+e}function um(e){return Math.floor(+e/1e3)}var cr,G0,K0;Nj({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
12ay","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 Nj(e){return cr=NT(e),G0=cr.format,cr.parse,K0=cr.utcFormat,cr.utcParse,cr}function Rj(e){return new Date(e)}function Dj(e){return e instanceof Date?+e:+new Date(+e)}function uh(e,t,r,n,i,a,o,u,s,c){var f=Kf(),l=f.invert,h=f.domain,p=c(".%L"),y=c(":%S"),v=c("%I:%M"),d=c("%I %p"),b=c("%a %d"),x=c("%b %d"),w=c("%B"),O=c("%Y");function g(m){return(s(m)<m?p:u(m)<m?y:o(m)<m?v:a(m)<m?d:n(m)<m?i(m)<m?b:x:r(m)<m?w:O)(m)}return f.invert=function(m){return new Date(l(m))},f.domain=function(m){return arguments.length?h(Array.from(m,Dj)):h().map(Rj)},f.ticks=function(m){var _=h();return e(_[0],_[_.length-1],m??10)},f.tickFormat=function(m,_){return _==null?g:c(_)},f.nice=function(m){var _=h();return(!m||typeof m.range!="function")&&(m=t(_[0],_[_.length-1],m??10)),m?h(I0(_,m)):f},f.copy=function(){return ti(f,uh(e,t,r,n,i,a,o,u,s,c))},f}function qj(){return Ve.apply(uh(IT,kT,gt,ah,Ia,ri,nh,th,Kt,G0).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Lj(){return Ve.apply(uh(CT,$T,bt,oh,ka,$a,ih,rh,Kt,K0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Na(){var e=0,t=1,r,n,i,a,o=Ce,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(u=!!l,c):u},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(h){var p,y;return arguments.length?([p,y]=h,o=l(p,y),c):[o(0),o(1)]}}return c.range=f(Hr),c.rangeRound=f(Gf),c.unknown=function(l){return arguments.length?(s=l,c):s},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),c}}function Rt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function V0(){var e=Nt(Na()(Ce));return e.copy=function(){return Rt(e,V0())},St.apply(e,arguments)}function X0(){var e=Yf(Na()).domain([1,10]);return e.copy=function(){return Rt(e,X0()).base(e.base())},St.apply(e,arguments)}function Y0(){var e=Zf(Na());return e.copy=function(){return Rt(e,Y0()).constant(e.constant())},St.apply(e,arguments)}function sh(){var e=Jf(Na());return e.copy=function(){return Rt(e,sh()).exponent(e.exponent())},St.apply(e,arguments)}function Bj(){return sh.apply(null,arguments).exponent(.5)}function Z0(){var e=[],t=Ce;function r(n){if(n!=null&&!isNaN(n=+n))return t((Qn(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(Ct),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)=>PP(e,a/n))},r.copy=function(){return Z0(t).domain(e)},St.apply(r,arguments)}function Ra(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=Ce,f,l=!1,h;function p(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:s),c(l?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(v){return arguments.length?(l=!!v,p):l},p.interpolator=function(v){return arguments.length?(c=v,p):c};function y(v){return function(d){var b,x,w;return arguments.length?([b,x,w]=d,c=JP(v,[b,x,w]),p):[c(0),c(.5),c(1)]}}return p.range=y(Hr),p.rangeRound=y(Gf),p.unknown=function(v){return arguments.length?(h=v,p):h},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function J0(){var e=Nt(Ra()(Ce));return e.copy=function(){return Rt(e,J0())},St.apply(e,arguments)}function Q0(){var e=Yf(Ra()).domain([.1,1,10]);return e.copy=function(){return Rt(e,Q0()).base(e.base())},St.apply(e,arguments)}function ex(){var e=Zf(Ra());return e.copy=function(){return Rt(e,ex()).constant(e.constant())},St.apply(e,arguments)}function ch(){var e=Jf(Ra());return e.copy=function(){return Rt(e,ch()).exponent(e.exponent())},St.apply(e,arguments)}function Fj(){return ch.apply(null,arguments).exponent(.5)}const sm=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:xn,scaleDiverging:J0,scaleDivergingLog:Q0,scaleDivergingPow:ch,scaleDivergingSqrt:Fj,scaleDivergingSymlog:ex,scaleIdentity:$0,scaleImplicit:Al,scaleLinear:zi,scaleLog:k0,scaleOrdinal:Wf,scalePoint:cn,scalePow:Qf,scaleQuantile:D0,scaleQuantize:q0,scaleRadial:R0,scaleSequential:V0,scaleSequentialLog:X0,scaleSequentialPow:sh,scaleSequentialQuantile:Z0,scaleSequentialSqrt:Bj,scaleSequentialSymlog:Y0,scaleSqrt:wT,scaleSymlog:N0,scaleThreshold:L0,scaleTime:qj,scaleUtc:Lj,tickFormat:C0},Symbol.toStringTag,{value:"Module"}));var vc,cm;function tx(){if(cm)return vc;cm=1;var e=Br();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],s=n(u);if(s!=null&&(c===void 0?s===s&&!e(s):i(s,c)))var c=s,f=u}return f}return vc=t,vc}var yc,lm;function zj(){if(lm)return yc;lm=1;function e(t,r){return t>r}return yc=e,yc}var mc,fm;function Wj(){if(fm)return mc;fm=1;var e=tx(),t=zj(),r=Wr();function n(i){return i&&i.length?e(i,r,t):void 0}return mc=n,mc}var Uj=Wj();const Et=se(Uj);var gc,hm;function Hj(){if(hm)return gc;hm=1;function e(t,r){return t<r}return gc=e,gc}var bc,dm;function Gj(){if(dm)return bc;dm=1;var e=tx(),t=Hj(),r=Wr();function n(i){return i&&i.length?e(i,r,t):void 0}return bc=n,bc}var Kj=Gj();const Da=se(Kj);var xc,pm;function Vj(){if(pm)return xc;pm=1;var e=Af(),t=kt(),r=l0(),n=Ne();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return xc=i,xc}var wc,vm;function Xj(){if(vm)return wc;vm=1;var e=s0(),t=Vj();function r(n,i){return e(t(n,i),1)}return wc=r,wc}var Yj=Xj();const Zj=se(Yj);var Oc,ym;function Jj(){if(ym)return Oc;ym=1;var e=qf();function t(r,n){return e(r,n)}return Oc=t,Oc}var Qj=Jj();const An=se(Qj);
12var Gr=1e9,eE={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},fh,fe=!0,Ke="[DecimalError] ",Zt=Ke+"Invalid argument: ",lh=Ke+"Exponent out of range: ",Kr=Math.floor,Ut=Math.pow,tE=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Le,Se=1e7,le=7,rx=9007199254740991,Gi=Kr(rx/le),U={};U.absoluteValue=U.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};U.comparedTo=U.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};U.decimalPlaces=U.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*le;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};U.dividedBy=U.div=function(e){return yt(this,new this.constructor(e))};U.dividedToIntegerBy=U.idiv=function(e){var t=this,r=t.constructor;return oe(yt(t,new r(e),0,1),r.precision)};U.equals=U.eq=function(e){return!this.cmp(e)};U.exponent=function(){return me(this)};U.greaterThan=U.gt=function(e){return this.cmp(e)>0};U.greaterThanOrEqualTo=U.gte=function(e){return this.cmp(e)>=0};U.isInteger=U.isint=function(){return this.e>this.d.length-2};U.isNegative=U.isneg=function(){return this.s<0};U.isPositive=U.ispos=function(){return this.s>0};U.isZero=function(){return this.s===0};U.lessThan=U.lt=function(e){return this.cmp(e)<0};U.lessThanOrEqualTo=U.lte=function(e){return this.cmp(e)<1};U.logarithm=U.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(Le))throw Error(Ke+"NaN");if(r.s<1)throw Error(Ke+(r.s?"NaN":"-Infinity"));return r.eq(Le)?new n(0):(fe=!1,t=yt(Pn(r,a),Pn(e,a),a),fe=!0,oe(t,i))};U.minus=U.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ax(t,e):nx(t,(e.s=-e.s,e))};U.modulo=U.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?(fe=!1,t=yt(r,e,0,1).times(e),fe=!0,r.minus(t)):oe(new n(r),i)};U.naturalExponential=U.exp=function(){return ix(this)};U.naturalLogarithm=U.ln=function(){return Pn(this)};U.negated=U.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};U.plus=U.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?nx(t,e):ax(t,(e.s=-e.s,e))};U.precision=U.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Zt+e);if(t=me(i)+1,n=i.d.length-1,r=n*le+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};U.squareRoot=U.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(Ke+"NaN")}for(e=me(u),fe=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=nt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Kr((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(yt(u,a,o+2)).times(.5),nt(a.d).slice(0,o)===(t=nt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(oe(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return fe=!0,oe(n,r)};U.times=U.mul=function(e){var t,r,n,i,a,o,u,s,c,f=this,l=f.constructor,h=f.d,p=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,s=h.length,c=p.length,s<c&&(a=h,h=p,p=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+p[n]*h[i-n-1]+t,a[i--]=u%Se|0,t=u/Se|0;a[i]=(a[i]+t)%Se|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,fe?oe(e,l.precision):e};U.toDecimalPlaces=U.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ut(e,0,Gr),t===void 0?t=n.rounding:ut(t,0,8),oe(r,e+me(r)+1,t))};U.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=er(n,!0):(ut(e,0,Gr),t===void 0?t=i.rounding:ut(t,0,8),n=oe(new i(n),e+1,t),r=er(n,!0,e+1)),r};U.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?er(i):(ut(e,0,Gr),t===void 0?t=a.rounding:ut(t,0,8),n=oe(new a(i),e+me(i)+1,t),r=er(n.abs(),!1,e+me(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};U.toInteger=U.toint=function(){var e=this,t=e.constructor;return oe(new t(e),me(e)+1,t.rounding)};U.toNumber=function(){return+this};U.toPower=U.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,c=12,f=+(e=new s(e));if(!e.s)return new s(Le);
12if(u=new s(u),!u.s){if(e.s<1)throw Error(Ke+"Infinity");return u}if(u.eq(Le))return u;if(n=s.precision,e.eq(Le))return oe(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=rx){for(i=new s(Le),t=Math.ceil(n/le+4),fe=!1;r%2&&(i=i.times(u),gm(i.d,t)),r=Kr(r/2),r!==0;)u=u.times(u),gm(u.d,t);return fe=!0,e.s<0?new s(Le).div(i):oe(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,fe=!1,i=e.times(Pn(u,n+c)),fe=!0,i=ix(i),i.s=a,i};U.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=me(i),n=er(i,r<=a.toExpNeg||r>=a.toExpPos)):(ut(e,1,Gr),t===void 0?t=a.rounding:ut(t,0,8),i=oe(new a(i),e,t),r=me(i),n=er(i,e<=r||r<=a.toExpNeg,e)),n};U.toSignificantDigits=U.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ut(e,1,Gr),t===void 0?t=n.rounding:ut(t,0,8)),oe(new n(r),e,t)};U.toString=U.valueOf=U.val=U.toJSON=U[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=me(e),r=e.constructor;return er(e,t<=r.toExpNeg||t>=r.toExpPos)};function nx(e,t){var r,n,i,a,o,u,s,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),fe?oe(t,l):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=c.length):(n=c,i=o,u=s.length),o=Math.ceil(l/le),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=c.length,u-a<0&&(a=u,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/Se|0,s[a]%=Se;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,fe?oe(t,l):t}function ut(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Zt+e)}function nt(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=le-n.length,r&&(a+=Tt(r)),a+=n;o=e[t],n=o+"",r=le-n.length,r&&(a+=Tt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var yt=(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%Se|0,o=a/Se|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Se+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,f,l,h,p,y,v,d,b,x,w,O,g,m,_,S,A=n.constructor,$=n.s==i.s?1:-1,j=n.d,T=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(Ke+"Division by zero");for(s=n.e-i.e,_=T.length,g=j.length,p=new A($),y=p.d=[],c=0;T[c]==(j[c]||0);)++c;if(T[c]>(j[c]||0)&&--s,a==null?x=a=A.precision:o?x=a+(me(n)-me(i))+1:x=a,x<0)return new A(0);if(x=x/le+2|0,c=0,_==1)for(f=0,T=T[0],x++;(c<g||f)&&x--;c++)w=f*Se+(j[c]||0),y[c]=w/T|0,f=w%T|0;else{for(f=Se/(T[0]+1)|0,f>1&&(T=e(T,f),j=e(j,f),_=T.length,g=j.length),O=_,v=j.slice(0,_),d=v.length;d<_;)v[d++]=0;S=T.slice(),S.unshift(0),m=T[0],T[1]>=Se/2&&++m;do f=0,u=t(T,v,_,d),u<0?(b=v[0],_!=d&&(b=b*Se+(v[1]||0)),f=b/m|0,f>1?(f>=Se&&(f=Se-1),l=e(T,f),h=l.length,d=v.length,u=t(l,v,h,d),u==1&&(f--,r(l,_<h?S:T,h))):(f==0&&(u=f=1),l=T.slice()),h=l.length,h<d&&l.unshift(0),r(v,l,d),u==-1&&(d=v.length,u=t(T,v,_,d),u<1&&(f++,r(v,_<d?S:T,d))),d=v.length):u===0&&(f++,v=[0]),y[c++]=f,u&&v[0]?v[d++]=j[O]||0:(v=[j[O]],d=1);while((O++<g||v[0]!==void 0)&&x--)}return y[0]||y.shift(),p.e=s,oe(p,o?a+me(p)+1:a)}})();function ix(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(me(e)>16)throw Error(lh+me(e));if(!e.s)return new f(Le);for(fe=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Ut(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Le),f.precision=u;;){if(i=oe(i.times(e),u),r=r.times(++s),o=a.plus(yt(i,r,u)),nt(o.d).slice(0,u)===nt(a.d).slice(0,u)){for(;c--;)a=oe(a.times(a),u);return f.precision=l,t==null?(fe=!0,oe(a,l)):a}a=o}}function me(e){for(var t=e.e*le,r=e.d[0];r>=10;r/=10)t++;return t}function _c(e,t,r){if(t>e.LN10.sd())throw fe=!0,r&&(e.precision=r),Error(Ke+"LN10 precision limit exceeded");return oe(new e(e.LN10),t)}function Tt(e){for(var t="";e--;)t+="0";return t}function Pn(e,t){var r,n,i,a,o,u,s,c,f,l=1,h=10,p=e,y=p.d,v=p.constructor,d=v.precision;if(p.s<1)throw Error(Ke+(p.s?"NaN":"-Infinity"));if(p.eq(Le))return new v(0);if(t==null?(fe=!1,c=d):c=t,p.eq(10))return t==null&&(fe=!0),_c(v,c);if(c+=h,v.precision=c,r=nt(y),n=r.charAt(0),a=me(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=nt(p.d),n=r.charAt(0),l++;a=me(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return s=_c(v,c+2,d).times(a+""),p=Pn(new v(n+"."+r.slice(1)),c-h).plus(s),v.precision=d,t==null?(fe=!0,oe(p,d)):p;for(u=o=p=yt(p.minus(Le),p.plus(Le),c),f=oe(p.times(p),c),i=3;;
12){if(o=oe(o.times(f),c),s=u.plus(yt(o,new v(i),c)),nt(s.d).slice(0,c)===nt(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(_c(v,c+2,d).times(a+""))),u=yt(u,new v(l),c),v.precision=d,t==null?(fe=!0,oe(u,d)):u;u=s,i+=2}}function mm(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=Kr(r/le),e.d=[],n=(r+1)%le,r<0&&(n+=le),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=le;n<i;)e.d.push(+t.slice(n,n+=le));t=t.slice(n),n=le-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),fe&&(e.e>Gi||e.e<-Gi))throw Error(lh+r)}else e.s=0,e.e=0,e.d=[0];return e}function oe(e,t,r){var n,i,a,o,u,s,c,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=le,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/le),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=le,i=n-le+o}if(r!==void 0&&(a=Ut(10,o-i-1),u=c/a%10|0,s=t<0||l[f+1]!==void 0||c%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?c/Ut(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=me(e),l.length=1,t=t-a-1,l[0]=Ut(10,(le-t%le)%le),e.e=Kr(-t/le)||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=Ut(10,le-n),l[f]=i>
120?(c/Ut(10,o-i)%Ut(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==Se&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Se)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(fe&&(e.e>Gi||e.e<-Gi))throw Error(lh+me(e));return e}function ax(e,t){var r,n,i,a,o,u,s,c,f,l,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),fe?oe(t,p):t;if(s=e.d,l=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(f=o<0,f?(r=s,o=-o,u=l.length):(r=l,n=c,u=s.length),i=Math.max(Math.ceil(p/le),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(s[i]!=l[i]){f=s[i]<l[i];break}o=0}for(f&&(r=s,s=l,l=r,t.s=-t.s),u=s.length,i=l.length-u;i>0;--i)s[u++]=0;for(i=l.length;i>o;){if(s[--i]<l[i]){for(a=i;a&&s[--a]===0;)s[a]=Se-1;--s[a],s[i]+=Se}s[i]-=l[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,fe?oe(t,p):t):new h(0)}function er(e,t,r){var n,i=me(e),a=nt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Tt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Tt(-i-1)+a,r&&(n=r-o)>0&&(a+=Tt(n))):i>=o?(a+=Tt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Tt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Tt(n))),e.s<0?"-"+a:a}function gm(e,t){if(e.length>t)return e.length=t,!0}function ox(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(Zt+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 mm(o,a.toString())}else if(typeof a!="string")throw Error(Zt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,tE.test(a))mm(o,a);else throw Error(Zt+a)}if(i.prototype=U,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=ox,i.config=i.set=rE,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 rE(e){if(!e||typeof e!="object")throw Error(Ke+"Object expected");var t,r,n,i=["precision",1,Gr,"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(Kr(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Zt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Zt+r+": "+n);return this}var fh=ox(eE);Le=new fh(1);const ae=fh;function nE(e){return uE(e)||oE(e)||aE(e)||iE()}function iE(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aE(e,t){if(e){if(typeof e=="string")return El(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 El(e,t)}}function oE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function uE(e){if(Array.isArray(e))return El(e)}function El(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 sE=function(t){return t},ux={},sx=function(t){return t===ux},bm=function(t){return function r(){return arguments.length===0||arguments.length===1&&sx(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},cE=function e(t,r){return t===1?r:bm(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!==ux}).length;return o>=t?r.apply(void 0,i):e(t-o,bm(function(){for(var u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var f=i.map(function(l){return sx(l)?s.shift():l});return r.apply(void 0,nE(f).concat(s))}))})},qa=function(t){return cE(t.length,t)},Ml=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},lE=qa(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),fE=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return sE;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,s){return s(u)},a.apply(void 0,arguments))}},Cl=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},cx=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,s){return u===r[s]})||(r=a,n=t.apply(void 0,a)),n}};function hE(e){var t;return e===0?t=1:t=Math.floor(new ae(e).abs().log(10).toNumber())+1,t}function dE(e,t,r){for(var n=new ae(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var pE=qa(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),vE=qa(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),yE=qa(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const La={rangeStep:dE,getDigitCount:hE,interpolateNumber:pE,uninterpolateNumber:vE,uninterpolateTruncation:yE};function $l(e){return bE(e)||gE(e)||lx(e)||mE()}function mE(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 14In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function bE(e){if(Array.isArray(e))return Il(e)}function Tn(e,t){return OE(e)||wE(e,t)||lx(e,t)||xE()}
14function xE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 15In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lx(e,t){if(e){if(typeof e=="string")return Il(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 Il(e,t)}}function Il(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 wE(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function OE(e){if(Array.isArray(e))return e}function fx(e){var t=Tn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function hx(e,t,r){if(e.lte(0))return new ae(0);var n=La.getDigitCount(e.toNumber()),i=new ae(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ae(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new ae(Math.ceil(s))}function _E(e,t,r){var n=1,i=new ae(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ae(10).pow(La.getDigitCount(e)-1),i=new ae(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ae(Math.floor(e)))}else e===0?i=new ae(Math.floor((t-1)/2)):r||(i=new ae(Math.floor(e)));var o=Math.floor((t-1)/2),u=fE(lE(function(s){return i.add(new ae(s-o).mul(n)).toNumber()}),Ml);return u(0,t)}function dx(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ae(0),tickMin:new ae(0),tickMax:new ae(0)};var a=hx(new ae(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ae(0):(o=new ae(e).add(t).div(2),o=o.sub(new ae(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new ae(t).sub(o).div(a).toNumber()),c=u+s+1;return c>r?dx(e,t,r,n,i+1):(c<r&&(s=t>0?s+(r-c):s,u=t>0?u:u+(r-c)),{step:a,tickMin:o.sub(new ae(u).mul(a)),tickMax:o.add(new ae(s).mul(a))})}function SE(e){var t=Tn(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=fx([r,n]),s=Tn(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat($l(Ml(0,i-1).map(function(){return 1/0}))):[].concat($l(Ml(0,i-1).map(function(){return-1/0})),[f]);return r>n?Cl(l):l}if(c===f)return _E(c,i,a);var h=dx(c,f,o,a),p=h.step,y=h.tickMin,v=h.tickMax,d=La.rangeStep(y,v.add(new ae(.1).mul(p)),p);return r>n?Cl(d):d}function AE(e,t){var r=Tn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=fx([n,i]),u=Tn(o,2),s=u[0],c=u[1];if(s===-1/0||c===1/0)return[n,i];if(s===c)return[s];var f=Math.max(t,2),l=hx(new ae(c).sub(s).div(f-1),a,0),h=[].concat($l(La.rangeStep(new ae(s),new ae(c).sub(new ae(.99).mul(l)),l)),[c]);return n>i?Cl(h):h}var PE=cx(SE),TE=cx(AE),jE="Invariant failed";function tr(e,t){throw new Error(jE)}var EE=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Pr(e){"@babel/helpers - typeof";return Pr=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},Pr(e)}function Ki(){return Ki=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},Ki.apply(this,arguments)}function ME(e,t){return kE(e)||IE(e,t)||$E(e,t)||CE()}function CE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 16In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $E(e,t){if(e){if(typeof e=="string")return xm(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 xm(e,t)}}function xm(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 IE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;
16!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function kE(e){if(Array.isArray(e))return e}function NE(e,t){if(e==null)return{};var r=RE(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 RE(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 DE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qE(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,yx(n.key),n)}}function LE(e,t,r){return t&&qE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BE(e,t,r){return t=Vi(t),FE(e,px()?Reflect.construct(t,r||[],Vi(e).constructor):t.apply(e,r))}function FE(e,t){if(t&&(Pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zE(e)}function zE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function px(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(px=function(){return!!e})()}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(e)}function WE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kl(e,t)}function kl(e,t){return kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kl(e,t)}function vx(e,t,r){return t=yx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yx(e){var t=UE(e,"string");return Pr(t)=="symbol"?t:t+""}function UE(e,t){if(Pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ba=(function(e){function t(){return DE(this,t),BE(this,t,arguments)}return WE(t,e),LE(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,h=NE(n,EE),p=J(h,!1);this.props.direction==="x"&&f.type!=="number"&&tr();var y=s.map(function(v){var d=c(v,u),b=d.x,x=d.y,w=d.value,O=d.errorVal;if(!O)return null;var g=[],m,_;if(Array.isArray(O)){var S=ME(O,2);m=S[0],_=S[1]}else m=_=O;if(a==="vertical"){var A=f.scale,$=x+i,j=$+o,T=$-o,M=A(w-m),I=A(w+_);g.push({x1:I,y1:j,x2:I,y2:T}),g.push({x1:M,y1:$,x2:I,y2:$}),g.push({x1:M,y1:j,x2:M,y2:T})}else if(a==="horizontal"){var C=l.scale,N=b+i,q=N-o,B=N+o,F=C(w-m),H=C(w+_);g.push({x1:q,y1:H,x2:B,y2:H}),g.push({x1:N,y1:F,x2:N,y2:H}),g.push({x1:q,y1:F,x2:B,y2:F})}return P.createElement(he,Ki({className:"recharts-errorBar",key:"bar-".concat(g.map(function(K){return"".concat(K.x1,"-").concat(K.x2,"-").concat(K.y1,"-").concat(K.y2)}))},p),g.map(function(K){return P.createElement("line",Ki({},K,{key:"line-".concat(K.x1,"-").concat(K.x2,"-").concat(K.y1,"-").concat(K.y2)}))}
16))});return P.createElement(he,{className:"recharts-errorBars"},y)}}])})(P.Component);vx(Ba,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});vx(Ba,"displayName","ErrorBar");function jn(e){"@babel/helpers - typeof";return jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jn(e)}function wm(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?wm(Object(r),!0).forEach(function(n){HE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HE(e,t,r){return t=GE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GE(e){var t=KE(e,"string");return jn(t)=="symbol"?t:t+""}function KE(e,t){if(jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mx=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=qe(r,vr);if(!o)return null;var u=vr.defaultProps,s=u!==void 0?Ft(Ft({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(f,l){var h=l.item,p=l.props,y=p.sectors||p.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):c=(n||[]).map(function(f){var l=f.item,h=l.type.defaultProps,p=h!==void 0?Ft(Ft({},h),l.props):{},y=p.dataKey,v=p.name,d=p.legendType,b=p.hide;return{inactive:b,dataKey:y,type:s.iconType||d||"square",color:hh(l),value:v||y,payload:p}}),Ft(Ft(Ft({},s),vr.getWithHeight(o,i)),{},{payload:c,item:o})};function En(e){"@babel/helpers - typeof";return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},En(e)}function Om(e){return ZE(e)||YE(e)||XE(e)||VE()}function VE(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 17In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XE(e,t){if(e){if(typeof e=="string")return Nl(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 Nl(e,t)}}function YE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZE(e){if(Array.isArray(e))return Nl(e)}function Nl(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 _m(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 pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_m(Object(r),!0).forEach(function(n){mr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mr(e,t,r){return t=JE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JE(e){var t=QE(e,"string");return En(t)=="symbol"?t:t+""}function QE(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Be(e,t,r){return Q(e)||Q(t)?r:Oe(t)?Ge(e,t,r):Y(t)?t(e):r}function ln(e,t,r,n){var i=Zj(e,function(u){return Be(u,t)});if(r==="number"){var a=i.filter(function(u){return L(u)||parseFloat(u)});return a.length?[Da(a),Et(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Q(u)}):i;return o.map(function(u){return Oe(u)||u instanceof Date?u:""})}var eM=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,c=0;c<u;c++){var f=c>
170?i[c-1].coordinate:i[u-1].coordinate,l=i[c].coordinate,h=c>=u-1?i[0].coordinate:i[c+1].coordinate,p=void 0;if(Je(l-f)!==Je(h-l)){var y=[];if(Je(h-l)===Je(s[1]-s[0])){p=h;var v=l+s[1]-s[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{p=f;var d=h+s[1]-s[0];y[0]=Math.min(l,(d+l)/2),y[1]=Math.max(l,(d+l)/2)}var b=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[c].index;break}}else{var x=Math.min(f,h),w=Math.max(f,h);if(t>(x+l)/2&&t<=(w+l)/2){o=i[c].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},hh=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?pe(pe({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},tM=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),s=0,c=u.length;s<c;s++)for(var f=a[u[s]].stackGroups,l=Object.keys(f),h=0,p=l.length;h<p;h++){var y=f[l[h]],v=y.items,d=y.cateAxisId,b=v.filter(function(_){return pt(_.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?pe(pe({},x),b[0].props):b[0].props,O=w.barSize,g=w[d];o[g]||(o[g]=[]);var m=Q(O)?r:O;o[g].push({item:b[0],stackList:b.slice(1),barSize:Q(m)?void 0:Qt(m,n,0)})}}return o},rM=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,s=o.length;if(s<1)return null;var c=Qt(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/s,y=o.reduce(function(O,g){return O+g.barSize||0},0);y+=(s-1)*c,y>=i&&(y-=(s-1)*c,c=0),y>=i&&p>0&&(h=!0,p*=.9,y=s*p);var v=(i-y)/2>>0,d={offset:v-c,size:0};f=o.reduce(function(O,g){var m={item:g.item,position:{offset:d.offset+d.size+c,size:h?p:g.barSize}},_=[].concat(Om(O),[m]);return d=_[_.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(S){_.push({item:S,position:d})}),_},l)}else{var b=Qt(n,i,0,!0);i-2*b-(s-1)*c<=0&&(c=0);var x=(i-2*b-(s-1)*c)/s;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,g,m){var _=[].concat(Om(O),[{item:g.item,position:{offset:b+(x+c)*m+(x-w)/2,size:w}}]);return g.stackList&&g.stackList.length&&g.stackList.forEach(function(S){_.push({item:S,position:_[_.length-1].position})}),_},l)}return f},nM=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=mx({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,h=f.height,p=c.align,y=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&p!=="center"&&L(t[p]))return pe(pe({},t),{},mr({},p,t[p]+(l||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&y!=="middle"&&L(t[y]))return pe(pe({},t),{},mr({},y,t[y]+(h||0)))}return t},iM=function(t,r,n){return Q(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},gx=function(t,r,n,i,a){var o=r.props.children,u=Qe(o,Ba).filter(function(c){return iM(i,a,c.props.direction)});if(u&&u.length){var s=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=Be(f,n);if(Q(l))return c;var h=Array.isArray(l)?[Da(l),Et(l)]:[l,l],p=s.reduce(function(y,v){var d=Be(f,v,0),b=h[0]-Math.abs(Array.isArray(d)?d[0]:d),x=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(b,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},aM=function(t,r,n,i,a){var o=r.map(function(u){return gx(t,u,n,a,i)}).filter(function(u){return!Q(u)});return o&&o.length?o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]):null},bx=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&gx(t,s,c,i)||ln(t,c,n,a)});if(n==="number")return o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);var u={};return o.reduce(function(s,c){for(var f=0,l=c.length;f<l;f++)u[c[f]]||(u[c[f]]=!0,s.push(c[f]));return s},[])},xx=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},wx=function(t,r,n,i){if(i)return t.map(function(s){return s.coordinate});var a,o,u=t.map(function(s){return s.coordinate===r&&(a=!0),s.coordinate===n&&(o=!0),s.coordinate});return a||u.push(r),o||u.push(n),u},dt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(c=t.axisType==="angleAxis"&&u?.length>=2?Je(u[0]-u[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var h=a?a.indexOf(l):l;
17return{coordinate:i(h)+c,value:l,offset:c}});return f.filter(function(l){return!zr(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+c,value:l,index:h,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+c,value:l,offset:c}}):i.domain().map(function(l,h){return{coordinate:i(l)+c,value:a?a[l]:l,index:h,offset:c}})},Sc=new WeakMap,pi=function(t,r){if(typeof r!="function")return t;Sc.has(t)||Sc.set(t,new WeakMap);var n=Sc.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},oM=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:xn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:zi(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:cn(),realScaleType:"point"}:a==="category"?{scale:xn(),realScaleType:"band"}:{scale:zi(),realScaleType:"linear"};if(Jt(i)){var s="scale".concat(Sa(i));return{scale:(sm[s]||cn)(),realScaleType:sm[s]?s:"point"}}return Y(i)?{scale:i}:{scale:cn(),realScaleType:"point"}},Sm=1e-4,uM=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])-Sm,o=Math.max(i[0],i[1])+Sm,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},sM=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},cM=function(t,r){if(!r||r.length!==2||!L(r[0])||!L(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(!L(t[0])||t[0]<n)&&(a[0]=n),(!L(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},lM=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var s=zr(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=a,t[u][n][1]=a+s,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},fM=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=zr(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},hM={sign:lM,expand:VO,none:gr,silhouette:XO,wiggle:YO,positive:fM},dM=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=hM[n],o=KO().keys(i).value(function(u,s){return+Be(u,s,0)}).order(fl).offset(a);return o(t)},pM=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?pe(pe({},h.type.defaultProps),h.props):h.props,v=y.stackId,d=y.hide;if(d)return l;var b=y[n],x=l[b]||{hasStack:!1,stackGroups:{}};if(Oe(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[Zn("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return pe(pe({},l),{},mr({},b,x))},s),f={};return Object.keys(c).reduce(function(l,h){var p=c[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,d){var b=p.stackGroups[d];return pe(pe({},v),{},mr({},d,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:dM(t,b.items,a)}))},y)}return pe(pe({},l),{},mr({},h,p))},f)},vM=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=PE(c,a,u);return t.domain([Da(f),Et(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=TE(l,a,u);return{niceTicks:h}}return null};function Am(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Q(i[t.dataKey])){var u=wi(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=Be(i,Q(o)?t.dataKey:o);return Q(s)?null:t.scale(s)}
17var Pm=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var s=Be(o,r.dataKey,r.domain[u]);return Q(s)?null:r.scale(s)-a/2+i},yM=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]},mM=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?pe(pe({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Oe(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},gM=function(t){return t.reduce(function(r,n){return[Da(n.concat([r[0]]).filter(L)),Et(n.concat([r[1]]).filter(L))]},[1/0,-1/0])},Ox=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(c,f){var l=gM(f.slice(r,n+1));return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Tm=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,jm=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Rl=function(t,r,n){if(Y(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(L(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Tm.test(t[0])){var a=+Tm.exec(t[0])[1];i[0]=r[0]-a}else Y(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(L(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(jm.test(t[1])){var o=+jm.exec(t[1])[1];i[1]=r[1]+o}else Y(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Xi=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=Bf(r,function(l){return l.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var c=a[u],f=a[u-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Em=function(t,r,n){return!t||!t.length||An(t,Ge(n,"type.defaultProps.domain"))?r:t},_x=function(t,r){var n=t.type.defaultProps?pe(pe({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,c=n.chartType,f=n.hide;return pe(pe({},J(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:hh(t),value:Be(r,i),type:s,payload:r,chartType:c,hide:f})};function Mn(e){"@babel/helpers - typeof";return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(e)}function Mm(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 Cm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mm(Object(r),!0).forEach(function(n){bM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bM(e,t,r){return t=xM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xM(e){var t=wM(e,"string");return Mn(t)=="symbol"?t:t+""}function wM(e,t){if(Mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yi=Math.PI/180,OM=function(t){return t*180/Math.PI},Te=function(t,r,n,i){return{x:t+Math.cos(-Yi*i)*n,y:r+Math.sin(-Yi*i)*n}},_M=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))},SM=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=_M({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var s=(n-a)/u,c=Math.acos(s);return i>o&&(c=2*Math.PI-c),{radius:u,angle:OM(c),angleInRadian:c}},AM=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}},PM=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},$m=function(t,r){var n=t.x,i=t.y,a=SM({x:n,y:i},r),o=a.radius,u=a.angle,s=r.innerRadius,c=r.outerRadius;if(o<s||o>c)return!1;if(o===0)return!0;var f=AM(r),l=f.startAngle,h=f.endAngle,p=u,y;if(l<=h){for(;p>h;)p-=360;for(;p<l;)p+=360;y=p>=l&&p<=h}else{for(;p>l;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=l}return y?Cm(Cm({},r),{},{radius:o,angle:PM(p,r)}):null};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)}var TM=["offset"];function jM(e){return $M(e)||CM(e)||MM(e)||EM()}function EM(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MM(e,t){if(e){if(typeof e=="string")return Dl(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 Dl(e,t)}}function CM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $M(e){if(Array.isArray(e))return Dl(e)}function Dl(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 IM(e,t){if(e==null)return{};var r=kM(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 kM(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 Im(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function we(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
18t%2?Im(Object(r),!0).forEach(function(n){NM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Im(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NM(e,t,r){return t=RM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RM(e){var t=DM(e,"string");return Cn(t)=="symbol"?t:t+""}function DM(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)}function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$n.apply(this,arguments)}var qM=function(t){var r=t.value,n=t.formatter,i=Q(t.children)?r:t.children;return Y(n)?n(i):i},LM=function(t,r){var n=Je(r-t),i=Math.min(Math.abs(r-t),360);return n*i},BM=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,c=s.cx,f=s.cy,l=s.innerRadius,h=s.outerRadius,p=s.startAngle,y=s.endAngle,v=s.clockWise,d=(l+h)/2,b=LM(p,y),x=b>=0?1:-1,w,O;i==="insideStart"?(w=p+x*o,O=v):i==="insideEnd"?(w=y-x*o,O=!v):i==="end"&&(w=y+x*o,O=v),O=b<=0?O:!O;var g=Te(c,f,d,w),m=Te(c,f,d,w+(O?1:-1)*359),_="M".concat(g.x,",").concat(g.y,` 19 A`).concat(d,",").concat(d,",0,1,").concat(O?0:1,`, 20 `).concat(m.x,",").concat(m.y),S=Q(t.id)?Zn("recharts-radial-line-"):t.id;return P.createElement("text",$n({},n,{dominantBaseline:"central",className:te("recharts-radial-bar-label",u)}),P.createElement("defs",null,P.createElement("path",{id:S,d:_})),P.createElement("textPath",{xlinkHref:"#".concat(S)},r))},FM=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,c=a.outerRadius,f=a.startAngle,l=a.endAngle,h=(f+l)/2;if(i==="outside"){var p=Te(o,u,c+n,h),y=p.x,v=p.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var d=(s+c)/2,b=Te(o,u,d,h),x=b.x,w=b.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},zM=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,c=o.width,f=o.height,l=f>=0?1:-1,h=l*i,p=l>0?"end":"start",y=l>0?"start":"end",v=c>=0?1:-1,d=v*i,b=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+c/2,y:s-l*i,textAnchor:"middle",verticalAnchor:p};return we(we({},w),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var O={x:u+c/2,y:s+f+h,textAnchor:"middle",verticalAnchor:y};return we(we({},O),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(a==="left"){var g={x:u-d,y:s+f/2,textAnchor:b,verticalAnchor:"middle"};return we(we({},g),n?{width:Math.max(g.x-n.x,0),height:f}:{})}if(a==="right"){var m={x:u+c+d,y:s+f/2,textAnchor:x,verticalAnchor:"middle"};return we(we({},m),n?{width:Math.max(n.x+n.width-m.x,0),height:f}:{})}var _=n?{width:c,height:f}:{};return a==="insideLeft"?we({x:u+d,y:s+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?we({x:u+c-d,y:s+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideTop"?we({x:u+c/2,y:s+h,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?we({x:u+c/2,y:s+f-h,textAnchor:"middle",verticalAnchor:p},_):a==="insideTopLeft"?we({x:u+d,y:s+h,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?we({x:u+c-d,y:s+h,textAnchor:b,verticalAnchor:y},_):a==="insideBottomLeft"?we({x:u+d,y:s+f-h,textAnchor:x,verticalAnchor:p},_):a==="insideBottomRight"?we({x:u+c-d,y:s+f-h,textAnchor:b,verticalAnchor:p},_):Fr(a)&&(L(a.x)||Ht(a.x))&&(L(a.y)||Ht(a.y))?we({x:u+Qt(a.x,c),y:s+Qt(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):we({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},WM=function(t){return"cx"in t&&L(t.cx)};function Ee(e){var t=e.offset,r=t===void 0?5:t,n=IM(e,TM),i=we({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,c=i.content,f=i.className,l=f===void 0?"":f,h=i.textBreakAll;if(!a||Q(u)&&Q(s)&&!R.isValidElement(c)&&!Y(c))return null;if(R.isValidElement(c))return R.cloneElement(c,i);var p;if(Y(c)){if(p=R.createElement(c,i),R.isValidElement(p))return p}else p=qM(i);var y=WM(a),v=J(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return BM(i,p,v);var d=y?FM(i):zM(i);return P.createElement(ki,$n({className:te("recharts-label",l)},v,d,{breakAll:h}),p)}Ee.displayName="Label";var Sx=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,h=t.y,p=t.top,y=t.left,v=t.width,d=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(L(v)&&L(d)){if(L(l)&&L(h))return{x:l,y:h,width:v,height:d};if(L(p)&&L(y))return{x:p,y,width:v,height:d}}return L(l)&&L(h)?{x:l,y:h,width:0,height:0}:L(r)&&L(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:f||s||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},UM=function(t,r){return t?t===!0?P.createElement(Ee,{key:"label-implicit",viewBox:r}):Oe(t)?P.createElement(Ee,{key:"label-implicit",viewBox:r,value:t}):R.isValidElement(t)?t.type===Ee?R.cloneElement(t,{key:"label-implicit",viewBox:r}):P.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):Y(t)?P.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):Fr(t)?P.createElement(Ee,$n({viewBox:r},t,{key:"label-implicit"})):null:null},HM=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=Sx(t),o=Qe(i,Ee).map(function(s,c){return R.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=UM(t.label,r||a);return[u].concat(jM(o))};Ee.parseViewBox=Sx;Ee.renderCallByParent=HM;var Ac,km;function GM(){if(km)return Ac;km=1;function e(t){var r=t==null?0:t.length;
20return r?t[r-1]:void 0}return Ac=e,Ac}var KM=GM();const VM=se(KM);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)}var XM=["valueAccessor"],YM=["data","dataKey","clockWise","id","textBreakAll"];function ZM(e){return tC(e)||eC(e)||QM(e)||JM()}function JM(){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 QM(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 eC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tC(e){if(Array.isArray(e))return ql(e)}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 Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zi.apply(this,arguments)}function Nm(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 Rm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nm(Object(r),!0).forEach(function(n){rC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rC(e,t,r){return t=nC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nC(e){var t=iC(e,"string");return In(t)=="symbol"?t:t+""}function iC(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 Dm(e,t){if(e==null)return{};var r=aC(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 aC(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 oC=function(t){return Array.isArray(t.value)?VM(t.value):t.value};function $t(e){var t=e.valueAccessor,r=t===void 0?oC:t,n=Dm(e,XM),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=Dm(n,YM);return!i||!i.length?null:P.createElement(he,{className:"recharts-label-list"},i.map(function(f,l){var h=Q(a)?r(f,l):Be(f&&f.payload,a),p=Q(u)?{}:{id:"".concat(u,"-").concat(l)};return P.createElement(Ee,Zi({},J(f,!0),c,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:s,viewBox:Ee.parseViewBox(Q(o)?f:Rm(Rm({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}$t.displayName="LabelList";function uC(e,t){return e?e===!0?P.createElement($t,{key:"labelList-implicit",data:t}):P.isValidElement(e)||Y(e)?P.createElement($t,{key:"labelList-implicit",data:t,content:e}):Fr(e)?P.createElement($t,Zi({data:t},e,{key:"labelList-implicit"})):null:null}function sC(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Qe(n,$t).map(function(o,u){return R.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=uC(e.label,t);return[a].concat(ZM(i))}$t.renderCallByParent=sC;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 Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
21for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ll.apply(this,arguments)}function qm(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 Lm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qm(Object(r),!0).forEach(function(n){cC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cC(e,t,r){return t=lC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lC(e){var t=fC(e,"string");return kn(t)=="symbol"?t:t+""}function fC(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 hC=function(t,r){var n=Je(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},vi=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,s=t.cornerRadius,c=t.cornerIsExternal,f=s*(u?1:-1)+i,l=Math.asin(s/f)/Yi,h=c?a:a+o*l,p=Te(r,n,f,h),y=Te(r,n,i,h),v=c?a-o*l:a,d=Te(r,n,f*Math.cos(l*Yi),v);return{center:p,circleTangency:y,lineTangency:d,theta:l}},Ax=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=hC(o,u),c=o+s,f=Te(r,n,a,o),l=Te(r,n,a,c),h="M ".concat(f.x,",").concat(f.y,` 22 A `).concat(a,",").concat(a,`,0, 23 `).concat(+(Math.abs(s)>180),",").concat(+(o>c),`, 24 `).concat(l.x,",").concat(l.y,` 25 `);if(i>0){var p=Te(r,n,i,o),y=Te(r,n,i,c);h+="L ".concat(y.x,",").concat(y.y,` 26 A `).concat(i,",").concat(i,`,0, 27 `).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`, 28 `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},dC=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,s=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,l=Je(f-c),h=vi({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),p=h.circleTangency,y=h.lineTangency,v=h.theta,d=vi({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),b=d.circleTangency,x=d.lineTangency,w=d.theta,O=s?Math.abs(c-f):Math.abs(c-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,` 29 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 30 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 31 `):Ax({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f});var g="M ".concat(y.x,",").concat(y.y,` 32 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,` 33 A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(b.x,",").concat(b.y,` 34 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,` 35 `);if(i>0){var m=vi({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=m.circleTangency,S=m.lineTangency,A=m.theta,$=vi({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),j=$.circleTangency,T=$.lineTangency,M=$.theta,I=s?Math.abs(c-f):Math.abs(c-f)-A-M;if(I<0&&o===0)return"".concat(g,"L").concat(r,",").concat(n,"Z");g+="L".concat(T.x,",").concat(T.y,` 36 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(j.x,",").concat(j.y,` 37 A`).concat(i,",").concat(i,",0,").concat(+(I>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,` 38 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else g+="L".concat(r,",").concat(n,"Z");return g},pC={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Px=function(t){var r=Lm(Lm({},pC),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,h=r.className;if(o<a||f===l)return null;var p=te("recharts-sector",h),y=o-a,v=Qt(u,y,0,!0),d;return v>0&&Math.abs(f-l)<360?d=dC({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):d=Ax({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),P.createElement("path",Ll({},J(r,!0),{className:p,d,role:"img"}))};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 Bl(){return Bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
38for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bl.apply(this,arguments)}function Bm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bm(Object(r),!0).forEach(function(n){vC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vC(e,t,r){return t=yC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yC(e){var t=mC(e,"string");return Nn(t)=="symbol"?t:t+""}function mC(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 zm={curveBasisClosed:RO,curveBasisOpen:DO,curveBasis:NO,curveBumpX:wO,curveBumpY:OO,curveLinearClosed:qO,curveLinear:Pa,curveMonotoneX:LO,curveMonotoneY:BO,curveNatural:FO,curveStep:zO,curveStepAfter:UO,curveStepBefore:WO},yi=function(t){return t.x===+t.x&&t.y===+t.y},en=function(t){return t.x},tn=function(t){return t.y},gC=function(t,r){if(Y(t))return t;var n="curve".concat(Sa(t));return(n==="curveMonotone"||n==="curveBump")&&r?zm["".concat(n).concat(r==="vertical"?"Y":"X")]:zm[n]||Pa},bC=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,s=t.connectNulls,c=s===void 0?!1:s,f=gC(n,u),l=c?a.filter(function(v){return yi(v)}):a,h;if(Array.isArray(o)){var p=c?o.filter(function(v){return yi(v)}):o,y=l.map(function(v,d){return Fm(Fm({},v),{},{base:p[d]})});return u==="vertical"?h=ui().y(tn).x1(en).x0(function(v){return v.base.x}):h=ui().x(en).y1(tn).y0(function(v){return v.base.y}),h.defined(yi).curve(f),h(y)}return u==="vertical"&&L(o)?h=ui().y(tn).x1(en).x0(o):L(o)?h=ui().x(en).y1(tn).y0(o):h=Cb().x(en).y(tn),h.defined(yi).curve(f),h(l)},fn=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?bC(t):i;return R.createElement("path",Bl({},J(t,!1),Oi(t),{className:te("recharts-curve",r),d:o,ref:a}))},Pc={exports:{}},Tc,Wm;function xC(){if(Wm)return Tc;Wm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Tc=e,Tc}var jc,Um;function wC(){if(Um)return jc;Um=1;var e=xC();function t(){}function r(){}return r.resetWarningCache=t,jc=function(){function n(o,u,s,c,f,l){if(l!==e){var h=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 h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},jc}var Hm;function OC(){return Hm||(Hm=1,Pc.exports=wC()()),Pc.exports}var _C=OC();const ie=se(_C),{getOwnPropertyNames:SC,getOwnPropertySymbols:AC}=Object,{hasOwnProperty:PC}=Object.prototype;function Ec(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function mi(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);const s=e(r,n,i);return a.delete(r),a.delete(n),s}}function TC(e){return e?.[Symbol.toStringTag]}function Gm(e){return SC(e).concat(AC(e))}const jC=Object.hasOwn||((e,t)=>PC.call(e,t));function or(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const EC="__v",MC="__o",CC="_owner",{getOwnPropertyDescriptor:Km,keys:Vm}=Object;function $C(e,t){return e.byteLength===t.byteLength&&Ji(new Uint8Array(e),new Uint8Array(t))}function IC(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function kC(e,t){return e.byteLength===t.byteLength&&Ji(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function NC(e,t){return or(e.getTime(),t.getTime())}function RC(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function DC(e,t){return e===t}function Xm(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,u,s=0;for(;(o=a.next())&&!o.done;){const c=t.entries();let f=!1,l=0;for(;(u=c.next())&&!u.done;){if(i[l]){l++;continue}const h=o.value,p=u.value;if(r.equals(h[0],p[0],s,l,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;s++}return!0}const qC=or;function LC(e,t,r){const n=Vm(e);let i=n.length;if(Vm(t).length!==i)return!1;for(;i-- >0;)if(!Tx(e,t,r,n[i]))return!1;return!0}function rn(e,t,r){const n=Gm(e);let i=n.length;if(Gm(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!Tx(e,t,r,a)||(o=Km(e,a),u=Km(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function BC(e,t){return or(e.valueOf(),t.valueOf())}function FC(e,t){return e.source===t.source&&e.flags===t.flags}function Ym(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,u;for(;(o=a.next())&&!o.done;){const s=t.values();let c=!1,f=0;for(;(u=s.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1}return!0}function Ji(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function zC(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 Tx(e,t,r,n){return(n===CC||n===MC||n===EC)&&(e.$$typeof||t.$$typeof)?!0:jC(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const WC="[object ArrayBuffer]",UC="[object Arguments]",HC="[object Boolean]",GC="[object DataView]",KC="[object Date]",VC="[object Error]",XC="[object Map]",YC="[object Number]",ZC="[object Object]",JC="[object RegExp]",QC="[object Set]",e$="[object String]",t$={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array
38]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},r$="[object URL]",n$=Object.prototype.toString;function i$({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:s,arePrimitiveWrappersEqual:c,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:y}){return function(d,b,x){if(d===b)return!0;if(d==null||b==null)return!1;const w=typeof d;if(w!==typeof b)return!1;if(w!=="object")return w==="number"?u(d,b,x):w==="function"?a(d,b,x):!1;const O=d.constructor;if(O!==b.constructor)return!1;if(O===Object)return s(d,b,x);if(Array.isArray(d))return t(d,b,x);if(O===Date)return n(d,b,x);if(O===RegExp)return f(d,b,x);if(O===Map)return o(d,b,x);if(O===Set)return l(d,b,x);const g=n$.call(d);if(g===KC)return n(d,b,x);if(g===JC)return f(d,b,x);if(g===XC)return o(d,b,x);if(g===QC)return l(d,b,x);if(g===ZC)return typeof d.then!="function"&&typeof b.then!="function"&&s(d,b,x);if(g===r$)return p(d,b,x);if(g===VC)return i(d,b,x);if(g===UC)return s(d,b,x);if(t$[g])return h(d,b,x);if(g===WC)return e(d,b,x);if(g===GC)return r(d,b,x);if(g===HC||g===YC||g===e$)return c(d,b,x);if(y){let m=y[g];if(!m){const _=TC(d);_&&(m=y[_])}if(m)return m(d,b,x)}return!1}}function a$({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:$C,areArraysEqual:r?rn:IC,areDataViewsEqual:kC,areDatesEqual:NC,areErrorsEqual:RC,areFunctionsEqual:DC,areMapsEqual:r?Ec(Xm,rn):Xm,areNumbersEqual:qC,areObjectsEqual:r?rn:LC,arePrimitiveWrappersEqual:BC,areRegExpsEqual:FC,areSetsEqual:r?Ec(Ym,rn):Ym,areTypedArraysEqual:r?Ec(Ji,rn):Ji,areUrlsEqual:zC,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=mi(n.areArraysEqual),a=mi(n.areMapsEqual),o=mi(n.areObjectsEqual),u=mi(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function o$(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function u$({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,s){const{cache:c=e?new WeakMap:void 0,meta:f}=r();return t(u,s,{cache:c,equals:n,meta:f,strict:i})};if(e)return function(u,s){return t(u,s,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(u,s){return t(u,s,a)}}const s$=Dt();Dt({strict:!0});Dt({circular:!0});Dt({circular:!0,strict:!0});Dt({createInternalComparator:()=>or});Dt({strict:!0,createInternalComparator:()=>or});Dt({circular:!0,createInternalComparator:()=>or});Dt({circular:!0,createInternalComparator:()=>or,strict:!0});function Dt(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=a$(e),o=i$(a),u=r?r(o):o$(o);return u$({circular:t,comparator:o,createState:n,equals:u,strict:i})}function c$(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Zm(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):c$(i)};requestAnimationFrame(n)}function Fl(e){"@babel/helpers - typeof";return Fl=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},Fl(e)}function l$(e){return p$(e)||d$(e)||h$(e)||f$()}function f$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 39In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h$(e,t){if(e){if(typeof e=="string")return Jm(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 Jm(e,t)}}function Jm(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 d$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function p$(e){if(Array.isArray(e))return e}function v$(){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=l$(o),s=u[0],c=u.slice(1);if(typeof s=="number"){Zm(i.bind(null,c),s);return}i(s),Zm(i.bind(null,c));return}Fl(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 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 Qm(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 eg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
39t%2?Qm(Object(r),!0).forEach(function(n){jx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jx(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=m$(e,"string");return Rn(t)==="symbol"?t:String(t)}function m$(e,t){if(Rn(e)!=="object"||e===null)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 g$=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},b$=function(t){return t},x$=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},hn=function(t,r){return Object.keys(r).reduce(function(n,i){return eg(eg({},n),{},jx({},i,t(i,r[i])))},{})},tg=function(t,r,n){return t.map(function(i){return"".concat(x$(i)," ").concat(r,"ms ").concat(n)}).join(",")};function w$(e,t){return S$(e)||_$(e,t)||Ex(e,t)||O$()}function O$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 40In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function S$(e){if(Array.isArray(e))return e}function A$(e){return j$(e)||T$(e)||Ex(e)||P$()}function P$(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 41In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ex(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 T$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function j$(e){if(Array.isArray(e))return zl(e)}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}var Qi=1e-4,Mx=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},Cx=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},rg=function(t,r){return function(n){var i=Mx(t,r);return Cx(i,n)}},E$=function(t,r){return function(n){var i=Mx(t,r),a=[].concat(A$(i.map(function(o,u){return o*u}).slice(1)),[0]);return Cx(a,n)}},ng=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var s=r[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var c=s[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),f=w$(c,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=rg(i,o),h=rg(a,u),p=E$(i,o),y=function(b){return b>1?1:b<0?0:b},v=function(b){for(var x=b>1?1:b,w=x,O=0;O<8;++O){var g=l(w)-x,m=p(w);if(Math.abs(g-x)<Qi||m<Qi)return h(w);w=y(w-g/m)}return h(w)};return v.isStepper=!1,v},M$=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,s=function(f,l,h){var p=-(f-l)*n,y=h*a,v=h+(p-y)*u/1e3,d=h*u/1e3+f;return Math.abs(d-l)<Qi&&Math.abs(v)<Qi?[l,0]:[d,v]};return s.isStepper=!0,s.dt=u,s},C$=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 ng(i);case"spring":return M$();default:if(i.split("(")[0]==="cubic-bezier")return ng(i)}return typeof i=="function"?i: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)}function ig(e){return k$(e)||I$(e)||$x(e)||$$()}function $$(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 42In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function k$(e){if(Array.isArray(e))return Ul(e)}function ag(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
42t%2?ag(Object(r),!0).forEach(function(n){Wl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ag(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wl(e,t,r){return t=N$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N$(e){var t=R$(e,"string");return Dn(t)==="symbol"?t:String(t)}function R$(e,t){if(Dn(e)!=="object"||e===null)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 D$(e,t){return B$(e)||L$(e,t)||$x(e,t)||q$()}function q$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 43In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $x(e,t){if(e){if(typeof e=="string")return Ul(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 Ul(e,t)}}function Ul(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function L$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function B$(e){if(Array.isArray(e))return e}var ea=function(t,r,n){return t+(r-t)*n},Hl=function(t){var r=t.from,n=t.to;return r!==n},F$=function e(t,r,n){var i=hn(function(a,o){if(Hl(o)){var u=t(o.from,o.to,o.velocity),s=D$(u,2),c=s[0],f=s[1];return Pe(Pe({},o),{},{from:c,velocity:f})}return o},r);return n<1?hn(function(a,o){return Hl(o)?Pe(Pe({},o),{},{velocity:ea(o.velocity,i[a].velocity,n),from:ea(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const z$=(function(e,t,r,n,i){var a=g$(e,t),o=a.reduce(function(d,b){return Pe(Pe({},d),{},Wl({},b,[e[b],t[b]]))},{}),u=a.reduce(function(d,b){return Pe(Pe({},d),{},Wl({},b,{from:e[b],velocity:0,to:t[b]}))},{}),s=-1,c,f,l=function(){return null},h=function(){return hn(function(b,x){return x.from},u)},p=function(){return!Object.values(u).filter(Hl).length},y=function(b){c||(c=b);var x=b-c,w=x/r.dt;u=F$(r,u,w),i(Pe(Pe(Pe({},e),t),h())),c=b,p()||(s=requestAnimationFrame(l))},v=function(b){f||(f=b);var x=(b-f)/n,w=hn(function(g,m){return ea.apply(void 0,ig(m).concat([r(x)]))},o);if(i(Pe(Pe(Pe({},e),t),w)),x<1)s=requestAnimationFrame(l);else{var O=hn(function(g,m){return ea.apply(void 0,ig(m).concat([r(1)]))},o);i(Pe(Pe(Pe({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}});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)}var W$=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function U$(e,t){if(e==null)return{};var r=H$(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 H$(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 Mc(e){return X$(e)||V$(e)||K$(e)||G$()}function G$(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 44In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K$(e,t){if(e){if(typeof e=="string")return Gl(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 Gl
44(e,t)}}function V$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function X$(e){if(Array.isArray(e))return Gl(e)}function Gl(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 og(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?og(Object(r),!0).forEach(function(n){un(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):og(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function un(e,t,r){return t=Ix(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ix(n.key),n)}}function J$(e,t,r){return t&&Z$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ix(e){var t=Q$(e,"string");return Tr(t)==="symbol"?t:String(t)}function Q$(e,t){if(Tr(e)!=="object"||e===null)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 eI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kl(e,t)}function Kl(e,t){return Kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Kl(e,t)}function tI(e){var t=rI();return function(){var n=ta(e),i;if(t){var a=ta(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Vl(this,i)}}function Vl(e,t){if(t&&(Tr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xl(e)}function Xl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rI(){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 ta(e){return ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ta(e)}var xt=(function(e){eI(r,e);var t=tI(r);function r(n,i){var a;Y$(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,c=o.from,f=o.to,l=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Xl(a)),a.changeStyle=a.changeStyle.bind(Xl(a)),!u||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),Vl(a);if(l&&l.length)a.state={style:l[0].style};else if(c){if(typeof h=="function")return a.state={style:c},Vl(a);a.state={style:s?un({},s,c):c}}else a.state={style:{}};return a}
44return J$(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,s=a.attributeName,c=a.shouldReAnimate,f=a.to,l=a.from,h=this.state.style;if(u){if(!o){var p={style:s?un({},s,f):f};this.state&&h&&(s&&h[s]!==f||!s&&h!==f)&&this.setState(p);return}if(!(s$(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||c?l:i.to;if(this.state&&h){var d={style:s?un({},s,v):v};(s&&h[s]!==v||!s&&h!==v)&&this.setState(d)}this.runAnimation(Xe(Xe({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,s=i.duration,c=i.easing,f=i.begin,l=i.onAnimationEnd,h=i.onAnimationStart,p=z$(o,u,C$(c),s,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,f,y,s,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,s=i.onAnimationStart,c=o[0],f=c.style,l=c.duration,h=l===void 0?0:l,p=function(v,d,b){if(b===0)return v;var x=d.duration,w=d.easing,O=w===void 0?"ease":w,g=d.style,m=d.properties,_=d.onAnimationEnd,S=b>0?o[b-1]:d,A=m||Object.keys(g);if(typeof O=="function"||O==="spring")return[].concat(Mc(v),[a.runJSAnimation.bind(a,{from:S.style,to:g,duration:x,easing:O}),x]);var $=tg(A,x,O),j=Xe(Xe(Xe({},S.style),g),{},{transition:$});return[].concat(Mc(v),[j,x,_]).filter(b$)};return this.manager.start([s].concat(Mc(o.reduce(p,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=v$());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,c=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=u?un({},u,s):s,d=tg(Object.keys(v),o,c);y.start([f,a,Xe(Xe({},v),{},{transition:d}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=U$(i,W$),c=R.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||c===0||o<=0)return a;var l=function(p){var y=p.props,v=y.style,d=v===void 0?{}:v,b=y.className,x=R.cloneElement(p,Xe(Xe({},s),{},{style:Xe(Xe({},d),f),className:b}));return x};return c===1?l(R.Children.only(a)):P.createElement("div",null,R.Children.map(a,function(h){return l(h)}))}}]),r})(R.PureComponent);xt.displayName="Animate";xt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};xt.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 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 ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
44for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ra.apply(this,arguments)}function nI(e,t){return uI(e)||oI(e,t)||aI(e,t)||iI()}function iI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 45In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aI(e,t){if(e){if(typeof e=="string")return ug(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 ug(e,t)}}function ug(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function oI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function uI(e){if(Array.isArray(e))return e}function sg(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 cg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sg(Object(r),!0).forEach(function(n){sI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sI(e,t,r){return t=cI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cI(e){var t=lI(e,"string");return qn(t)=="symbol"?t:t+""}function lI(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 lg=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],h=0,p=4;h<p;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(c,",").concat(t+s*l[0],",").concat(r)),f+="L ".concat(t+n-s*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`, 46 `).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,`, 47 `).concat(t+n-s*l[2],",").concat(r+i)),f+="L ".concat(t+s*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`, 48 `).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,` 49 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+s*y,",").concat(r,` 50 L `).concat(t+n-s*y,",").concat(r,` 51 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n,",").concat(r+u*y,` 52 L `).concat(t+n,",").concat(r+i-u*y,` 53 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n-s*y,",").concat(r+i,` 54 L `).concat(t+s*y,",").concat(r+i,` 55 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},fI=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var c=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+s),h=Math.max(o,o+s);return n>=c&&n<=f&&i>=l&&i<=h}return!1},hI={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},dh=function(t){var r=cg(cg({}
55,hI),t),n=R.useRef(),i=R.useState(-1),a=nI(i,2),o=a[0],u=a[1];R.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var s=r.x,c=r.y,f=r.width,l=r.height,h=r.radius,p=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,b=r.isAnimationActive,x=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var w=te("recharts-rectangle",p);return x?P.createElement(xt,{canBegin:o>0,from:{width:f,height:l,x:s,y:c},to:{width:f,height:l,x:s,y:c},duration:v,animationEasing:y,isActive:x},function(O){var g=O.width,m=O.height,_=O.x,S=O.y;return P.createElement(xt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,isActive:b,easing:y},P.createElement("path",ra({},J(r,!0),{className:w,d:lg(_,S,g,m,h),ref:n})))}):P.createElement("path",ra({},J(r,!0),{className:w,d:lg(s,c,f,l,h)}))};function Yl(){return Yl=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},Yl.apply(this,arguments)}var ph=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=te("recharts-dot",a);return r===+r&&n===+n&&i===+i?R.createElement("circle",Yl({},J(t,!1),Oi(t),{className:o,cx:r,cy:n,r:i})):null};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 dI=["x","y","top","left","width","height","className"];function Zl(){return Zl=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},Zl.apply(this,arguments)}function fg(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?fg(Object(r),!0).forEach(function(n){vI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vI(e,t,r){return t=yI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yI(e){var t=mI(e,"string");return Ln(t)=="symbol"?t:t+""}function mI(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 gI(e,t){if(e==null)return{};var r=bI(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 bI(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 xI=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},wI=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,s=t.left,c=s===void 0?0:s,f=t.width,l=f===void 0?0:f,h=t.height,p=h===void 0?0:h,y=t.className,v=gI(t,dI),d=pI({x:n,y:a,top:u,left:c,width:l,height:p},v);return!L(n)||!L(a)||!L(l)||!L(p)||!L(u)||!L(c)?null:P.createElement("path",Zl({},J(d,!0),{className:te("recharts-cross",y),d:xI(n,a,l,p,u,c)}))},Cc,hg;function OI(){if(hg)return Cc;hg=1;var e=e0(),t=e(Object.getPrototypeOf,Object);return Cc=t,Cc}var $c,dg;function _I(){if(dg)return $c;dg=1;var e=Ot(),t=OI(),r=_t(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function c(f){if(!r(f)||e(f)!=n)return!1;
55var l=t(f);if(l===null)return!0;var h=u.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==s}return $c=c,$c}var SI=_I();const AI=se(SI);var Ic,pg;function PI(){if(pg)return Ic;pg=1;var e=Ot(),t=_t(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Ic=n,Ic}var TI=PI();const jI=se(TI);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 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 EI(e,t){return II(e)||$I(e,t)||CI(e,t)||MI()}function MI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 56In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CI(e,t){if(e){if(typeof e=="string")return vg(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 vg(e,t)}}function vg(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 $I(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function II(e){if(Array.isArray(e))return e}function yg(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 mg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yg(Object(r),!0).forEach(function(n){kI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kI(e,t,r){return t=NI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NI(e){var t=RI(e,"string");return Bn(t)=="symbol"?t:t+""}function RI(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 gg=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},DI={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qI=function(t){var r=mg(mg({},DI),t),n=R.useRef(),i=R.useState(-1),a=EI(i,2),o=a[0],u=a[1];R.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var s=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,h=r.height,p=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,b=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var x=te("recharts-trapezoid",p);return b?P.createElement(xt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:h,x:s,y:c},duration:v,animationEasing:y,isActive:b},function(w){var O=w.upperWidth,g=w.lowerWidth,m=w.height,_=w.x,S=w.y;return P.createElement(xt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,easing:y},P.createElement("path",na({},J(r,!0),{className:x,d:gg(_,S,O,g,m),ref:n})))}):P.createElement("g",null,P.createElement("path",na({},J(r,!0),{className:x,d:gg(s,c,f,l,h)})))},LI=["option","shapeType","propTransformer","activeClassName","isActive"];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 BI(e,t){if(e==null)return{};var r=FI(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 FI(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 bg(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 ia(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
56t%2?bg(Object(r),!0).forEach(function(n){zI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zI(e,t,r){return t=WI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WI(e){var t=UI(e,"string");return Fn(t)=="symbol"?t:t+""}function UI(e,t){if(Fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HI(e,t){return ia(ia({},t),e)}function GI(e,t){return e==="symbols"}function xg(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return P.createElement(dh,r);case"trapezoid":return P.createElement(qI,r);case"sector":return P.createElement(Px,r);case"symbols":if(GI(t))return P.createElement($f,r);break;default:return null}}function KI(e){return R.isValidElement(e)?e.props:e}function VI(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?HI:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=BI(e,LI),c;if(R.isValidElement(t))c=R.cloneElement(t,ia(ia({},s),KI(t)));else if(Y(t))c=t(s);else if(AI(t)&&!jI(t)){var f=i(t,s);c=P.createElement(xg,{shapeType:r,elementProps:f})}else{var l=s;c=P.createElement(xg,{shapeType:r,elementProps:l})}return u?P.createElement(he,{className:o},c):c}function Fa(e,t){return t!=null&&"trapezoids"in e.props}function za(e,t){return t!=null&&"sectors"in e.props}function zn(e,t){return t!=null&&"points"in e.props}function XI(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 YI(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function ZI(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function JI(e,t){var r;return Fa(e,t)?r=XI:za(e,t)?r=YI:zn(e,t)&&(r=ZI),r}function QI(e,t){var r;return Fa(e,t)?r="trapezoids":za(e,t)?r="sectors":zn(e,t)&&(r="points"),r}function ek(e,t){if(Fa(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(za(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 zn(e,t)?t.payload:{}}function tk(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=QI(r,t),a=ek(r,t),o=n.filter(function(s,c){var f=An(a,s),l=r.props[i].filter(function(y){var v=JI(r,t);return v(y,t)}),h=r.props[i].indexOf(l[l.length-1]),p=c===h;return f&&p}),u=n.indexOf(o[o.length-1]);return u}var kc,wg;function rk(){if(wg)return kc;wg=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,s=t(e((i-n)/(a||1)),0),c=Array(s);s--;)c[o?s:++u]=n,n+=a;return c}return kc=r,kc}var Nc,Og;function kx(){if(Og)return Nc;Og=1;var e=y0(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return Nc=n,Nc}var Rc,_g;function nk(){if(_g)return Rc;_g=1;var e=rk(),t=Ma(),r=kx();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return Rc=n,Rc}var Dc,Sg;function ik(){if(Sg)return Dc;Sg=1;var e=nk(),t=e();return Dc=t,Dc}var ak=ik();const aa=se(ak);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 Ag(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
56t%2?Ag(Object(r),!0).forEach(function(n){Nx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ag(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nx(e,t,r){return t=ok(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ok(e){var t=uk(e,"string");return Wn(t)=="symbol"?t:t+""}function uk(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 sk=["Webkit","Moz","O","ms"],ck=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=sk.reduce(function(a,o){return Pg(Pg({},a),{},Nx({},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 oa(){return oa=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},oa.apply(this,arguments)}function Tg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tg(Object(r),!0).forEach(function(n){De(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jg(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,Dx(n.key),n)}}function fk(e,t,r){return t&&jg(e.prototype,t),r&&jg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hk(e,t,r){return t=ua(t),dk(e,Rx()?Reflect.construct(t,r||[],ua(e).constructor):t.apply(e,r))}function dk(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 pk(e)}function pk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rx=function(){return!!e})()}function ua(e){return ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ua(e)}function vk(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&&Jl(e,t)}function Jl(e,t){return Jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jl(e,t)}function De(e,t,r){return t=Dx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dx(e){var t=yk(e,"string");return jr(t)=="symbol"?t:t+""}function yk(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 mk=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var s=r.length,c=cn().domain(aa(0,s)).range([a,a+o-u]),f=c.domain().map(function(l){return c(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:f}},Eg=function(t){return t.changedTouches&&!!t.changedTouches.length},Er=(function(e){function t(r){var n;return lk(this,t),n=hk(this,t,[r]),De(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),De(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),De(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),De(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),De(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),De(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),De(n,"handleSlideDragStart",function(i){var a=Eg(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}
56return vk(t,e),fk(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,s=u.gap,c=u.data,f=c.length-1,l=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,l),y=t.getIndexInRange(o,h);return{startIndex:p-p%s,endIndex:y===f?f:y-y%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=Be(a[n],u,n);return Y(o)?o(s,n):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,s=this.props,c=s.x,f=s.width,l=s.travellerWidth,h=s.startIndex,p=s.endIndex,y=s.onChange,v=n.pageX-a;v>0?v=Math.min(v,c+f-l-u,c+f-l-o):v<0&&(v=Math.max(v,c-o,c-u));var d=this.getIndex({startX:o+v,endX:u+v});(d.startIndex!==h||d.endIndex!==p)&&y&&y(d),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Eg(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,s=i.startX,c=this.state[o],f=this.props,l=f.x,h=f.width,p=f.travellerWidth,y=f.onChange,v=f.gap,d=f.data,b={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+h-p-c):x<0&&(x=Math.max(x,l-c)),b[o]=c+x;var w=this.getIndex(b),O=w.startIndex,g=w.endIndex,m=function(){var S=d.length-1;return o==="startX"&&(u>s?O%v===0:g%v===0)||u<s&&g===S||o==="endX"&&(u>s?g%v===0:O%v===0)||u>s&&g===S};this.setState(De(De({},o,c+x),"brushMoveStartX",n.pageX),function(){y&&m()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,c=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var h=l+n;if(!(h===-1||h>=u.length)){var p=u[h];i==="startX"&&p>=c||i==="endX"&&p<=s||this.setState(De({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.fill,c=n.stroke;return P.createElement("rect",{stroke:c,fill:s,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.data,c=n.children,f=n.padding,l=R.Children.only(c);return l?P.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,h=s.traveller,p=s.ariaLabel,y=s.data,v=s.startIndex,d=s.endIndex,b=Math.max(n,this.props.x),x=qc(qc({},J(this.props,!1)),{},{x:b,y:c,width:f,height:l}),w=p||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[d])===null||o===void 0?void 0:o.name);return P.createElement(he,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(g){["ArrowLeft","ArrowRight"].includes(g.key)&&(g.preventDefault(),g.stopPropagation(),u.handleTravellerMoveKeyboard(g.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,0);return P.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,h=f.endX,p=5,y={pointerEvents:"none",fill:c};return P.createElement(he,{className:"recharts-brush-texts"},P.createElement(ki,oa({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-p,y:o+u/2},y),this.getTextOfTick(i)),P.createElement(ki,oa({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+s+p,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,s=n.y,c=n.width,f=n.height,l=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,v=h.isTextActive,d=h.isSli
56deMoving,b=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!L(u)||!L(s)||!L(c)||!L(f)||c<=0||f<=0)return null;var w=te("recharts-brush",a),O=P.Children.count(o)===1,g=ck("userSelect","none");return P.createElement(he,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(v||d||b||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(a+u/2)-1;return P.createElement(P.Fragment,null,P.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),P.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),P.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return P.isValidElement(n)?a=P.cloneElement(n,i):Y(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,s=n.travellerWidth,c=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return qc({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?mk({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(R.PureComponent);De(Er,"displayName","Brush");De(Er,"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 Lc,Mg;function gk(){if(Mg)return Lc;Mg=1;var e=Lf();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Lc=t,Lc}var Bc,Cg;function bk(){if(Cg)return Bc;Cg=1;var e=Kb(),t=kt(),r=gk(),n=Ne(),i=Ma();function a(o,u,s){var c=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),c(o,t(u,3))}return Bc=a,Bc}var xk=bk();const wk=se(xk);var ot=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Fc,$g;function Ok(){if($g)return Fc;$g=1;var e=f0();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Fc=t,Fc}var zc,Ig;function _k(){if(Ig)return zc;Ig=1;var e=Ok(),t=c0(),r=kt();function n(i,a){var o={};
56return a=r(a,3),t(i,function(u,s,c){e(o,s,a(u,s,c))}),o}return zc=n,zc}var Sk=_k();const Ak=se(Sk);var Wc,kg;function Pk(){if(kg)return Wc;kg=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Wc=e,Wc}var Uc,Ng;function Tk(){if(Ng)return Uc;Ng=1;var e=Lf();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Uc=t,Uc}var Hc,Rg;function jk(){if(Rg)return Hc;Rg=1;var e=Pk(),t=Tk(),r=kt(),n=Ne(),i=Ma();function a(o,u,s){var c=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),c(o,r(u,3))}return Hc=a,Hc}var Ek=jk();const qx=se(Ek);var Mk=["x","y"];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 Ql(){return Ql=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},Ql.apply(this,arguments)}function Dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dg(Object(r),!0).forEach(function(n){Ck(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ck(e,t,r){return t=$k(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $k(e){var t=Ik(e,"string");return Un(t)=="symbol"?t:t+""}function Ik(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)}function kk(e,t){if(e==null)return{};var r=Nk(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 Nk(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 Rk(e,t){var r=e.x,n=e.y,i=kk(e,Mk),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),h=parseInt(l,10);return nn(nn(nn(nn(nn({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function qg(e){return P.createElement(VI,Ql({shapeType:"rectangle",propTransformer:Rk,activeClassName:"recharts-active-bar"},e))}var Dk=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=L(n)||z1(n);return a?t(n,i):(a||tr(),r)}},qk=["value","background"],Lx;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 Lk(e,t){if(e==null)return{};var r=Bk(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 Bk(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 sa(){return sa=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},sa.apply(this,arguments)}function Lg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(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]:{};
56t%2?Lg(Object(r),!0).forEach(function(n){Mt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fx(n.key),n)}}function zk(e,t,r){return t&&Bg(e.prototype,t),r&&Bg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wk(e,t,r){return t=ca(t),Uk(e,Bx()?Reflect.construct(t,r||[],ca(e).constructor):t.apply(e,r))}function Uk(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 Hk(e)}function Hk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bx=function(){return!!e})()}function ca(e){return ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ca(e)}function Gk(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&&ef(e,t)}function ef(e,t){return ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ef(e,t)}function Mt(e,t,r){return t=Fx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fx(e){var t=Kk(e,"string");return Mr(t)=="symbol"?t:t+""}function Kk(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)}var ni=(function(e){function t(){var r;Fk(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Wk(this,t,[].concat(i)),Mt(r,"state",{isAnimationFinished:!1}),Mt(r,"id",Zn("recharts-bar-")),Mt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Mt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return Gk(t,e),zk(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,c=a.activeBar,f=J(this.props,!1);return n&&n.map(function(l,h){var p=h===s,y=p?c:o,v=ye(ye(ye({},f),l),{},{isActive:p,option:y,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return P.createElement(he,sa({className:"recharts-bar-rectangle"},_i(i.props,l,h),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(h)}),P.createElement(qg,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,f=i.animationEasing,l=i.animationId,h=this.state.prevData;return P.createElement(xt,{begin:s,duration:c,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,v=a.map(function(d,b){var x=h&&h[b];if(x){var w=Ue(x.x,d.x),O=Ue(x.y,d.y),g=Ue(x.width,d.width),m=Ue(x.height,d.height);return ye(ye({},d),{},{x:w(y),y:O(y),width:g(y),height:m(y)})}if(o==="horizontal"){var _=Ue(0,d.height),S=_(y);return ye(ye({},d),{},{y:d.y+d.height-S,height:S})}var A=Ue(0,d.width),$=A(y);return ye(ye({},d),{},{width:$})});return P.createElement(he,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!An(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}}
56,{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,s=J(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,h=Lk(c,qk);if(!l)return null;var p=ye(ye(ye(ye(ye({},h),{},{fill:"#eee"},l),s),_i(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return P.createElement(qg,sa({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,s=a.yAxis,c=a.layout,f=a.children,l=Qe(f,Ba);if(!l)return null;var h=c==="vertical"?o[0].height/2:o[0].width/2,p=function(d,b){var x=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:x,errorVal:Be(d,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(he,y,l.map(function(v){return P.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,c=n.left,f=n.top,l=n.width,h=n.height,p=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,b=te("recharts-bar",o),x=u&&u.allowDataOverflow,w=s&&s.allowDataOverflow,O=x||w,g=Q(v)?this.id:v;return P.createElement(he,{className:b},x||w?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(g)},P.createElement("rect",{x:x?c:c-l/2,y:w?f:f-h/2,width:x?l:l*2,height:w?h:h*2}))):null,P.createElement(he,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(g,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,g),(!p||d)&&$t.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}}])})(R.PureComponent);Lx=ni;Mt(ni,"displayName","Bar");Mt(ni,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ur.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Mt(ni,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,s=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,p=sM(n,r);if(!p)return null;var y=t.layout,v=r.type.defaultProps,d=v!==void 0?ye(ye({},v),r.props):r.props,b=d.dataKey,x=d.children,w=d.minPointSize,O=y==="horizontal"?o:a,g=c?O.scale.domain():null,m=yM({numericAxis:O}),_=Qe(x,g0),S=l.map(function(A,$){var j,T,M,I,C,N;c?j=cM(c[f+$],g):(j=Be(A,b),Array.isArray(j)||(j=[m,j]));var q=Dk(w,Lx.defaultProps.minPointSize)(j[1],$);if(y==="horizontal"){var B,F=[o.scale(j[0]),o.scale(j[1])],H=F[0],K=F[1];T=Pm({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:A,index:$}),M=(B=K??H)!==null&&B!==void 0?B:void 0,I=p.size;var W=H-K;if(C=Number.isNaN(W)?0:W,N={x:T,y:o.y,width:I,height:o.height},Math.abs(q)>0&&Math.abs(C)<Math.abs(q)){var V=Je(C||q)*(Math.abs(q)-Math.abs(C));M-=V,C+=V}}else{var ce=[a.scale(j[0]),a.scale(j[1])],ve=ce[0],Re=ce[1];if(T=ve,M=Pm({axis:o,ticks:s,bandSize:i,offset:p.offset,entry:A,index:$}),I=Re-ve,C=p.size,N={x:a.x,y:M,width:a.width,height:C},Math.abs(q)>0&&Math.abs(I)<Math.abs(q)){var qt=Je(I||q)*(Math.abs(q)-Math.abs(I));I+=qt}}return ye(ye(ye({},A),{},{x:T,y:M,width:I,height:C,value:c?j:j[1],payload:A,background:N},_&&_[$]&&_[$].props),{},{tooltipPayload:[_x(r,A)],tooltipPosition:{x:T+I/2,y:M+C/2}})});return ye({data:S,layout:y},h)});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 Vk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zx(n.key),n)}}function Xk(e,t,r){return t&&Fg(e.prototype,t),r&&Fg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
56t%2?zg(Object(r),!0).forEach(function(n){Wa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wa(e,t,r){return t=zx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zx(e){var t=Yk(e,"string");return Hn(t)=="symbol"?t:t+""}function Yk(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)}var Zk=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},h=!!qe(c,ni);return f.reduce(function(p,y){var v=r[y],d=v.orientation,b=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,g=v.reversed,m="".concat(d).concat(O?"Mirror":""),_,S,A,$,j;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var T=b[1]-b[0],M=1/0,I=v.categoricalDomain.sort(H1);if(I.forEach(function(ce,ve){ve>0&&(M=Math.min((ce||0)-(I[ve-1]||0),M))}),Number.isFinite(M)){var C=M/T,N=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=C*N/2),v.padding==="no-gap"){var q=Qt(t.barCategoryGap,C*N),B=C*N/2;_=B-q-(B-q)/N*q}}}i==="xAxis"?S=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?S=s==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:S=v.range,g&&(S=[S[1],S[0]]);var F=oM(v,a,h),H=F.scale,K=F.realScaleType;H.domain(b).range(S),uM(H);var W=vM(H,Ye(Ye({},v),{},{realScaleType:K}));i==="xAxis"?(j=d==="top"&&!O||d==="bottom"&&O,A=n.left,$=l[m]-j*v.height):i==="yAxis"&&(j=d==="left"&&!O||d==="right"&&O,A=l[m]-j*v.width,$=n.top);var V=Ye(Ye(Ye({},v),W),{},{realScaleType:K,x:A,y:$,scale:H,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return V.bandSize=Xi(V,W),!v.hide&&i==="xAxis"?l[m]+=(j?-1:1)*V.height:v.hide||(l[m]+=(j?-1:1)*V.width),Ye(Ye({},p),{},Wa({},y,V))},{})},Wx=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)}},Jk=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Wx({x:r,y:n},{x:i,y:a})},Ux=(function(){function e(t){Vk(this,e),this.scale=t}return Xk(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Wa(Ux,"EPS",1e-4);var vh=function(t){var r=Object.keys(t).reduce(function(n,i){return Ye(Ye({},n),{},Wa({},i,Ux.create(t[i])))},{});return Ye(Ye({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return Ak(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return qx(i,function(a,o){return r[o].isInRange(a)})}})};function Qk(e){return(e%180+180)%180}var eN=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Qk(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},Gc,Wg;function tN(){if(Wg)return Gc;Wg=1;var e=kt(),t=Jn(),r=ja();function n(i){return function(a,o,u){var s=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(l){return c(s[l],l,s)}}var f=i(a,o,u);return f>-1?s[c?a[f]:f]:void 0}}return Gc=n,Gc}var Kc,Ug;function rN(){if(Ug)return Kc;Ug=1;var e=kx();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Kc=t,Kc}var Vc,Hg;function nN(){if(Hg)return Vc;Hg=1;var e=i0(),t=kt(),r=rN(),n=Math.max;function i(a,o,u){var s=a==null?0:a.length;if(!s)return-1;var c=u==null?0:r(u);return c<0&&(c=n(s+c,0)),e(a,t(o,3),c)}return Vc=i,Vc}var Xc,Gg;function iN(){if(Gg)return Xc;Gg=1;var e=tN(),t=nN(),r=e(t);return Xc=r,Xc}var aN=iN();const oN=se(aN);var uN=xb();const sN=se(uN);var cN=sN(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("")}),yh=R.createContext(void 0),mh=R.createContext(void 0),Hx=R.createContext(void 0),Gx=R.createContext({}),Kx=R.createContext(void 0),Vx=R.createContext(0),Xx=R.createContext(0),Kg=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,s=t.width,c=t.height,f=cN(a);return P.createElement(yh.Provider,{value:n},P.createElement(mh.Provider,{value:i},P.createElement(Gx.Provider,{value:a},P.createElement(Hx.Provider,{value:f},P.createElement(Kx.Provider,{value:o},P.createElement(Vx.Provider,{value:c},P.createElement(Xx.Provider,{value:s},u)))))))},lN=function(){return R.useContext(Kx)},Yx=function(t){var r=R.useContext(yh);r==null&&tr();var n=r[t];return n==null&&tr(),n},fN=function(){var t=R.useContext(yh);return jt(t)},hN=function(){var t=R.useContext(mh),r=oN(t,function(n){return qx(n.domain,Number.isFinite)});return r||jt(t)},Zx=function(t){var r=R.useContext(mh);r==null&&tr();var n=r[t];return n==null&&tr(),n},dN=function(){var t=R.useContext(Hx);return t},pN=function(){return R.useContext(Gx)},gh=function(){return R.useContext(Xx)},bh=function(){return R.useContext(Vx)};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 vN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yN(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,Qx(n.key),n)}}function mN(e,t,r){return t&&yN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gN(e,t,r){return t=la(t),bN(e,Jx()?Reflect.construct(t,r||[],la(e).constructor):t.apply(e,r))}function bN(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 xN(e)}function xN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jx=function(){return!!e})()}
56function la(e){return la=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},la(e)}function wN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tf(e,t)}function tf(e,t){return tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tf(e,t)}function Vg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vg(Object(r),!0).forEach(function(n){xh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xh(e,t,r){return t=Qx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qx(e){var t=ON(e,"string");return Cr(t)=="symbol"?t:t+""}function ON(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)}function _N(e,t){return TN(e)||PN(e,t)||AN(e,t)||SN()}function SN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 57In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AN(e,t){if(e){if(typeof e=="string")return Yg(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 Yg(e,t)}}function Yg(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 PN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function TN(e){if(Array.isArray(e))return e}function rf(){return rf=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},rf.apply(this,arguments)}var jN=function(t,r){var n;return P.isValidElement(t)?n=P.cloneElement(t,r):Y(t)?n=t(r):n=P.createElement("line",rf({},r,{className:"recharts-reference-line-line"})),n},EN=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,h=a.width,p=a.height;if(n){var y=c.y,v=t.y.apply(y,{position:o});if(ot(c,"discard")&&!t.y.isInRange(v))return null;var d=[{x:f+h,y:v},{x:f,y:v}];return s==="left"?d.reverse():d}if(r){var b=c.x,x=t.x.apply(b,{position:o});if(ot(c,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+p},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=c.segment,g=O.map(function(m){return t.apply(m,{position:o})});return ot(c,"discard")&&wk(g,function(m){return!t.isInRange(m)})?null:g}return null};function MN(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,c=lN(),f=Yx(i),l=Zx(a),h=dN();if(!c||!h)return null;vt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=vh({x:f.scale,y:l.scale}),y=Oe(t),v=Oe(r),d=n&&n.length===2,b=EN(p,y,v,d,h,e.position,f.orientation,l.orientation,e);if(!b)return null;var x=_N(b,2),w=x[0],O=w.x,g=w.y,m=x[1],_=m.x,S=m.y,A=ot(e,"hidden")?"url(#".concat(c,")"):void 0,$=Xg(Xg({clipPath:A},J(e,!0)),{},{x1:O,y1:g,x2:_,y2:S});return P.createElement(he,{className:te("recharts-reference-line",u)},jN(o,$),Ee.renderCallByParent(e,Jk({x1:O,y1:g,x2:_,y2:S})))}var wh=(function(e){function t(){return vN(this,t),gN(this,t,arguments)}return wN(t,e),mN(t,[{key:"render",value:function(){return P.createElement(MN,this.props)}}])})(P.Component);xh(wh,"displayName","ReferenceLine");xh(wh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function nf(){return nf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
57for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nf.apply(this,arguments)}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)}function Zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zg(Object(r),!0).forEach(function(n){Ua(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $N(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,tw(n.key),n)}}function IN(e,t,r){return t&&$N(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kN(e,t,r){return t=fa(t),NN(e,ew()?Reflect.construct(t,r||[],fa(e).constructor):t.apply(e,r))}function NN(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 RN(e)}function RN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ew(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ew=function(){return!!e})()}function fa(e){return fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fa(e)}function DN(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&&af(e,t)}function af(e,t){return af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},af(e,t)}function Ua(e,t,r){return t=tw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tw(e){var t=qN(e,"string");return $r(t)=="symbol"?t:t+""}function qN(e,t){if($r(e)!="object"||!e)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 String(e)}var LN=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=vh({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return ot(t,"discard")&&!o.isInRange(u)?null:u},Ha=(function(e){function t(){return CN(this,t),kN(this,t,arguments)}return DN(t,e),IN(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,c=Oe(i),f=Oe(a);if(vt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=LN(this.props);if(!l)return null;var h=l.x,p=l.y,y=this.props,v=y.shape,d=y.className,b=ot(this.props,"hidden")?"url(#".concat(s,")"):void 0,x=Jg(Jg({clipPath:b},J(this.props,!0)),{},{cx:h,cy:p});return P.createElement(he,{className:te("recharts-reference-dot",d)},t.renderDot(v,x),Ee.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(P.Component);Ua(Ha,"displayName","ReferenceDot");Ua(Ha,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Ua(Ha,"renderDot",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):Y(e)?r=e(t):r=P.createElement(ph,nf({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
57for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},of.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 Qg(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 eb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qg(Object(r),!0).forEach(function(n){Ga(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FN(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,nw(n.key),n)}}function zN(e,t,r){return t&&FN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WN(e,t,r){return t=ha(t),UN(e,rw()?Reflect.construct(t,r||[],ha(e).constructor):t.apply(e,r))}function UN(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 HN(e)}function HN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rw=function(){return!!e})()}function ha(e){return ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ha(e)}function GN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uf(e,t)}function uf(e,t){return uf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uf(e,t)}function Ga(e,t,r){return t=nw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nw(e){var t=KN(e,"string");return Ir(t)=="symbol"?t:t+""}function KN(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 VN=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var h=vh({x:f.scale,y:l.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(s,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(u,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(c,{position:"end"}):h.y.rangeMax};return ot(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:Wx(p,y)},Ka=(function(e){function t(){return BN(this,t),WN(this,t,arguments)}return GN(t,e),zN(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.
57className,c=n.alwaysShow,f=n.clipPathId;vt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Oe(i),h=Oe(a),p=Oe(o),y=Oe(u),v=this.props.shape;if(!l&&!h&&!p&&!y&&!v)return null;var d=VN(l,h,p,y,this.props);if(!d&&!v)return null;var b=ot(this.props,"hidden")?"url(#".concat(f,")"):void 0;return P.createElement(he,{className:te("recharts-reference-area",s)},t.renderRect(v,eb(eb({clipPath:b},J(this.props,!0)),d)),Ee.renderCallByParent(this.props,d))}}])})(P.Component);Ga(Ka,"displayName","ReferenceArea");Ga(Ka,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Ga(Ka,"renderRect",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):Y(e)?r=e(t):r=P.createElement(dh,of({},t,{className:"recharts-reference-area-rect"})),r});function iw(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 XN(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return eN(n,r)}function YN(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 da(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 ZN(e,t){return iw(e,t+1)}function JN(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,c=1,f=o,l=function(){var y=n?.[s];if(y===void 0)return{v:iw(n,c)};var v=s,d,b=function(){return d===void 0&&(d=r(y,v)),d},x=y.coordinate,w=s===0||da(e,x,b,f,u);w||(s=0,f=o,c+=1),w&&(f=x+e*(b()/2+i),s+=c)},h;c<=a.length;)if(h=l(),h)return h.v;return[]}function Gn(e){"@babel/helpers - typeof";return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gn(e)}function tb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tb(Object(r),!0).forEach(function(n){QN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QN(e,t,r){return t=e2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e2(e){var t=t2(e,"string");return Gn(t)=="symbol"?t:t+""}function t2(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 r2(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=function(h){var p=a[h],y,v=function(){return y===void 0&&(y=r(p,h)),y};if(h===o-1){var d=e*(p.coordinate+e*v()/2-s);a[h]=p=je(je({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=je(je({},p),{},{tickCoord:p.coordinate});var b=da(e,p.tickCoord,v,u,s);b&&(s=p.tickCoord-e*(v()/2+i),a[h]=je(je({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function n2(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var f=n[u-1],l=r(f,u-1),h=e*(f.coordinate+e*l/2-c);o[u-1]=f=je(je({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=da(e,f.tickCoord,function(){return l},s,c);p&&(c=f.tickCoord-e*(l/2+i),o[u-1]=je(je({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,g=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var m=e*(w.coordinate-e*g()/2-s);o[x]=w=je(je({},w),{},{tickCoord:m<0?w.coordinate-m*e:w.coordinate})}else o[x]=w=je(je({},w),{},{tickCoord:w.coordinate});var _=da(e,w.tickCoord,g,s,c);_&&(s=w.tickCoord+e*(g()/2+i),o[x]=je(je({},w),{},{isShow:!0}))},d=0;d<y;d++)v(d);return o}function Oh(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,c=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(L(s)||Ur.isSsr)return ZN(i,typeof s=="number"&&L(s)?s:0);var h=[],p=u==="top"||u==="bottom"?"width":"height",y=f&&p==="width"?sn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var g=Y(c)?c(w.value,O):w.value;return p==="width"?XN(sn(g,{fontSize:t,letterSpacing:r}),y,l):sn(g,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?Je(i[1].coordinate-i[0].coordinate):1,b=YN(a,d,p);return s==="equidistantPreserveStart"?JN(d,b,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?h=n2(d,b,v,i,o,s==="preserveStartEnd"):h=r2(d,b,v,i,o),h.filter(function(x){return x.isShow}))}var i2=["viewBox"],a2=["viewBox"],o2=["ticks"];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 hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
57for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hr.apply(this,arguments)}function rb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rb(Object(r),!0).forEach(function(n){_h(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yc(e,t){if(e==null)return{};var r=u2(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 u2(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 s2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nb(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,ow(n.key),n)}}function c2(e,t,r){return t&&nb(e.prototype,t),r&&nb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l2(e,t,r){return t=pa(t),f2(e,aw()?Reflect.construct(t,r||[],pa(e).constructor):t.apply(e,r))}function f2(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 h2(e)}function h2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aw=function(){return!!e})()}function pa(e){return pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pa(e)}function d2(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&&sf(e,t)}function sf(e,t){return sf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sf(e,t)}function _h(e,t,r){return t=ow(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ow(e){var t=p2(e,"string");return kr(t)=="symbol"?t:t+""}function p2(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)}var Vr=(function(e){function t(r){var n;return s2(this,t),n=l2(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return d2(t,e),c2(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Yc(n,i2),u=this.props,s=u.viewBox,c=Yc(u,a2);return!pr(a,s)||!pr(o,c)||!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,s=i.height,c=i.orientation,f=i.tickSize,l=i.mirror,h=i.tickMargin,p,y,v,d,b,x,w=l?-1:1,O=n.tickSize||f,g=L(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":p=y=n.coordinate,d=o+ +!l*s,v=d-w*O,x=v-w*h,b=g;break;case"left":v=d=n.coordinate,y=a+ +!l*u,p=y-w*O,b=p-w*h,x=g;break;
57case"right":v=d=n.coordinate,y=a+ +l*u,p=y+w*O,b=p+w*h,x=g;break;default:p=y=n.coordinate,d=o+ +l*s,v=d+w*O,x=v+w*h,b=g;break}return{line:{x1:p,y1:v,x2:y,y2:d},tick:{x:b,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.orientation,c=n.mirror,f=n.axisLine,l=xe(xe(xe({},J(this.props,!1)),J(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var h=+(s==="top"&&!c||s==="bottom"&&c);l=xe(xe({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var p=+(s==="left"&&!c||s==="right"&&c);l=xe(xe({},l),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+u})}return P.createElement("line",hr({},l,{className:te("recharts-cartesian-axis-line",Ge(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,f=u.tick,l=u.tickFormatter,h=u.unit,p=Oh(xe(xe({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),d=J(this.props,!1),b=J(f,!1),x=xe(xe({},d),{},{fill:"none"},J(s,!1)),w=p.map(function(O,g){var m=o.getTickLineCoord(O),_=m.line,S=m.tick,A=xe(xe(xe(xe({textAnchor:y,verticalAnchor:v},d),{},{stroke:"none",fill:c},b),S),{},{index:g,payload:O,visibleTicksCount:p.length,tickFormatter:l});return P.createElement(he,hr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},_i(o.props,O,g)),s&&P.createElement("line",hr({},x,_,{className:te("recharts-cartesian-axis-tick-line",Ge(s,"className"))})),f&&t.renderTickItem(f,A,"".concat(Y(l)?l(O.value,g):O.value).concat(h||"")))});return P.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,s=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var l=this.props,h=l.ticks,p=Yc(l,o2),y=h;return Y(s)&&(y=h&&h.length>0?s(this.props):s(p)),o<=0||u<=0||!y||!y.length?null:P.createElement(he,{className:te("recharts-cartesian-axis",c),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ee.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=te(i.className,"recharts-cartesian-axis-tick-value");return P.isValidElement(n)?o=P.cloneElement(n,xe(xe({},i),{},{className:u})):Y(n)?o=n(xe(xe({},i),{},{className:u})):o=P.createElement(ki,hr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(R.Component);_h(Vr,"displayName","CartesianAxis");_h(Vr,"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 v2=["x1","y1","x2","y2","key"],y2=["offset"];function rr(e){"@babel/helpers - typeof";return rr=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},rr(e)}function ib(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ib(Object(r),!0).forEach(function(n){m2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ib(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m2(e,t,r){return t=g2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g2(e){var t=b2(e,"string");return rr(t)=="symbol"?t:t+""}function b2(e,t){if(rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
57for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vt.apply(this,arguments)}function ab(e,t){if(e==null)return{};var r=x2(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 x2(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 w2=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,s=t.ry;return P.createElement("rect",{x:i,y:a,ry:s,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function uw(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(Y(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,s=ab(t,v2),c=J(s,!1);c.offset;var f=ab(c,y2);r=P.createElement("line",Vt({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function O2(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=Me(Me({},e),{}
57,{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(s),index:s});return uw(i,c)});return P.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function _2(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=Me(Me({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(s),index:s});return uw(i,c)});return P.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function S2(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,s=e.horizontal,c=s===void 0?!0:s;if(!c||!t||!t.length)return null;var f=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==f[0]&&f.unshift(0);var l=f.map(function(h,p){var y=!f[p+1],v=y?i+o-h:f[p+1]-h;if(v<=0)return null;var d=p%t.length;return P.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:v,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function A2(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,s=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var f=c.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==f[0]&&f.unshift(0);var l=f.map(function(h,p){var y=!f[p+1],v=y?a+u-h:f[p+1]-h;if(v<=0)return null;var d=p%n.length;return P.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:v,height:s,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var P2=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return wx(Oh(Me(Me(Me({},Vr.defaultProps),n),{},{ticks:dt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},T2=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return wx(Oh(Me(Me(Me({},Vr.defaultProps),n),{},{ticks:dt(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 sw(e){var t,r,n,i,a,o,u=gh(),s=bh(),c=pN(),f=Me(Me({},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:L(e.x)?e.x:c.left,y:L(e.y)?e.y:c.top,width:L(e.width)?e.width:c.width,height:L(e.height)?e.height:c.height}),l=f.x,h=f.y,p=f.width,y=f.height,v=f.syncWithTicks,d=f.horizontalValues,b=f.verticalValues,x=fN(),w=hN();if(!L(p)||p<=0||!L(y)||y<=0||!L(l)||l!==+l||!L(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||P2,g=f.horizontalCoordinatesGenerator||T2,m=f.horizontalPoints,_=f.verticalPoints;if((!m||!m.length)&&Y(g)){var S=d&&d.length,A=g({yAxis:w?Me(Me({},w),{},{ticks:S?d:w.ticks}):void 0,width:u,height:s,offset:c},S?!0:v);vt(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(rr(A),"]")),Array.isArray(A)&&(m=A)}if((!_||!_.length)&&Y(O)){var $=b&&b.length,j=O({xAxis:x?Me(Me({},x),{},{ticks:$?b:x.ticks}):void 0,width:u,height:s,offset:c},$?!0:v);vt(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(rr(j),"]")),Array.isArray(j)&&(_=j)}return P.createElement("g",{className:"recharts-cartesian-grid"},P.createElement(w2,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),P.createElement(O2,Vt({},f,{offset:c,horizontalPoints:m,xAxis:x,yAxis:w})),P.createElement(_2,Vt({},f,{offset:c,verticalPoints:_,xAxis:x,yAxis:w})),P.createElement(S2,Vt({},f,{horizontalPoints:m})),P.createElement(A2,Vt({},f,{verticalPoints:_})))}sw.displayName="CartesianGrid";var j2=["layout","type","stroke","connectNulls","isRange","ref"],E2=["key"],cw;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 lw(e,t){if(e==null)return{};var r=M2(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 M2(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 Xt(){return Xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
57for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xt.apply(this,arguments)}function ob(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ob(Object(r),!0).forEach(function(n){it(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ob(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ub(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,hw(n.key),n)}}function $2(e,t,r){return t&&ub(e.prototype,t),r&&ub(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function I2(e,t,r){return t=va(t),k2(e,fw()?Reflect.construct(t,r||[],va(e).constructor):t.apply(e,r))}function k2(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 N2(e)}function N2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fw=function(){return!!e})()}function va(e){return va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},va(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&&cf(e,t)}function cf(e,t){return cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cf(e,t)}function it(e,t,r){return t=hw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hw(e){var t=D2(e,"string");return Nr(t)=="symbol"?t:t+""}function D2(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 wt=(function(e){function t(){var r;C2(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=I2(this,t,[].concat(i)),it(r,"state",{isAnimationFinished:!0}),it(r,"id",Zn("recharts-area-")),it(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Y(o)&&o()}),it(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Y(o)&&o()}),r}return R2(t,e),$2(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var s=this.props,c=s.dot,f=s.points,l=s.dataKey,h=J(this.props,!1),p=J(c,!0),y=f.map(function(d,b){var x=Pt(Pt(Pt({key:"dot-".concat(b),r:3},h),p),{},{index:b,cx:d.x,cy:d.y,dataKey:l,value:d.value,payload:d.payload,points:f});return t.renderDotItem(c,x)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(he,Xt({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].x,c=o[o.length-1].x,f=n*Math.abs(s-c),l=Et(o.map(function(h){return h.y||0}));return L(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Et(a.map(function(h){return h.y||0})),l)),L(l)?P.createElement("rect",{x:s<c?s:s-f,y:0,width:f,height:Math.floor(l+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].y,c=o[o.length-1].y,f=n*Math.abs(s-c),l=Et(
57o.map(function(h){return h.x||0}));return L(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Et(a.map(function(h){return h.x||0})),l)),L(l)?P.createElement("rect",{x:0,y:s<c?s:s-f,width:l+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,s=u.layout,c=u.type,f=u.stroke,l=u.connectNulls,h=u.isRange;u.ref;var p=lw(u,j2);return P.createElement(he,{clipPath:a?"url(#clipPath-".concat(o,")"):null},P.createElement(fn,Xt({},J(p,!0),{points:n,connectNulls:l,type:c,baseLine:i,layout:s,stroke:"none",className:"recharts-area-area"})),f!=="none"&&P.createElement(fn,Xt({},J(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:n})),f!=="none"&&h&&P.createElement(fn,Xt({},J(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.baseLine,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,h=o.animationEasing,p=o.animationId,y=this.state,v=y.prevPoints,d=y.prevBaseLine;return P.createElement(xt,{begin:f,duration:l,isActive:c,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var x=b.t;if(v){var w=v.length/u.length,O=u.map(function(S,A){var $=Math.floor(A*w);if(v[$]){var j=v[$],T=Ue(j.x,S.x),M=Ue(j.y,S.y);return Pt(Pt({},S),{},{x:T(x),y:M(x)})}return S}),g;if(L(s)&&typeof s=="number"){var m=Ue(d,s);g=m(x)}else if(Q(s)||zr(s)){var _=Ue(d,0);g=_(x)}else g=s.map(function(S,A){var $=Math.floor(A*w);if(d[$]){var j=d[$],T=Ue(j.x,S.x),M=Ue(j.y,S.y);return Pt(Pt({},S),{},{x:T(x),y:M(x)})}return S});return a.renderAreaStatically(O,g,n,i)}return P.createElement(he,null,P.createElement("defs",null,P.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),P.createElement(he,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,s,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,s=a.isAnimationActive,c=this.state,f=c.prevPoints,l=c.prevBaseLine,h=c.totalLength;return s&&o&&o.length&&(!f&&h>0||!An(f,o)||!An(l,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.top,f=i.left,l=i.xAxis,h=i.yAxis,p=i.width,y=i.height,v=i.isAnimationActive,d=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,x=u.length===1,w=te("recharts-area",s),O=l&&l.allowDataOverflow,g=h&&h.allowDataOverflow,m=O||g,_=Q(d)?this.id:d,S=(n=J(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=S.r,$=A===void 0?3:A,j=S.strokeWidth,T=j===void 0?2:j,M=eO(o)?o:{},I=M.clipDot,C=I===void 0?!0:I,N=$*2+T;return P.createElement(he,{className:w},O||g?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(_)},P.createElement("rect",{x:O?f:f-p/2,y:g?c:c-y/2,width:O?p:p*2,height:g?y:y*2})),!C&&P.createElement("clipPath",{id:"clipPath-dots-".concat(_)},P.createElement("rect",{x:f-N/2,y:c-N/2,width:p+N,height:y+N}))):null,x?null:this.renderArea(m,_),(o||x)&&this.renderDots(m,C,_),(!v||b)&&$t.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(R.PureComponent);cw=wt;it(wt,"displayName","Area");it(wt,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ur.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});it(wt,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(L(u)&&typeof u=="number")return u;var s=i==="horizontal"?n:r,c=s.scale.domain();if(s.type==="number"){var f=Math.max(c[0],c[1]),l=Math.min(c[0],c[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return u==="dataMin"?c[0]:u==="dataMax"?c[1]:c[0]});it(wt,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.
57yAxisTicks,u=e.bandSize,s=e.dataKey,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,p=t.layout,y=c&&c.length,v=cw.getBaseValue(t,r,n,i),d=p==="horizontal",b=!1,x=l.map(function(O,g){var m;y?m=c[f+g]:(m=Be(O,s),Array.isArray(m)?b=!0:m=[v,m]);var _=m[1]==null||y&&Be(O,s)==null;return d?{x:Am({axis:n,ticks:a,bandSize:u,entry:O,index:g}),y:_?null:i.scale(m[1]),value:m,payload:O}:{x:_?null:n.scale(m[1]),y:Am({axis:i,ticks:o,bandSize:u,entry:O,index:g}),value:m,payload:O}}),w;return y||b?w=x.map(function(O){var g=Array.isArray(O.value)?O.value[0]:null;return d?{x:O.x,y:g!=null&&O.y!=null?i.scale(g):null}:{x:g!=null?n.scale(g):null,y:O.y}}):w=d?i.scale(v):n.scale(v),Pt({points:x,baseLine:w,layout:p,isRange:b},h)});it(wt,"renderDotItem",function(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(Y(e))r=e(t);else{var n=te("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=lw(t,E2);r=P.createElement(ph,Xt({},a,{key:i,className:n}))}return r});function Rr(e){"@babel/helpers - typeof";return Rr=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},Rr(e)}function q2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L2(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,vw(n.key),n)}}function B2(e,t,r){return t&&L2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function F2(e,t,r){return t=ya(t),z2(e,dw()?Reflect.construct(t,r||[],ya(e).constructor):t.apply(e,r))}function z2(e,t){if(t&&(Rr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W2(e)}function W2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dw=function(){return!!e})()}function ya(e){return ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ya(e)}function U2(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&&lf(e,t)}function lf(e,t){return lf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lf(e,t)}function pw(e,t,r){return t=vw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vw(e){var t=H2(e,"string");return Rr(t)=="symbol"?t:t+""}function H2(e,t){if(Rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ff(){return ff=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},ff.apply(this,arguments)}function G2(e){var t=e.xAxisId,r=gh(),n=bh(),i=Yx(t);return i==null?null:R.createElement(Vr,ff({},i,{className:te("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return dt(o,!0)}}))}var Va=(function(e){function t(){return q2(this,t),F2(this,t,arguments)}return U2(t,e),B2(t,[{key:"render",value:function(){return R.createElement(G2,this.props)}}])})(R.Component);pw(Va,"displayName","XAxis");pw(Va,"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 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 K2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V2(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,gw(n.key),n)}}function X2(e,t,r){return t&&V2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y2(e,t,r){return t=ma(t),Z2(e,yw()?Reflect.construct(t,r||[],ma(e).constructor):t.apply(e,r))}function Z2(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 J2(e)}function J2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yw=function(){return!!e})()}
57function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ma(e)}function Q2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hf(e,t)}function hf(e,t){return hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hf(e,t)}function mw(e,t,r){return t=gw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gw(e){var t=eR(e,"string");return Dr(t)=="symbol"?t:t+""}function eR(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 df(){return df=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},df.apply(this,arguments)}var tR=function(t){var r=t.yAxisId,n=gh(),i=bh(),a=Zx(r);return a==null?null:R.createElement(Vr,df({},a,{className:te("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return dt(u,!0)}}))},Xa=(function(e){function t(){return K2(this,t),Y2(this,t,arguments)}return Q2(t,e),X2(t,[{key:"render",value:function(){return R.createElement(tR,this.props)}}])})(R.Component);mw(Xa,"displayName","YAxis");mw(Xa,"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 sb(e){return aR(e)||iR(e)||nR(e)||rR()}function rR(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 58In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nR(e,t){if(e){if(typeof e=="string")return pf(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 pf(e,t)}}function iR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aR(e){if(Array.isArray(e))return pf(e)}function pf(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 vf=function(t,r,n,i,a){var o=Qe(t,wh),u=Qe(t,Ha),s=[].concat(sb(o),sb(u)),c=Qe(t,Ka),f="".concat(i,"Id"),l=i[0],h=r;if(s.length&&(h=s.reduce(function(v,d){if(d.props[f]===n&&ot(d.props,"extendDomain")&&L(d.props[l])){var b=d.props[l];return[Math.min(v[0],b),Math.max(v[1],b)]}return v},h)),c.length){var p="".concat(l,"1"),y="".concat(l,"2");h=c.reduce(function(v,d){if(d.props[f]===n&&ot(d.props,"extendDomain")&&L(d.props[p])&&L(d.props[y])){var b=d.props[p],x=d.props[y];return[Math.min(v[0],b,x),Math.max(v[1],b,x)]}return v},h)}return a&&a.length&&(h=a.reduce(function(v,d){return L(d)?[Math.min(v[0],d),Math.max(v[1],d)]:v},h)),h},Zc={exports:{}},cb;function oR(){return cb||(cb=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function a(s,c,f,l,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,l||s,h),y=r?r+c:c;return s._events[y]?s._events[y].fn?s._events[y]=[s._events[y],p]:s._events[y].push(p):(s._events[y]=p,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],f,l;if(this._eventsCount===0)return c;for(l in f=this._events)t.call(f,l)&&c.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},u.prototype.listeners=function(c){var f=r?r+c:c,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var h=0,p=l.length,y=new Array(p);h<p;h++)y[h]=l[h].fn;return y},u.prototype.listenerCount=function(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(c,f,l,h,p,y){var v=r?r+c:c;if(!this._events[v])return!1;var d=this._events[v],b=arguments.length,x,w;if(d.fn){switch(d.once&&this.removeListener(c,d.fn,void 0,!0),b){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,f),!0;case 3:return d.fn.call(d.context,f,l),!0;case 4:return d.fn.call(d.context,f,l,h),!0;case 5:return d.fn.call(d.context,f,l,h,p),!0;case 6:return d.fn.call(d.context,f,l,h,p,y),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];d.fn.apply(d.context,x)}else{var O=d.length,g;for(w=0;w<O;w++)switch(d[w].once&&this.removeListener(c,d[w].fn,void 0,!0),b){case 1:d[w].fn.call(d[w].context);break;case 2:d[w].fn.call(d[w].context,f);break;case 3:d[w].fn.call(d[w].context,f,l);break;case 4:d[w].fn.call(d[w].context,f,l,h);break;default:if(!x)for(g=1,x=new Array(b-1);g<b;g++)x[g-1]=arguments[g];d[w].fn.apply(d[w].context,x)}}return!0},u.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,h){var p=r?r+c:c;if(!this._events[p])return this;if(!f)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===f&&(!h||y.once)&&(!l||y.context===l)&&o(this,p);else{for(var v=0,d=[],b=y.length;v<b;v++)(y[v].fn!==f||h&&!y[v].once||l&&y[v].context!==l)&&d.push(y[v]);d.length?this._events[p]=d.length===1?d[0]:d:o(this,p)}return this},u.prototype.removeAllListeners=function(c){var f;return c?(f=r?r+c:c,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Zc)),Zc.exports}var uR=oR();const sR=se(uR);var Jc=new sR,Qc="recharts.syncMouseEvents";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 cR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lR(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,bw(n.key),n)}}function fR(e,t,r){return t&&lR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function el(e,t,r){return t=bw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bw(e){var t=hR(e,"string");return Kn(t)=="symbol"?t:t+""}function hR(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 String(e)}var dR=(function(){function e(){cR(this,e),el(this,"activeIndex",0),el(this,"coordinateList",[]),el(this,"layout","horizontal")}return fR(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,s=r.layout,c=s===void 0?null:s,f=r.offset,l=f===void 0?null:f,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if
58(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,s=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+s+c,h=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:h})}}}])})();function pR(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&L(n)&&L(i))return!0}return!1}function vR(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 xw(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Te(t,r,n,i),u=Te(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function yR(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,s=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,h=Te(u,s,c,l),p=Te(u,s,f,l);n=h.x,i=h.y,a=p.x,o=p.y}else return xw(t);return[{x:n,y:i},{x:a,y:o}]}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 lb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lb(Object(r),!0).forEach(function(n){mR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mR(e,t,r){return t=gR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gR(e){var t=bR(e,"string");return Vn(t)=="symbol"?t:t+""}function bR(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 xR(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,v=fn;if(h==="ScatterChart")y=o,v=wI;else if(h==="BarChart")y=vR(l,o,s,f),v=dh;else if(l==="radial"){var d=xw(o),b=d.cx,x=d.cy,w=d.radius,O=d.startAngle,g=d.endAngle;y={cx:b,cy:x,startAngle:O,endAngle:g,innerRadius:w,outerRadius:w},v=Px}else y={points:yR(l,o,s)},v=fn;var m=gi(gi(gi(gi({stroke:"#ccc",pointerEvents:"none"},s),y),J(p,!1)),{},{payload:u,payloadIndex:c,className:te("recharts-tooltip-cursor",p.className)});return R.isValidElement(p)?R.cloneElement(p,m):R.createElement(v,m)}var wR=["item"],OR=["children","className","width","height","style","compact","title","desc"];function qr(e){"@babel/helpers - typeof";return qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qr(e)}function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
58for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dr.apply(this,arguments)}function fb(e,t){return AR(e)||SR(e,t)||Ow(e,t)||_R()}function _R(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 59In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function AR(e){if(Array.isArray(e))return e}function hb(e,t){if(e==null)return{};var r=PR(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 PR(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 TR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jR(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,_w(n.key),n)}}function ER(e,t,r){return t&&jR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MR(e,t,r){return t=ga(t),CR(e,ww()?Reflect.construct(t,r||[],ga(e).constructor):t.apply(e,r))}function CR(e,t){if(t&&(qr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $R(e)}function $R(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ww(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ww=function(){return!!e})()}function ga(e){return ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ga(e)}function IR(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&&yf(e,t)}function yf(e,t){return yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yf(e,t)}function Lr(e){return RR(e)||NR(e)||Ow(e)||kR()}function kR(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 60In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ow(e,t){if(e){if(typeof e=="string")return mf(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 mf(e,t)}}function NR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RR(e){if(Array.isArray(e))return mf(e)}function mf(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=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?db(Object(r),!0).forEach(function(n){G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):db(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G(e,t,r){return t=_w(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _w(e){var t=DR(e,"string");return qr(t)=="symbol"?t:t+""}function DR(e,t){if(qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qR={xAxis:["bottom","top"],yAxis:["left","right"]},LR={width:"100%",height:"100%"},Sw={x:0,y:0};function bi(e){return e}var BR=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},FR=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 k(k(k({},i),Te(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return k(k(k({},i),Te(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return Sw},Ya=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var c=s.props.data;return c&&c.length?[].concat(Lr(u),Lr(c)):u},[]);return o.length>0?o:t&&t.length&&L(i)&&L(a)?t.slice(i,a+1):[]};function Aw(e){return e==="number"?[0,"auto"]:void 0}var gf=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Ya(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var f,l=(f=c.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=l===void 0?u:l;h=wi(p,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Lr(s),[_x(c,h)]):s},[])},pb=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=BR(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=eM(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,h=gf(t,r,f,l),p=FR(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:p}}return null},zR=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,p=xx(f,a);return n.reduce(function(y,v){var d,b=v.type.defaultProps!==void 0?k(k({},v.type.defaultProps),v.props):v.props,x=b.type,w=b.dataKey,O=b.allowDataOverflow,g=b.allowDuplicatedCategory,m=b.scale,_=b.ticks,S=b.includeHidden,A=b[o];if(y[A])return y;var $=Ya(t.data,{graphicalItems:i.filter(function(W){var V,ce=o in W.props?W.props[o]:(V=W.type.defaultProps)===null||V===void 0?void 0:V[o];return ce===A}),dataStartIndex:s,dataEndIndex:c}),j=$.length,T,M,I;pR(b.domain,O,x)&&(T=Rl(b.domain,null,O),p&&(x==="number"||m!=="auto")&&(I=ln($,w,"category")));var C=Aw(x);if(!T||T.length===0){var N,q=(N=b.domain)!==null&&N!==void 0?N:C;if(w){if(T=ln($,w,x),x==="category"&&p){var B=U1(T);g&&B?(M=T,T=aa(0,j)):g||(T=Em(q,T,v).reduce(function(W,V){return W.indexOf(V)>=0?W:[].concat(Lr(W),[V])},[]))}else if(x==="category")g?T=T.filter(function(W){return W!==""&&!Q(W)}):T=Em(q,T,v).reduce(function(W,V){return W.indexOf(V)>=0||V===""||Q(V)?W:[].concat(Lr(W),[V])},[]);
60else if(x==="number"){var F=aM($,i.filter(function(W){var V,ce,ve=o in W.props?W.props[o]:(V=W.type.defaultProps)===null||V===void 0?void 0:V[o],Re="hide"in W.props?W.props.hide:(ce=W.type.defaultProps)===null||ce===void 0?void 0:ce.hide;return ve===A&&(S||!Re)}),w,a,f);F&&(T=F)}p&&(x==="number"||m!=="auto")&&(I=ln($,w,"category"))}else p?T=aa(0,j):u&&u[A]&&u[A].hasStack&&x==="number"?T=h==="expand"?[0,1]:Ox(u[A].stackGroups,s,c):T=bx($,i.filter(function(W){var V=o in W.props?W.props[o]:W.type.defaultProps[o],ce="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return V===A&&(S||!ce)}),x,f,!0);if(x==="number")T=vf(l,T,A,a,_),q&&(T=Rl(q,T,O));else if(x==="category"&&q){var H=q,K=T.every(function(W){return H.indexOf(W)>=0});K&&(T=H)}}return k(k({},y),{},G({},A,k(k({},b),{},{axisType:a,domain:T,categoricalDomain:I,duplicateDomain:M,originalDomain:(d=b.domain)!==null&&d!==void 0?d:C,isCategorical:p,layout:f})))},{})},WR=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,h=Ya(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=h.length,y=xx(f,a),v=-1;return n.reduce(function(d,b){var x=b.type.defaultProps!==void 0?k(k({},b.type.defaultProps),b.props):b.props,w=x[o],O=Aw("number");if(!d[w]){v++;var g;return y?g=aa(0,p):u&&u[w]&&u[w].hasStack?(g=Ox(u[w].stackGroups,s,c),g=vf(l,g,w,a)):(g=Rl(O,bx(h,n.filter(function(m){var _,S,A=o in m.props?m.props[o]:(_=m.type.defaultProps)===null||_===void 0?void 0:_[o],$="hide"in m.props?m.props.hide:(S=m.type.defaultProps)===null||S===void 0?void 0:S.hide;return A===w&&!$}),"number",f),i.defaultProps.allowDataOverflow),g=vf(l,g,w,a)),k(k({},d),{},G({},w,k(k({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ge(qR,"".concat(a,".").concat(v%2),null),domain:g,originalDomain:O,isCategorical:y,layout:f})))}return d},{})},UR=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=Qe(f,a),p={};return h&&h.length?p=zR(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=WR(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),p},HR=function(t){var r=jt(t),n=dt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Bf(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Xi(r,n)}},vb=function(t){var r=t.children,n=t.defaultShowTooltip,i=qe(r,Er),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}},GR=function(t){return!t||!t.length?!1:t.some(function(r){var n=pt(r&&r.type);return n&&n.indexOf("Bar")>=0})},yb=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"}},KR=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,f=n.height,l=n.children,h=n.margin||{},p=qe(l,Er),y=qe(l,vr),v=Object.keys(s).reduce(function(g,m){var _=s[m],S=_.orientation;return!_.mirror&&!_.hide?k(k({},g),{},G({},S,g[S]+_.width)):g},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(g,m){var _=o[m],S=_.orientation;return!_.mirror&&!_.hide?k(k({},g),{},G({},S,Ge(g,"".concat(S))+_.height)):g},{top:h.top||0,bottom:h.bottom||0}),b=k(k({},d),v),x=b.bottom;p&&(b.bottom+=p.props.height||Er.defaultProps.height),y&&r&&(b=nM(b,i,n,r));var w=c-b.left-b.right,O=f-b.top-b.bottom;return k(k({brushBottom:x},b),{},{width:Math.max(w,0),height:Math.max(O,0)})},VR=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},XR=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,s=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,h=function(b,x){var w=x.graphicalItems,O=x.stackGroups,g=x.offset,m=x.updateId,_=x.dataStartIndex,S=x.dataEndIndex,A=b.barSize,$=b.layout,j=b.barGap,T=b.barCategoryGap,M=b.maxBarSize,I=yb($),C=I.numericAxisName,N=I.cateAxisName,q=GR(w),B=[];
60return w.forEach(function(F,H){var K=Ya(b.data,{graphicalItems:[F],dataStartIndex:_,dataEndIndex:S}),W=F.type.defaultProps!==void 0?k(k({},F.type.defaultProps),F.props):F.props,V=W.dataKey,ce=W.maxBarSize,ve=W["".concat(C,"Id")],Re=W["".concat(N,"Id")],qt={},$e=s.reduce(function(Lt,Bt){var Za=x["".concat(Bt.axisType,"Map")],Sh=W["".concat(Bt.axisType,"Id")];Za&&Za[Sh]||Bt.axisType==="zAxis"||tr();var Ah=Za[Sh];return k(k({},Lt),{},G(G({},Bt.axisType,Ah),"".concat(Bt.axisType,"Ticks"),dt(Ah)))},qt),z=$e[N],X=$e["".concat(N,"Ticks")],Z=O&&O[ve]&&O[ve].hasStack&&mM(F,O[ve].stackGroups),D=pt(F.type).indexOf("Bar")>=0,de=Xi(z,X),ee=[],ge=q&&tM({barSize:A,stackGroups:O,totalSize:VR($e,N)});if(D){var be,Ie,At=Q(ce)?M:ce,ur=(be=(Ie=Xi(z,X,!0))!==null&&Ie!==void 0?Ie:At)!==null&&be!==void 0?be:0;ee=rM({barGap:j,barCategoryGap:T,bandSize:ur!==de?ur:de,sizeList:ge[Re],maxBarSize:At}),ur!==de&&(ee=ee.map(function(Lt){return k(k({},Lt),{},{position:k(k({},Lt.position),{},{offset:Lt.position.offset-ur/2})})}))}var ii=F&&F.type&&F.type.getComposedData;ii&&B.push({props:k(k({},ii(k(k({},$e),{},{displayedData:K,props:b,dataKey:V,item:F,bandSize:de,barPosition:ee,offset:g,stackedData:Z,layout:$,dataStartIndex:_,dataEndIndex:S}))),{},G(G(G({key:F.key||"item-".concat(H)},C,$e[C]),N,$e[N]),"animationId",m)),childIndex:nO(F,b.children),item:F})}),B},p=function(b,x){var w=b.props,O=b.dataStartIndex,g=b.dataEndIndex,m=b.updateId;if(!Wd({props:w}))return null;var _=w.children,S=w.layout,A=w.stackOffset,$=w.data,j=w.reverseStackOrder,T=yb(S),M=T.numericAxisName,I=T.cateAxisName,C=Qe(_,n),N=pM($,C,"".concat(M,"Id"),"".concat(I,"Id"),A,j),q=s.reduce(function(W,V){var ce="".concat(V.axisType,"Map");return k(k({},W),{},G({},ce,UR(w,k(k({},V),{},{graphicalItems:C,stackGroups:V.axisType===M&&N,dataStartIndex:O,dataEndIndex:g}))))},{}),B=KR(k(k({},q),{},{props:w,graphicalItems:C}),x?.legendBBox);Object.keys(q).forEach(function(W){q[W]=f(w,q[W],B,W.replace("Map",""),r)});var F=q["".concat(I,"Map")],H=HR(F),K=h(w,k(k({},q),{},{dataStartIndex:O,dataEndIndex:g,updateId:m,graphicalItems:C,stackGroups:N,offset:B}));return k(k({formattedGraphicalItems:K,graphicalItems:C,offset:B,stackGroups:N},H),q)},y=(function(d){function b(x){var w,O,g;return TR(this,b),g=MR(this,b,[x]),G(g,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),G(g,"accessibilityManager",new dR),G(g,"handleLegendBBoxUpdate",function(m){if(m){var _=g.state,S=_.dataStartIndex,A=_.dataEndIndex,$=_.updateId;g.setState(k({legendBBox:m},p({props:g.props,dataStartIndex:S,dataEndIndex:A,updateId:$},k(k({},g.state),{},{legendBBox:m}))))}}),G(g,"handleReceiveSyncEvent",function(m,_,S){if(g.props.syncId===m){if(S===g.eventEmitterSymbol&&typeof g.props.syncMethod!="function")return;g.applySyncEvent(_)}}),G(g,"handleBrushChange",function(m){var _=m.startIndex,S=m.endIndex;if(_!==g.state.dataStartIndex||S!==g.state.dataEndIndex){var A=g.state.updateId;g.setState(function(){return k({dataStartIndex:_,dataEndIndex:S},p({props:g.props,dataStartIndex:_,dataEndIndex:S,updateId:A},g.state))}),g.triggerSyncEvent({dataStartIndex:_,dataEndIndex:S})}}),G(g,"handleMouseEnter",function(m){var _=g.getMouseInfo(m);if(_){var S=k(k({},_),{},{isTooltipActive:!0});g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseEnter;Y(A)&&A(S,m)}}),G(g,"triggeredAfterMouseMove",function(m){var _=g.getMouseInfo(m),S=_?k(k({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseMove;Y(A)&&A(S,m)}),G(g,"handleItemMouseEnter",function(m){g.setState(function(){return{isTooltipActive:!0,activeItem:m,activePayload:m.tooltipPayload,activeCoordinate:m.tooltipPosition||{x:m.cx,y:m.cy}}})}),G(g,"handleItemMouseLeave",function(){g.setState(function(){return{isTooltipActive:!1}})}),G(g,"handleMouseMove",function(m){m.persist(),g.throttleTriggeredAfterMouseMove(m)}),G(g,"handleMouseLeave",function(m){g.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};g.setState(_),g.triggerSyncEvent(_);var S=g.props.onMouseLeave;Y(S)&&S(_,m)}),G(g,"handleOuterEvent",function(m){var _=rO(m),S=Ge(g.props,"".concat(_));if(_&&Y(S)){var A,$;/.*touch.*/i.test(_)?$=g.getMouseInfo(m.changedTouches[0]):$=g.getMouseInfo(m),S((A
60=$)!==null&&A!==void 0?A:{},m)}}),G(g,"handleClick",function(m){var _=g.getMouseInfo(m);if(_){var S=k(k({},_),{},{isTooltipActive:!0});g.setState(S),g.triggerSyncEvent(S);var A=g.props.onClick;Y(A)&&A(S,m)}}),G(g,"handleMouseDown",function(m){var _=g.props.onMouseDown;if(Y(_)){var S=g.getMouseInfo(m);_(S,m)}}),G(g,"handleMouseUp",function(m){var _=g.props.onMouseUp;if(Y(_)){var S=g.getMouseInfo(m);_(S,m)}}),G(g,"handleTouchMove",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.throttleTriggeredAfterMouseMove(m.changedTouches[0])}),G(g,"handleTouchStart",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.handleMouseDown(m.changedTouches[0])}),G(g,"handleTouchEnd",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.handleMouseUp(m.changedTouches[0])}),G(g,"handleDoubleClick",function(m){var _=g.props.onDoubleClick;if(Y(_)){var S=g.getMouseInfo(m);_(S,m)}}),G(g,"handleContextMenu",function(m){var _=g.props.onContextMenu;if(Y(_)){var S=g.getMouseInfo(m);_(S,m)}}),G(g,"triggerSyncEvent",function(m){g.props.syncId!==void 0&&Jc.emit(Qc,g.props.syncId,m,g.eventEmitterSymbol)}),G(g,"applySyncEvent",function(m){var _=g.props,S=_.layout,A=_.syncMethod,$=g.state.updateId,j=m.dataStartIndex,T=m.dataEndIndex;if(m.dataStartIndex!==void 0||m.dataEndIndex!==void 0)g.setState(k({dataStartIndex:j,dataEndIndex:T},p({props:g.props,dataStartIndex:j,dataEndIndex:T,updateId:$},g.state)));else if(m.activeTooltipIndex!==void 0){var M=m.chartX,I=m.chartY,C=m.activeTooltipIndex,N=g.state,q=N.offset,B=N.tooltipTicks;if(!q)return;if(typeof A=="function")C=A(B,m);else if(A==="value"){C=-1;for(var F=0;F<B.length;F++)if(B[F].value===m.activeLabel){C=F;break}}var H=k(k({},q),{},{x:q.left,y:q.top}),K=Math.min(M,H.x+H.width),W=Math.min(I,H.y+H.height),V=B[C]&&B[C].value,ce=gf(g.state,g.props.data,C),ve=B[C]?{x:S==="horizontal"?B[C].coordinate:K,y:S==="horizontal"?W:B[C].coordinate}:Sw;g.setState(k(k({},m),{},{activeLabel:V,activeCoordinate:ve,activePayload:ce,activeTooltipIndex:C}))}else g.setState(m)}),G(g,"renderCursor",function(m){var _,S=g.state,A=S.isTooltipActive,$=S.activeCoordinate,j=S.activePayload,T=S.offset,M=S.activeTooltipIndex,I=S.tooltipAxisBandSize,C=g.getTooltipEventType(),N=(_=m.props.active)!==null&&_!==void 0?_:A,q=g.props.layout,B=m.key||"_recharts-cursor";return P.createElement(xR,{key:B,activeCoordinate:$,activePayload:j,activeTooltipIndex:M,chartName:r,element:m,isActive:N,layout:q,offset:T,tooltipAxisBandSize:I,tooltipEventType:C})}),G(g,"renderPolarAxis",function(m,_,S){var A=Ge(m,"type.axisType"),$=Ge(g.state,"".concat(A,"Map")),j=m.type.defaultProps,T=j!==void 0?k(k({},j),m.props):m.props,M=$&&$[T["".concat(A,"Id")]];return R.cloneElement(m,k(k({},M),{},{className:te(A,M.className),key:m.key||"".concat(_,"-").concat(S),ticks:dt(M,!0)}))}),G(g,"renderPolarGrid",function(m){var _=m.props,S=_.radialLines,A=_.polarAngles,$=_.polarRadius,j=g.state,T=j.radiusAxisMap,M=j.angleAxisMap,I=jt(T),C=jt(M),N=C.cx,q=C.cy,B=C.innerRadius,F=C.outerRadius;return R.cloneElement(m,{polarAngles:Array.isArray(A)?A:dt(C,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray($)?$:dt(I,!0).map(function(H){return H.coordinate}),cx:N,cy:q,innerRadius:B,outerRadius:F,key:m.key||"polar-grid",radialLines:S})}),G(g,"renderLegend",function(){var m=g.state.formattedGraphicalItems,_=g.props,S=_.children,A=_.width,$=_.height,j=g.props.margin||{},T=A-(j.left||0)-(j.right||0),M=mx({children:S,formattedGraphicalItems:m,legendWidth:T,legendContent:c});if(!M)return null;var I=M.item,C=hb(M,wR);return R.cloneElement(I,k(k({},C),{},{chartWidth:A,chartHeight:$,margin:j,onBBoxUpdate:g.handleLegendBBoxUpdate}))}),G(g,"renderTooltip",function(){var m,_=g.props,S=_.children,A=_.accessibilityLayer,$=qe(S,rt);if(!$)return null;var j=g.state,T=j.isTooltipActive,M=j.activeCoordinate,I=j.activePayload,C=j.activeLabel,N=j.offset,q=(m=$.props.active)!==null&&m!==void 0?m:T;return R.cloneElement($,{viewBox:k(k({},N),{},{x:N.left,y:N.top}),active:q,label:C,payload:q?I:[],coordinate:M,accessibilityLayer:A})}),G(g,"renderBrush",function(m){var _=g.props,S=_.margin,A=_.data,$=g.
60state,j=$.offset,T=$.dataStartIndex,M=$.dataEndIndex,I=$.updateId;return R.cloneElement(m,{key:m.key||"_recharts-brush",onChange:pi(g.handleBrushChange,m.props.onChange),data:A,x:L(m.props.x)?m.props.x:j.left,y:L(m.props.y)?m.props.y:j.top+j.height+j.brushBottom-(S.bottom||0),width:L(m.props.width)?m.props.width:j.width,startIndex:T,endIndex:M,updateId:"brush-".concat(I)})}),G(g,"renderReferenceElement",function(m,_,S){if(!m)return null;var A=g,$=A.clipPathId,j=g.state,T=j.xAxisMap,M=j.yAxisMap,I=j.offset,C=m.type.defaultProps||{},N=m.props,q=N.xAxisId,B=q===void 0?C.xAxisId:q,F=N.yAxisId,H=F===void 0?C.yAxisId:F;return R.cloneElement(m,{key:m.key||"".concat(_,"-").concat(S),xAxis:T[B],yAxis:M[H],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:$})}),G(g,"renderActivePoints",function(m){var _=m.item,S=m.activePoint,A=m.basePoint,$=m.childIndex,j=m.isRange,T=[],M=_.props.key,I=_.item.type.defaultProps!==void 0?k(k({},_.item.type.defaultProps),_.item.props):_.item.props,C=I.activeDot,N=I.dataKey,q=k(k({index:$,dataKey:N,cx:S.x,cy:S.y,r:4,fill:hh(_.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},J(C,!1)),Oi(C));return T.push(b.renderActiveDot(C,q,"".concat(M,"-activePoint-").concat($))),A?T.push(b.renderActiveDot(C,k(k({},q),{},{cx:A.x,cy:A.y}),"".concat(M,"-basePoint-").concat($))):j&&T.push(null),T}),G(g,"renderGraphicChild",function(m,_,S){var A=g.filterFormatItem(m,_,S);if(!A)return null;var $=g.getTooltipEventType(),j=g.state,T=j.isTooltipActive,M=j.tooltipAxis,I=j.activeTooltipIndex,C=j.activeLabel,N=g.props.children,q=qe(N,rt),B=A.props,F=B.points,H=B.isRange,K=B.baseLine,W=A.item.type.defaultProps!==void 0?k(k({},A.item.type.defaultProps),A.item.props):A.item.props,V=W.activeDot,ce=W.hide,ve=W.activeBar,Re=W.activeShape,qt=!!(!ce&&T&&q&&(V||ve||Re)),$e={};$!=="axis"&&q&&q.props.trigger==="click"?$e={onClick:pi(g.handleItemMouseEnter,m.props.onClick)}:$!=="axis"&&($e={onMouseLeave:pi(g.handleItemMouseLeave,m.props.onMouseLeave),onMouseEnter:pi(g.handleItemMouseEnter,m.props.onMouseEnter)});var z=R.cloneElement(m,k(k({},A.props),$e));function X(Bt){return typeof M.dataKey=="function"?M.dataKey(Bt.payload):null}if(qt)if(I>=0){var Z,D;if(M.dataKey&&!M.allowDuplicatedCategory){var de=typeof M.dataKey=="function"?X:"payload.".concat(M.dataKey.toString());Z=wi(F,de,C),D=H&&K&&wi(K,de,C)}else Z=F?.[I],D=H&&K&&K[I];if(Re||ve){var ee=m.props.activeIndex!==void 0?m.props.activeIndex:I;return[R.cloneElement(m,k(k(k({},A.props),$e),{},{activeIndex:ee})),null,null]}if(!Q(Z))return[z].concat(Lr(g.renderActivePoints({item:A,activePoint:Z,basePoint:D,childIndex:I,isRange:H})))}else{var ge,be=(ge=g.getItemByXY(g.state.activeCoordinate))!==null&&ge!==void 0?ge:{graphicalItem:z},Ie=be.graphicalItem,At=Ie.item,ur=At===void 0?m:At,ii=Ie.childIndex,Lt=k(k(k({},A.props),$e),{},{activeIndex:ii});return[R.cloneElement(ur,Lt),null,null]}return H?[z,null,null]:[z,null]}),G(g,"renderCustomized",function(m,_,S){return R.cloneElement(m,k(k({key:"recharts-customized-".concat(S)},g.props),g.state))}),G(g,"renderMap",{CartesianGrid:{handler:bi,once:!0},ReferenceArea:{handler:g.renderReferenceElement},ReferenceLine:{handler:bi},ReferenceDot:{handler:g.renderReferenceElement},XAxis:{handler:bi},YAxis:{handler:bi},Brush:{handler:g.renderBrush,once:!0},Bar:{handler:g.renderGraphicChild},Line:{handler:g.renderGraphicChild},Area:{handler:g.renderGraphicChild},Radar:{handler:g.renderGraphicChild},RadialBar:{handler:g.renderGraphicChild},Scatter:{handler:g.renderGraphicChild},Pie:{handler:g.renderGraphicChild},Funnel:{handler:g.renderGraphicChild},Tooltip:{handler:g.renderCursor,once:!0},PolarGrid:{handler:g.renderPolarGrid,once:!0},PolarAngleAxis:{handler:g.renderPolarAxis},PolarRadiusAxis:{handler:g.renderPolarAxis},Customized:{handler:g.renderCustomized}}),g.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:Zn("recharts"),"-clip"),g.throttleTriggeredAfterMouseMove=m0(g.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),g.state={},g}
60return IR(b,d),ER(b,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,g=w.data,m=w.height,_=w.layout,S=qe(O,rt);if(S){var A=S.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var $=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,j=gf(this.state,g,A,$),T=this.state.tooltipTicks[A].coordinate,M=(this.state.offset.top+m)/2,I=_==="horizontal",C=I?{x:T,y:M}:{y:T,x:M},N=this.state.formattedGraphicalItems.find(function(B){var F=B.item;return F.type.name==="Scatter"});N&&(C=k(k({},C),N.props.points[A].tooltipPosition),j=N.props.points[A].tooltipPayload);var q={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:$,activePayload:j,activeCoordinate:C};this.setState(q),this.renderCursor(S),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var g,m;this.accessibilityManager.setDetails({offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(m=this.props.margin.top)!==null&&m!==void 0?m:0}})}return null}},{key:"componentDidUpdate",value:function(w){il([qe(w.children,rt)],[qe(this.props.children,rt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=qe(this.props.children,rt);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,g=O.getBoundingClientRect(),m=UA(g),_={chartX:Math.round(w.pageX-m.left),chartY:Math.round(w.pageY-m.top)},S=g.width/O.offsetWidth||1,A=this.inRange(_.chartX,_.chartY,S);if(!A)return null;var $=this.state,j=$.xAxisMap,T=$.yAxisMap,M=this.getTooltipEventType(),I=pb(this.state,this.props.data,this.props.layout,A);if(M!=="axis"&&j&&T){var C=jt(j).scale,N=jt(T).scale,q=C&&C.invert?C.invert(_.chartX):null,B=N&&N.invert?N.invert(_.chartY):null;return k(k({},_),{},{xValue:q,yValue:B},I)}return I?k(k({},_),I):null}},{key:"inRange",value:function(w,O){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,m=this.props.layout,_=w/g,S=O/g;if(m==="horizontal"||m==="vertical"){var A=this.state.offset,$=_>=A.left&&_<=A.left+A.width&&S>=A.top&&S<=A.top+A.height;return $?{x:_,y:S}:null}var j=this.state,T=j.angleAxisMap,M=j.radiusAxisMap;if(T&&M){var I=jt(T);return $m({x:_,y:S},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),g=qe(w,rt),m={};g&&O==="axis"&&(g.props.trigger==="click"?m={onClick:this.handleClick}:m={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 _=Oi(this.props,this.handleOuterEvent);return k(k({},_),m)}},{key:"addListener",value:function(){Jc.on(Qc,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Jc.removeListener(Qc,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,g){for(var m=this.state.formattedGraphicalItems,_=0,S=m.length;_<S;_++){var A=m[_];if(A.item===w||A.props.key===w.key||O===pt(A.item.type)&&g===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,g=O.left,m=O.top,_=O.height,S=O.width;return P.createElement("defs",null,P.createElement("clipPath",{id:w},P.createElement("rect",{x:g,y:m,height:_,width:S})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,g){var m=fb(g,2),_=m[0],S=m[1];return k(k({},O),{},G({},_,S.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,g){var m=fb(g,2),_=m[0],S=m[1];return k(k({},O),{},G({},_,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,g=O.formattedGraphicalItems,m=O.activeItem;if(g&&g.length)for(var _=0,S=g.length;_<S;_++){var A=g[_],$=A.props,j=A.item,T=j.type.defaultProps!==void 0?k(k({},j.type.defaultProps),j.props):j.props,M=pt(j.type);if(M==="Bar"){var I=($.data||[]).find(function(B){return fI(w,B)});if(I)return{graphicalItem:A,payload:I}}else if(M==="RadialBar"){var C=($.data||[]).find(function(B){return $m(w,B)});if(C)return{graphicalItem:A,payload:C}}else if(Fa(A,m)||za(A,m)||zn(A,m)){var N=tk({graphicalItem:A,activeTooltipItem:m,itemData:T.data}),q=T.activeIndex===void 0?N:T.activeIndex;return{graphicalItem:k(k({},A),{},{childIndex:q}),payload:zn(A,m)?T.data[N]:A.props.data[N]}}}return null}},{key:"render",value:function(){var w=this;if(!Wd(this))return null;var O=this.props,g=O.children,m=O.className,_=O.width,S=O.height,A=O.style,$=O.compact,j=O.title,T=O.desc,M=hb(O,OR),I=J(M,!1);if($)return P.createElement(Kg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement(ol,dr({},I,{width:_,height:S,title:j,desc:T}),this.renderClipPath(),Hd(g,this.renderMap)));if(this.props.accessibilityLayer){var C,N;I.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,I.role=(N=this.props.role)!==null&&N!==void 0?N:"application",I.onKeyDown=function(B){w.accessibilityManager.keyboardEvent(B)},I.onFocus=function(){w.accessibilityManager.focus()}}var q=this.parseEventsOfWrapper();return P.createElement(Kg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement("div",dr({className:te("recharts-wrapper",m),style:k({position:"relative",curs
60or:"default",width:_,height:S},A)},q,{ref:function(F){w.container=F}}),P.createElement(ol,dr({},I,{width:_,height:S,title:j,desc:T,style:LR}),this.renderClipPath(),Hd(g,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(R.Component);G(y,"displayName",r),G(y,"defaultProps",k({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),G(y,"getDerivedStateFromProps",function(d,b){var x=d.dataKey,w=d.data,O=d.children,g=d.width,m=d.height,_=d.layout,S=d.stackOffset,A=d.margin,$=b.dataStartIndex,j=b.dataEndIndex;if(b.updateId===void 0){var T=vb(d);return k(k(k({},T),{},{updateId:0},p(k(k({props:d},T),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:w,prevWidth:g,prevHeight:m,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(x!==b.prevDataKey||w!==b.prevData||g!==b.prevWidth||m!==b.prevHeight||_!==b.prevLayout||S!==b.prevStackOffset||!pr(A,b.prevMargin)){var M=vb(d),I={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},C=k(k({},pb(b,w,_)),{},{updateId:b.updateId+1}),N=k(k(k({},M),I),C);return k(k(k({},N),p(k({props:d},N),b)),{},{prevDataKey:x,prevData:w,prevWidth:g,prevHeight:m,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(!il(O,b.prevChildren)){var q,B,F,H,K=qe(O,Er),W=K&&(q=(B=K.props)===null||B===void 0?void 0:B.startIndex)!==null&&q!==void 0?q:$,V=K&&(F=(H=K.props)===null||H===void 0?void 0:H.endIndex)!==null&&F!==void 0?F:j,ce=W!==$||V!==j,ve=!Q(w),Re=ve&&!ce?b.updateId:b.updateId+1;return k(k({updateId:Re},p(k(k({props:d},b),{},{updateId:Re,dataStartIndex:W,dataEndIndex:V}),b)),{},{prevChildren:O,dataStartIndex:W,dataEndIndex:V})}return null}),G(y,"renderActiveDot",function(d,b,x){var w;return R.isValidElement(d)?w=R.cloneElement(d,b):Y(d)?w=d(b):w=P.createElement(ph,b),P.createElement(he,{className:"recharts-active-dot",key:x},w)});var v=R.forwardRef(function(b,x){return P.createElement(y,dr({},b,{ref:x}))});return v.displayName=y.displayName,v},YR=XR({chartName:"AreaChart",GraphicalChild:wt,axisComponents:[{axisType:"xAxis",AxisComp:Va},{axisType:"yAxis",AxisComp:Xa}],formatAxisMap:Zk});const ZR={light:"",dark:".dark"},Pw=R.createContext(null);function Tw(){const e=R.useContext(Pw);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const jw=R.forwardRef(({id:e,className:t,children:r,config:n,...i},a)=>{const o=R.useId(),u=`chart-${e||o.replace(/:/g,"")}`;return E.jsx(Pw.Provider,{value:{config:n},children:E.jsxs("div",{"data-chart":u,ref:a,className:lt("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:[E.jsx(JR,{id:u,config:n}),E.jsx(DA,{children:r})]})})});jw.displayName="Chart";const JR=({id:e,config:t})=>{const r=Object.entries(t).filter(([,n])=>n.theme||n.color);return r.length?E.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(ZR).map(([n,i])=>` 61${i} [data-chart=${e}] { 62${r.map(([a,o])=>{const u=o.theme?.[n]||o.color;return u?` --color-${a}: ${u};`:null}).join(` 63`)} 64} 65`).join(` 66`)}}):null},QR=rt,Ew=R.forwardRef(({active:e,payload:t,className:r,indicator:n="dot",hideLabel:i=!1,hideIndicator:a=!1,label:o,labelFormatter:u,labelClassName:s,formatter:c,color:f,nameKey:l,labelKey:h},p)=>{const{config:y}=Tw(),v=R.useMemo(()=>{if(i||!t?.length)return null;const[b]=t,x=`${h||b?.dataKey||b?.name||"value"}`,w=bf(y,b,x),O=!h&&typeof o=="string"?y[o]?.label||o:w?.label;return u?E.jsx("div",{className:lt("font-medium",s),children:u(O,t)}):O?E.jsx("div",{className:lt("font-medium",s),children:O}):null},[o,u,t,i,s,y,h]);if(!e||!t?.length)return null;const d=t.length===1&&n!=="dot";return E.jsxs("div",{ref:p,className:lt("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:[d?null:v,E.jsx("div",{className:"grid gap-1.5",children:t.filter(b=>b.type!=="none").map((b,x)=>{const w=`${l||b.name||b.dataKey||"value"}`,O=bf(y,b,w),g=f||b.payload.fill||b.color;return E.jsx("div",{className:lt("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:c&&b?.value!==void 0&&b.name?c(b.value,b.name,b,x,b.payload):E.jsxs(E.Fragment,{children:[O?.icon?E.jsx(O.icon,{}):!a&&E.jsx("div",{className:lt("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":d&&n==="dashed"}),style:{"--color-bg":g,"--color-border":g}}),E.jsxs("div",{className:lt("flex flex-1 justify-between leading-none",d?"items-end":"items-center"),children:[E.jsxs("div",{className:"grid gap-1.5",children:[d?v:null,E.jsx("span",{className:"text-muted-foreground",children:O?.label||b.name})]}),b.value&&E.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:b.value.toLocaleStr
66ing()})]})]})},b.dataKey)})})]})});Ew.displayName="ChartTooltip";const eD=R.forwardRef(({className:e,hideIcon:t=!1,payload:r,verticalAlign:n="bottom",nameKey:i},a)=>{const{config:o}=Tw();return r?.length?E.jsx("div",{ref:a,className:lt("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",e),children:r.filter(u=>u.type!=="none").map(u=>{const s=`${i||u.dataKey||"value"}`,c=bf(o,u,s);return E.jsxs("div",{className:lt("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[c?.icon&&!t?E.jsx(c.icon,{}):E.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:u.color}}),c?.label]},u.value)})}):null});eD.displayName="ChartLegend";function bf(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 tD=Mw({method:"GET"}).handler(Cw("0ceb0cc940f6b47ffc78985d882452daba713949b40c8c9c39976000518dc50f")),rD={posts:0,published:0,drafts:0,podcasts:0,plants:0,hubs:0,followers:0,editorial:0,articles:0,health:0},tt=e=>e.toLocaleString("tr-TR"),tl=e=>new Date(`${e}T12:00:00`).toLocaleDateString("tr-TR",{day:"2-digit",month:"short"});function mb(e,t){return t===0?e>0?100:0:Math.round((e-t)/t*100)}async function zt(e,t){try{return{label:e,value:await Rw(t,12e3,e),failed:!1}}catch(r){return console.error(`[admin-dashboard] ${e} yüklenemedi`,r),{label:e,value:null,failed:!0}}}function xi({label:e,value:t,detail:r,Icon:n,change:i}){return E.jsxs("article",{className:"rounded-3xl border border-border bg-card p-5 shadow-sm",children:[E.jsxs("div",{className:"flex items-start justify-between gap-3",children:[E.jsx("span",{className:"rounded-2xl bg-primary/10 p-3 text-primary",children:E.jsx(n,{className:"h-5 w-5"})}),typeof i=="number"&&E.jsxs("span",{className:`inline-flex items-center gap-1 rounded-full px-2.5 py-1 text-xs font-medium ${i>0?"bg-emerald-500/10 text-emerald-700 dark:text-emerald-400":i<0?"bg-rose-500/10 text-rose-700 dark:text-rose-400":"bg-muted text-muted-foreground"}`,children:[i>0?E.jsx(Gw,{className:"h-3.5 w-3.5"}):i<0?E.jsx(t1,{className:"h-3.5 w-3.5"}):null,i>0?"+":"",Math.abs(i),"%"]})]}),E.jsx("p",{className:"mt-5 text-sm text-muted-foreground",children:e}),E.jsx("p",{className:"mt-1 font-serif text-3xl text-foreground",children:tt(t)}),E.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:r})]})}function xD(){const{isAdmin:e,loading:t}=$w(),r=Ph(Dw),n=Ph(Iw),[i,a]=R.useState(null),[o,u]=R.useState(rD),[s,c]=R.useState(!0),[f,l]=R.useState(null),h=R.useCallback(async()=>{c(!0),l(null);try{const[m,_,S,A,$,j,T]=await Promise.all([zt("Ziyaretçi istatistikleri",n()),zt("Yazılar",r()),zt("Podcastler",qw({data:{limit:200}})),zt("Sosyal medya",Lw()),zt("Bitki rehberleri",tD()),zt("Merkez rehberler",kw()),zt("İçerik daÄılımı",Nw())]),M=_.value?.posts??[];a(m.value),u({posts:M.length,published:M.filter(C=>C.status==="published").length,drafts:M.filter(C=>C.status==="draft").length,podcasts:S.value?.length??0,plants:$.value??0,hubs:j.value?.hubs.length??0,followers:A.value?.stats.reduce((C,N)=>C+Number(N.followers||0),0)??0,editorial:T.value?.editorial??0,articles:T.value?.article??0,health:T.value?.health??0});const I=[m,_,S,A,$,j,T].filter(C=>C.failed).map(C=>C.label);l(I.length?`Panel açıldı; yalnızca Åu veriler geçici olarak alınamadı: ${I.join(", ")}.`:null)}catch(m){console.error("Yönetim istatistikleri yüklenemedi",m),l("Kontrol merkezi açıldı ancak özet veriler yenilenemedi. Yenile düÄmesini kullanın.")}finally{c(!1)}},[r,n]);if(R.useEffect(()=>{e&&h()},[e,h]),t)return null;if(!e)return E.jsx("div",{className:"container-page py-16 text-center text-muted-foreground",children:"Bu sayfayı yalnızca yöneticiler görüntüleyebilir."});const p=i?.summary,y=mb(p?.todayViews??0,p?.yesterdayViews??0),v=mb(p?.thirtyDayViews??0,p?.previousThirtyDayViews??0),d=i?.sources.reduce((m,_)=>m+_.views,0)??0,b=i?.devices.reduce((m,_)=>m+_.views,0)??0,x={desktop:kh,mobile:Zw,tablet:Qw},w={desktop:"Masaüstü",mobile:"Mobil",tablet:"Tablet"},O=[{label:"Toplam yazı",value:o.posts,Icon:Ja},{label:"Yayında",value:o.published,Icon:Eh},{label:"Taslak",value:o.drafts,Icon:Ja},{label:"Podcast",value:o.podcasts,Icon:Mh},{label:"Bitki rehberi",value:o.plants,Icon:Ch},{label:"Rehber serisi",value:o.hubs,Icon:Th},{label:"Sosyal takipçi",value:o.followers,Icon:$h}],g=[{to:"/admin/icerik-plani",label:"Haftalık 5 Yazı",Icon:Bw},{to:"/admin/yazilar",label:"Makaleleri yönet",Icon:Ja},{to:"/admin/yazilar/yeni",label:"Yeni makale",Icon:Hw},{to:"/admin/icerik-kumeleri",label:"Rehber serileri",Icon:Th},{to:"/admin/bitki-asistani",label:"Bitki rehberleri",Icon:Ch},{to:"/admin/podcast",label:"Podcast",Icon:Mh},{to:"/admin/sosyal",label:"Sosyal medya",Icon:$h},{to:"/admin/restore",label:"RESTORE â Geri dönüŠkayıtları",Icon:Qa}];return E.jsxs("main",{className:"container-page py-8 md:py-10",children:[E.jsxs("div",{className:"flex flex-wrap items-end justify-between gap-4",children:[E.jsxs("div",{children:[E.jsxs("p",{className:"inline-flex items-center gap-2 text-xs uppercase tracking-[0.18em] text-primary",children:[E.jsx(Ih,{className:"h-3.5 w-3.5"})," Site istatistikleri"]}
66),E.jsx("h1",{className:"mt-2 font-serif text-3xl md:text-4xl",children:"Kontrol merkezi"}),E.jsx("p",{className:"mt-2 text-sm text-muted-foreground md:text-base",children:"TrafiÄi, ziyaretçi davranıÅını ve içerik durumunu tek ekrandan izleyin."})]}),E.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[E.jsxs(oi,{to:"/admin/restore","aria-label":"RESTORE â Geri dönüŠkayıtları",className:"inline-flex items-center gap-2 rounded-full border border-primary/30 bg-primary/5 px-4 py-2.5 text-sm font-medium text-primary transition-colors hover:bg-primary/10",children:[E.jsx(Qa,{className:"h-4 w-4"})," Yedek & Restore"]}),E.jsxs("button",{type:"button",onClick:()=>{h()},disabled:s,className:"inline-flex items-center gap-2 rounded-full border border-border bg-card px-4 py-2.5 text-sm font-medium hover:border-primary/40 disabled:opacity-60",children:[E.jsx(Fw,{className:`h-4 w-4 ${s?"animate-spin":""}`})," Yenile"]}),E.jsx(oi,{to:"/admin/yazilar/yeni",className:"rounded-full bg-primary px-5 py-2.5 text-sm font-medium text-primary-foreground",children:"+ Yeni makale"})]})]}),E.jsxs("section",{className:"mt-6 flex flex-wrap items-center justify-between gap-4 rounded-2xl border border-primary/20 bg-primary/5 p-5","aria-label":"Son geri dönüŠkaydı",children:[E.jsxs("div",{children:[E.jsx("p",{className:"text-sm font-semibold text-primary",children:"Son korunan site sürümü"}),E.jsx("p",{className:"mt-1 text-sm text-foreground",children:jh[0].title}),E.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:[E.jsx("code",{children:jh[0].code})," · Kod ve yayın paketi; canlı veritabanı dahil deÄil."]})]}),E.jsxs(oi,{to:"/admin/restore",className:"inline-flex items-center gap-2 rounded-full bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",children:[E.jsx(Qa,{className:"h-4 w-4"})," Geri dönüŠbölümünü aç"]})]}),f&&E.jsx("div",{className:"mt-6 rounded-2xl border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive",children:f}),E.jsxs("section",{className:"mt-8","aria-labelledby":"traffic-heading",children:[E.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[E.jsxs("div",{children:[E.jsx("h2",{id:"traffic-heading",className:"font-serif text-2xl",children:"Ziyaretçi trafiÄi"}),E.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Yalnızca analitik izni veren gerçek ziyaretçiler; yönetici ve bot trafiÄi hariçtir."})]}),i?.trackingSince&&E.jsxs("span",{className:"rounded-full bg-muted px-3 py-1.5 text-xs text-muted-foreground",children:["Ãlçüm baÅlangıcı: ",tl(i.trackingSince)]})]}),E.jsxs("div",{className:"mt-5 grid gap-3 sm:grid-cols-2 xl:grid-cols-4",children:[E.jsx(xi,{label:"Bugünkü görüntülenme",value:p?.todayViews??0,detail:"Düne göre deÄiÅim",Icon:Eh,change:y}),E.jsx(xi,{label:"Bugünkü ziyaretçi",value:p?.todayVisitors??0,detail:"Benzersiz ziyaretçi",Icon:zw}),E.jsx(xi,{label:"Son 7 gün",value:p?.sevenDayViews??0,detail:`${tt(p?.sevenDayVisitors??0)} benzersiz ziyaretçi`,Icon:Ww}),E.jsx(xi,{label:"Son 30 gün",value:p?.thirtyDayViews??0,detail:`${tt(p?.thirtyDayVisitors??0)} benzersiz ziyaretçi`,Icon:Ih,change:v})]})]}),E.jsxs("section",{className:"mt-6 grid gap-5 xl:grid-cols-[minmax(0,1.7fr)_minmax(280px,0.8fr)]",children:[E.jsxs("article",{className:"rounded-3xl border border-border bg-card p-5 shadow-sm md:p-6",children:[E.jsxs("div",{className:"flex items-center justify-between gap-3",children:[E.jsxs("div",{children:[E.jsx("h2",{className:"font-serif text-xl",children:"Son 14 gün"}),E.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Günlük görüntülenme ve ziyaretçiler"})]}),E.jsxs("span",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[E.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[E.jsx("i",{className:"h-2 w-2 rounded-full bg-primary"})," Görüntülenme"]}),E.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[E.jsx("i",{className:"h-2 w-2 rounded-full bg-amber-500"})," Ziyaretçi"]})]})]}),E.jsx(jw,{config:{views:{label:"Görüntülenme",color:"var(--primary)"},visitors:{label:"Ziyaretçi",color:"#f59e0b"}},className:"mt-5 h-[280px] w-full aspect-auto",children:E.jsxs(YR,{data:i?.trend??[],margin:{left:-18,right:8,top:10},children:[E.jsx("defs",{children:E.jsxs("linearGradient",{id:"viewsGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[E.jsx("stop",{offset:"5%",
66stopColor:"var(--color-views)",stopOpacity:.35}),E.jsx("stop",{offset:"95%",stopColor:"var(--color-views)",stopOpacity:.02})]})}),E.jsx(sw,{vertical:!1,strokeDasharray:"4 4"}),E.jsx(Va,{dataKey:"day",tickFormatter:tl,tickLine:!1,axisLine:!1,minTickGap:28}),E.jsx(Xa,{allowDecimals:!1,tickLine:!1,axisLine:!1}),E.jsx(QR,{content:E.jsx(Ew,{labelFormatter:m=>tl(String(m))})}),E.jsx(wt,{type:"monotone",dataKey:"views",stroke:"var(--color-views)",fill:"url(#viewsGradient)",strokeWidth:2.5}),E.jsx(wt,{type:"monotone",dataKey:"visitors",stroke:"var(--color-visitors)",fill:"transparent",strokeWidth:2})]})}),!s&&i?.trend.every(m=>m.views===0)&&E.jsx("p",{className:"mt-3 rounded-2xl bg-muted/60 p-3 text-center text-xs text-muted-foreground",children:"Yeni ölçüm sistemi bu sürümle birlikte veri biriktirmeye baÅlayacak."})]}),E.jsxs("article",{className:"rounded-3xl border border-border bg-card p-5 shadow-sm md:p-6",children:[E.jsxs("div",{className:"flex items-center gap-3",children:[E.jsx("span",{className:"rounded-xl bg-primary/10 p-2 text-primary",children:E.jsx(Vw,{className:"h-5 w-5"})}),E.jsxs("div",{children:[E.jsx("h2",{className:"font-serif text-xl",children:"Trafik kaynakları"}),E.jsx("p",{className:"text-xs text-muted-foreground",children:"Son 30 gün"})]})]}),E.jsxs("div",{className:"mt-5 space-y-4",children:[(i?.sources??[]).map(m=>{const _=d>0?Math.round(m.views/d*100):0;return E.jsxs("div",{children:[E.jsxs("div",{className:"flex items-center justify-between gap-3 text-sm",children:[E.jsx("span",{className:"truncate",children:m.source}),E.jsxs("span",{className:"shrink-0 font-medium",children:[_,"%"]})]}),E.jsx("div",{className:"mt-2 h-1.5 overflow-hidden rounded-full bg-muted",children:E.jsx("div",{className:"h-full rounded-full bg-primary",style:{width:`${_}%`}})})]},m.source)}),!s&&!i?.sources.length&&E.jsx("p",{className:"text-sm text-muted-foreground",children:"Henüz kaynak verisi yok."})]})]})]}),E.jsxs("section",{className:"mt-6 grid gap-5 xl:grid-cols-[minmax(0,1.45fr)_minmax(280px,0.75fr)]",children:[E.jsxs("article",{className:"overflow-hidden rounded-3xl border border-border bg-card shadow-sm",children:[E.jsxs("div",{className:"border-b border-border p-5 md:px-6",children:[E.jsx("h2",{className:"font-serif text-xl",children:"En çok ziyaret edilen sayfalar"}),E.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Son 30 gündeki ilk 8 sayfa"})]}),E.jsx("div",{className:"overflow-x-auto",children:E.jsxs("table",{className:"w-full min-w-[520px] text-sm",children:[E.jsx("thead",{className:"bg-muted/40 text-left text-xs uppercase tracking-wide text-muted-foreground",children:E.jsxs("tr",{children:[E.jsx("th",{className:"px-5 py-3 font-medium md:px-6",children:"Sayfa"}),E.jsx("th",{className:"px-4 py-3 text-right font-medium",children:"Görüntülenme"}),E.jsx("th",{className:"px-5 py-3 text-right font-medium md:px-6",children:"Ziyaretçi"})]})}),E.jsxs("tbody",{className:"divide-y divide-border",children:[(i?.topPages??[]).map(m=>E.jsxs("tr",{className:"hover:bg-muted/30",children:[E.jsx("td",{className:"px-5 py-3.5 md:px-6",children:E.jsxs("a",{href:m.path,target:"_blank",rel:"noreferrer",className:"inline-flex max-w-md items-center gap-1.5 truncate font-medium hover:text-primary",children:[m.path,E.jsx(Uw,{className:"h-3.5 w-3.5 shrink-0"})]})}),E.jsx("td",{className:"px-4 py-3.5 text-right tabular-nums",children:tt(m.views)}),E.jsx("td",{className:"px-5 py-3.5 text-right tabular-nums md:px-6",children:tt(m.visitors)})]},m.path)),!s&&!i?.topPages.length&&E.jsx("tr",{children:E.jsx("td",{colSpan:3,className:"px-6 py-10 text-center text-muted-foreground",children:"Henüz sayfa verisi yok."})})]})]})})]}),E.jsxs("article",{className:"rounded-3xl border border-border bg-card p-5 shadow-sm md:p-6",children:[E.jsx("h2",{className:"font-serif text-xl",children:"Cihaz daÄılımı"}),E.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Son 30 gün"}),E.jsxs("div",{className:"mt-5 space-y-3",children:[(i?.devices??[]).map(m=>{const _=m.device,S=x[_]??kh,A=b>0?Math.round(m.views/b*100):0;return E.jsxs("div",{className:"flex items-center gap-3 rounded-2xl bg-muted/50 p-3",children:[E.jsx("span",{className:"rounded-xl bg-background p-2 text-primary",children:E.jsx(S,{className:"h-4 w-4"})}),E.jsxs("div",{className:"min-w-0 flex-1",children:[E.jsx("p",{className:"text-sm font-medium",children:w[_]??m.device}),E.jsxs("p",{className:"text-xs text-muted-foreground",children:[tt(m.views)," görüntülenme"]})]}),E.jsxs("span",{className:"font-serif text-xl",children:["%",A]})]},m.device)}),!s&&!i?.devices.length&&E.jsx("p",{className:"text-sm text-muted-foreground",children:"Henüz cihaz verisi yok."})]})]})]}
66),E.jsxs("section",{className:"mt-10","aria-labelledby":"content-heading",children:[E.jsxs("div",{className:"flex flex-wrap items-end justify-between gap-3",children:[E.jsxs("div",{children:[E.jsx("h2",{id:"content-heading",className:"font-serif text-2xl",children:"İçerik özeti"}),E.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Sabit sayı yok; tüm deÄerler canlı içerik kayıtlarından hesaplanır."})]}),E.jsxs("p",{className:"text-xs text-muted-foreground",children:["Editör: ",tt(o.editorial)," · Makale: ",tt(o.articles)," · SaÄlık: ",tt(o.health)]})]}),E.jsx("div",{className:"mt-5 grid gap-3 sm:grid-cols-2 lg:grid-cols-4 xl:grid-cols-7",children:O.map(({label:m,value:_,Icon:S})=>E.jsxs("article",{className:"rounded-2xl border border-border bg-card p-4",children:[E.jsx(S,{className:"h-4 w-4 text-primary"}),E.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:m}),E.jsx("p",{className:"mt-1 font-serif text-2xl",children:s?"â":tt(_)})]},m))})]}),E.jsxs("section",{className:"mt-10",children:[E.jsx("h2",{className:"font-serif text-xl",children:"Hızlı iÅlemler"}),E.jsx("div",{className:"mt-4 grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:g.map(({to:m,label:_,Icon:S})=>E.jsxs(oi,{to:m,className:"flex items-center gap-3 rounded-2xl border border-border bg-card p-5 transition-colors hover:border-primary/40",children:[E.jsx("span",{className:"rounded-xl bg-primary/10 p-3 text-primary",children:E.jsx(S,{className:"h-5 w-5"})}),E.jsx("span",{className:"font-medium",children:_})]},m))})]})]})}export{xD as component};
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.