PageSourceSearch

https://haloeclipse.com/assets/analytics-Cp3L_i4G.js

js haloeclipse.com collected 2026-09-28 10:05:58 UTC 434,188 bytes, 65 lines download raw bytes

1import{l as CO,r as N,m as hh,n as dr,o as hr,p as ji,q as ue,s as S,j as R,b as $o}from"./index-DWE5mKXR.js";import{c as Q,u as Ui}from"./clsx-BGB17FwK.js";function Jt(e){const t=CO();return N.useCallback(async(...r)=>{try{const n=await e(...r);if(hh(n))throw n;return n}catch(n){if(hh(n))return n.options._fromLocation=t.stores.location.get(),t.navigate(t.resolveRedirect(n).options);throw n}},[t,e])}const IO=dr({method:"GET"}).handler(hr("9d4f7689d07e924505a71437d49826366a7586a71c5117634b2adc2eec0a976b")),kO=dr({method:"POST"}).handler(hr("144ee2680c70be41f15e2046a5b7c545d3dfd17426e179fd590031b5c560f62c")),RO=dr({method:"POST"}).handler(hr("b57758d3410301a1af36675135de1d3bda5311d85c356a2971a8b3f21da1b80a")),NO=dr({method:"GET"}).handler(hr("18553bc6ab9613271bf32047246b6d2d8738ed71956998571f4315e6387f401f")),DO=dr({method:"GET"}).handler(hr("3cd85b74aa38c7933719b54edc3f9b7fe8e9009f5ebff8204728f90c807782d0")),qO=dr({method:"GET"}).handler(hr("d863119459880fac5a6bd4828d913600f811041fe4ca207c95ff46aece8448ac")),LO=dr({method:"POST"}).handler(hr("3ecc0a74636f14c9106968dae651e4b28fd740db4e09af04ede0075e23712efc"));var Co,ph;function Le(){if(ph)return Co;ph=1;var e=Array.isArray;return Co=e,Co}var Io,vh;function h0(){if(vh)return Io;vh=1;var e=typeof ji=="object"&&ji&&ji.Object===Object&&ji;return Io=e,Io}var ko,yh;function pt(){if(yh)return ko;yh=1;var e=h0(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return ko=r,ko}var Ro,mh;function gi(){if(mh)return Ro;mh=1;var e=pt(),t=e.Symbol;return Ro=t,Ro}var No,gh;function BO(){if(gh)return No;gh=1;var e=gi(),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 No=a,No}var Do,bh;function FO(){if(bh)return Do;bh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Do=r,Do}var qo,xh;function jt(){if(xh)return qo;xh=1;var e=gi(),t=BO(),r=FO(),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 qo=o,qo}var Lo,wh;function Et(){if(wh)return Lo;wh=1;function e(t){return t!=null&&typeof t=="object"}return Lo=e,Lo}var Bo,Oh;function sn(){if(Oh)return Bo;Oh=1;var e=jt(),t=Et(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Bo=n,Bo}var Fo,_h;function ud(){if(_h)return Fo;_h=1;var e=Le(),t=sn(),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 Fo=i,Fo}var zo,Ah;function Bt(){if(Ah)return zo;Ah=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return zo=e,zo}var Wo,Sh;
vendor: 4,768 bytes, line 1
1function sd(){if(Sh)return Wo;Sh=1;var e=jt(),t=Bt(),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 Wo=o,Wo}var Uo,Ph;function zO(){if(Ph)return Uo;Ph=1;var e=pt(),t=e["__core-js_shared__"];return Uo=t,Uo}var Ho,Th;function WO(){if(Th)return Ho;Th=1;var e=zO(),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 Ho=r,Ho}var Ko,jh;function p0(){if(jh)return Ko;jh=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 Ko=r,Ko}var Go,Eh;function UO(){if(Eh)return Go;Eh=1;var e=sd(),t=WO(),r=Bt(),n=p0(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(d){if(!r(d)||t(d))return!1;var p=e(d)?f:a;return p.test(n(d))}return Go=l,Go}var Vo,Mh;function HO(){if(Mh)return Vo;Mh=1;function e(t,r){return t?.[r]}return Vo=e,Vo}var Xo,$h;function pr(){if($h)return Xo;$h=1;var e=UO(),t=HO();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Xo=r,Xo}var Yo,Ch;function Ka(){if(Ch)return Yo;Ch=1;var e=pr(),t=e(Object,"create");return Yo=t,Yo}var Zo,Ih;function KO(){if(Ih)return Zo;Ih=1;var e=Ka();function t(){this.__data__=e?e(null):{},this.size=0}return Zo=t,Zo}var Jo,kh;function GO(){if(kh)return Jo;kh=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Jo=e,Jo}var Qo,Rh;function VO(){if(Rh)return Qo;Rh=1;var e=Ka(),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 Qo=i,Qo}var eu,Nh;function XO(){if(Nh)return eu;Nh=1;var e=Ka(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return eu=n,eu}var tu,Dh;function YO(){if(Dh)return tu;Dh=1;var e=Ka(),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 tu=r,tu}var ru,qh;function ZO(){if(qh)return ru;qh=1;var e=KO(),t=GO(),r=VO(),n=XO(),i=YO();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,ru=a,ru}var nu,Lh;function JO(){if(Lh)return nu;Lh=1;function e(){this.__data__=[],this.size=0}return nu=e,nu}var iu,Bh;function cd(){if(Bh)return iu;Bh=1;function e(t,r){return t===r||t!==t&&r!==r}return iu=e,iu}var au,Fh;function Ga(){if(Fh)return au;Fh=1;var e=cd();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return au=t,au}var ou,zh;function QO(){if(zh)return ou;zh=1;var e=Ga(),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 ou=n,ou}var uu,Wh;function e_(){if(Wh)return uu;Wh=1;var e=Ga();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return uu=t,uu}var su,Uh;function t_(){if(Uh)return su;Uh=1;var e=Ga();function t(r){return e(this.__data__,r)>-1}return su=t,su}var cu,Hh;function r_(){if(Hh)return cu;Hh=1;var e=Ga();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 cu=t,cu}var lu,Kh;function Va(){if(Kh)return lu;Kh=1;var e=JO(),t=QO(),r=e_(),n=t_(),i=r_();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,lu=a,lu}var fu,Gh;function ld(){if(Gh)return fu;Gh=1;var e=pr(),t=pt(),r=e(t,"Map");return fu=r,fu}var du,Vh;function n_(){if(Vh)return du;Vh=1;var e=ZO(),t=Va(),r=ld();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return du=n,du}var hu,Xh;function i_(){if(Xh)return hu;Xh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return hu=e,hu}var pu,Yh;function Xa(){if(Yh)return pu;Yh=1;var e=i_();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return pu=t,pu}var vu,Zh;function a_(){if(Zh)return vu;Zh=1;var e=Xa();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return vu=t,vu}var yu,Jh;function o_(){if(Jh)return yu;Jh=1;var e=Xa();function t(r){return e(this,r).get(r)}return yu=t,yu}var mu,Qh;
vendor: 11,100 bytes, line 1
1function u_(){if(Qh)return mu;Qh=1;var e=Xa();function t(r){return e(this,r).has(r)}return mu=t,mu}var gu,ep;function s_(){if(ep)return gu;ep=1;var e=Xa();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return gu=t,gu}var bu,tp;function fd(){if(tp)return bu;tp=1;var e=n_(),t=a_(),r=o_(),n=u_(),i=s_();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,bu=a,bu}var xu,rp;function v0(){if(rp)return xu;rp=1;var e=fd(),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,xu=r,xu}var wu,np;function c_(){if(np)return wu;np=1;var e=v0(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return wu=r,wu}var Ou,ip;function l_(){if(ip)return Ou;ip=1;var e=c_(),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 Ou=n,Ou}var _u,ap;function dd(){if(ap)return _u;ap=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 _u=e,_u}var Au,op;function f_(){if(op)return Au;op=1;var e=gi(),t=dd(),r=Le(),n=sn(),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 Au=o,Au}var Su,up;function y0(){if(up)return Su;up=1;var e=f_();function t(r){return r==null?"":e(r)}return Su=t,Su}var Pu,sp;function m0(){if(sp)return Pu;sp=1;var e=Le(),t=ud(),r=l_(),n=y0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Pu=i,Pu}var Tu,cp;function Ya(){if(cp)return Tu;cp=1;var e=sn();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Tu=t,Tu}var ju,lp;function hd(){if(lp)return ju;lp=1;var e=m0(),t=Ya();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 ju=r,ju}var Eu,fp;function g0(){if(fp)return Eu;fp=1;var e=hd();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Eu=t,Eu}var d_=g0();const Ke=ue(d_);var Mu,dp;function h_(){if(dp)return Mu;dp=1;function e(t){return t==null}return Mu=e,Mu}var p_=h_();const Z=ue(p_);var $u,hp;function v_(){if(hp)return $u;hp=1;var e=jt(),t=Le(),r=Et(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return $u=i,$u}var y_=v_();const or=ue(y_);var m_=sd();const Y=ue(m_);var g_=Bt();const cn=ue(g_);var Cu={exports:{}},ie={};var pp;function b_(){if(pp)return ie;pp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(h){if(typeof h=="object"&&h!==null){var g=h.$$typeof;switch(g){case e:switch(h=h.type,h){case r:case i:case n:case c:case f:return h;default:switch(h=h&&h.$$typeof,h){case u:case o:case s:case d:case l:case a:return h;default:return g}}case t:return g}}}return ie.ContextConsumer=o,ie.ContextProvider=a,ie.Element=e,ie.ForwardRef=s,ie.Fragment=r,ie.Lazy=d,ie.Memo=l,ie.Portal=t,ie.Profiler=i,ie.StrictMode=n,ie.Suspense=c,ie.SuspenseList=f,ie.isAsyncMode=function(){return!1},ie.isConcurrentMode=function(){return!1},ie.isContextConsumer=function(h){return v(h)===o},ie.isContextProvider=function(h){return v(h)===a},ie.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},ie.isForwardRef=function(h){return v(h)===s},ie.isFragment=function(h){return v(h)===r},ie.isLazy=function(h){return v(h)===d},ie.isMemo=function(h){return v(h)===l},ie.isPortal=function(h){return v(h)===t},ie.isProfiler=function(h){return v(h)===i},ie.isStrictMode=function(h){return v(h)===n},ie.isSuspense=function(h){return v(h)===c},ie.isSuspenseList=function(h){return v(h)===f},ie.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===i||h===n||h===c||h===f||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===d||h.$$typeof===l||h.$$typeof===a||h.$$typeof===o||h.$$typeof===s||h.$$typeof===y||h.getModuleId!==void 0)},ie.typeOf=v,ie}var vp;function x_(){return vp||(vp=1,Cu.exports=b_()),Cu.exports}var w_=x_(),Iu,yp;function b0(){if(yp)return Iu;yp=1;var e=jt(),t=Et(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Iu=n,Iu}var ku,mp;function O_(){if(mp)return ku;mp=1;var e=b0();function t(r){return e(r)&&r!=+r}return ku=t,ku}var __=O_();const bi=ue(__);var A_=b0();const S_=ue(A_);var Ie=function(t){return t===0?0:t>0?1:-1},er=function(t){return or(t)&&t.indexOf("%")===t.length-1},L=function(t){return S_(t)&&!bi(t)},P_=function(t){return Z(t)},Se=function(t){return L(t)||or(t)},T_=0,ln=function(t){var r=++T_;return"".concat(t||"").concat(r)},ke=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)&&!or(t))return n;var a;if(er(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return bi(a)&&(a=n),i&&a>r&&(a=r),a},Nt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},j_=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 Ki(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ke(n,t))===r})}var E_=function(t,r){return L(t)&&L(r)?t-r:or(t)&&or(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Mr(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 ql(e){"@babel/helpers - typeof";return ql=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},ql(e)}var M_=["viewBox","children"],$_=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],gp=["points","pathLength"],Ru={svg:M_,polygon:gp,polyline:gp},pd=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
1ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Gi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(N.isValidElement(t)&&(n=t.props),!cn(n))return null;var i={};return Object.keys(n).forEach(function(a){pd.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},C_=function(t,r,n){return function(i){return t(r,n,i),null}},ur=function(t,r,n){if(!cn(t)||ql(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];pd.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=C_(o,r,n))}),i},I_=["children"],k_=["children"];function bp(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}function Ll(e){"@babel/helpers - typeof";return Ll=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},Ll(e)}var xp={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"}
vendor: 7,565 bytes, line 1
1,wt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},wp=null,Nu=null,vd=function e(t){if(t===wp&&Array.isArray(Nu))return Nu;var r=[];return N.Children.forEach(t,function(n){Z(n)||(w_.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Nu=r,wp=t,r};function Ge(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return wt(i)}):n=[wt(t)],vd(e).forEach(function(i){var a=Ke(i,"type.displayName")||Ke(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function We(e,t){var r=Ge(e,t);return r&&r[0]}var Op=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)},N_=["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"],D_=function(t){return t&&t.type&&or(t.type)&&N_.indexOf(t.type)>=0},q_=function(t){return t&&Ll(t)==="object"&&"clipDot"in t},L_=function(t,r,n,i){var a,o=(a=Ru?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Y(t)&&(i&&o.includes(r)||$_.includes(r))||n&&pd.includes(r)},K=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(N.isValidElement(t)&&(i=t.props),!cn(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;L_((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Bl=function e(t,r){if(t===r)return!0;var n=N.Children.count(t);if(n!==N.Children.count(r))return!1;if(n===0)return!0;if(n===1)return _p(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(!_p(a,o))return!1}return!0},_p=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=bp(n,I_),o=r.props||{},u=o.children,s=bp(o,k_);return i&&u?Mr(a,s)&&Bl(i,u):!i&&!u?Mr(a,s):!1}return!1},Ap=function(t,r){var n=[],i={};return vd(t).forEach(function(a,o){if(D_(a))n.push(a);else if(a){var u=wt(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},B_=function(t){var r=t&&t.type;return r&&xp[r]?xp[r]:null},F_=function(t,r){return vd(r).indexOf(t)},z_=["children","width","height","viewBox","className","style","title","desc"];function Fl(){return Fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fl.apply(this,arguments)}function W_(e,t){if(e==null)return{};var r=U_(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 U_(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 zl(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=W_(e,z_),f=i||{width:r,height:n,x:0,y:0},l=Q("recharts-surface",a);return S.createElement("svg",Fl({},K(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),S.createElement("title",null,u),S.createElement("desc",null,s),t)}var H_=["children","className"];function Wl(){return Wl=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},Wl.apply(this,arguments)}function K_(e,t){if(e==null)return{};var r=G_(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 G_(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 re=S.forwardRef(function(e,t){var r=e.children,n=e.className,i=K_(e,H_),a=Q("recharts-layer",n);return S.createElement("g",Wl({className:a},K(i,!0),{ref:t}),r)}),ut=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]},Du,Sp;function V_(){if(Sp)return Du;Sp=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 Du=e,Du}var qu,Pp;function X_(){if(Pp)return qu;Pp=1;var e=V_();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 qu=t,qu}var Lu,Tp;function x0(){if(Tp)return Lu;Tp=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 Lu=s,Lu}var Bu,jp;function Y_(){if(jp)return Bu;jp=1;function e(t){return t.split("")}return Bu=e,Bu}var Fu,Ep;function Z_(){if(Ep)return Fu;Ep=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=c+"?",v="["+a+"]?",h="(?:"+p+"(?:"+[f,l,d].join("|")+")"+v+y+")*",g=v+y+h,x="(?:"+[f+u+"?",u,l,d,o].join("|")+")",w=RegExp(s+"(?="+s+")|"+x+g,"g");function O(m){return m.match(w)||[]}return Fu=O,Fu}var zu,Mp;function J_(){if(Mp)return zu;Mp=1;var e=Y_(),t=x0(),r=Z_();function n(i){return t(i)?r(i):e(i)}return zu=n,zu}var Wu,$p;function Q_(){if($p)return Wu;$p=1;var e=X_(),t=x0(),r=J_(),n=y0();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 Wu=i,Wu}var Uu,Cp;function e1(){if(Cp)return Uu;Cp=1;var e=Q_(),t=e("toUpperCase");return Uu=t,Uu}var t1=e1();const Za=ue(t1);function le(e){return function(){return e}}const w0=Math.cos,Vi=Math.sin,st=Math.sqrt,Xi=Math.PI,Ja=2*Xi,Ul=Math.PI,Hl=2*Ul,Yt=1e-6,r1=Hl-Yt;function O0(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function n1(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return O0;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 i1{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?O0:n1(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,d=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Yt)if(!(Math.abs(l*s-c*f)>Yt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-u,v=s*s+c*c,h=p*p+y*y,g=Math.sqrt(v),x=Math.sqrt(d),w=a*Math.tan((Ul-Math.acos((v+d-h)/(2*g*x)))/2),O=w/x,m=w/g;Math.abs(O-1)>Yt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*p>f*y)},${this._x1=t+m*s},${this._y1=r+m*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),c=t+u,f=r+s,l=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>Yt||Math.abs(this._y1-f)>Yt)&&this._append`L${c},${f}`,n&&(d<0&&(d=d%Hl+Hl),d>r1?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:d>Yt&&this._append`A${n},${n},0,${+(d>=Ul)},${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 yd(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 i1(t)}function md(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function _0(e){this._context=e}_0.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 Qa(e){return new _0(e)}function A0(e){return e[0]}function S0(e){return e[1]}function P0(e,t){var r=le(!0),n=null,i=Qa,a=null,o=yd(u);e=typeof e=="function"?e:e===void 0?A0:le(e),t=typeof t=="function"?t:t===void 0?S0:le(t);function u(s){var c,f=(s=md(s)).length,l,d=!1,p;for(n==null&&(a=i(p=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(l,c,s),+t(l,c,s));if(p)return a=null,p+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:le(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:le(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:le(!!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 Ei(e,t,r){var n=null,i=le(!0),a=null,o=Qa,u=null,s=yd(c);e=typeof e=="function"?e:e===void 0?A0:le(+e),t=typeof t=="function"?t:le(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?S0:le(+r);function c(l){var d,p,y,v=(l=md(l)).length,h,g=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=s())),d=0;d<=v;++d){if(!(d<v&&i(h=l[d],d,l))===g)if(g=!g)p=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=d-1;y>=p;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}g&&(w[d]=+e(h,d,l),O[d]=+t(h,d,l),u.point(n?+n(h,d,l):w[d],r?+r(h,d,l):O[d]))}if(x)return u=null,x+""||null}function f(){return P0().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:le(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:le(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:le(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:le(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:le(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:le(+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:le(!!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 T0{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 a1(e){return new T0(e,!0)}function o1(e){return new T0(e,!1)}const gd={draw(e,t){const r=st(t/Xi);e.moveTo(r,0),e.arc(0,0,r,0,Ja)}},u1={draw(e,t){const r=st(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()}},j0=st(1/3),s1=j0*2,c1={draw(e,t){const r=st(t/s1),n=r*j0;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},l1={draw(e,t){const r=st(t),n=-r/2;e.rect(n,n,r,r)}},f1=.8908130915292852,E0=Vi(Xi/10)/Vi(7*Xi/10),d1=Vi(Ja/10)*E0,h1=-w0(Ja/10)*E0,p1={draw(e,t){const r=st(t*f1),n=d1*r,i=h1*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ja*a/5,u=w0(o),s=Vi(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},Hu=st(3),v1={draw(e,t){const r=-st(t/(Hu*3));e.moveTo(0,r*2),e.lineTo(-Hu*r,-r),e.lineTo(Hu*r,-r),e.closePath()}},Ve=-.5,Xe=st(3)/2,Kl=1/st(12),y1=(Kl/2+1)*3,m1={draw(e,t){const r=st(t/y1),n=r/2,i=r*Kl,a=n,o=r*Kl+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Ve*n-Xe*i,Xe*n+Ve*i),e.lineTo(Ve*a-Xe*o,Xe*a+Ve*o),e.lineTo(Ve*u-Xe*s,Xe*u+Ve*s),e.lineTo(Ve*n+Xe*i,Ve*i-Xe*n),e.lineTo(Ve*a+Xe*o,Ve*o-Xe*a),e.lineTo(Ve*u+Xe*s,Ve*s-Xe*u),e.closePath()}};function g1(e,t){let r=null,n=yd(i);e=typeof e=="function"?e:le(e||gd),t=typeof t=="function"?t:le(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:le(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:le(+a),i):t}
vendor: 6,361 bytes, line 1
1,i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Yi(){}function Zi(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 M0(e){this._context=e}M0.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:Zi(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:Zi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function b1(e){return new M0(e)}function $0(e){this._context=e}$0.prototype={areaStart:Yi,areaEnd:Yi,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:Zi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function x1(e){return new $0(e)}function C0(e){this._context=e}C0.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:Zi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function w1(e){return new C0(e)}function I0(e){this._context=e}I0.prototype={areaStart:Yi,areaEnd:Yi,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 O1(e){return new I0(e)}function Ip(e){return e<0?-1:1}function kp(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(Ip(a)+Ip(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 Ku(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:Ku(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,Ku(this,Rp(this,r=kp(this,e,t)),r);break;default:Ku(this,this._t0,r=kp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function k0(e){this._context=new R0(e)}(k0.prototype=Object.create(Ji.prototype)).point=function(e,t){Ji.prototype.point.call(this,t,e)};function R0(e){this._context=e}R0.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 _1(e){return new Ji(e)}function A1(e){return new k0(e)}function N0(e){this._context=e}N0.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 S1(e){return new N0(e)}function eo(e,t){this._context=e,this._t=t}eo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 10,673 bytes, lines 1-4
1default:{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 P1(e){return new eo(e,.5)}function T1(e){return new eo(e,0)}function j1(e){return new eo(e,1)}function Ir(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 Gl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function E1(e,t){return e[t]}function M1(e){const t=[];return t.key=e,t}function $1(){var e=le([]),t=Gl,r=Ir,n=E1;function i(a){var o=Array.from(e.apply(this,arguments),M1),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=md(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:le(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:le(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Gl:typeof a=="function"?a:le(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Ir,i):r},i}function C1(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}Ir(e,t)}}function I1(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}Ir(e,t)}}function k1(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,c=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,d=f[n-1][1]||0,p=(l-d)/2,y=0;y<u;++y){var v=e[t[y]],h=v[n][1]||0,g=v[n-1][1]||0;p+=h-g}s+=l,c+=p*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,Ir(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 R1=["type","size","sizeType"];function Vl(){return Vl=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},Vl.apply(this,arguments)}function Dp(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 qp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dp(Object(r),!0).forEach(function(n){N1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function N1(e,t,r){return t=D1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D1(e){var t=q1(e,"string");return Dn(t)=="symbol"?t:t+""}function q1(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 L1(e,t){if(e==null)return{};var r=B1(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 B1(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 D0={symbolCircle:gd,symbolCross:u1,symbolDiamond:c1,symbolSquare:l1,symbolStar:p1,symbolTriangle:v1,symbolWye:m1},F1=Math.PI/180,z1=function(t){var r="symbol".concat(Za(t));return D0[r]||gd},W1=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*F1;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}},U1=function(t,r){D0["symbol".concat(Za(t))]=r},bd=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=L1(t,R1),c=qp(qp({},s),{},{type:n,size:a,sizeType:u}),f=function(){var h=z1(n),g=g1().type(h).size(W1(a,u,n));return g()},l=c.className,d=c.cx,p=c.cy,y=K(c,!0);return d===+d&&p===+p&&a===+a?S.createElement("path",Vl({},y,{className:Q("recharts-symbols",l),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};bd.registerSymbol=U1;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 Xl(){return Xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xl.apply(this,arguments)}function Lp(e,t){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 H1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lp(Object(r),!0).forEach(function(n){qn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G1(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,L0(n.key),n)}}function V1(e,t,r){return t&&G1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function X1(e,t,r){return t=Qi(t),Y1(e,q0()?Reflect.construct(t,r||[],Qi(e).constructor):t.apply(e,r))}function Y1(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 Z1(e)}function Z1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q0=function(){return!!e})()}function Qi(e){return Qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qi(e)}function J1(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&&Yl(e,t)}function Yl(e,t){return Yl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yl(e,t)}function qn(e,t,r){return t=L0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L0(e){var t=Q1(e,"string");return kr(t)=="symbol"?t:t+""}function Q1(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 Ye=32,xd=(function(e){function t(){return K1(this,t),X1(this,t,arguments)}return J1(t,e),V1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Ye/2,o=Ye/6,u=Ye/3,s=n.inactive?i:n.color;if(n.type==="plainline")return S.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Ye,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return S.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(Ye,"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 S.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Ye/8,"h").concat(Ye,"v").concat(Ye*3/4,"h").concat(-Ye,"z"),className:"recharts-legend-icon"});if(S.isValidElement(n.legendIcon)){var c=H1({},n);return delete c.legendIcon,S.cloneElement(n.legendIcon,c)}return S.createElement(bd,{fill:s,cx:a,cy:a,size:Ye,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:Ye,height:Ye},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var v=p.formatter||s,h=Q(qn(qn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var g=Y(p.value)?null:p.value;ut(!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 S.createElement("li",Xl({className:h,style:l,key:"legend-item-".concat(y)},ur(n.props,p,y)),S.createElement(zl,{width:o,height:o,viewBox:f,style:d},n.renderIcon(p)),S.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(g,p,y):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return S.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(N.PureComponent);qn(xd,"displayName","Legend");qn(xd,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Gu,Bp;function eA(){if(Bp)return Gu;Bp=1;var e=Va();function t(){this.__data__=new e,this.size=0}return Gu=t,Gu}var Vu,Fp;function tA(){if(Fp)return Vu;Fp=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Vu=e,Vu}var Xu,zp;function rA(){if(zp)return Xu;zp=1;function e(t){return this.__data__.get(t)}return Xu=e,Xu}var Yu,Wp;
vendor: 9,902 bytes, line 4
4function nA(){if(Wp)return Yu;Wp=1;function e(t){return this.__data__.has(t)}return Yu=e,Yu}var Zu,Up;function iA(){if(Up)return Zu;Up=1;var e=Va(),t=ld(),r=fd(),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 Zu=i,Zu}var Ju,Hp;function B0(){if(Hp)return Ju;Hp=1;var e=Va(),t=eA(),r=tA(),n=rA(),i=nA(),a=iA();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,Ju=o,Ju}var Qu,Kp;function aA(){if(Kp)return Qu;Kp=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Qu=t,Qu}var es,Gp;function oA(){if(Gp)return es;Gp=1;function e(t){return this.__data__.has(t)}return es=e,es}var ts,Vp;function F0(){if(Vp)return ts;Vp=1;var e=fd(),t=aA(),r=oA();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,ts=n,ts}var rs,Xp;function z0(){if(Xp)return rs;Xp=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 rs=e,rs}var ns,Yp;function W0(){if(Yp)return ns;Yp=1;function e(t,r){return t.has(r)}return ns=e,ns}var is,Zp;function U0(){if(Zp)return is;Zp=1;var e=F0(),t=z0(),r=W0(),n=1,i=2;function a(o,u,s,c,f,l){var d=s&n,p=o.length,y=u.length;if(p!=y&&!(d&&y>p))return!1;var v=l.get(o),h=l.get(u);if(v&&h)return v==u&&h==o;var g=-1,x=!0,w=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++g<p;){var O=o[g],m=u[g];if(c)var b=d?c(m,O,g,u,o,l):c(O,m,g,o,u,l);if(b!==void 0){if(b)continue;x=!1;break}if(w){if(!t(u,function(_,A){if(!r(w,A)&&(O===_||f(O,_,s,c,l)))return w.push(A)})){x=!1;break}}else if(!(O===m||f(O,m,s,c,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return is=a,is}var as,Jp;function uA(){if(Jp)return as;Jp=1;var e=pt(),t=e.Uint8Array;return as=t,as}var os,Qp;function sA(){if(Qp)return os;Qp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return os=e,os}var us,ev;function wd(){if(ev)return us;ev=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return us=e,us}var ss,tv;function cA(){if(tv)return ss;tv=1;var e=gi(),t=uA(),r=cd(),n=U0(),i=sA(),a=wd(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",d="[object Number]",p="[object RegExp]",y="[object Set]",v="[object String]",h="[object Symbol]",g="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function m(b,_,A,P,j,E,T){switch(A){case x:if(b.byteLength!=_.byteLength||b.byteOffset!=_.byteOffset)return!1;b=b.buffer,_=_.buffer;case g:return!(b.byteLength!=_.byteLength||!E(new t(b),new t(_)));case s:case c:case d:return r(+b,+_);case f:return b.name==_.name&&b.message==_.message;case p:case v:return b==_+"";case l:var M=i;case y:var C=P&o;if(M||(M=a),b.size!=_.size&&!C)return!1;var $=T.get(b);if($)return $==_;P|=u,T.set(b,_);var I=n(M(b),M(_),P,j,E,T);return T.delete(b),I;case h:if(O)return O.call(b)==O.call(_)}return!1}return ss=m,ss}var cs,rv;function H0(){if(rv)return cs;rv=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 cs=e,cs}var ls,nv;function lA(){if(nv)return ls;nv=1;var e=H0(),t=Le();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return ls=r,ls}var fs,iv;function fA(){if(iv)return fs;iv=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 fs=e,fs}var ds,av;function dA(){if(av)return ds;av=1;function e(){return[]}return ds=e,ds}var hs,ov;function hA(){if(ov)return hs;ov=1;var e=fA(),t=dA(),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 hs=a,hs}var ps,uv;function pA(){if(uv)return ps;uv=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return ps=e,ps}var vs,sv;function vA(){if(sv)return vs;sv=1;var e=jt(),t=Et(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return vs=n,vs}var ys,cv;function Od(){if(cv)return ys;cv=1;var e=vA(),t=Et(),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 ys=a,ys}var Tn={exports:{}},ms,lv;function yA(){if(lv)return ms;lv=1;function e(){return!1}return ms=e,ms}Tn.exports;var fv;function K0(){return fv||(fv=1,(function(e,t){var r=pt(),n=yA(),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})(Tn,Tn.exports)),Tn.exports}var gs,dv;function _d(){if(dv)return gs;dv=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 gs=r,gs}var bs,hv;function Ad(){if(hv)return bs;hv=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return bs=t,bs}var xs,pv;function mA(){if(pv)return xs;pv=1;var e=jt(),t=Ad(),r=Et(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",d="[object RegExp]",p="[object Set]",y="[object String]",v="[object WeakMap]",h="[object ArrayBuffer]",g="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",b="[object Int32Array]",_="[object Uint8Array]",A="[object Uint8ClampedArray]",P="[object Uint16Array]",j="[object Uint32Array]",E={};E[x]=E[w]=E[O]=E[m]=E[b]=E[_]=E[A]=E[P]=E[j]=!0,E[n]=E[i]=E[h]=E[a]=E[g]=E[o]=E[u]=E[s]=E[c]=E[f]=E[l]=E[d]=E[p]=E[y]=E[v]=!1;function T(M){return r(M)&&t(M.length)&&!!E[e(M)]}return xs=T,xs}var ws,vv;function G0(){if(vv)return ws;vv=1;function e(t){return function(r){return t(r)}}return ws=e,ws}var jn={exports:{}};jn.exports;var yv;function gA(){return yv||(yv=1,(function(e,t){var r=h0(),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})(jn,jn.exports)),jn.exports}var Os,mv;function V0(){if(mv)return Os;mv=1;var e=mA(),t=G0(),r=gA(),n=r&&r.isTypedArray,i=n?t(n):e;return Os=i,Os}var _s,gv;function bA(){if(gv)return _s;gv=1;var e=pA(),t=Od(),r=Le(),n=K0(),i=_d(),a=V0(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),d=!l&&t(c),p=!l&&!d&&n(c),y=!l&&!d&&!p&&a(c),v=l||d||p||y,h=v?e(c.length,String):[],g=h.length;for(var x in c)(f||u.call(c,x))&&!(v&&(x=="length"||p&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,g)))&&h.push(x);return h}return _s=s,_s}var As,bv;function xA(){if(bv)return As;bv=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return As=t,As}var Ss,xv;function X0(){if(xv)return Ss;xv=1;function e(t,r){return function(n){return t(r(n))}}return Ss=e,Ss}var Ps,wv;function wA(){if(wv)return Ps;wv=1;var e=X0(),t=e(Object.keys,Object);return Ps=t,Ps}var Ts,Ov;function OA(){if(Ov)return Ts;Ov=1;var e=xA(),t=wA(),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 Ts=i,Ts}var js,_v;function xi(){if(_v)return js;_v=1;var e=sd(),t=Ad();function r(n){return n!=null&&t(n.length)&&!e(n)}return js=r,js}var Es,Av;function to(){if(Av)return Es;Av=1;var e=bA(),t=OA(),r=xi();function n(i){return r(i)?e(i):t(i)}return Es=n,Es}var Ms,Sv;function _A(){if(Sv)return Ms;Sv=1;var e=lA(),t=hA(),r=to();function n(i){return e(i,r,t)}return Ms=n,Ms}var $s,Pv;function AA(){if(Pv)return $s;Pv=1;var e=_A(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,f){var l=u&t,d=e(a),p=d.length,y=e(o),v=y.length;if(p!=v&&!l)return!1;for(var h=p;h--;){var g=d[h];if(!(l?g in o:n.call(o,g)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var m=l;++h<p;){g=d[h];var b=a[g],_=o[g];if(s)var A=l?s(_,b,g,o,a,f):s(b,_,g,a,o,f);if(!(A===void 0?b===_||c(b,_,u,s,f):A)){O=!1;break}m||(m=g=="constructor")}if(O&&!m){var P=a.constructor,j=o.constructor;P!=j&&"constructor"in a&&"constructor"in o&&!(typeof P=="function"&&P instanceof P&&typeof j=="function"&&j instanceof j)&&(O=!1)}return f.delete(a),f.delete(o),O}return $s=i,$s}var Cs,Tv;function SA(){if(Tv)return Cs;Tv=1;var e=pr(),t=pt(),r=e(t,"DataView");return Cs=r,Cs}var Is,jv;function PA(){if(jv)return Is;jv=1;var e=pr(),t=pt(),r=e(t,"Promise");return Is=r,Is}var ks,Ev;function Y0(){if(Ev)return ks;Ev=1;var e=pr(),t=pt(),r=e(t,"Set");return ks=r,ks}var Rs,Mv;function TA(){if(Mv)return Rs;Mv=1;var e=pr(),t=pt(),r=e(t,"WeakMap");return Rs=r,Rs}var Ns,$v;function jA(){if($v)return Ns;$v=1;var e=SA(),t=ld(),r=PA(),n=Y0(),i=TA(),a=jt(),o=p0(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",d="[object DataView]",p=o(e),y=o(t),v=o(r),h=o(n),g=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=d||t&&x(new t)!=u||r&&x(r.resolve())!=c||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),m=O==s?w.constructor:void 0,b=m?o(m):"";if(b)switch(b){case p:return d;case y:return u;case v:return c;case h:return f;case g:return l}return O}),Ns=x,Ns}var Ds,Cv;function EA(){if(Cv)return Ds;Cv=1;var e=B0(),t=U0(),r=cA(),n=AA(),i=jA(),a=Le(),o=K0(),u=V0(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",d=Object.prototype,p=d.hasOwnProperty;function y(v,h,g,x,w,O){var m=a(v),b=a(h),_=m?f:i(v),A=b?f:i(h);_=_==c?l:_,A=A==c?l:A;var P=_==l,j=A==l,E=_==A;
vendor: 48,437 bytes, lines 4-12
4if(E&&o(v)){if(!o(h))return!1;m=!0,P=!1}if(E&&!P)return O||(O=new e),m||u(v)?t(v,h,g,x,w,O):r(v,h,_,g,x,w,O);if(!(g&s)){var T=P&&p.call(v,"__wrapped__"),M=j&&p.call(h,"__wrapped__");if(T||M){var C=T?v.value():v,$=M?h.value():h;return O||(O=new e),w(C,$,g,x,O)}}return E?(O||(O=new e),n(v,h,g,x,w,O)):!1}return Ds=y,Ds}var qs,Iv;function Sd(){if(Iv)return qs;Iv=1;var e=EA(),t=Et();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 qs=r,qs}var Ls,kv;function MA(){if(kv)return Ls;kv=1;var e=B0(),t=Sd(),r=1,n=2;function i(a,o,u,s){var c=u.length,f=c,l=!s;if(a==null)return!f;for(a=Object(a);c--;){var d=u[c];if(l&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++c<f;){d=u[c];var p=d[0],y=a[p],v=d[1];if(l&&d[2]){if(y===void 0&&!(p in a))return!1}else{var h=new e;if(s)var g=s(y,v,p,a,o,h);if(!(g===void 0?t(v,y,r|n,s,h):g))return!1}}return!0}return Ls=i,Ls}var Bs,Rv;function Z0(){if(Rv)return Bs;Rv=1;var e=Bt();function t(r){return r===r&&!e(r)}return Bs=t,Bs}var Fs,Nv;function $A(){if(Nv)return Fs;Nv=1;var e=Z0(),t=to();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 Fs=r,Fs}var zs,Dv;function J0(){if(Dv)return zs;Dv=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return zs=e,zs}var Ws,qv;function CA(){if(qv)return Ws;qv=1;var e=MA(),t=$A(),r=J0();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 Ws=n,Ws}var Us,Lv;function IA(){if(Lv)return Us;Lv=1;function e(t,r){return t!=null&&r in Object(t)}return Us=e,Us}var Hs,Bv;function kA(){if(Bv)return Hs;Bv=1;var e=m0(),t=Od(),r=Le(),n=_d(),i=Ad(),a=Ya();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,d=!1;++f<l;){var p=a(s[f]);if(!(d=u!=null&&c(u,p)))break;u=u[p]}return d||++f!=l?d:(l=u==null?0:u.length,!!l&&i(l)&&n(p,l)&&(r(u)||t(u)))}return Hs=o,Hs}var Ks,Fv;function RA(){if(Fv)return Ks;Fv=1;var e=IA(),t=kA();function r(n,i){return n!=null&&t(n,i,e)}return Ks=r,Ks}var Gs,zv;function NA(){if(zv)return Gs;zv=1;var e=Sd(),t=g0(),r=RA(),n=ud(),i=Z0(),a=J0(),o=Ya(),u=1,s=2;function c(f,l){return n(f)&&i(l)?a(o(f),l):function(d){var p=t(d,f);return p===void 0&&p===l?r(d,f):e(l,p,u|s)}}return Gs=c,Gs}var Vs,Wv;function fn(){if(Wv)return Vs;Wv=1;function e(t){return t}return Vs=e,Vs}var Xs,Uv;function DA(){if(Uv)return Xs;Uv=1;function e(t){return function(r){return r?.[t]}}return Xs=e,Xs}var Ys,Hv;function qA(){if(Hv)return Ys;Hv=1;var e=hd();function t(r){return function(n){return e(n,r)}}return Ys=t,Ys}var Zs,Kv;function LA(){if(Kv)return Zs;Kv=1;var e=DA(),t=qA(),r=ud(),n=Ya();function i(a){return r(a)?e(n(a)):t(a)}return Zs=i,Zs}var Js,Gv;function vt(){if(Gv)return Js;Gv=1;var e=CA(),t=NA(),r=fn(),n=Le(),i=LA();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 Js=a,Js}var Qs,Vv;function Q0(){if(Vv)return Qs;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 Qs=e,Qs}var ec,Xv;function BA(){if(Xv)return ec;Xv=1;function e(t){return t!==t}return ec=e,ec}var tc,Yv;function FA(){if(Yv)return tc;Yv=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 tc=e,tc}var rc,Zv;function zA(){if(Zv)return rc;Zv=1;var e=Q0(),t=BA(),r=FA();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return rc=n,rc}var nc,Jv;function WA(){if(Jv)return nc;Jv=1;var e=zA();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return nc=t,nc}var ic,Qv;function UA(){if(Qv)return ic;Qv=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 ic=e,ic}var ac,ey;function HA(){if(ey)return ac;ey=1;function e(){}return ac=e,ac}var oc,ty;function KA(){if(ty)return oc;ty=1;var e=Y0(),t=HA(),r=wd(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return oc=i,oc}var uc,ry;function GA(){if(ry)return uc;ry=1;var e=F0(),t=WA(),r=UA(),n=W0(),i=KA(),a=wd(),o=200;function u(s,c,f){var l=-1,d=t,p=s.length,y=!0,v=[],h=v;if(f)y=!1,d=r;else if(p>=o){var g=c?null:i(s);if(g)return a(g);y=!1,d=n,h=new e}else h=c?[]:v;e:for(;++l<p;){var x=s[l],w=c?c(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=h.length;O--;)if(h[O]===w)continue e;c&&h.push(w),v.push(x)}else d(h,w,f)||(h!==v&&h.push(w),v.push(x))}return v}return uc=u,uc}var sc,ny;function VA(){if(ny)return sc;ny=1;var e=vt(),t=GA();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return sc=r,sc}var XA=VA();const iy=ue(XA);function ex(e,t,r){return t===!0?iy(e,r):Y(t)?iy(e,t):e}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)}var YA=["ref"];function ay(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ay(Object(r),!0).forEach(function(n){ro(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ay(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oy(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,rx(n.key),n)}}function JA(e,t,r){return t&&oy(e.prototype,t),r&&oy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function QA(e,t,r){return t=ea(t),eS(e,tx()?Reflect.construct(t,r||[],ea(e).constructor):t.apply(e,r))}function eS(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 tS(e)}function tS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tx=function(){return!!e})()}function ea(e){return ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ea(e)}function rS(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&&Zl(e,t)}function Zl(e,t){return Zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zl(e,t)}function ro(e,t,r){return t=rx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rx(e){var t=nS(e,"string");return Rr(t)=="symbol"?t:t+""}function nS(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 iS(e,t){if(e==null)return{};var r=aS(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function aS(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function oS(e){return e.value}function uS(e,t){if(S.isValidElement(e))return S.cloneElement(e,t);if(typeof e=="function")return S.createElement(e,t);t.ref;var r=iS(t,YA);return S.createElement(xd,r)}var uy=1,qt=(function(e){function t(){var r;ZA(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=QA(this,t,[].concat(i)),ro(r,"lastBoundingBox",{width:-1,height:-1}),r}return rS(t,e),JA(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)>uy||Math.abs(i.height-this.lastBoundingBox.height)>uy)&&(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?yt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,c=i.chartWidth,f=i.chartHeight,l,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();l={left:((c||0)-p.width)/2}}else l=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();d={top:((f||0)-y.height)/2}}else d=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return yt(yt({},l),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,l=yt(yt({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return S.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(p){n.wrapperNode=p}},uS(a,yt(yt({},this.props),{},{payload:ex(f,c,oS)})))}}],[{key:"getWithHeight",value:function(n,i){var a=yt(yt({},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}}])})(N.PureComponent);ro(qt,"displayName","Legend");ro(qt,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var cc,sy;function sS(){if(sy)return cc;sy=1;var e=gi(),t=Od(),r=Le(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return cc=i,cc}var lc,cy;function nx(){if(cy)return lc;cy=1;var e=H0(),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 lc=r,lc}var fc,ly;function cS(){if(ly)return fc;ly=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 fc=e,fc}var dc,fy;function lS(){if(fy)return dc;fy=1;var e=cS(),t=e();return dc=t,dc}var hc,dy;function ix(){if(dy)return hc;dy=1;var e=lS(),t=to();function r(n,i){return n&&e(n,i,t)}return hc=r,hc}var pc,hy;function fS(){if(hy)return pc;hy=1;var e=xi();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 pc=t,pc}var vc,py;function Pd(){if(py)return vc;py=1;var e=ix(),t=fS(),r=t(e);return vc=r,vc}var yc,vy;function ax(){if(vy)return yc;vy=1;var e=Pd(),t=xi();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 yc=r,yc}var mc,yy;function dS(){if(yy)return mc;yy=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return mc=e,mc}var gc,my;function hS(){if(my)return gc;my=1;var e=sn();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 gc=t,gc}var bc,gy;function pS(){if(gy)return bc;gy=1;var e=hS();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=c)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return bc=t,bc}var xc,by;function vS(){if(by)return xc;by=1;var e=dd(),t=hd(),r=vt(),n=ax(),i=dS(),a=G0(),o=pS(),u=fn(),s=Le();function c(f,l,d){l.length?l=e(l,function(v){return s(v)?function(h){return t(h,v.length===1?v[0]:v)}:v}):l=[u];var p=-1;l=e(l,a(r));var y=n(f,function(v,h,g){var x=e(l,function(w){return w(v)});return{criteria:x,index:++p,value:v}});return i(y,function(v,h){return o(v,h,d)})}return xc=c,xc}var wc,xy;function yS(){if(xy)return wc;xy=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 wc=e,wc}var Oc,wy;function mS(){if(wy)return Oc;wy=1;var e=yS(),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 Oc=r,Oc}var _c,Oy;function gS(){if(Oy)return _c;Oy=1;function e(t){return function(){return t}}return _c=e,_c}var Ac,_y;function ox(){if(_y)return Ac;_y=1;var e=pr(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Ac=t,Ac}var Sc,Ay;function bS(){if(Ay)return Sc;Ay=1;var e=gS(),t=ox(),r=fn(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Sc=n,Sc}var Pc,Sy;function xS(){if(Sy)return Pc;Sy=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 Pc=n,Pc}var Tc,Py;function wS(){if(Py)return Tc;Py=1;var e=bS(),t=xS(),r=t(e);return Tc=r,Tc}var jc,Ty;function OS(){if(Ty)return jc;Ty=1;var e=fn(),t=mS(),r=wS();function n(i,a){return r(t(i,a,e),i+"")}return jc=n,jc}var Ec,jy;function no(){if(jy)return Ec;jy=1;var e=cd(),t=xi(),r=_d(),n=Bt();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 Ec=i,Ec}var Mc,Ey;function _S(){if(Ey)return Mc;Ey=1;var e=nx(),t=vS(),r=OS(),n=no(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Mc=i,Mc}var AS=_S();const Td=ue(AS);function Ln(e){"@babel/helpers - typeof";return Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ln(e)}function Jl(){return Jl=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},Jl.apply(this,arguments)}function SS(e,t){return ES(e)||jS(e,t)||TS(e,t)||PS()}function PS(){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 TS(e,t){if(e){if(typeof e=="string")return My(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 My(e,t)}}function My(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 jS(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 ES(e){if(Array.isArray(e))return e}function $y(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 $c(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$y(Object(r),!0).forEach(function(n){MS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$y(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MS(e,t,r){return t=$S(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $S(e){var t=CS(e,"string");return Ln(t)=="symbol"?t:t+""}function CS(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 IS(e){return Array.isArray(e)&&Se(e[0])&&Se(e[1])?e.join(" ~ "):e}var kS=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,s=t.labelStyle,c=s===void 0?{}:s,f=t.payload,l=t.formatter,d=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,v=t.label,h=t.labelFormatter,g=t.accessibilityLayer,x=g===void 0?!1:g,w=function(){if(f&&f.length){var T={padding:0,margin:0},M=(d?Td(f,d):f).map(function(C,$){if(C.type==="none")return null;var I=$c({display:"block",paddingTop:4,paddingBottom:4,color:C.color||"#000"},u),D=C.formatter||l||IS,B=C.value,F=C.name,H=B,V=F;if(D&&H!=null&&V!=null){var W=D(B,F,C,$,f);if(Array.isArray(W)){var X=SS(W,2);H=X[0],V=X[1]}else H=W}return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:I},Se(V)?S.createElement("span",{className:"recharts-tooltip-item-name"},V):null,Se(V)?S.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,S.createElement("span",{className:"recharts-tooltip-item-value"},H),S.createElement("span",{className:"recharts-tooltip-item-unit"},C.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:T},M)}return null},O=$c({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=$c({margin:0},c),b=!Z(v),_=b?v:"",A=Q("recharts-default-tooltip",p),P=Q("recharts-tooltip-label",y);b&&h&&f!==void 0&&f!==null&&(_=h(v,f));var j=x?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",Jl({className:A,style:O},j),S.createElement("p",{className:P,style:m},S.isValidElement(_)?_:"".concat(_)),w())};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 Mi(e,t,r){return t=RS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RS(e){var t=NS(e,"string");return Bn(t)=="symbol"?t:t+""}function NS(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 yn="recharts-tooltip-wrapper",DS={visibility:"hidden"};function qS(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Q(yn,Mi(Mi(Mi(Mi({},"".concat(yn,"-right"),L(r)&&t&&L(t.x)&&r>=t.x),"".concat(yn,"-left"),L(r)&&t&&L(t.x)&&r<t.x),"".concat(yn,"-bottom"),L(n)&&t&&L(t.y)&&n>=t.y),"".concat(yn,"-top"),L(n)&&t&&L(t.y)&&n<t.y))}function Cy(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 d=f,p=s[n];return d<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 LS(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 BS(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=Cy({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=Cy({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=LS({translateX:f,translateY:l,useTranslate3d:u})):c=DS,{cssProperties:c,cssClasses:qS({translateX:f,translateY:l,coordinate:r})}}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 Iy(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 ky(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Iy(Object(r),!0).forEach(function(n){ef(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zS(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,sx(n.key),n)}}function WS(e,t,r){return t&&zS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function US(e,t,r){return t=ta(t),HS(e,ux()?Reflect.construct(t,r||[],ta(e).constructor):t.apply(e,r))}function HS(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 KS(e)}function KS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ux(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ux=function(){return!!e})()}function ta(e){return ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ta(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&&Ql(e,t)}function Ql(e,t){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ql(e,t)}function ef(e,t,r){return t=sx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sx(e){var t=VS(e,"string");return Nr(t)=="symbol"?t:t+""}function VS(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 Ry=1,XS=(function(e){function t(){var r;FS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=US(this,t,[].concat(i)),ef(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),ef(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 GS(t,e),WS(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,d=i.isAnimationActive,p=i.offset,y=i.position,v=i.reverseDirection,h=i.useTranslate3d,g=i.viewBox,x=i.wrapperStyle,w=BS({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:g}),O=w.cssClasses,m=w.cssProperties,b=ky(ky({transition:d&&a?"transform ".concat(u,"ms ").concat(s):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return S.createElement("div",{tabIndex:-1,className:O,style:b,ref:function(A){n.wrapperNode=A}},c)}}])})(N.PureComponent),YS=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},vr={isSsr:YS()};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 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 Dy(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){jd(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 ZS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JS(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,lx(n.key),n)}}function QS(e,t,r){return t&&JS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eP(e,t,r){return t=ra(t),tP(e,cx()?Reflect.construct(t,r||[],ra(e).constructor):t.apply(e,r))}function tP(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 rP(e)}function rP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cx=function(){return!!e})()}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ra(e)}function nP(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 jd(e,t,r){return t=lx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lx(e){var t=iP(e,"string");return Dr(t)=="symbol"?t:t+""}function iP(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 aP(e){return e.dataKey}function oP(e,t){return S.isValidElement(e)?S.cloneElement(e,t):typeof e=="function"?S.createElement(e,t):S.createElement(kS,t)}var Je=(function(e){function t(){return ZS(this,t),eP(this,t,arguments)}return nP(t,e),QS(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.content,f=i.coordinate,l=i.filterNull,d=i.isAnimationActive,p=i.offset,y=i.payload,v=i.payloadUniqBy,h=i.position,g=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=ex(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,aP));var b=m.length>0;return S.createElement(XS,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:d,active:a,coordinate:f,hasPayload:b,offset:p,position:h,reverseDirection:g,useTranslate3d:x,viewBox:w,wrapperStyle:O},oP(c,Dy(Dy({},this.props),{},{payload:m})))}}])})(N.PureComponent);jd(Je,"displayName","Tooltip");jd(Je,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!vr.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 Cc,qy;function uP(){if(qy)return Cc;qy=1;var e=pt(),t=function(){return e.Date.now()};return Cc=t,Cc}var Ic,Ly;function sP(){if(Ly)return Ic;Ly=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Ic=t,Ic}var kc,By;function cP(){if(By)return kc;By=1;var e=sP(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return kc=r,kc}var Rc,Fy;function fx(){if(Fy)return Rc;Fy=1;var e=cP(),t=Bt(),r=sn(),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 Rc=s,Rc}var Nc,zy;function lP(){if(zy)return Nc;zy=1;var e=Bt(),t=uP(),r=fx(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var f,l,d,p,y,v,h=0,g=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(g=!!c.leading,x="maxWait"in c,d=x?i(r(c.maxWait)||0,s):d,w="trailing"in c?!!c.trailing:w);function O(M){var C=f,$=l;return f=l=void 0,h=M,p=u.apply($,C),p}function m(M){return h=M,y=setTimeout(A,s),g?O(M):p}function b(M){var C=M-v,$=M-h,I=s-C;return x?a(I,d-$):I}function _(M){var C=M-v,$=M-h;return v===void 0||C>=s||C<0||x&&$>=d}function A(){var M=t();if(_(M))return P(M);y=setTimeout(A,b(M))}function P(M){return y=void 0,w&&f?O(M):(f=l=void 0,p)}function j(){y!==void 0&&clearTimeout(y),h=0,f=v=l=y=void 0}function E(){return y===void 0?p:P(t())}function T(){var M=t(),C=_(M);if(f=arguments,l=this,v=M,C){if(y===void 0)return m(v);if(x)return clearTimeout(y),y=setTimeout(A,s),O(v)}return y===void 0&&(y=setTimeout(A,s)),p}return T.cancel=j,T.flush=E,T}return Nc=o,Nc}var Dc,Wy;function fP(){if(Wy)return Dc;Wy=1;var e=lP(),t=Bt(),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 Dc=n,Dc}var dP=fP();const dx=ue(dP);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 Uy(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 $i(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uy(Object(r),!0).forEach(function(n){hP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hP(e,t,r){return t=pP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pP(e){var t=vP(e,"string");return Fn(t)=="symbol"?t:t+""}function vP(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 yP(e,t){return xP(e)||bP(e,t)||gP(e,t)||mP()}function mP(){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 gP(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 bP(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 xP(e){if(Array.isArray(e))return e}var qc=N.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,s=u===void 0?"100%":u,c=e.minWidth,f=c===void 0?0:c,l=e.minHeight,d=e.maxHeight,p=e.children,y=e.debounce,v=y===void 0?0:y,h=e.id,g=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,m=N.useRef(null),b=N.useRef();b.current=x,N.useImperativeHandle(t,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var _=N.useState({containerWidth:i.width,containerHeight:i.height}),A=yP(_,2),P=A[0],j=A[1],E=N.useCallback(function(M,C){j(function($){var I=Math.round(M),D=Math.round(C);return $.containerWidth===I&&$.containerHeight===D?$:{containerWidth:I,containerHeight:D}})},[]);N.useEffect(function(){var M=function(F){var H,V=F[0].contentRect,W=V.width,X=V.height;E(W,X),(H=b.current)===null||H===void 0||H.call(b,W,X)};v>0&&(M=dx(M,v,{trailing:!0,leading:!1}));var C=new ResizeObserver(M),$=m.current.getBoundingClientRect(),I=$.width,D=$.height;return E(I,D),C.observe(m.current),function(){C.disconnect()}},[E,v]);var T=N.useMemo(function(){var M=P.containerWidth,C=P.containerHeight;if(M<0||C<0)return null;ut(er(o)||er(s),`The width(%s) and height(%s) are both fixed numbers,
7       maybe you don't need to use a ResponsiveContainer.`,o,s),ut(!r||r>0,"The aspect(%s) must be greater than zero.",r);var $=er(o)?M:o,I=er(s)?C:s;r&&r>0&&($?I=$/r:I&&($=I*r),d&&I>d&&(I=d)),ut($>0||I>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.`,$,I,o,s,f,l,r);var D=!Array.isArray(p)&&wt(p.type).endsWith("Chart");return S.Children.map(p,function(B){return S.isValidElement(B)?N.cloneElement(B,$i({width:$,height:I},D?{style:$i({height:"100%",width:"100%",maxHeight:I,maxWidth:$},B.props.style)}:{})):B})},[r,p,s,d,l,f,P,o]);return S.createElement("div",{id:h?"".concat(h):void 0,className:Q("recharts-responsive-container",g),style:$i($i({},O),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:d}),ref:m},T)}),io=function(t){return null};io.displayName="Cell";function zn(e){"@babel/helpers - typeof";return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn(e)}function Ky(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 rf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ky(Object(r),!0).forEach(function(n){wP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ky(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wP(e,t,r){return t=OP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OP(e){var t=_P(e,"string");return zn(t)=="symbol"?t:t+""}function _P(e,t){if(zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wr={widthCache:{},cacheCount:0},AP=2e3,SP={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Gy="recharts_measurement_span";function PP(e){var t=rf({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Mn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||vr.isSsr)return{width:0,height:0};var n=PP(r),i=JSON.stringify({text:t,copyStyle:n});if(wr.widthCache[i])return wr.widthCache[i];try{var a=document.getElementById(Gy);a||(a=document.createElement("span"),a.setAttribute("id",Gy),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=rf(rf({},SP),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return wr.widthCache[i]=s,++wr.cacheCount>AP&&(wr.cacheCount=0,wr.widthCache={}),s}catch{return{width:0,height:0}}},TP=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 na(e,t){return $P(e)||MP(e,t)||EP(e,t)||jP()}function jP(){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 EP(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 MP(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 $P(e){if(Array.isArray(e))return e}function CP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xy(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,kP(n.key),n)}}function IP(e,t,r){return t&&Xy(e.prototype,t),r&&Xy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function kP(e){var t=RP(e,"string");return Wn(t)=="symbol"?t:t+""}function RP(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Zy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,NP=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,DP=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,hx={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},qP=Object.keys(hx),Sr="NaN";function LP(e,t){return e*hx[t]}var Ci=(function(){function e(t,r){CP(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!NP.test(r)&&(this.num=NaN,this.unit=""),qP.includes(r)&&(this.num=LP(t,r),this.unit="px")}return IP(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=DP.exec(r))!==null&&n!==void 0?n:[],a=na(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function px(e){if(e.includes(Sr))return Sr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Yy.exec(t))!==null&&r!==void 0?r:[],i=na(n,4),a=i[1],o=i[2],u=i[3],s=Ci.parse(a??""),c=Ci.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return Sr;t=t.replace(Yy,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,d=(l=Zy.exec(t))!==null&&l!==void 0?l:[],p=na(d,4),y=p[1],v=p[2],h=p[3],g=Ci.parse(y??""),x=Ci.parse(h??""),w=v==="+"?g.add(x):g.subtract(x);if(w.isNaN())return Sr;t=t.replace(Zy,w.toString())}return t}var Jy=/\(([^()]*)\)/;function BP(e){for(var t=e;t.includes("(");){var r=Jy.exec(t),n=na(r,2),i=n[1];t=t.replace(Jy,px(i))}return t}function FP(e){var t=e.replace(/\s+/g,"");return t=BP(t),t=px(t),t}function zP(e){try{return FP(e)}catch{return Sr}}function Lc(e){var t=zP(e.slice(5,-1));return t===Sr?"":t}var WP=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],UP=["dx","dy","angle","className","breakAll"];function nf(){return nf=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},nf.apply(this,arguments)}function Qy(e,t){if(e==null)return{};var r=HP(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 HP(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 em(e,t){return XP(e)||VP(e,t)||GP(e,t)||KP()}function KP(){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 GP(e,t){if(e){if(typeof e=="string")return tm(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 tm(e,t)}}function tm(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 VP(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 XP(e){if(Array.isArray(e))return e}var vx=/[ \f\n\r\t\v\u2028\u2029]+/,yx=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Z(r)||(n?a=r.toString().split(""):a=r.toString().split(vx));var o=a.map(function(s){return{word:s,width:Mn(s,i).width}}),u=n?0:Mn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},YP=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=L(o),l=u,d=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $.reduce(function(I,D){var B=D.word,F=D.width,H=I[I.length-1];if(H&&(i==null||a||H.width+F+n<Number(i)))H.words.push(B),H.width+=F+n;else{var V={words:[B],width:F};I.push(V)}return I},[])},p=d(r),y=function($){return $.reduce(function(I,D){return I.width>D.width?I:D})};if(!f)return p;for(var v="…",h=function($){var I=l.slice(0,$),D=yx({breakAll:c,style:s,children:I+v}).wordsWithComputedWidth,B=d(D),F=B.length>o||y(B).width>Number(i);return[F,B]},g=0,x=l.length-1,w=0,O;g<=x&&w<=l.length-1;){var m=Math.floor((g+x)/2),b=m-1,_=h(b),A=em(_,2),P=A[0],j=A[1],E=h(m),T=em(E,1),M=T[0];if(!P&&!M&&(g=m+1),P&&M&&(x=m-1),!P&&M){O=j;break}w++}return O||p},rm=function(t){var r=Z(t)?[]:t.toString().split(vx);return[{words:r}]},ZP=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!vr.isSsr){var s,c,f=yx({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,d=f.spaceWidth;s=l,c=d}else return rm(i);return YP({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return rm(i)},nm="#808080",sr=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,s=t.capHeight,c=s===void 0?"0.71em":s,f=t.scaleToFit,l=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,y=t.verticalAnchor,v=y===void 0?"end":y,h=t.fill,g=h===void 0?nm:h,x=Qy(t,WP),w=N.useMemo(function(){return ZP({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,m=x.dy,b=x.angle,_=x.className,A=x.breakAll,P=Qy(x,UP);if(!Se(n)||!Se(a))return null;var j=n+(L(O)?O:0),E=a+(L(m)?m:0),T;switch(v){case"start":T=Lc("calc(".concat(c,")"));break;case"middle":T=Lc("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:T=Lc("calc(".concat(w.length-1," * -").concat(u,")"));break}var M=[];if(l){var C=w[0].width,$=x.width;M.push("scale(".concat((L($)?$/C:1)/C,")"))}return b&&M.push("rotate(".concat(b,", ").concat(j,", ").concat(E,")")),M.length&&(P.transform=M.join(" ")),S.createElement("text",nf({},K(P,!0),{x:j,y:E,className:Q("recharts-text",_),textAnchor:p,fill:g.includes("url")?nm:g}),w.map(function(I,D){var B=I.words.join(A?"":" ");
12return S.createElement("tspan",{x:j,dy:D===0?T:u,key:"".concat(B,"-").concat(D)},B)}))};function Lt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function JP(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ed(e){let t,r,n;e.length!==2?(t=Lt,r=(u,s)=>Lt(e(u),s),n=(u,s)=>e(u)-s):(t=e===Lt||e===JP?e:QP,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 QP(){return 0}function mx(e){return e===null?NaN:+e}function*eT(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const tT=Ed(Lt),wi=tT.right;Ed(mx).center;class im extends Map{constructor(t,r=iT){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(am(this,t))}has(t){return super.has(am(this,t))}set(t,r){return super.set(rT(this,t),r)}delete(t){return super.delete(nT(this,t))}}function am({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function rT({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function nT({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function iT(e){return e!==null&&typeof e=="object"?e.valueOf():e}function aT(e=Lt){if(e===Lt)return gx;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 gx(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const oT=Math.sqrt(50),uT=Math.sqrt(10),sT=Math.sqrt(2);function ia(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>=oT?10:a>=uT?5:a>=sT?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?ia(e,t,r*2):[u,s,c]}function af(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?ia(t,e,r):ia(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 of(e,t,r){return t=+t,e=+e,r=+r,ia(e,t,r)[2]}function uf(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?of(t,e,r):of(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function om(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function um(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function bx(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?gx:aT(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),p=Math.max(r,Math.floor(t-c*l/s+d)),y=Math.min(n,Math.floor(t+(s-c)*l/s+d));bx(e,t,p,y,i)}const a=e[t];let o=r,u=n;for(mn(e,r,t),i(e[n],a)>0&&mn(e,r,n);o<u;){for(mn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?mn(e,r,u):(++u,mn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function mn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function cT(e,t,r){if(e=Float64Array.from(eT(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return um(e);if(t>=1)return om(e);var n,i=(n-1)*t,a=Math.floor(i),o=om(bx(e,a).subarray(0,a+1)),u=um(e.subarray(a+1));return o+(u-o)*(i-a)}}function lT(e,t,r=mx){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 fT(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 rt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Mt(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: 12,698 bytes, line 12
12const sf=Symbol("implicit");function Md(){var e=new im,t=[],r=[],n=sf;function i(a){let o=e.get(a);if(o===void 0){if(n!==sf)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 im;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 Md(t,r).unknown(n)},rt.apply(i,arguments),i}function Un(){var e=Md().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,f=.5;delete e.unknown;function l(){var d=t().length,p=i<n,y=p?i:n,v=p?n:i;a=(v-y)/Math.max(1,d-s+c*2),u&&(a=Math.floor(a)),y+=(v-y-a*(d-s))*f,o=a*(1-s),u&&(y=Math.round(y),o=Math.round(o));var h=fT(d).map(function(g){return y+a*g});return r(p?h.reverse():h)}return e.domain=function(d){return arguments.length?(t(d),l()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,l()):u},e.padding=function(d){return arguments.length?(s=Math.min(1,c=+d),l()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),l()):s},e.paddingOuter=function(d){return arguments.length?(c=+d,l()):c},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),l()):f},e.copy=function(){return Un(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},rt.apply(l(),arguments)}function xx(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return xx(t())},e}function $n(){return xx(Un.apply(null,arguments).paddingInner(1))}function $d(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function wx(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Oi(){}var Hn=.7,aa=1/Hn,$r="\\s*([+-]?\\d+)\\s*",Kn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",lt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",dT=/^#([0-9a-f]{3,8})$/,hT=new RegExp(`^rgb\\(${$r},${$r},${$r}\\)$`),pT=new RegExp(`^rgb\\(${lt},${lt},${lt}\\)$`),vT=new RegExp(`^rgba\\(${$r},${$r},${$r},${Kn}\\)$`),yT=new RegExp(`^rgba\\(${lt},${lt},${lt},${Kn}\\)$`),mT=new RegExp(`^hsl\\(${Kn},${lt},${lt}\\)$`),gT=new RegExp(`^hsla\\(${Kn},${lt},${lt},${Kn}\\)$`),sm={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};$d(Oi,Gn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:cm,formatHex:cm,formatHex8:bT,formatHsl:xT,formatRgb:lm,toString:lm});function cm(){return this.rgb().formatHex()}function bT(){return this.rgb().formatHex8()}function xT(){return Ox(this).formatHsl()}function lm(){return this.rgb().formatRgb()}function Gn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=dT.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?fm(t):r===3?new qe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ii(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ii(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=hT.exec(e))?new qe(t[1],t[2],t[3],1):(t=pT.exec(e))?new qe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=vT.exec(e))?Ii(t[1],t[2],t[3],t[4]):(t=yT.exec(e))?Ii(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=mT.exec(e))?pm(t[1],t[2]/100,t[3]/100,1):(t=gT.exec(e))?pm(t[1],t[2]/100,t[3]/100,t[4]):sm.hasOwnProperty(e)?fm(sm[e]):e==="transparent"?new qe(NaN,NaN,NaN,0):null}function fm(e){return new qe(e>>16&255,e>>8&255,e&255,1)}function Ii(e,t,r,n){return n<=0&&(e=t=r=NaN),new qe(e,t,r,n)}function wT(e){return e instanceof Oi||(e=Gn(e)),e?(e=e.rgb(),new qe(e.r,e.g,e.b,e.opacity)):new qe}function cf(e,t,r,n){return arguments.length===1?wT(e):new qe(e,t,r,n??1)}function qe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}$d(qe,cf,wx(Oi,{brighter(e){return e=e==null?aa:Math.pow(aa,e),new qe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Hn:Math.pow(Hn,e),new qe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qe(ir(this.r),ir(this.g),ir(this.b),oa(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:dm,formatHex:dm,formatHex8:OT,formatRgb:hm,toString:hm}));function dm(){return`#${tr(this.r)}${tr(this.g)}${tr(this.b)}`}function OT(){return`#${tr(this.r)}${tr(this.g)}${tr(this.b)}${tr((isNaN(this.opacity)?1:this.opacity)*255)}`}function hm(){const e=oa(this.opacity);return`${e===1?"rgb(":"rgba("}${ir(this.r)}, ${ir(this.g)}, ${ir(this.b)}${e===1?")":`, ${e})`}`}function oa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ir(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tr(e){return e=ir(e),(e<16?"0":"")+e.toString(16)}function pm(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ot(e,t,r,n)}function Ox(e){if(e instanceof ot)return new ot(e.h,e.s,e.l,e.opacity);if(e instanceof Oi||(e=Gn(e)),!e)return new ot;if(e instanceof ot)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 ot(o,u,s,e.opacity)}function _T(e,t,r,n){return arguments.length===1?Ox(e):new ot(e,t,r,n??1)}function ot(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}$d(ot,_T,wx(Oi,{brighter(e){return e=e==null?aa:Math.pow(aa,e),new ot(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Hn:Math.pow(Hn,e),new ot(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 qe(Bc(e>=240?e-240:e+120,i,n),Bc(e,i,n),Bc(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ot(vm(this.h),ki(this.s),ki(this.l),oa(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=oa(this.opacity);return`${e===1?"hsl(":"hsla("}${vm(this.h)}, ${ki(this.s)*100}%, ${ki(this.l)*100}%${e===1?")":`, ${e})`}`}}));function vm(e){return e=(e||0)%360,e<0?e+360:e}function ki(e){return Math.max(0,Math.min(1,e||0))}function Bc(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 Cd=e=>()=>e;function AT(e,t){return function(r){return e+r*t}}function ST(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 PT(e){return(e=+e)==1?_x:function(t,r){return r-t?ST(t,r,e):Cd(isNaN(t)?r:t)}}function _x(e,t){var r=t-e;return r?AT(e,r):Cd(isNaN(e)?t:e)}const ym=(function e(t){var r=PT(t);function n(i,a){var o=r((i=cf(i)).r,(a=cf(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=_x(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 TT(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 jT(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ET(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]=dn(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 MT(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ua(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function $T(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]=dn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var lf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fc=new RegExp(lf.source,"g");function CT(e){return function(){return e}}function IT(e){return function(t){return e(t)+""}}function kT(e,t){var r=lf.lastIndex=Fc.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=lf.exec(e))&&(i=Fc.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:ua(n,i)})),r=Fc.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?IT(s[0].x):CT(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 dn(e,t){var r=typeof t,n;return t==null||r==="boolean"?Cd(t):(r==="number"?ua:r==="string"?(n=Gn(t))?(t=n,ym):kT:t instanceof Gn?ym:t instanceof Date?MT:jT(t)?TT:Array.isArray(t)?ET:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?$T:ua)(e,t)}function Id(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function RT(e,t){t===void 0&&(t=e,e=dn);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 NT(e){return function(){return e}}function sa(e){return+e}var mm=[0,1];function Re(e){return e}function ff(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:NT(isNaN(t)?NaN:.5)}function DT(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function qT(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=ff(i,n),a=r(o,a)):(n=ff(n,i),a=r(a,o)),function(u){return a(n(u))}}function LT(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]=ff(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=wi(e,u,1,n)-1;return a[s](i[s](u))}}function _i(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ao(){var e=mm,t=mm,r=dn,n,i,a,o=Re,u,s,c;function f(){var d=Math.min(e.length,t.length);return o!==Re&&(o=DT(e[0],e[d-1])),u=d>2?LT:qT,s=c=null,l}function l(d){return d==null||isNaN(d=+d)?a:(s||(s=u(e.map(n),t,r)))(n(o(d)))}return l.invert=function(d){return o(i((c||(c=u(t,e.map(n),ua)))(d)
vendor: 8,376 bytes, line 12
12))},l.domain=function(d){return arguments.length?(e=Array.from(d,sa),f()):e.slice()},l.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},l.rangeRound=function(d){return t=Array.from(d),r=Id,f()},l.clamp=function(d){return arguments.length?(o=d?!0:Re,f()):o!==Re},l.interpolate=function(d){return arguments.length?(r=d,f()):r},l.unknown=function(d){return arguments.length?(a=d,l):a},function(d,p){return n=d,i=p,f()}}function kd(){return ao()(Re,Re)}function BT(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ca(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 qr(e){return e=ca(Math.abs(e)),e?e[1]:NaN}function FT(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 zT(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var WT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Vn(e){if(!(t=WT.exec(e)))throw new Error("invalid format: "+e);var t;return new Rd({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]})}Vn.prototype=Rd.prototype;function Rd(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+""}Rd.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 la;function HT(e,t){var r=ca(e,t);if(!r)return la=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(la=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")+ca(e,Math.max(0,t+a-1))[0]}function gm(e,t){var r=ca(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 bm={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:BT,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)=>gm(e*100,t),r:gm,s:HT,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function xm(e){return e}var wm=Array.prototype.map,Om=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function KT(e){var t=e.grouping===void 0||e.thousands===void 0?xm:FT(wm.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?xm:zT(wm.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(l,d){l=Vn(l);var p=l.fill,y=l.align,v=l.sign,h=l.symbol,g=l.zero,x=l.width,w=l.comma,O=l.precision,m=l.trim,b=l.type;b==="n"?(w=!0,b="g"):bm[b]||(O===void 0&&(O=12),m=!0,b="g"),(g||p==="0"&&y==="=")&&(g=!0,p="0",y="=");var _=(d&&d.prefix!==void 0?d.prefix:"")+(h==="$"?r:h==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),A=(h==="$"?n:/[%p]/.test(b)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),P=bm[b],j=/[defgprs%]/.test(b);O=O===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function E(T){var M=_,C=A,$,I,D;if(b==="c")C=P(T)+C,T="";else{T=+T;var B=T<0||1/T<0;if(T=isNaN(T)?s:P(Math.abs(T),O),m&&(T=UT(T)),B&&+T==0&&v!=="+"&&(B=!1),M=(B?v==="("?v:u:v==="-"||v==="("?"":v)+M,C=(b==="s"&&!isNaN(T)&&la!==void 0?Om[8+la/3]:"")+C+(B&&v==="("?")":""),j){for($=-1,I=T.length;++$<I;)if(D=T.charCodeAt($),48>D||D>57){C=(D===46?i+T.slice($+1):T.slice($))+C,T=T.slice(0,$);break}}}w&&!g&&(T=t(T,1/0));var F=M.length+T.length+C.length,H=F<x?new Array(x-F+1).join(p):"";switch(w&&g&&(T=t(H+T,H.length?x-C.length:1/0),H=""),y){case"<":T=M+T+C+H;break;case"=":T=M+H+T+C;break;case"^":T=H.slice(0,F=H.length>>1)+M+T+C+H.slice(F);break;default:T=H+M+T+C;break}return a(T)}return E.toString=function(){return l+""},E}function f(l,d){var p=Math.max(-8,Math.min(8,Math.floor(qr(d)/3)))*3,y=Math.pow(10,-p),v=c((l=Vn(l),l.type="f",l),{suffix:Om[8+p/3]});return function(h){return v(y*h)}}return{format:c,formatPrefix:f}}var Ri,Nd,Ax;GT({thousands:",",grouping:[3],currency:["$",""]});function GT(e){return Ri=KT(e),Nd=Ri.format,Ax=Ri.formatPrefix,Ri}function VT(e){return Math.max(0,-qr(Math.abs(e)))}function XT(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(qr(t)/3)))*3-qr(Math.abs(e)))}function YT(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,qr(t)-qr(e))+1}function Sx(e,t,r,n){var i=uf(e,t,r),a;switch(n=Vn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=XT(i,o))&&(n.precision=a),Ax(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=YT(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=VT(i))&&(n.precision=a-(n.type==="%")*2);break}}return Nd(n)}function Ft(e){var t=e.domain;return e.ticks=function(r){var n=t();return af(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Sx(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=of(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 fa(){var e=kd();return e.copy=function(){return _i(e,fa())},rt.apply(e,arguments),Ft(e)}function Px(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,sa),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Px(e).unknown(t)},e=arguments.length?Array.from(e,sa):[0,1],Ft(r)}function Tx(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 _m(e){return Math.log(e)}function Am(e){return Math.exp(e)}function ZT(e){return-Math.log(-e)}function JT(e){return-Math.exp(-e)}function QT(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ej(e){return e===10?QT:e===Math.E?Math.exp:t=>Math.pow(e,t)}function tj(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 Sm(e){return(t,r)=>-e(-t,r)}function Dd(e){const t=e(_m,Am),r=t.domain;let n=10,i,a;function o(){return i=tj(n),a=ej(n),r()[0]<0?(i=Sm(i),a=Sm(a),e(ZT,JT)):e(_m,Am),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const s=r();let c=s[0],f=s[s.length-1];const l=f<c;l&&([c,f]=[f,c]);let d=i(c),p=i(f),y,v;const h=u==null?10:+u;let g=[];if(!(n%1)&&p-d<h){if(d=Math.floor(d),p=Math.ceil(p),c>0){for(;d<=p;++d)for(y=1;y<n;++y)if(v=d<0?y/a(-d):y*a(d),!(v<c)){if(v>f)break;g.push(v)}}else for(;d<=p;++d)for(y=n-1;y>=1;--y)if(v=d>0?y/a(-d):y*a(d),!(v<c)){if(v>f)break;g.push(v)}g.length*2<h&&(g=af(c,f,h))}else g=af(d,p,Math.min(p-d,h)).map(a);return l?g.reverse():g},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=Vn(s)).precision==null&&(s.trim=!0),s=Nd(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(Tx(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}
vendor: 4,113 bytes, line 12
12function jx(){const e=Dd(ao()).domain([1,10]);return e.copy=()=>_i(e,jx()).base(e.base()),rt.apply(e,arguments),e}function Pm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Tm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function qd(e){var t=1,r=e(Pm(t),Tm(t));return r.constant=function(n){return arguments.length?e(Pm(t=+n),Tm(t)):t},Ft(r)}function Ex(){var e=qd(ao());return e.copy=function(){return _i(e,Ex()).constant(e.constant())},rt.apply(e,arguments)}function jm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function rj(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function nj(e){return e<0?-e*e:e*e}function Ld(e){var t=e(Re,Re),r=1;function n(){return r===1?e(Re,Re):r===.5?e(rj,nj):e(jm(r),jm(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Ft(t)}function Bd(){var e=Ld(ao());return e.copy=function(){return _i(e,Bd()).exponent(e.exponent())},rt.apply(e,arguments),e}function ij(){return Bd.apply(null,arguments).exponent(.5)}function Em(e){return Math.sign(e)*e*e}function aj(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Mx(){var e=kd(),t=[0,1],r=!1,n;function i(a){var o=aj(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Em(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,sa)).map(Em)),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 Mx(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},rt.apply(i,arguments),Ft(i)}function $x(){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]=lT(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[wi(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(Lt),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 $x().domain(e).range(t).unknown(n)},rt.apply(a,arguments)}function Cx(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[wi(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 Cx().domain([e,t]).range(i).unknown(a)},rt.apply(Ft(o),arguments)}function Ix(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[wi(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 Ix().domain(e).range(t).unknown(r)},rt.apply(i,arguments)}const zc=new Date,Wc=new Date;function Pe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;
vendor: 6,889 bytes, line 12
12do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>Pe(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)=>(zc.setTime(+a),Wc.setTime(+o),e(zc),e(Wc),Math.floor(r(zc,Wc))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const da=Pe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);da.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):da);da.range;const gt=1e3,et=gt*60,bt=et*60,At=bt*24,Fd=At*7,Mm=At*30,Uc=At*365,rr=Pe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*gt)},(e,t)=>(t-e)/gt,e=>e.getUTCSeconds());rr.range;const zd=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*gt)},(e,t)=>{e.setTime(+e+t*et)},(e,t)=>(t-e)/et,e=>e.getMinutes());zd.range;const Wd=Pe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*et)},(e,t)=>(t-e)/et,e=>e.getUTCMinutes());Wd.range;const Ud=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*gt-e.getMinutes()*et)},(e,t)=>{e.setTime(+e+t*bt)},(e,t)=>(t-e)/bt,e=>e.getHours());Ud.range;const Hd=Pe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*bt)},(e,t)=>(t-e)/bt,e=>e.getUTCHours());Hd.range;const Ai=Pe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*et)/At,e=>e.getDate()-1);Ai.range;const oo=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/At,e=>e.getUTCDate()-1);oo.range;const kx=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/At,e=>Math.floor(e/At));kx.range;function yr(e){return Pe(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())*et)/Fd)}const uo=yr(0),ha=yr(1),oj=yr(2),uj=yr(3),Lr=yr(4),sj=yr(5),cj=yr(6);uo.range;ha.range;oj.range;uj.range;Lr.range;sj.range;cj.range;function mr(e){return Pe(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)/Fd)}const so=mr(0),pa=mr(1),lj=mr(2),fj=mr(3),Br=mr(4),dj=mr(5),hj=mr(6);so.range;pa.range;lj.range;fj.range;Br.range;dj.range;hj.range;const Kd=Pe(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());Kd.range;const Gd=Pe(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());Gd.range;const St=Pe(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());St.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(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)});St.range;const Pt=Pe(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());Pt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(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)});Pt.range;function Rx(e,t,r,n,i,a){const o=[[rr,1,gt],[rr,5,5*gt],[rr,15,15*gt],[rr,30,30*gt],[a,1,et],[a,5,5*et],[a,15,15*et],[a,30,30*et],[i,1,bt],[i,3,3*bt],[i,6,6*bt],[i,12,12*bt],[n,1,At],[n,2,2*At],[r,1,Fd],[t,1,Mm],[t,3,3*Mm],[e,1,Uc]];function u(c,f,l){const d=f<c;d&&([c,f]=[f,c]);const p=l&&typeof l.range=="function"?l:s(c,f,l),y=p?p.range(c,+f+1):[];return d?y.reverse():y}function s(c,f,l){const d=Math.abs(f-c)/l,p=Ed(([,,h])=>h).right(o,d);if(p===o.length)return e.every(uf(c/Uc,f/Uc,l));if(p===0)return da.every(Math.max(uf(c,f,l),1));const[y,v]=o[d/o[p-1][2]<o[p][2]/d?p-1:p];return y.every(v)}return[u,s]}const[pj,vj]=Rx(Pt,Gd,so,kx,Hd,Wd),[yj,mj]=Rx(St,Kd,uo,Ai,Ud,zd);function Hc(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 Kc(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 gn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function gj(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=bn(i),f=xn(i),l=bn(a),d=xn(a),p=bn(o),y=xn(o),v=bn(u),h=xn(u),g=bn(s),x=xn(s),w={a:D,A:B,b:F,B:H,c:null,d:Nm,e:Nm,f:Fj,g:Zj,G:Qj,H:qj,I:Lj,j:Bj,L:Nx,m:zj,M:Wj,p:V,q:W,Q:Lm,s:Bm,S:Uj,u:Hj,U:Kj,V:Gj,w:Vj,W:Xj,x:null,X:null,y:Yj,Y:Jj,Z:eE,"%":qm},O={a:X,A:de,b:me,B:Be,c:null,d:Dm,e:Dm,f:iE,g:pE,G:yE,H:tE,I:rE,j:nE,L:qx,m:aE,M:oE,p:Ut,q:Ne,Q:Lm,s:Bm,S:uE,u:sE,U:cE,V:lE,w:fE,W:dE,x:null,X:null,y:hE,Y:vE,Z:mE,"%":qm},m={a:j,A:E,b:T,B:M,c:C,d:km,e:km,f:kj,g:Im,G:Cm,H:Rm,I:Rm,j:Mj,L:Ij,m:Ej,M:$j,p:P,q:jj,Q:Nj,s:Dj,S:Cj,u:_j,U:Aj,V:Sj,w:Oj,W:Pj,x:$,X:I,y:Im,Y:Cm,Z:Tj,"%":Rj};w.x=b(r,w),w.X=b(n,w),w.c=b(t,w),O.x=b(r,O),O.X=b(n,O),O.c=b(t,O);function b(z,J){return function(ee){var q=[],ve=-1,te=0,xe=z.length,we,De,Ct;for(ee instanceof Date||(ee=new Date(+ee));++ve<xe;)z.charCodeAt(ve)===37&&(q.push(z.slice(te,ve)),(De=$m[we=z.charAt(++ve)])!=null?we=z.charAt(++ve):De=we==="e"?" ":"0",(Ct=J[we])&&(we=Ct(ee,De)),q.push(we),te=ve+1);return q.push(z.slice(te,ve)),q.join("")}}function _(z,J){return function(ee){var q=gn(1900,void 0,1),ve=A(q,z,ee+="",0),te,xe;if(ve!=ee.length)return null;if("Q"in q)return new Date(q.Q);if("s"in q)return new Date(q.s*1e3+("L"in q?q.L:0));if(J&&!("Z"in q)&&(q.Z=0),"p"in q&&(q.H=q.H%12+q.p*12),q.m===void 0&&(q.m="q"in q?q.q:0),"V"in q){if(q.V<1||q.V>53)return null;"w"in q||(q.w=1),"Z"in q?(te=Kc(gn(q.y,0,1)),xe=te.getUTCDay(),te=xe>4||xe===0?pa.ceil(te):pa(te),te=oo.offset(te,(q.V-1)*7),q.y=te.getUTCFullYear(),q.m=te.getUTCMonth(),q.d=te.getUTCDate()+(q.w+6)%7):(te=Hc(gn(q.y,0,1)),xe=te.getDay(),te=xe>4||xe===0?ha.ceil(te):ha(te),te=Ai.offset(te,(q.V-1)*7),q.y=te.getFullYear(),q.m=te.getMonth(),q.d=te.getDate()+(q.w+6)%7)}else("W"in q||"U"in q)&&("w"in q||(q.w="u"in q?q.u%7:"W"in q?1:0),xe="Z"in q?Kc(gn(q.y,0,1)).getUTCDay():Hc(gn(q.y,0,1)).getDay(),q.m=0,q.d="W"in q?(q.w+6)%7+q.W*7-(xe+5)%7:q.w+q.U*7-(xe+6)%7);return"Z"in q?(q.H+=q.Z/100|0,q.M+=q.Z%100,Kc(q)):Hc(q)}}function A(z,J,ee,q){for(var ve=0,te=J.length,xe=ee.length,we,De;ve<te;){if(q>=xe)return-1;if(we=J.charCodeAt(ve++),we===37){if(we=J.charAt(ve++),De=m[we in $m?J.charAt(ve++):we],!De||(q=De(z,ee,q))<0)return-1}else if(we!=ee.charCodeAt(q++))return-1}return q}function P(z,J,ee){var q=c.exec(J.slice(ee));
vendor: 6,034 bytes, line 12
12return q?(z.p=f.get(q[0].toLowerCase()),ee+q[0].length):-1}function j(z,J,ee){var q=p.exec(J.slice(ee));return q?(z.w=y.get(q[0].toLowerCase()),ee+q[0].length):-1}function E(z,J,ee){var q=l.exec(J.slice(ee));return q?(z.w=d.get(q[0].toLowerCase()),ee+q[0].length):-1}function T(z,J,ee){var q=g.exec(J.slice(ee));return q?(z.m=x.get(q[0].toLowerCase()),ee+q[0].length):-1}function M(z,J,ee){var q=v.exec(J.slice(ee));return q?(z.m=h.get(q[0].toLowerCase()),ee+q[0].length):-1}function C(z,J,ee){return A(z,t,J,ee)}function $(z,J,ee){return A(z,r,J,ee)}function I(z,J,ee){return A(z,n,J,ee)}function D(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 V(z){return i[+(z.getHours()>=12)]}function W(z){return 1+~~(z.getMonth()/3)}function X(z){return o[z.getUTCDay()]}function de(z){return a[z.getUTCDay()]}function me(z){return s[z.getUTCMonth()]}function Be(z){return u[z.getUTCMonth()]}function Ut(z){return i[+(z.getUTCHours()>=12)]}function Ne(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var J=b(z+="",w);return J.toString=function(){return z},J},parse:function(z){var J=_(z+="",!1);return J.toString=function(){return z},J},utcFormat:function(z){var J=b(z+="",O);return J.toString=function(){return z},J},utcParse:function(z){var J=_(z+="",!0);return J.toString=function(){return z},J}}}var $m={"-":"",_:" ",0:"0"},Ee=/^\s*\d+/,bj=/^%/,xj=/[\\^$*+?|[\]().{}]/g;function ne(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 wj(e){return e.replace(xj,"\\$&")}function bn(e){return new RegExp("^(?:"+e.map(wj).join("|")+")","i")}function xn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Oj(e,t,r){var n=Ee.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function _j(e,t,r){var n=Ee.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Aj(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Sj(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Pj(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Cm(e,t,r){var n=Ee.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Im(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Tj(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 jj(e,t,r){var n=Ee.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Ej(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function km(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Mj(e,t,r){var n=Ee.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=Ee.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function $j(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Cj(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Ij(e,t,r){var n=Ee.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function kj(e,t,r){var n=Ee.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Rj(e,t,r){var n=bj.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Nj(e,t,r){var n=Ee.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Dj(e,t,r){var n=Ee.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Nm(e,t){return ne(e.getDate(),t,2)}function qj(e,t){return ne(e.getHours(),t,2)}function Lj(e,t){return ne(e.getHours()%12||12,t,2)}function Bj(e,t){return ne(1+Ai.count(St(e),e),t,3)}function Nx(e,t){return ne(e.getMilliseconds(),t,3)}function Fj(e,t){return Nx(e,t)+"000"}function zj(e,t){return ne(e.getMonth()+1,t,2)}function Wj(e,t){return ne(e.getMinutes(),t,2)}function Uj(e,t){return ne(e.getSeconds(),t,2)}function Hj(e){var t=e.getDay();return t===0?7:t}function Kj(e,t){return ne(uo.count(St(e)-1,e),t,2)}function Dx(e){var t=e.getDay();return t>=4||t===0?Lr(e):Lr.ceil(e)}function Gj(e,t){return e=Dx(e),ne(Lr.count(St(e),e)+(St(e).getDay()===4),t,2)}function Vj(e){return e.getDay()}function Xj(e,t){return ne(ha.count(St(e)-1,e),t,2)}function Yj(e,t){return ne(e.getFullYear()%100,t,2)}function Zj(e,t){return e=Dx(e),ne(e.getFullYear()%100,t,2)}function Jj(e,t){return ne(e.getFullYear()%1e4,t,4)}function Qj(e,t){var r=e.getDay();return e=r>=4||r===0?Lr(e):Lr.ceil(e),ne(e.getFullYear()%1e4,t,4)}function eE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ne(t/60|0,"0",2)+ne(t%60,"0",2)}function Dm(e,t){return ne(e.getUTCDate(),t,2)}function tE(e,t){return ne(e.getUTCHours(),t,2)}function rE(e,t){return ne(e.getUTCHours()%12||12,t,2)}function nE(e,t){return ne(1+oo.count(Pt(e),e),t,3)}function qx(e,t){return ne(e.getUTCMilliseconds(),t,3)}function iE(e,t){return qx(e,t)+"000"}function aE(e,t){return ne(e.getUTCMonth()+1,t,2)}function oE(e,t){return ne(e.getUTCMinutes(),t,2)}function uE(e,t){return ne(e.getUTCSeconds(),t,2)}function sE(e){var t=e.getUTCDay();return t===0?7:t}function cE(e,t){return ne(so.count(Pt(e)-1,e),t,2)}function Lx(e){var t=e.getUTCDay();return t>=4||t===0?Br(e):Br.ceil(e)}function lE(e,t){return e=Lx(e),ne(Br.count(Pt(e),e)+(Pt(e).getUTCDay()===4),t,2)}function fE(e){return e.getUTCDay()}function dE(e,t){return ne(pa.count(Pt(e)-1,e),t,2)}function hE(e,t){return ne(e.getUTCFullYear()%100,t,2)}function pE(e,t){return e=Lx(e),ne(e.getUTCFullYear()%100,t,2)}function vE(e,t){return ne(e.getUTCFullYear()%1e4,t,4)}function yE(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Br(e):Br.ceil(e),ne(e.getUTCFullYear()%1e4,t,4)}function mE(){return"+0000"}function qm(){return"%"}function Lm(e){return+e}function Bm(e){return Math.floor(+e/1e3)}var Or,Bx,Fx;gE({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 gE(e){return Or=gj(e),Bx=Or.format,Or.parse,Fx=Or.utcFormat,Or.utcParse,Or}function bE(e){return new Date(e)}function xE(e){return e instanceof Date?+e:+new Date(+e)}function Vd(e,t,r,n,i,a,o,u,s,c){var f=kd(),l=f.invert,d=f.domain,p=c(".%L"),y=c(":%S"),v=c("%I:%M"),h=c("%I %p"),g=c("%a %d"),x=c("%b %d"),w=c("%B"),O=c("%Y");function m(b){return(s(b)<b?p:u(b)<b?y:o(b)<b?v:a(b)<b?h:n(b)<b?i(b)<b?g:x:r(b)<b?w:O)(b)}return f.invert=function(b){return new Date(l(b))},f.domain=function(b){return arguments.length?d(Array.from(b,xE)):d().map(bE)},f.ticks=function(b){var _=d();return e(_[0],_[_.length-1],b??10)},f.tickFormat=function(b,_){return _==null?m:c(_)},f.nice=function(b){var _=d();return(!b||typeof b.range!="function")&&(b=t(_[0],_[_.length-1],b??10)),b?d(Tx(_,b)):f},f.copy=function(){return _i(f,Vd(e,t,r,n,i,a,o,u,s,c))},f}function wE(){return rt.apply(Vd(yj,mj,St,Kd,uo,Ai,Ud,zd,rr,Bx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function OE(){return rt.apply(Vd(pj,vj,Pt,Gd,so,oo,Hd,Wd,rr,Fx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function co(){var e=0,t=1,r,n,i,a,o=Re,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(u=!!l,c):u},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(d){var p,y;return arguments.length?([p,y]=d,o=l(p,y),c):[o(0),o(1)]}}return c.range=f(dn),c.rangeRound=f(Id),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 zt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function zx(){var e=Ft(co()(Re));return e.copy=function(){return zt(e,zx())},Mt.apply(e,arguments)}function Wx(){var e=Dd(co()).domain([1,10]);return e.copy=function(){return zt(e,Wx()).base(e.base())},Mt.apply(e,arguments)}function Ux(){var e=qd(co());return e.copy=function(){return zt(e,Ux()).constant(e.constant())},Mt.apply(e,arguments)}function Xd(){var e=Ld(co());return e.copy=function(){return zt(e,Xd()).exponent(e.exponent())},Mt.apply(e,arguments)}function _E(){return Xd.apply(null,arguments).exponent(.5)}function Hx(){var e=[],t=Re;function r(n){if(n!=null&&!isNaN(n=+n))return t((wi(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(Lt),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)=>cT(e,a/n))},r.copy=function(){return Hx(t).domain(e)},Mt.apply(r,arguments)}function lo(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=Re,f,l=!1,d;function p(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:s),c(l?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(v){return arguments.length?(l=!!v,p):l},p.interpolator=function(v){return arguments.length?(c=v,p):c};function y(v){return function(h){var g,x,w;return arguments.length?([g,x,w]=h,c=RT(v,[g,x,w]),p):[c(0),c(.5),c(1)]}}return p.range=y(dn),p.rangeRound=y(Id),p.unknown=function(v){return arguments.length?(d=v,p):d},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function Kx(){var e=Ft(lo()(Re));return e.copy=function(){return zt(e,Kx())},Mt.apply(e,arguments)}function Gx(){var e=Dd(lo()).domain([.1,1,10]);return e.copy=function(){return zt(e,Gx()).base(e.base())},Mt.apply(e,arguments)}function Vx(){var e=qd(lo());return e.copy=function(){return zt(e,Vx()).constant(e.constant())},Mt.apply(e,arguments)}function Yd(){var e=Ld(lo());return e.copy=function(){return zt(e,Yd()).exponent(e.exponent())},Mt.apply(e,arguments)}function AE(){return Yd.apply(null,arguments).exponent(.5)}const Fm=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Un,scaleDiverging:Kx,scaleDivergingLog:Gx,scaleDivergingPow:Yd,scaleDivergingSqrt:AE,scaleDivergingSymlog:Vx,scaleIdentity:Px,scaleImplicit:sf,scaleLinear:fa,scaleLog:jx,scaleOrdinal:Md,scalePoint:$n,scalePow:Bd,scaleQuantile:$x,scaleQuantize:Cx,scaleRadial:Mx,scaleSequential:zx,scaleSequentialLog:Wx,scaleSequentialPow:Xd,scaleSequentialQuantile:Hx,scaleSequentialSqrt:_E,scaleSequentialSymlog:Ux,scaleSqrt:ij,scaleSymlog:Ex,scaleThreshold:Ix,scaleTime:wE,scaleUtc:OE,tickFormat:Sx},Symbol.toStringTag,{value:"Module"}));var Gc,zm;function fo(){if(zm)return Gc;zm=1;var e=sn();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 Gc=t,Gc}var Vc,Wm;
vendor: 69,472 bytes, lines 12-39
12function Xx(){if(Wm)return Vc;Wm=1;function e(t,r){return t>r}return Vc=e,Vc}var Xc,Um;function SE(){if(Um)return Xc;Um=1;var e=fo(),t=Xx(),r=fn();function n(i){return i&&i.length?e(i,r,t):void 0}return Xc=n,Xc}var PE=SE();const ho=ue(PE);var Yc,Hm;function Yx(){if(Hm)return Yc;Hm=1;function e(t,r){return t<r}return Yc=e,Yc}var Zc,Km;function TE(){if(Km)return Zc;Km=1;var e=fo(),t=Yx(),r=fn();function n(i){return i&&i.length?e(i,r,t):void 0}return Zc=n,Zc}var jE=TE();const po=ue(jE);var Jc,Gm;function EE(){if(Gm)return Jc;Gm=1;var e=dd(),t=vt(),r=ax(),n=Le();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return Jc=i,Jc}var Qc,Vm;function ME(){if(Vm)return Qc;Vm=1;var e=nx(),t=EE();function r(n,i){return e(t(n,i),1)}return Qc=r,Qc}var $E=ME();const CE=ue($E);var el,Xm;function IE(){if(Xm)return el;Xm=1;var e=Sd();function t(r,n){return e(r,n)}return el=t,el}var kE=IE();const Si=ue(kE);var hn=1e9,RE={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Jd,pe=!0,tt="[DecimalError] ",ar=tt+"Invalid argument: ",Zd=tt+"Exponent out of range: ",pn=Math.floor,Zt=Math.pow,NE=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,He,Te=1e7,he=7,Zx=9007199254740991,va=pn(Zx/he),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)*he;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 Ot(this,new this.constructor(e))};U.dividedToIntegerBy=U.idiv=function(e){var t=this,r=t.constructor;return se(Ot(t,new r(e),0,1),r.precision)};U.equals=U.eq=function(e){return!this.cmp(e)};U.exponent=function(){return be(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(He))throw Error(tt+"NaN");if(r.s<1)throw Error(tt+(r.s?"NaN":"-Infinity"));return r.eq(He)?new n(0):(pe=!1,t=Ot(Xn(r,a),Xn(e,a),a),pe=!0,se(t,i))};U.minus=U.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ew(t,e):Jx(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(tt+"NaN");return r.s?(pe=!1,t=Ot(r,e,0,1).times(e),pe=!0,r.minus(t)):se(new n(r),i)};U.naturalExponential=U.exp=function(){return Qx(this)};U.naturalLogarithm=U.ln=function(){return Xn(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?Jx(t,e):ew(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(ar+e);if(t=be(i)+1,n=i.d.length-1,r=n*he+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(tt+"NaN")}for(e=be(u),pe=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=ct(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=pn((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(Ot(u,a,o+2)).times(.5),ct(a.d).slice(0,o)===(t=ct(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(se(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return pe=!0,se(n,r)};U.times=U.mul=function(e){var t,r,n,i,a,o,u,s,c,f=this,l=f.constructor,d=f.d,p=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,s=d.length,c=p.length,s<c&&(a=d,d=p,p=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+p[n]*d[i-n-1]+t,a[i--]=u%Te|0,t=u/Te|0;a[i]=(a[i]+t)%Te|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,pe?se(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:(dt(e,0,hn),t===void 0?t=n.rounding:dt(t,0,8),se(r,e+be(r)+1,t))};U.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=cr(n,!0):(dt(e,0,hn),t===void 0?t=i.rounding:dt(t,0,8),n=se(new i(n),e+1,t),r=cr(n,!0,e+1)),r};U.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?cr(i):(dt(e,0,hn),t===void 0?t=a.rounding:dt(t,0,8),n=se(new a(i),e+be(i)+1,t),r=cr(n.abs(),!1,e+be(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};U.toInteger=U.toint=function(){var e=this,t=e.constructor;return se(new t(e),be(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(He);if(u=new s(u),!u.s){if(e.s<1)throw Error(tt+"Infinity");return u}if(u.eq(He))return u;if(n=s.precision,e.eq(He))return se(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=Zx){for(i=new s(He),t=Math.ceil(n/he+4),pe=!1;r%2&&(i=i.times(u),Zm(i.d,t)),r=pn(r/2),r!==0;)u=u.times(u),Zm(u.d,t);return pe=!0,e.s<0?new s(He).div(i):se(i,n)}}else if(a<0)throw Error(tt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,pe=!1,i=e.times(Xn(u,n+c)),pe=!0,i=Qx(i),i.s=a,i};U.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=be(i),n=cr(i,r<=a.toExpNeg||r>=a.toExpPos)):(dt(e,1,hn),t===void 0?t=a.rounding:dt(t,0,8),i=se(new a(i),e,t),r=be(i),n=cr(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):(dt(e,1,hn),t===void 0?t=n.rounding:dt(t,0,8)),se(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=be(e),r=e.constructor;return cr(e,t<=r.toExpNeg||t>=r.toExpPos)};function Jx(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)),pe?se(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/he),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)/Te|0,s[a]%=Te;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,pe?se(t,l):t}function dt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(ar+e)}function ct(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=he-n.length,r&&(a+=Rt(r)),a+=n;o=e[t],n=o+"",r=he-n.length,r&&(a+=Rt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Ot=(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%Te|0,o=a/Te|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*Te+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,f,l,d,p,y,v,h,g,x,w,O,m,b,_,A,P=n.constructor,j=n.s==i.s?1:-1,E=n.d,T=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(tt+"Division by zero");for(s=n.e-i.e,_=T.length,m=E.length,p=new P(j),y=p.d=[],c=0;T[c]==(E[c]||0);)++c;if(T[c]>(E[c]||0)&&--s,a==null?x=a=P.precision:o?x=a+(be(n)-be(i))+1:x=a,x<0)return new P(0);if(x=x/he+2|0,c=0,_==1)for(f=0,T=T[0],x++;(c<m||f)&&x--;c++)w=f*Te+(E[c]||0),y[c]=w/T|0,f=w%T|0;else{for(f=Te/(T[0]+1)|0,f>1&&(T=e(T,f),E=e(E,f),_=T.length,m=E.length),O=_,v=E.slice(0,_),h=v.length;h<_;)v[h++]=0;A=T.slice(),A.unshift(0),b=T[0],T[1]>=Te/2&&++b;do f=0,u=t(T,v,_,h),u<0?(g=v[0],_!=h&&(g=g*Te+(v[1]||0)),f=g/b|0,f>1?(f>=Te&&(f=Te-1),l=e(T,f),d=l.length,h=v.length,u=t(l,v,d,h),u==1&&(f--,r(l,_<d?A:T,d))):(f==0&&(u=f=1),l=T.slice()),d=l.length,d<h&&l.unshift(0),r(v,l,h),u==-1&&(h=v.length,u=t(T,v,_,h),u<1&&(f++,r(v,_<h?A:T,h))),h=v.length):u===0&&(f++,v=[0]),y[c++]=f,u&&v[0]?v[h++]=E[O]||0:(v=[E[O]],h=1);while((O++<m||v[0]!==void 0)&&x--)}return y[0]||y.shift(),p.e=s,se(p,o?a+be(p)+1:a)}})();function Qx(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(be(e)>16)throw Error(Zd+be(e));if(!e.s)return new f(He);for(pe=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Zt(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(He),f.precision=u;;){if(i=se(i.times(e),u),r=r.times(++s),o=a.plus(Ot(i,r,u)),ct(o.d).slice(0,u)===ct(a.d).slice(0,u)){for(;c--;)a=se(a.times(a),u);return f.precision=l,t==null?(pe=!0,se(a,l)):a}a=o}}function be(e){for(var t=e.e*he,r=e.d[0];r>=10;r/=10)t++;return t}function tl(e,t,r){if(t>e.LN10.sd())throw pe=!0,r&&(e.precision=r),Error(tt+"LN10 precision limit exceeded");return se(new e(e.LN10),t)}function Rt(e){for(var t="";e--;)t+="0";return t}function Xn(e,t){var r,n,i,a,o,u,s,c,f,l=1,d=10,p=e,y=p.d,v=p.constructor,h=v.precision;if(p.s<1)throw Error(tt+(p.s?"NaN":"-Infinity"));if(p.eq(He))return new v(0);if(t==null?(pe=!1,c=h):c=t,p.eq(10))return t==null&&(pe=!0),tl(v,c);if(c+=d,v.precision=c,r=ct(y),n=r.charAt(0),a=be(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=ct(p.d),n=r.charAt(0),l++;a=be(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return s=tl(v,c+2,h).times(a+""),p=Xn(new v(n+"."+r.slice(1)),c-d).plus(s),v.precision=h,t==null?(pe=!0,se(p,h)):p;for(u=o=p=Ot(p.minus(He),p.plus(He),c),f=se(p.times(p),c),i=3;;){if(o=se(o.times(f),c),s=u.plus(Ot(o,new v(i),c)),ct(s.d).slice(0,c)===ct(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(tl(v,c+2,h).times(a+""))),u=Ot(u,new v(l),c),v.precision=h,t==null?(pe=!0,se(u,h)):u;u=s,i+=2}}function Ym(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=pn(r/he),e.d=[],n=(r+1)%he,r<0&&(n+=he),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=he;n<i;)e.d.push(+t.slice(n,n+=he));t=t.slice(n),n=he-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),pe&&(e.e>va||e.e<-va))throw Error(Zd+r)}else e.s=0,e.e=0,e.d=[0];return e}function se(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+=he,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/he),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=he,i=n-he+o}if(r!==void 0&&(a=Zt(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/Zt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=be(e),l.length=1,t=t-a-1,l[0]=Zt(10,(he-t%he)%he),e.e=pn(-t/he)||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=Zt(10,he-n),l[f]=i>0?(c/Zt(10,o-i)%Zt(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==Te&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Te)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(pe&&(e.e>va||e.e<-va))throw Error(Zd+be(e));return e}function ew(e,t){var r,n,i,a,o,u,s,c,f,l,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),pe?se(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/he),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]=Te-1;--s[a],s[i]+=Te}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,pe?se(t,p):t):new d(0)}function cr(e,t,r){var n,i=be(e),a=ct(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Rt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Rt(-i-1)+a,r&&(n=r-o)>0&&(a+=Rt(n))):i>=o?(a+=Rt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Rt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Rt(n))),e.s<0?"-"+a:a}function Zm(e,t){if(e.length>t)return e.length=t,!0}function tw(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(ar+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 Ym(o,a.toString())}else if(typeof a!="string")throw Error(ar+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,NE.test(a))Ym(o,a);else throw Error(ar+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=tw,i.config=i.set=DE,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 DE(e){if(!e||typeof e!="object")throw Error(tt+"Object expected");var t,r,n,i=["precision",1,hn,"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(pn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(ar+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ar+r+": "+n);return this}var Jd=tw(RE);He=new Jd(1);const oe=Jd;function qE(e){return zE(e)||FE(e)||BE(e)||LE()}function LE(){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 BE(e,t){if(e){if(typeof e=="string")return df(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 df(e,t)}}function FE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function zE(e){if(Array.isArray(e))return df(e)}function df(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 WE=function(t){return t},rw={},nw=function(t){return t===rw},Jm=function(t){return function r(){return arguments.length===0||arguments.length===1&&nw(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},UE=function e(t,r){return t===1?r:Jm(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!==rw}).length;return o>=t?r.apply(void 0,i):e(t-o,Jm(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 nw(l)?s.shift():l});return r.apply(void 0,qE(f).concat(s))}))})},vo=function(t){return UE(t.length,t)},hf=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},HE=vo(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),KE=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return WE;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))}},pf=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},iw=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 GE(e){var t;return e===0?t=1:t=Math.floor(new oe(e).abs().log(10).toNumber())+1,t}function VE(e,t,r){for(var n=new oe(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var XE=vo(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),YE=vo(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),ZE=vo(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const yo={rangeStep:VE,getDigitCount:GE,interpolateNumber:XE,uninterpolateNumber:YE,uninterpolateTruncation:ZE};function vf(e){return eM(e)||QE(e)||aw(e)||JE()}function JE(){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 QE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function eM(e){if(Array.isArray(e))return yf(e)}function Yn(e,t){return nM(e)||rM(e,t)||aw(e,t)||tM()}function tM(){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 aw(e,t){if(e){if(typeof e=="string")return yf(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 yf(e,t)}}function yf(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 rM(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 nM(e){if(Array.isArray(e))return e}function ow(e){var t=Yn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function uw(e,t,r){if(e.lte(0))return new oe(0);var n=yo.getDigitCount(e.toNumber()),i=new oe(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new oe(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new oe(Math.ceil(s))}function iM(e,t,r){var n=1,i=new oe(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new oe(10).pow(yo.getDigitCount(e)-1),i=new oe(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new oe(Math.floor(e)))}else e===0?i=new oe(Math.floor((t-1)/2)):r||(i=new oe(Math.floor(e)));var o=Math.floor((t-1)/2),u=KE(HE(function(s){return i.add(new oe(s-o).mul(n)).toNumber()}),hf);return u(0,t)}function sw(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 oe(0),tickMin:new oe(0),tickMax:new oe(0)};var a=uw(new oe(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new oe(0):(o=new oe(e).add(t).div(2),o=o.sub(new oe(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new oe(t).sub(o).div(a).toNumber()),c=u+s+1;return c>r?sw(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 oe(u).mul(a)),tickMax:o.add(new oe(s).mul(a))})}function aM(e){var t=Yn(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=ow([r,n]),s=Yn(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat(vf(hf(0,i-1).map(function(){return 1/0}))):[].concat(vf(hf(0,i-1).map(function(){return-1/0})),[f]);return r>n?pf(l):l}if(c===f)return iM(c,i,a);var d=sw(c,f,o,a),p=d.step,y=d.tickMin,v=d.tickMax,h=yo.rangeStep(y,v.add(new oe(.1).mul(p)),p);return r>n?pf(h):h}function oM(e,t){var r=Yn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=ow([n,i]),u=Yn(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=uw(new oe(c).sub(s).div(f-1),a,0),d=[].concat(vf(yo.rangeStep(new oe(s),new oe(c).sub(new oe(.99).mul(l)),l)),[c]);return n>i?pf(d):d}var uM=iw(aM),sM=iw(oM),cM="Invariant failed";function lr(e,t){throw new Error(cM)}var lM=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Fr(e){"@babel/helpers - typeof";return Fr=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},Fr(e)}function ya(){return ya=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},ya.apply(this,arguments)}function fM(e,t){return vM(e)||pM(e,t)||hM(e,t)||dM()}function dM(){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 hM(e,t){if(e){if(typeof e=="string")return Qm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qm(e,t)}}function Qm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pM(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 vM(e){if(Array.isArray(e))return e}function yM(e,t){if(e==null)return{};var r=mM(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 mM(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 gM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bM(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,fw(n.key),n)}}function xM(e,t,r){return t&&bM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wM(e,t,r){return t=ma(t),OM(e,cw()?Reflect.construct(t,r||[],ma(e).constructor):t.apply(e,r))}function OM(e,t){if(t&&(Fr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _M(e)}function _M(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cw=function(){return!!e})()}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ma(e)}function AM(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&&mf(e,t)}function mf(e,t){return mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mf(e,t)}function lw(e,t,r){return t=fw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fw(e){var t=SM(e,"string");return Fr(t)=="symbol"?t:t+""}function SM(e,t){if(Fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pi=(function(e){function t(){return gM(this,t),wM(this,t,arguments)}return AM(t,e),xM(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,d=yM(n,lM),p=K(d,!1);this.props.direction==="x"&&f.type!=="number"&&lr();var y=s.map(function(v){var h=c(v,u),g=h.x,x=h.y,w=h.value,O=h.errorVal;if(!O)return null;var m=[],b,_;if(Array.isArray(O)){var A=fM(O,2);b=A[0],_=A[1]}else b=_=O;if(a==="vertical"){var P=f.scale,j=x+i,E=j+o,T=j-o,M=P(w-b),C=P(w+_);m.push({x1:C,y1:E,x2:C,y2:T}),m.push({x1:M,y1:j,x2:C,y2:j}),m.push({x1:M,y1:E,x2:M,y2:T})}else if(a==="horizontal"){var $=l.scale,I=g+i,D=I-o,B=I+o,F=$(w-b),H=$(w+_);m.push({x1:D,y1:H,x2:B,y2:H}),m.push({x1:I,y1:F,x2:I,y2:H}),m.push({x1:D,y1:F,x2:B,y2:F})}return S.createElement(re,ya({className:"recharts-errorBar",key:"bar-".concat(m.map(function(V){return"".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))},p),m.map(function(V){return S.createElement("line",ya({},V,{key:"line-".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))}))});return S.createElement(re,{className:"recharts-errorBars"},y)}}])})(S.Component);lw(Pi,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});lw(Pi,"displayName","ErrorBar");function Zn(e){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(e)}function eg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eg(Object(r),!0).forEach(function(n){PM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PM(e,t,r){return t=TM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TM(e){var t=jM(e,"string");return Zn(t)=="symbol"?t:t+""}function jM(e,t){if(Zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dw=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=We(r,qt);if(!o)return null;var u=qt.defaultProps,s=u!==void 0?Gt(Gt({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(f,l){var d=l.item,p=l.props,y=p.sectors||p.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):c=(n||[]).map(function(f){var l=f.item,d=l.type.defaultProps,p=d!==void 0?Gt(Gt({},d),l.props):{},y=p.dataKey,v=p.name,h=p.legendType,g=p.hide;return{inactive:g,dataKey:y,type:s.iconType||h||"square",color:Qd(l),value:v||y,payload:p}}),Gt(Gt(Gt({},s),qt.getWithHeight(o,i)),{},{payload:c,item:o})};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 tg(e){return CM(e)||$M(e)||MM(e)||EM()}function EM(){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 MM(e,t){if(e){if(typeof e=="string")return gf(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 gf(e,t)}}function $M(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CM(e){if(Array.isArray(e))return gf(e)}function gf(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 rg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rg(Object(r),!0).forEach(function(n){Cr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cr(e,t,r){return t=IM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IM(e){var t=kM(e,"string");return Jn(t)=="symbol"?t:t+""}function kM(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)}function Ae(e,t,r){return Z(e)||Z(t)?r:Se(t)?Ke(e,t,r):Y(t)?t(e):r}function Cn(e,t,r,n){var i=CE(e,function(u){return Ae(u,t)});if(r==="number"){var a=i.filter(function(u){return L(u)||parseFloat(u)});return a.length?[po(a),ho(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Z(u)}):i;return o.map(function(u){return Se(u)||u instanceof Date?u:""})}var RM=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,c=0;c<u;c++){var f=c>0?i[c-1].coordinate:i[u-1].coordinate,l=i[c].coordinate,d=c>=u-1?i[0].coordinate:i[c+1].coordinate,p=void 0;if(Ie(l-f)!==Ie(d-l)){var y=[];if(Ie(d-l)===Ie(s[1]-s[0])){p=d;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 h=d+s[1]-s[0];y[0]=Math.min(l,(h+l)/2),y[1]=Math.max(l,(h+l)/2)}var g=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){o=i[c].index;break}}else{var x=Math.min(f,d),w=Math.max(f,d);if(t>(x+l)/2&&t<=(w+l)/2){o=i[c].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Qd=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,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},NM=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),s=0,c=u.length;s<c;s++)for(var f=a[u[s]].stackGroups,l=Object.keys(f),d=0,p=l.length;d<p;d++){var y=f[l[d]],v=y.items,h=y.cateAxisId,g=v.filter(function(_){return wt(_.type).indexOf("Bar")>=0});if(g&&g.length){var x=g[0].type.defaultProps,w=x!==void 0?ye(ye({},x),g[0].props):g[0].props,O=w.barSize,m=w[h];o[m]||(o[m]=[]);var b=Z(O)?r:O;o[m].push({item:g[0],stackList:g.slice(1),barSize:Z(b)?void 0:ke(b,n,0)})}}return o},DM=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=ke(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/s,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(s-1)*c,y>=i&&(y-=(s-1)*c,c=0),y>=i&&p>0&&(d=!0,p*=.9,y=s*p);var v=(i-y)/2>>0,h={offset:v-c,size:0};f=o.reduce(function(O,m){var b={item:m.item,position:{offset:h.offset+h.size+c,size:d?p:m.barSize}},_=[].concat(tg(O),[b]);return h=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:h})}),_},l)}else{var g=ke(n,i,0,!0);i-2*g-(s-1)*c<=0&&(c=0);var x=(i-2*g-(s-1)*c)/s;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,b){var _=[].concat(tg(O),[{item:m.item,position:{offset:g+(x+c)*b+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:_[_.length-1].position})}),_},l)}return f},qM=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=dw({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,d=f.height,p=c.align,y=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&p!=="center"&&L(t[p]))return ye(ye({},t),{},Cr({},p,t[p]+(l||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&y!=="middle"&&L(t[y]))return ye(ye({},t),{},Cr({},y,t[y]+(d||0)))}return t},LM=function(t,r,n){return Z(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},hw=function(t,r,n,i,a){var o=r.props.children,u=Ge(o,Pi).filter(function(c){return LM(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=Ae(f,n);if(Z(l))return c;var d=Array.isArray(l)?[po(l),ho(l)]:[l,l],p=s.reduce(function(y,v){var h=Ae(f,v,0),g=d[0]-Math.abs(Array.isArray(h)?h[0]:h),x=d[1]+Math.abs(Array.isArray(h)?h[1]:h);return[Math.min(g,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},BM=function(t,r,n,i,a){var o=r.map(function(u){return hw(t,u,n,a,i)}).filter(function(u){return!Z(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},pw=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&hw(t,s,c,i)||Cn(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},[])},vw=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},yw=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},xt=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?Ie(u[0]-u[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var d=a?a.indexOf(l):l;return{coordinate:i(d)+c,value:l,offset:c}});return f.filter(function(l){return!bi(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,d){return{coordinate:i(l)+c,value:l,index:d,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+c,value:l,offset:c}}):i.domain().map(function(l,d){return{coordinate:i(l)+c,value:a?a[l]:l,index:d,offset:c}})},rl=new WeakMap,Ni=function(t,r){if(typeof r!="function")return t;rl.has(t)||rl.set(t,new WeakMap);var n=rl.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},mw=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:Un(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:fa(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:$n(),realScaleType:"point"}:a==="category"?{scale:Un(),realScaleType:"band"}:{scale:fa(),realScaleType:"linear"};if(or(i)){var s="scale".concat(Za(i));return{scale:(Fm[s]||$n)(),realScaleType:Fm[s]?s:"point"}}return Y(i)?{scale:i}:{scale:$n(),realScaleType:"point"}},ng=1e-4,gw=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])-ng,o=Math.max(i[0],i[1])+ng,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},FM=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},zM=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},WM=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=bi(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])}},UM=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=bi(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:WM,expand:C1,none:Ir,silhouette:I1,wiggle:k1,positive:UM},KM=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=HM[n],o=$1().keys(i).value(function(u,s){return+Ae(u,s,0)}).order(Gl).offset(a);return o(t)},GM=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,d){var p,y=(p=d.type)!==null&&p!==void 0&&p.defaultProps?ye(ye({},d.type.defaultProps),d.props):d.props,v=y.stackId,h=y.hide;if(h)return l;var g=y[n],x=l[g]||{hasStack:!1,stackGroups:{}};if(Se(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(d),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[ln("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return ye(ye({},l),{},Cr({},g,x))},s),f={};return Object.keys(c).reduce(function(l,d){var p=c[d];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,h){var g=p.stackGroups[h];return ye(ye({},v),{},Cr({},h,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:KM(t,g.items,a)}))},y)}return ye(ye({},l),{},Cr({},d,p))},f)},bw=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=uM(c,a,u);return t.domain([po(f),ho(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),d=sM(l,a,u);return{niceTicks:d}}return null};function ig(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&&!Z(i[t.dataKey])){var u=Ki(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=Ae(i,Z(o)?t.dataKey:o);return Z(s)?null:t.scale(s)}var ag=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=Ae(o,r.dataKey,r.domain[u]);return Z(s)?null:r.scale(s)-a/2+i},VM=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]},XM=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Se(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},YM=function(t){return t.reduce(function(r,n){return[po(n.concat([r[0]]).filter(L)),ho(n.concat([r[1]]).filter(L))]},[1/0,-1/0])},xw=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=YM(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})},og=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ug=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,bf=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(og.test(t[0])){var a=+og.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(ug.test(t[1])){var o=+ug.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},ga=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=Td(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},sg=function(t,r,n){return!t||!t.length||Si(t,Ke(n,"type.defaultProps.domain"))?r:t},ww=function(t,r){var n=t.type.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,c=n.chartType,f=n.hide;return ye(ye({},K(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Qd(t),value:Ae(r,i),type:s,payload:r,chartType:c,hide:f})};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 cg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cg(Object(r),!0).forEach(function(n){Ow(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ow(e,t,r){return t=ZM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZM(e){var t=JM(e,"string");return Qn(t)=="symbol"?t:t+""}function JM(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)}function QM(e,t){return n$(e)||r$(e,t)||t$(e,t)||e$()}function e$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t$(e,t){if(e){if(typeof e=="string")return lg(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 lg(e,t)}}function lg(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 r$(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 n$(e){if(Array.isArray(e))return e}var ba=Math.PI/180,i$=function(t){return t*180/Math.PI},fe=function(t,r,n,i){return{x:t+Math.cos(-ba*i)*n,y:r+Math.sin(-ba*i)*n}},_w=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},a$=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.startAngle,c=t.endAngle,f=ke(t.cx,o,o/2),l=ke(t.cy,u,u/2),d=_w(o,u,n),p=ke(t.innerRadius,d,0),y=ke(t.outerRadius,d,d*.8),v=Object.keys(r);return v.reduce(function(h,g){var x=r[g],w=x.domain,O=x.reversed,m;if(Z(x.range))i==="angleAxis"?m=[s,c]:i==="radiusAxis"&&(m=[p,y]),O&&(m=[m[1],m[0]]);else{m=x.range;var b=m,_=QM(b,2);s=_[0],c=_[1]}var A=mw(x,a),P=A.realScaleType,j=A.scale;j.domain(w).range(m),gw(j);var E=bw(j,mt(mt({},x),{},{realScaleType:P})),T=mt(mt(mt({},x),E),{},{range:m,radius:y,realScaleType:P,scale:j,cx:f,cy:l,innerRadius:p,outerRadius:y,startAngle:s,endAngle:c});return mt(mt({},h),{},Ow({},g,T))},{})},o$=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))},u$=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=o$({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:i$(c),angleInRadian:c}},s$=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}},c$=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},fg=function(t,r){var n=t.x,i=t.y,a=u$({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=s$(r),l=f.startAngle,d=f.endAngle,p=u,y;if(l<=d){for(;p>d;)p-=360;for(;p<l;)p+=360;y=p>=l&&p<=d}else{for(;p>l;)p-=360;for(;p<d;)p+=360;y=p>=d&&p<=l}return y?mt(mt({},r),{},{radius:o,angle:c$(p,r)}):null},Aw=function(t){return!N.isValidElement(t)&&!Y(t)&&typeof t!="boolean"?t.className:""};function ei(e){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(e)}var l$=["offset"];function f$(e){return v$(e)||p$(e)||h$(e)||d$()}function d$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
19In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h$(e,t){if(e){if(typeof e=="string")return xf(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 xf(e,t)}}function p$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function v$(e){if(Array.isArray(e))return xf(e)}function xf(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 y$(e,t){if(e==null)return{};var r=m$(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 m$(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 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 _e(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){g$(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 g$(e,t,r){return t=b$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b$(e){var t=x$(e,"string");return ei(t)=="symbol"?t:t+""}function x$(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ti(){return ti=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},ti.apply(this,arguments)}var w$=function(t){var r=t.value,n=t.formatter,i=Z(t.children)?r:t.children;return Y(n)?n(i):i},O$=function(t,r){var n=Ie(r-t),i=Math.min(Math.abs(r-t),360);return n*i},_$=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,c=s.cx,f=s.cy,l=s.innerRadius,d=s.outerRadius,p=s.startAngle,y=s.endAngle,v=s.clockWise,h=(l+d)/2,g=O$(p,y),x=g>=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=g<=0?O:!O;var m=fe(c,f,h,w),b=fe(c,f,h,w+(O?1:-1)*359),_="M".concat(m.x,",").concat(m.y,`
20    A`).concat(h,",").concat(h,",0,1,").concat(O?0:1,`,
21    `).concat(b.x,",").concat(b.y),A=Z(t.id)?ln("recharts-radial-line-"):t.id;return S.createElement("text",ti({},n,{dominantBaseline:"central",className:Q("recharts-radial-bar-label",u)}),S.createElement("defs",null,S.createElement("path",{id:A,d:_})),S.createElement("textPath",{xlinkHref:"#".concat(A)},r))},A$=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,c=a.outerRadius,f=a.startAngle,l=a.endAngle,d=(f+l)/2;if(i==="outside"){var p=fe(o,u,c+n,d),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 h=(s+c)/2,g=fe(o,u,h,d),x=g.x,w=g.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},S$=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,c=o.width,f=o.height,l=f>=0?1:-1,d=l*i,p=l>0?"end":"start",y=l>0?"start":"end",v=c>=0?1:-1,h=v*i,g=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+c/2,y:s-l*i,textAnchor:"middle",verticalAnchor:p};return _e(_e({},w),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var O={x:u+c/2,y:s+f+d,textAnchor:"middle",verticalAnchor:y};return _e(_e({},O),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(a==="left"){var m={x:u-h,y:s+f/2,textAnchor:g,verticalAnchor:"middle"};return _e(_e({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var b={x:u+c+h,y:s+f/2,textAnchor:x,verticalAnchor:"middle"};return _e(_e({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:f}:{})}var _=n?{width:c,height:f}:{};return a==="insideLeft"?_e({x:u+h,y:s+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?_e({x:u+c-h,y:s+f/2,textAnchor:g,verticalAnchor:"middle"},_):a==="insideTop"?_e({x:u+c/2,y:s+d,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?_e({x:u+c/2,y:s+f-d,textAnchor:"middle",verticalAnchor:p},_):a==="insideTopLeft"?_e({x:u+h,y:s+d,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?_e({x:u+c-h,y:s+d,textAnchor:g,verticalAnchor:y},_):a==="insideBottomLeft"?_e({x:u+h,y:s+f-d,textAnchor:x,verticalAnchor:p},_):a==="insideBottomRight"?_e({x:u+c-h,y:s+f-d,textAnchor:g,verticalAnchor:p},_):cn(a)&&(L(a.x)||er(a.x))&&(L(a.y)||er(a.y))?_e({x:u+ke(a.x,c),y:s+ke(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):_e({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},P$=function(t){return"cx"in t&&L(t.cx)};function je(e){var t=e.offset,r=t===void 0?5:t,n=y$(e,l$),i=_e({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,c=i.content,f=i.className,l=f===void 0?"":f,d=i.textBreakAll;if(!a||Z(u)&&Z(s)&&!N.isValidElement(c)&&!Y(c))return null;if(N.isValidElement(c))return N.cloneElement(c,i);var p;if(Y(c)){if(p=N.createElement(c,i),N.isValidElement(p))return p}else p=w$(i);var y=P$(a),v=K(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return _$(i,p,v);var h=y?A$(i):S$(i);return S.createElement(sr,ti({className:Q("recharts-label",l)},v,h,{breakAll:d}),p)}je.displayName="Label";var Sw=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,d=t.y,p=t.top,y=t.left,v=t.width,h=t.height,g=t.clockWise,x=t.labelViewBox;if(x)return x;if(L(v)&&L(h)){if(L(l)&&L(d))return{x:l,y:d,width:v,height:h};if(L(p)&&L(y))return{x:p,y,width:v,height:h}}return L(l)&&L(d)?{x:l,y:d,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:g}:t.viewBox?t.viewBox:{}},T$=function(t,r){return t?t===!0?S.createElement(je,{key:"label-implicit",viewBox:r}):Se(t)?S.createElement(je,{key:"label-implicit",viewBox:r,value:t}):N.isValidElement(t)?t.type===je?N.cloneElement(t,{key:"label-implicit",viewBox:r}):S.createElement(je,{key:"label-implicit",content:t,viewBox:r}):Y(t)?S.createElement(je,{key:"label-implicit",content:t,viewBox:r}):cn(t)?S.createElement(je,ti({viewBox:r},t,{key:"label-implicit"})):null:null},j$=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=Sw(t),o=Ge(i,je).map(function(s,c){return N.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=T$(t.label,r||a);return[u].concat(f$(o))};je.parseViewBox=Sw;je.renderCallByParent=j$;var nl,hg;function E$(){if(hg)return nl;hg=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return nl=e,nl}var M$=E$();const $$=ue(M$);function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}var C$=["valueAccessor"],I$=["data","dataKey","clockWise","id","textBreakAll"];function k$(e){return q$(e)||D$(e)||N$(e)||R$()}function R$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N$(e,t){if(e){if(typeof e=="string")return wf(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 wf(e,t)}}function D$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function q$(e){if(Array.isArray(e))return wf(e)}function wf(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 xa(){return xa=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},xa.apply(this,arguments)}function pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pg(Object(r),!0).forEach(function(n){L$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L$(e,t,r){return t=B$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B$(e){var t=F$(e,"string");return ri(t)=="symbol"?t:t+""}function F$(e,t){if(ri(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yg(e,t){if(e==null)return{};var r=z$(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 z$(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 W$=function(t){return Array.isArray(t.value)?$$(t.value):t.value};function _t(e){var t=e.valueAccessor,r=t===void 0?W$:t,n=yg(e,C$),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=yg(n,I$);return!i||!i.length?null:S.createElement(re,{className:"recharts-label-list"},i.map(function(f,l){var d=Z(a)?r(f,l):Ae(f&&f.payload,a),p=Z(u)?{}:{id:"".concat(u,"-").concat(l)};return S.createElement(je,xa({},K(f,!0),c,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:s,viewBox:je.parseViewBox(Z(o)?f:vg(vg({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}_t.displayName="LabelList";function U$(e,t){return e?e===!0?S.createElement(_t,{key:"labelList-implicit",data:t}):S.isValidElement(e)||Y(e)?S.createElement(_t,{key:"labelList-implicit",data:t,content:e}):cn(e)?S.createElement(_t,xa({data:t},e,{key:"labelList-implicit"})):null:null}function H$(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=Ge(n,_t).map(function(o,u){return N.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=U$(e.label,t);return[a].concat(k$(i))}_t.renderCallByParent=H$;function ni(e){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ni(e)}function Of(){return Of=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},Of.apply(this,arguments)}function mg(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 gg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mg(Object(r),!0).forEach(function(n){K$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K$(e,t,r){return t=G$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G$(e){var t=V$(e,"string");return ni(t)=="symbol"?t:t+""}function V$(e,t){if(ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var X$=function(t,r){var n=Ie(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Di=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)/ba,d=c?a:a+o*l,p=fe(r,n,f,d),y=fe(r,n,i,d),v=c?a-o*l:a,h=fe(r,n,f*Math.cos(l*ba),v);return{center:p,circleTangency:y,lineTangency:h,theta:l}},Pw=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=X$(o,u),c=o+s,f=fe(r,n,a,o),l=fe(r,n,a,c),d="M ".concat(f.x,",").concat(f.y,`
23    A `).concat(a,",").concat(a,`,0,
24    `).concat(+(Math.abs(s)>180),",").concat(+(o>c),`,
25    `).concat(l.x,",").concat(l.y,`
26  `);if(i>0){var p=fe(r,n,i,o),y=fe(r,n,i,c);d+="L ".concat(y.x,",").concat(y.y,`
27            A `).concat(i,",").concat(i,`,0,
28            `).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`,
29            `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},Y$=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=Ie(f-c),d=Di({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),p=d.circleTangency,y=d.lineTangency,v=d.theta,h=Di({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),g=h.circleTangency,x=h.lineTangency,w=h.theta,O=s?Math.abs(c-f):Math.abs(c-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,`
30        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
31        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
32      `):Pw({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
33    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,`
34    A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(g.x,",").concat(g.y,`
35    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
36  `);if(i>0){var b=Di({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=b.circleTangency,A=b.lineTangency,P=b.theta,j=Di({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),E=j.circleTangency,T=j.lineTangency,M=j.theta,C=s?Math.abs(c-f):Math.abs(c-f)-P-M;if(C<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(T.x,",").concat(T.y,`
37      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(E.x,",").concat(E.y,`
38      A`).concat(i,",").concat(i,",0,").concat(+(C>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
39      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(A.x,",").concat(A.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},Z$={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Tw=function(t){var r=gg(gg({},Z$),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,d=r.className;if(o<a||f===l)return null;var p=Q("recharts-sector",d),y=o-a,v=ke(u,y,0,!0),h;return v>0&&Math.abs(f-l)<360?h=Y$({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):h=Pw({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),S.createElement("path",Of({},K(r,!0),{className:p,d:h,role:"img"}))};function ii(e){"@babel/helpers - typeof";return ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ii(e)}function _f(){return _f=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},_f.apply(this,arguments)}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 xg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bg(Object(r),!0).forEach(function(n){J$(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 J$(e,t,r){return t=Q$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q$(e){var t=eC(e,"string");return ii(t)=="symbol"?t:t+""}function eC(e,t){if(ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wg={curveBasisClosed:x1,curveBasisOpen:w1,curveBasis:b1,curveBumpX:a1,curveBumpY:o1,curveLinearClosed:O1,curveLinear:Qa,curveMonotoneX:_1,curveMonotoneY:A1,curveNatural:S1,curveStep:P1,curveStepAfter:j1,curveStepBefore:T1},qi=function(t){return t.x===+t.x&&t.y===+t.y},wn=function(t){return t.x},On=function(t){return t.y},tC=function(t,r){if(Y(t))return t;var n="curve".concat(Za(t));return(n==="curveMonotone"||n==="curveBump")&&r?wg["".concat(n).concat(r==="vertical"?"Y":"X")]:wg[n]||Qa},rC=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=tC(n,u),l=c?a.filter(function(v){return qi(v)}):a,d;if(Array.isArray(o)){var p=c?o.filter(function(v){return qi(v)}):o,y=l.map(function(v,h){return xg(xg({},v),{},{base:p[h]})});return u==="vertical"?d=Ei().y(On).x1(wn).x0(function(v){return v.base.x}):d=Ei().x(wn).y1(On).y0(function(v){return v.base.y}),d.defined(qi).curve(f),d(y)}return u==="vertical"&&L(o)?d=Ei().y(On).x1(wn).x0(o):L(o)?d=Ei().x(wn).y1(On).y0(o):d=P0().x(wn).y(On),d.defined(qi).curve(f),d(l)},wa=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?rC(t):i;return N.createElement("path",_f({},K(t,!1),Gi(t),{className:Q("recharts-curve",r),d:o,ref:a}))},il={exports:{}},al,Og;function nC(){if(Og)return al;Og=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return al=e,al}var ol,_g;function iC(){if(_g)return ol;_g=1;var e=nC();function t(){}function r(){}return r.resetWarningCache=t,ol=function(){function n(o,u,s,c,f,l){if(l!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},ol}var Ag;function aC(){return Ag||(Ag=1,il.exports=iC()()),il.exports}var oC=aC();const ae=ue(oC),{getOwnPropertyNames:uC,getOwnPropertySymbols:sC}=Object,{hasOwnProperty:cC}=Object.prototype;function ul(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Li(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 lC(e){return e?.[Symbol.toStringTag]}function Sg(e){return uC(e).concat(sC(e))}const fC=Object.hasOwn||((e,t)=>cC.call(e,t));function gr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const dC="__v",hC="__o",pC="_owner",{getOwnPropertyDescriptor:Pg,keys:Tg}=Object;function vC(e,t){return e.byteLength===t.byteLength&&Oa(new Uint8Array(e),new Uint8Array(t))}function yC(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 mC(e,t){return e.byteLength===t.byteLength&&Oa(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function gC(e,t){return gr(e.getTime(),t.getTime())}function bC(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function xC(e,t){return e===t}function jg(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,u,s=0;for(;(o=a.next())&&!o.done;){const c=t.entries();let f=!1,l=0;for(;(u=c.next())&&!u.done;){if(i[l]){l++;continue}const d=o.value,p=u.value;if(r.equals(d[0],p[0],s,l,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;s++}return!0}const wC=gr;function OC(e,t,r){const n=Tg(e);let i=n.length;if(Tg(t).length!==i)return!1;for(;i-- >0;)if(!jw(e,t,r,n[i]))return!1;return!0}function _n(e,t,r){const n=Sg(e);let i=n.length;if(Sg(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!jw(e,t,r,a)||(o=Pg(e,a),u=Pg(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function _C(e,t){return gr(e.valueOf(),t.valueOf())}function AC(e,t){return e.source===t.source&&e.flags===t.flags}function Eg(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 Oa(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 SC(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 jw(e,t,r,n){return(n===pC||n===hC||n===dC)&&(e.$$typeof||t.$$typeof)?!0:fC(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const PC="[object ArrayBuffer]",TC="[object Arguments]",jC="[object Boolean]",EC="[object DataView]",MC="[object Date]",$C="[object Error]",CC="[object Map]",IC="[object Number]",kC="[object Object]",RC="[object RegExp]",NC="[object Set]",DC="[object String]",qC={"[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
39]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},LC="[object URL]",BC=Object.prototype.toString;function FC({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:s,arePrimitiveWrappersEqual:c,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:d,areUrlsEqual:p,unknownTagComparators:y}){return function(h,g,x){if(h===g)return!0;if(h==null||g==null)return!1;const w=typeof h;if(w!==typeof g)return!1;if(w!=="object")return w==="number"?u(h,g,x):w==="function"?a(h,g,x):!1;const O=h.constructor;if(O!==g.constructor)return!1;if(O===Object)return s(h,g,x);if(Array.isArray(h))return t(h,g,x);if(O===Date)return n(h,g,x);if(O===RegExp)return f(h,g,x);if(O===Map)return o(h,g,x);if(O===Set)return l(h,g,x);const m=BC.call(h);if(m===MC)return n(h,g,x);if(m===RC)return f(h,g,x);if(m===CC)return o(h,g,x);if(m===NC)return l(h,g,x);if(m===kC)return typeof h.then!="function"&&typeof g.then!="function"&&s(h,g,x);if(m===LC)return p(h,g,x);if(m===$C)return i(h,g,x);if(m===TC)return s(h,g,x);if(qC[m])return d(h,g,x);if(m===PC)return e(h,g,x);if(m===EC)return r(h,g,x);if(m===jC||m===IC||m===DC)return c(h,g,x);if(y){let b=y[m];if(!b){const _=lC(h);_&&(b=y[_])}if(b)return b(h,g,x)}return!1}}function zC({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:vC,areArraysEqual:r?_n:yC,areDataViewsEqual:mC,areDatesEqual:gC,areErrorsEqual:bC,areFunctionsEqual:xC,areMapsEqual:r?ul(jg,_n):jg,areNumbersEqual:wC,areObjectsEqual:r?_n:OC,arePrimitiveWrappersEqual:_C,areRegExpsEqual:AC,areSetsEqual:r?ul(Eg,_n):Eg,areTypedArraysEqual:r?ul(Oa,_n):Oa,areUrlsEqual:SC,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Li(n.areArraysEqual),a=Li(n.areMapsEqual),o=Li(n.areObjectsEqual),u=Li(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function WC(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function UC({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 HC=Wt();Wt({strict:!0});Wt({circular:!0});Wt({circular:!0,strict:!0});Wt({createInternalComparator:()=>gr});Wt({strict:!0,createInternalComparator:()=>gr});Wt({circular:!0,createInternalComparator:()=>gr});Wt({circular:!0,createInternalComparator:()=>gr,strict:!0});function Wt(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=zC(e),o=FC(a),u=r?r(o):WC(o);return UC({circular:t,comparator:o,createState:n,equals:u,strict:i})}function KC(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Mg(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):KC(i)};requestAnimationFrame(n)}function Af(e){"@babel/helpers - typeof";return Af=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},Af(e)}function GC(e){return ZC(e)||YC(e)||XC(e)||VC()}function VC(){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 XC(e,t){if(e){if(typeof e=="string")return $g(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 $g(e,t)}}function $g(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 YC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZC(e){if(Array.isArray(e))return e}function JC(){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=GC(o),s=u[0],c=u.slice(1);if(typeof s=="number"){Mg(i.bind(null,c),s);return}i(s),Mg(i.bind(null,c));return}Af(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 ai(e){"@babel/helpers - typeof";return ai=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},ai(e)}function Cg(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 Ig(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 58,450 bytes, lines 40-58
40t%2?Cg(Object(r),!0).forEach(function(n){Ew(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ew(e,t,r){return t=QC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QC(e){var t=eI(e,"string");return ai(t)==="symbol"?t:String(t)}function eI(e,t){if(ai(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ai(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tI=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},rI=function(t){return t},nI=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},In=function(t,r){return Object.keys(r).reduce(function(n,i){return Ig(Ig({},n),{},Ew({},i,t(i,r[i])))},{})},kg=function(t,r,n){return t.map(function(i){return"".concat(nI(i)," ").concat(r,"ms ").concat(n)}).join(",")};function iI(e,t){return uI(e)||oI(e,t)||Mw(e,t)||aI()}function aI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
41In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}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 sI(e){return fI(e)||lI(e)||Mw(e)||cI()}function cI(){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 Mw(e,t){if(e){if(typeof e=="string")return Sf(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 Sf(e,t)}}function lI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fI(e){if(Array.isArray(e))return Sf(e)}function Sf(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 _a=1e-4,$w=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},Cw=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=$w(t,r);return Cw(i,n)}},dI=function(t,r){return function(n){var i=$w(t,r),a=[].concat(sI(i.map(function(o,u){return o*u}).slice(1)),[0]);return Cw(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(h){return parseFloat(h)}),f=iI(c,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=Rg(i,o),d=Rg(a,u),p=dI(i,o),y=function(g){return g>1?1:g<0?0:g},v=function(g){for(var x=g>1?1:g,w=x,O=0;O<8;++O){var m=l(w)-x,b=p(w);if(Math.abs(m-x)<_a||b<_a)return d(w);w=y(w-m/b)}return d(w)};return v.isStepper=!1,v},hI=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,s=function(f,l,d){var p=-(f-l)*n,y=d*a,v=d+(p-y)*u/1e3,h=d*u/1e3+f;return Math.abs(h-l)<_a&&Math.abs(v)<_a?[l,0]:[h,v]};return s.isStepper=!0,s.dt=u,s},pI=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 hI();default:if(i.split("(")[0]==="cubic-bezier")return Ng(i)}return typeof i=="function"?i:null};function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function Dg(e){return mI(e)||yI(e)||Iw(e)||vI()}function vI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
43In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mI(e){if(Array.isArray(e))return Tf(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 Me(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){Pf(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 Pf(e,t,r){return t=gI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gI(e){var t=bI(e,"string");return oi(t)==="symbol"?t:String(t)}function bI(e,t){if(oi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xI(e,t){return _I(e)||OI(e,t)||Iw(e,t)||wI()}function wI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
44In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iw(e,t){if(e){if(typeof e=="string")return Tf(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 Tf(e,t)}}function Tf(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 _I(e){if(Array.isArray(e))return e}var Aa=function(t,r,n){return t+(r-t)*n},jf=function(t){var r=t.from,n=t.to;return r!==n},AI=function e(t,r,n){var i=In(function(a,o){if(jf(o)){var u=t(o.from,o.to,o.velocity),s=xI(u,2),c=s[0],f=s[1];return Me(Me({},o),{},{from:c,velocity:f})}return o},r);return n<1?In(function(a,o){return jf(o)?Me(Me({},o),{},{velocity:Aa(o.velocity,i[a].velocity,n),from:Aa(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const SI=(function(e,t,r,n,i){var a=tI(e,t),o=a.reduce(function(h,g){return Me(Me({},h),{},Pf({},g,[e[g],t[g]]))},{}),u=a.reduce(function(h,g){return Me(Me({},h),{},Pf({},g,{from:e[g],velocity:0,to:t[g]}))},{}),s=-1,c,f,l=function(){return null},d=function(){return In(function(g,x){return x.from},u)},p=function(){return!Object.values(u).filter(jf).length},y=function(g){c||(c=g);var x=g-c,w=x/r.dt;u=AI(r,u,w),i(Me(Me(Me({},e),t),d())),c=g,p()||(s=requestAnimationFrame(l))},v=function(g){f||(f=g);var x=(g-f)/n,w=In(function(m,b){return Aa.apply(void 0,Dg(b).concat([r(x)]))},o);if(i(Me(Me(Me({},e),t),w)),x<1)s=requestAnimationFrame(l);else{var O=In(function(m,b){return Aa.apply(void 0,Dg(b).concat([r(1)]))},o);i(Me(Me(Me({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}});function zr(e){"@babel/helpers - typeof";return zr=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},zr(e)}var PI=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function TI(e,t){if(e==null)return{};var r=jI(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 jI(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 sl(e){return CI(e)||$I(e)||MI(e)||EI()}function EI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
45In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MI(e,t){if(e){if(typeof e=="string")return Ef(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 Ef(e,t)}}function $I(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CI(e){if(Array.isArray(e))return Ef(e)}function Ef(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 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 nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lg(Object(r),!0).forEach(function(n){En(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 En(e,t,r){return t=kw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function II(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kI(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,kw(n.key),n)}}function RI(e,t,r){return t&&kI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kw(e){var t=NI(e,"string");return zr(t)==="symbol"?t:String(t)}function NI(e,t){if(zr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DI(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&&Mf(e,t)}function Mf(e,t){return Mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mf(e,t)}function qI(e){var t=LI();return function(){var n=Sa(e),i;if(t){var a=Sa(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return $f(this,i)}}function $f(e,t){if(t&&(zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cf(e)}function Cf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LI(){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 Sa(e){return Sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sa(e)}var ht=(function(e){DI(r,e);var t=qI(r);function r(n,i){var a;II(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,c=o.from,f=o.to,l=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Cf(a)),a.changeStyle=a.changeStyle.bind(Cf(a)),!u||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),$f(a);if(l&&l.length)a.state={style:l[0].style};else if(c){if(typeof d=="function")return a.state={style:c},$f(a);a.state={style:s?En({},s,c):c}}else a.state={style:{}};return a}return RI(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,s=a.attributeName,c=a.shouldReAnimate,f=a.to,l=a.from,d=this.state.style;if(u){if(!o){var p={style:s?En({},s,f):f};this.state&&d&&(s&&d[s]!==f||!s&&d!==f)&&this.setState(p);return}if(!(HC(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&&d){var h={style:s?En({},s,v):v};(s&&d[s]!==v||!s&&d!==v)&&this.setState(h)}this.runAnimation(nt(nt({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,s=i.duration,c=i.easing,f=i.begin,l=i.onAnimationEnd,d=i.onAnimationStart,p=SI(o,u,pI(c),s,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([d,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,d=l===void 0?0:l,p=function(v,h,g){if(g===0)return v;var x=h.duration,w=h.easing,O=w===void 0?"ease":w,m=h.style,b=h.properties,_=h.onAnimationEnd,A=g>0?o[g-1]:h,P=b||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(sl(v),[a.runJSAnimation.bind(a,{from:A.style,to:m,duration:x,easing:O}),x]);var j=kg(P,x,O),E=nt(nt(nt({},A.style),m),{},{transition:j});return[].concat(sl(v),[E,x,_]).filter(rI)};return this.manager.start([s].concat(sl(o.reduce(p,[f,Math.max(d,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=JC());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,c=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,d=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=u?En({},u,s):s,h=kg(Object.keys(v),o,c);y.start([f,a,nt(nt({},v),{},{transition:h}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=TI(i,PI),c=N.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,h=v===void 0?{}:v,g=y.className,x=N.cloneElement(p,nt(nt({},s),{},{style:nt(nt({},h),f),className:g}));return x};return c===1?l(N.Children.only(a)):S.createElement("div",null,N.Children.map(a,function(d){return l(d)}))}}]),r})(N.PureComponent);ht.displayName="Animate";ht.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ht.propTypes={from:ae.oneOfType([ae.object,ae.string]),to:ae.oneOfType([ae.object,ae.string]),attributeName:ae.string,duration:ae.number,begin:ae.number,easing:ae.oneOfType([ae.string,ae.func]),steps:ae.arrayOf(ae.shape({duration:ae.number.isRequired,style:ae.object.isRequired,easing:ae.oneOfType([ae.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ae.func]),properties:ae.arrayOf("string"),onAnimationEnd:ae.func})),children:ae.oneOfType([ae.node,ae.func]),isActive:ae.bool,canBegin:ae.bool,onAnimationEnd:ae.func,shouldReAnimate:ae.bool,onAnimationStart:ae.func,onAnimationReStart:ae.func};function ui(e){"@babel/helpers - typeof";return ui=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},ui(e)}function Pa(){return Pa=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},Pa.apply(this,arguments)}function BI(e,t){return UI(e)||WI(e,t)||zI(e,t)||FI()}function FI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
46In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zI(e,t){if(e){if(typeof e=="string")return Bg(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 Bg(e,t)}}function Bg(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 WI(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 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 zg(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){HI(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 HI(e,t,r){return t=KI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KI(e){var t=GI(e,"string");return ui(t)=="symbol"?t:t+""}function GI(e,t){if(ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wg=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],d=0,p=4;d<p;d++)l[d]=a[d]>o?o:a[d];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+s*l[0],",").concat(r)),f+="L ".concat(t+n-s*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`,
47        `).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,`,
48        `).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,`,
49        `).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,`
50            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+s*y,",").concat(r,`
51            L `).concat(t+n-s*y,",").concat(r,`
52            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n,",").concat(r+u*y,`
53            L `).concat(t+n,",").concat(r+i-u*y,`
54            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n-s*y,",").concat(r+i,`
55            L `).concat(t+s*y,",").concat(r+i,`
56            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},VI=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var c=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+s),d=Math.max(o,o+s);return n>=c&&n<=f&&i>=l&&i<=d}return!1},XI={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},eh=function(t){var r=zg(zg({},XI),t),n=N.useRef(),i=N.useState(-1),a=BI(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var s=r.x,c=r.y,f=r.width,l=r.height,d=r.radius,p=r.className,y=r.animationEasing,v=r.animationDuration,h=r.animationBegin,g=r.isAnimationActive,x=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var w=Q("recharts-rectangle",p);return x?S.createElement(ht,{canBegin:o>0,from:{width:f,height:l,x:s,y:c},to:{width:f,height:l,x:s,y:c},duration:v,animationEasing:y,isActive:x},function(O){var m=O.width,b=O.height,_=O.x,A=O.y;return S.createElement(ht,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:v,isActive:g,easing:y},S.createElement("path",Pa({},K(r,!0),{className:w,d:Wg(_,A,m,b,d),ref:n})))}):S.createElement("path",Pa({},K(r,!0),{className:w,d:Wg(s,c,f,l,d)}))},YI=["points","className","baseLinePoints","connectNulls"];function Pr(){return Pr=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},Pr.apply(this,arguments)}function ZI(e,t){if(e==null)return{};var r=JI(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 JI(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 Ug(e){return rk(e)||tk(e)||ek(e)||QI()}function QI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
57In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ek(e,t){if(e){if(typeof e=="string")return If(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 If(e,t)}}function tk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rk(e){if(Array.isArray(e))return If(e)}function If(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 Hg=function(t){return t&&t.x===+t.x&&t.y===+t.y},nk=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){Hg(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),Hg(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},kn=function(t,r){var n=nk(t);r&&(n=[n.reduce(function(a,o){return[].concat(Ug(a),Ug(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,s){return"".concat(o).concat(s===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},ik=function(t,r,n){var i=kn(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(kn(r.reverse(),n).slice(1))},ak=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=ZI(t,YI);if(!r||!r.length)return null;var u=Q("recharts-polygon",n);if(i&&i.length){var s=o.stroke&&o.stroke!=="none",c=ik(r,i,a);return S.createElement("g",{className:u},S.createElement("path",Pr({},K(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),s?S.createElement("path",Pr({},K(o,!0),{fill:"none",d:kn(r,a)})):null,s?S.createElement("path",Pr({},K(o,!0),{fill:"none",d:kn(i,a)})):null)}var f=kn(r,a);return S.createElement("path",Pr({},K(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function kf(){return kf=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},kf.apply(this,arguments)}var mo=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Q("recharts-dot",a);return r===+r&&n===+n&&i===+i?N.createElement("circle",kf({},K(t,!1),Gi(t),{className:o,cx:r,cy:n,r:i})):null};function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}var ok=["x","y","top","left","width","height","className"];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)}function Kg(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 uk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kg(Object(r),!0).forEach(function(n){sk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sk(e,t,r){return t=ck(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ck(e){var t=lk(e,"string");return si(t)=="symbol"?t:t+""}function lk(e,t){if(si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fk(e,t){if(e==null)return{};var r=dk(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 dk(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 hk=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},pk=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,s=t.left,c=s===void 0?0:s,f=t.width,l=f===void 0?0:f,d=t.height,p=d===void 0?0:d,y=t.className,v=fk(t,ok),h=uk({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:S.createElement("path",Rf({},K(h,!0),{className:Q("recharts-cross",y),d:hk(n,a,l,p,u,c)}))},cl,Gg;function vk(){if(Gg)return cl;Gg=1;var e=fo(),t=Xx(),r=vt();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return cl=n,cl}var yk=vk();const mk=ue(yk);var ll,Vg;function gk(){if(Vg)return ll;Vg=1;var e=fo(),t=vt(),r=Yx();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return ll=n,ll}var bk=gk();const xk=ue(bk);var wk=["cx","cy","angle","ticks","axisLine"],Ok=["ticks","tick","angle","tickFormatter","stroke"];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 Rn(){return Rn=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},Rn.apply(this,arguments)}function Xg(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 Vt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xg(Object(r),!0).forEach(function(n){go(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yg(e,t){if(e==null)return{};var r=_k(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 _k(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 Ak(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zg(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 Sk(e,t,r){return t&&Zg(e.prototype,t),r&&Zg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pk(e,t,r){return t=Ta(t),Tk(e,Rw()?Reflect.construct(t,r||[],Ta(e).constructor):t.apply(e,r))}function Tk(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 jk(e)}function jk(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 Ta(e){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ta(e)}function Ek(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&&Nf(e,t)}function Nf(e,t){return Nf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nf(e,t)}function go(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=Mk(e,"string");return Wr(t)=="symbol"?t:t+""}function Mk(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(t==="string"?String:Number)(e)}var bo=(function(e){function t(){return Ak(this,t),Pk(this,t,arguments)}return Ek(t,e),Sk(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,s=a.cy;return fe(u,s,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=mk(u,function(f){return f.coordinate||0}),c=xk(u,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=n.axisLine,c=Yg(n,wk),f=u.reduce(function(y,v){return[Math.min(y[0],v.coordinate),Math.max(y[1],v.coordinate)]},[1/0,-1/0]),l=fe(i,a,f[0],o),d=fe(i,a,f[1],o),p=Vt(Vt(Vt({},K(c,!1)),{},{fill:"none"},K(s,!1)),{},{x1:l.x,y1:l.y,x2:d.x,y2:d.y});return S.createElement("line",Rn({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,s=i.tickFormatter,c=i.stroke,f=Yg(i,Ok),l=this.getTickTextAnchor(),d=K(f,!1),p=K(o,!1),y=a.map(function(v,h){var g=n.getTickValueCoord(v),x=Vt(Vt(Vt(Vt({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(g.x,", ").concat(g.y,")")},d),{},{stroke:"none",fill:c},p),{},{index:h},g),{},{payload:v});return S.createElement(re,Rn({className:Q("recharts-polar-radius-axis-tick",Aw(o)),key:"tick-".concat(v.coordinate)},ur(n.props,v,h)),t.renderTickItem(o,x,s?s(v.value,h):v.value))});return S.createElement(re,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:S.createElement(re,{className:Q("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),je.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):Y(n)?o=n(i):o=S.createElement(sr,Rn({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(N.PureComponent);go(bo,"displayName","PolarRadiusAxis");go(bo,"axisType","radiusAxis");go(bo,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Ur(e){"@babel/helpers - typeof";return Ur=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},Ur(e)}function Qt(){return Qt=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},Qt.apply(this,arguments)}function Jg(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 Xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jg(Object(r),!0).forEach(function(n){xo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qg(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,qw(n.key),n)}}function Ck(e,t,r){return t&&Qg(e.prototype,t),r&&Qg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ik(e,t,r){return t=ja(t),kk(e,Dw()?Reflect.construct(t,r||[],ja(e).constructor):t.apply(e,r))}function kk(e,t){if(t&&(Ur(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rk(e)}function Rk(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 ja(e){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ja(e)}function Nk(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&&Df(e,t)}function Df(e,t){return Df=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Df(e,t)}function xo(e,t,r){return t=qw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qw(e){var t=Dk(e,"string");return Ur(t)=="symbol"?t:t+""}function Dk(e,t){if(Ur(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qk=Math.PI/180,eb=1e-5,wo=(function(e){function t(){return $k(this,t),Ik(this,t,arguments)}return Nk(t,e),Ck(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,s=i.orientation,c=i.tickSize,f=c||8,l=fe(a,o,u,n.coordinate),d=fe(a,o,u+(s==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*qk),o;return a>eb?o=i==="outer"?"start":"end":a<-eb?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,u=n.axisLine,s=n.axisLineType,c=Xt(Xt({},K(this.props,!1)),{},{fill:"none"},K(u,!1));if(s==="circle")return S.createElement(mo,Qt({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(d){return fe(i,a,o,d.coordinate)});return S.createElement(ak,Qt({className:"recharts-polar-angle-axis-line"},c,{points:l}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,s=i.tickFormatter,c=i.stroke,f=K(this.props,!1),l=K(o,!1),d=Xt(Xt({},f),{},{fill:"none"},K(u,!1)),p=a.map(function(y,v){var h=n.getTickLineCoord(y),g=n.getTickTextAnchor(y),x=Xt(Xt(Xt({textAnchor:g},f),{},{stroke:"none",fill:c},l),{},{index:v,payload:y,x:h.x2,y:h.y2});return S.createElement(re,Qt({className:Q("recharts-polar-angle-axis-tick",Aw(o)),key:"tick-".concat(y.coordinate)},ur(n.props,y,v)),u&&S.createElement("line",Qt({className:"recharts-polar-angle-axis-tick-line"},d,h)),o&&t.renderTickItem(o,x,s?s(y.value,v):y.value))});return S.createElement(re,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:S.createElement(re,{className:Q("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):Y(n)?o=n(i):o=S.createElement(sr,Qt({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(N.PureComponent);xo(wo,"displayName","PolarAngleAxis");xo(wo,"axisType","angleAxis");xo(wo,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var fl,tb;function Lk(){if(tb)return fl;tb=1;var e=X0(),t=e(Object.getPrototypeOf,Object);return fl=t,fl}var dl,rb;function Bk(){if(rb)return dl;rb=1;var e=jt(),t=Lk(),r=Et(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function c(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var d=u.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==s}return dl=c,dl}var Fk=Bk();const zk=ue(Fk);var hl,nb;function Wk(){if(nb)return hl;nb=1;var e=jt(),t=Et(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return hl=n,hl}var Uk=Wk();const Hk=ue(Uk);function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function Ea(){return Ea=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},Ea.apply(this,arguments)}function Kk(e,t){return Yk(e)||Xk(e,t)||Vk(e,t)||Gk()}function Gk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vk(e,t){if(e){if(typeof e=="string")return ib(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 ib(e,t)}}function ib(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 Xk(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 Yk(e){if(Array.isArray(e))return e}function ab(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 ob(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ab(Object(r),!0).forEach(function(n){Zk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ab(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zk(e,t,r){return t=Jk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jk(e){var t=Qk(e,"string");return ci(t)=="symbol"?t:t+""}function Qk(e,t){if(ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ub=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},eR={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},tR=function(t){var r=ob(ob({},eR),t),n=N.useRef(),i=N.useState(-1),a=Kk(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var s=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,d=r.height,p=r.className,y=r.animationEasing,v=r.animationDuration,h=r.animationBegin,g=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||d!==+d||f===0&&l===0||d===0)return null;var x=Q("recharts-trapezoid",p);return g?S.createElement(ht,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:d,x:s,y:c},duration:v,animationEasing:y,isActive:g},function(w){var O=w.upperWidth,m=w.lowerWidth,b=w.height,_=w.x,A=w.y;return S.createElement(ht,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:v,easing:y},S.createElement("path",Ea({},K(r,!0),{className:x,d:ub(_,A,O,m,b),ref:n})))}):S.createElement("g",null,S.createElement("path",Ea({},K(r,!0),{className:x,d:ub(s,c,f,l,d)})))},rR=["option","shapeType","propTransformer","activeClassName","isActive"];function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function nR(e,t){if(e==null)return{};var r=iR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function sb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ma(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sb(Object(r),!0).forEach(function(n){aR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aR(e,t,r){return t=oR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oR(e){var t=uR(e,"string");return li(t)=="symbol"?t:t+""}function uR(e,t){if(li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sR(e,t){return Ma(Ma({},t),e)}function cR(e,t){return e==="symbols"}function cb(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return S.createElement(eh,r);case"trapezoid":return S.createElement(tR,r);case"sector":return S.createElement(Tw,r);case"symbols":if(cR(t))return S.createElement(bd,r);break;default:return null}}function lR(e){return N.isValidElement(e)?e.props:e}function Lw(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?sR:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=nR(e,rR),c;if(N.isValidElement(t))c=N.cloneElement(t,Ma(Ma({},s),lR(t)));else if(Y(t))c=t(s);else if(zk(t)&&!Hk(t)){var f=i(t,s);c=S.createElement(cb,{shapeType:r,elementProps:f})}else{var l=s;c=S.createElement(cb,{shapeType:r,elementProps:l})}return u?S.createElement(re,{className:o},c):c}function Oo(e,t){return t!=null&&"trapezoids"in e.props}function _o(e,t){return t!=null&&"sectors"in e.props}function fi(e,t){return t!=null&&"points"in e.props}function fR(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 dR(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function hR(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function pR(e,t){var r;return Oo(e,t)?r=fR:_o(e,t)?r=dR:fi(e,t)&&(r=hR),r}function vR(e,t){var r;return Oo(e,t)?r="trapezoids":_o(e,t)?r="sectors":fi(e,t)&&(r="points"),r}function yR(e,t){if(Oo(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(_o(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 fi(e,t)?t.payload:{}}function mR(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=vR(r,t),a=yR(r,t),o=n.filter(function(s,c){var f=Si(a,s),l=r.props[i].filter(function(y){var v=pR(r,t);return v(y,t)}),d=r.props[i].indexOf(l[l.length-1]),p=c===d;return f&&p}),u=n.indexOf(o[o.length-1]);return u}var Hi;function Hr(e){"@babel/helpers - typeof";return Hr=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},Hr(e)}function Tr(){return Tr=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},Tr.apply(this,arguments)}function lb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ce(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){Qe(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 gR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fb(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,Fw(n.key),n)}}function bR(e,t,r){return t&&fb(e.prototype,t),r&&fb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xR(e,t,r){return t=$a(t),wR(e,Bw()?Reflect.construct(t,r||[],$a(e).constructor):t.apply(e,r))}function wR(e,t){if(t&&(Hr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OR(e)}function OR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bw=function(){return!!e})()}function $a(e){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$a(e)}function _R(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&&qf(e,t)}function qf(e,t){return qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qf(e,t)}function Qe(e,t,r){return t=Fw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fw(e){var t=AR(e,"string");return Hr(t)=="symbol"?t:t+""}function AR(e,t){if(Hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $t=(function(e){function t(r){var n;return gR(this,t),n=xR(this,t,[r]),Qe(n,"pieRef",null),Qe(n,"sectorRefs",[]),Qe(n,"id",ln("recharts-pie-")),Qe(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Y(i)&&i()}),Qe(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Y(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return _R(t,e),bR(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,u=a.labelLine,s=a.dataKey,c=a.valueKey,f=K(this.props,!1),l=K(o,!1),d=K(u,!1),p=o&&o.offsetRadius||20,y=n.map(function(v,h){var g=(v.startAngle+v.endAngle)/2,x=fe(v.cx,v.cy,v.outerRadius+p,g),w=ce(ce(ce(ce({},f),v),{},{stroke:"none"},l),{},{index:h,textAnchor:t.getTextAnchor(x.x,v.cx)},x),O=ce(ce(ce(ce({},f),v),{},{fill:"none",stroke:v.fill},d),{},{index:h,points:[fe(v.cx,v.cy,v.outerRadius,g),x]}),m=s;return Z(s)&&Z(c)?m="value":Z(s)&&(m=c),S.createElement(re,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(h)},u&&t.renderLabelLineItem(u,O,"line"),t.renderLabelItem(o,w,Ae(v,m)))});return S.createElement(re,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,s=a.inactiveShape;return n.map(function(c,f){if(c?.startAngle===0&&c?.endAngle===0&&n.length!==1)return null;var l=i.isActiveIndex(f),d=s&&i.hasActiveIndex()?s:null,p=l?o:d,y=ce(ce({},c),{},{stroke:u?c.fill:c.stroke,tabIndex:-1});return S.createElement(re,Tr({ref:function(h){h&&!i.sectorRefs.includes(h)&&i.sectorRefs.push(h)},tabIndex:-1,className:"recharts-pie-sector"},ur(i.props,c,f),{key:"sector-".concat(c?.startAngle,"-").concat(c?.endAngle,"-").concat(c.midAngle,"-").concat(f)}),S.createElement(Lw,Tr({option:p,isActive:l,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,s=i.animationDuration,c=i.animationEasing,f=i.animationId,l=this.state,d=l.prevSectors,p=l.prevIsAnimationActive;return S.createElement(ht,{begin:u,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var v=y.t,h=[],g=a&&a[0],x=g.startAngle;return a.forEach(function(w,O){var m=d&&d[O],b=O>0?Ke(w,"paddingAngle",0):0;if(m){var _=Ue(m.endAngle-m.startAngle,w.endAngle-w.startAngle),A=ce(ce({},w),{},{startAngle:x+b,endAngle:x+_(v)+b});h.push(A),x=A.endAngle}else{var P=w.endAngle,j=w.startAngle,E=Ue(0,P-j),T=E(v),M=ce(ce({},w),{},{startAngle:x+b,endAngle:x+T+b});h.push(M),x=M.endAngle}}),S.createElement(re,null,n.renderSectorsStatically(h))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Si(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,u=i.className,s=i.label,c=i.cx,f=i.cy,l=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!L(c)||!L(f)||!L(l)||!L(d))return null;var v=Q("recharts-pie",u);return S.createElement(re,{tabIndex:this.props.rootTabIndex,className:v,ref:function(g){n.pieRef=g}},this.renderSectors(),s&&this.renderLabels(o),je.renderCallByParent(this.props,null,!1),(!p||y)&&_t.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);if(Y(n))return n(i);var o=Q("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return S.createElement(wa,Tr({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);var o=a;if(Y(n)&&(o=n(i),S.isValidElement(o)))return o;var u=Q("recharts-pie-label-text",typeof n!="boolean"&&!Y(n)?n.className:"");return S.createElement(sr,Tr({},i,{alignmentBaseline:"middle",className:u}),o)}}])})(N.PureComponent);Hi=$t;Qe($t,"displayName","Pie");Qe($t,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!vr.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Qe($t,"parseDeltaAngle",function(e,t){var r=Ie(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Qe($t,"getRealPieData",function(e){var t=e.data,r=e.children,n=K(e,!1),i=Ge(r,io);return t&&t.length?t.map(function(a,o){return ce(ce(ce({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return ce(ce({},n),a.props)}):[]});Qe($t,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=_w(i,a),u=n+ke(e.cx,i,i/2),s=r+ke(e.cy,a,a/2),c=ke(e.innerRadius,o,0),f=ke(e.outerRadius,o,o*.8),l=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:s,innerRadius:c,outerRadius:f,maxRadius:l}});Qe($t,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?ce(ce({},t.type.defaultProps),t.props):t.props,i=Hi.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,s=n.paddingAngle,c=n.dataKey,f=n.nameKey,l=n.valueKey,d=n.tooltipType,p=Math.abs(n.minAngle),y=Hi.parseCoordinateOfPie(n,r),v=Hi.parseDeltaAngle(o,u),h=Math.abs(v),g=c;Z(c)&&Z(l)?(ut(!1,`Use "dataKey" to specify the value of pie,
59      the props "valueKey" will be deprecated in 1.1.0`),g="value"):Z(c)&&(ut(!1,`Use "dataKey" to specify the value of pie,
60      the props "valueKey" will be deprecated in 1.1.0`),g=l);var x=i.filter(function(A){return Ae(A,g,0)!==0}).length,w=(h>=360?x:x-1)*s,O=h-x*p-w,m=i.reduce(function(A,P){var j=Ae(P,g,0);return A+(L(j)?j:0)},0),b;if(m>0){var _;b=i.map(function(A,P){var j=Ae(A,g,0),E=Ae(A,f,P),T=(L(j)?j:0)/m,M;P?M=_.endAngle+Ie(v)*s*(j!==0?1:0):M=o;var C=M+Ie(v)*((j!==0?p:0)+T*O),$=(M+C)/2,I=(y.innerRadius+y.outerRadius)/2,D=[{name:E,value:j,payload:A,dataKey:g,type:d}],B=fe(y.cx,y.cy,I,$);return _=ce(ce(ce({percent:T,cornerRadius:a,name:E,tooltipPayload:D,midAngle:$,middleRadius:I,tooltipPosition:B},A),y),{},{value:Ae(A,g),startAngle:M,endAngle:C,payload:A,paddingAngle:Ie(v)*s}),_})}return ce(ce({},y),{},{sectors:b,data:i})});var pl,db;function SR(){if(db)return pl;db=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 pl=r,pl}var vl,hb;function zw(){if(hb)return vl;hb=1;var e=fx(),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 vl=n,vl}var yl,pb;function PR(){if(pb)return yl;pb=1;var e=SR(),t=no(),r=zw();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 yl=n,yl}var ml,vb;function TR(){if(vb)return ml;vb=1;var e=PR(),t=e();return ml=t,ml}var jR=TR();const Ca=ue(jR);function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function yb(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 mb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yb(Object(r),!0).forEach(function(n){Ww(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ww(e,t,r){return t=ER(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ER(e){var t=MR(e,"string");return di(t)=="symbol"?t:t+""}function MR(e,t){if(di(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(di(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $R=["Webkit","Moz","O","ms"],CR=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=$R.reduce(function(a,o){return mb(mb({},a),{},Ww({},o+n,r))},{});return i[t]=r,i};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 Ia(){return Ia=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},Ia.apply(this,arguments)}function gb(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 gl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gb(Object(r),!0).forEach(function(n){ze(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bb(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 kR(e,t,r){return t&&bb(e.prototype,t),r&&bb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RR(e,t,r){return t=ka(t),NR(e,Uw()?Reflect.construct(t,r||[],ka(e).constructor):t.apply(e,r))}function NR(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 DR(e)}function DR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uw=function(){return!!e})()}
vendor: 122,001 bytes, lines 60-65
60function ka(e){return ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ka(e)}function qR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 ze(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=LR(e,"string");return Kr(t)=="symbol"?t:t+""}function LR(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 BR=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=$n().domain(Ca(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}},xb=function(t){return t.changedTouches&&!!t.changedTouches.length},Gr=(function(e){function t(r){var n;return IR(this,t),n=RR(this,t,[r]),ze(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),ze(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),ze(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()}),ze(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),ze(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),ze(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),ze(n,"handleSlideDragStart",function(i){var a=xb(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return qR(t,e),kR(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,s=u.gap,c=u.data,f=c.length-1,l=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,l),y=t.getIndexInRange(o,d);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=Ae(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,d=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 h=this.getIndex({startX:o+v,endX:u+v});(h.startIndex!==d||h.endIndex!==p)&&y&&y(h),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=xb(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,s=i.startX,c=this.state[o],f=this.props,l=f.x,d=f.width,p=f.travellerWidth,y=f.onChange,v=f.gap,h=f.data,g={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+d-p-c):x<0&&(x=Math.max(x,l-c)),g[o]=c+x;var w=this.getIndex(g),O=w.startIndex,m=w.endIndex,b=function(){var A=h.length-1;return o==="startX"&&(u>s?O%v===0:m%v===0)||u<s&&m===A||o==="endX"&&(u>s?m%v===0:O%v===0)||u>s&&m===A};this.setState(ze(ze({},o,c+x),"brushMoveStartX",n.pageX),function(){y&&b()&&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 d=l+n;if(!(d===-1||d>=u.length)){var p=u[d];i==="startX"&&p>=c||i==="endX"&&p<=s||this.setState(ze({},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 S.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=N.Children.only(c);return l?S.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,d=s.traveller,p=s.ariaLabel,y=s.data,v=s.startIndex,h=s.endIndex,g=Math.max(n,this.props.x),x=gl(gl({},K(this.props,!1)),{},{x:g,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[h])===null||o===void 0?void 0:o.name);return S.createElement(re,{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(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,0);return S.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,d=f.endX,p=5,y={pointerEvents:"none",fill:c};return S.createElement(re,{className:"recharts-brush-texts"},S.createElement(sr,Ia({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,d)-p,y:o+u/2},y),this.getTextOfTick(i)),S.createElement(sr,Ia({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,d)+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,d=this.state,p=d.startX,y=d.endX,v=d.isTextActive,h=d.isSlideMoving,g=d.isTravellerMoving,x=d.isTravellerFocused;if(!i||!i.length||!L(u)||!L(s)||!L(c)||!L(f)||c<=0||f<=0)return null;var w=Q("recharts-brush",a),O=S.Children.count(o)===1,m=CR("userSelect","none");return S.createElement(re,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(v||h||g||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(a+u/2)-1;return S.createElement(S.Fragment,null,S.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),S.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),S.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 S.isValidElement(n)?a=S.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 gl({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?BR({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(N.PureComponent);ze(Gr,"displayName","Brush");ze(Gr,"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 bl,wb;function FR(){if(wb)return bl;wb=1;var e=Pd();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return bl=t,bl}var xl,Ob;function zR(){if(Ob)return xl;Ob=1;var e=z0(),t=vt(),r=FR(),n=Le(),i=no();function a(o,u,s){var c=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),c(o,t(u,3))}return xl=a,xl}var WR=zR();const UR=ue(WR);var ft=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},wl,_b;function HR(){if(_b)return wl;_b=1;var e=ox();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return wl=t,wl}var Ol,Ab;function KR(){if(Ab)return Ol;Ab=1;var e=HR(),t=ix(),r=vt();function n(i,a){var o={};return a=r(a,3),t(i,function(u,s,c){e(o,s,a(u,s,c))}),o}return Ol=n,Ol}var GR=KR();const VR=ue(GR);var _l,Sb;function XR(){if(Sb)return _l;Sb=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 _l=e,_l}var Al,Pb;function YR(){if(Pb)return Al;Pb=1;var e=Pd();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Al=t,Al}var Sl,Tb;function ZR(){if(Tb)return Sl;Tb=1;var e=XR(),t=YR(),r=vt(),n=Le(),i=no();function a(o,u,s){var c=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),c(o,r(u,3))}return Sl=a,Sl}var JR=ZR();const Kw=ue(JR);var QR=["x","y"];function hi(e){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hi(e)}function Bf(){return Bf=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},Bf.apply(this,arguments)}function jb(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 An(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jb(Object(r),!0).forEach(function(n){eN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eN(e,t,r){return t=tN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tN(e){var t=rN(e,"string");return hi(t)=="symbol"?t:t+""}function rN(e,t){if(hi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nN(e,t){if(e==null)return{};var r=iN(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 iN(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 aN(e,t){var r=e.x,n=e.y,i=nN(e,QR),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),d=parseInt(l,10);return An(An(An(An(An({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function Eb(e){return S.createElement(Lw,Bf({shapeType:"rectangle",propTransformer:aN,activeClassName:"recharts-active-bar"},e))}var oN=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)||P_(n);return a?t(n,i):(a||lr(),r)}},uN=["value","background"],Gw;function Vr(e){"@babel/helpers - typeof";return Vr=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},Vr(e)}function sN(e,t){if(e==null)return{};var r=cN(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 cN(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 Ra(){return Ra=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},Ra.apply(this,arguments)}function Mb(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 ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mb(Object(r),!0).forEach(function(n){Dt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $b(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,Xw(n.key),n)}}function fN(e,t,r){return t&&$b(e.prototype,t),r&&$b(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dN(e,t,r){return t=Na(t),hN(e,Vw()?Reflect.construct(t,r||[],Na(e).constructor):t.apply(e,r))}function hN(e,t){if(t&&(Vr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pN(e)}function pN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vw=function(){return!!e})()}function Na(e){return Na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Na(e)}function vN(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&&Ff(e,t)}function Ff(e,t){return Ff=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ff(e,t)}function Dt(e,t,r){return t=Xw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xw(e){var t=yN(e,"string");return Vr(t)=="symbol"?t:t+""}function yN(e,t){if(Vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var br=(function(e){function t(){var r;lN(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=dN(this,t,[].concat(i)),Dt(r,"state",{isAnimationFinished:!1}),Dt(r,"id",ln("recharts-bar-")),Dt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Dt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return vN(t,e),fN(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=K(this.props,!1);return n&&n.map(function(l,d){var p=d===s,y=p?c:o,v=ge(ge(ge({},f),l),{},{isActive:p,option:y,index:d,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return S.createElement(re,Ra({className:"recharts-bar-rectangle"},ur(i.props,l,d),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(d)}),S.createElement(Eb,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,f=i.animationEasing,l=i.animationId,d=this.state.prevData;return S.createElement(ht,{begin:s,duration:c,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,v=a.map(function(h,g){var x=d&&d[g];if(x){var w=Ue(x.x,h.x),O=Ue(x.y,h.y),m=Ue(x.width,h.width),b=Ue(x.height,h.height);return ge(ge({},h),{},{x:w(y),y:O(y),width:m(y),height:b(y)})}if(o==="horizontal"){var _=Ue(0,h.height),A=_(y);return ge(ge({},h),{},{y:h.y+h.height-A,height:A})}var P=Ue(0,h.width),j=P(y);return ge(ge({},h),{},{width:j})});return S.createElement(re,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||!Si(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,s=K(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,d=sN(c,uN);if(!l)return null;var p=ge(ge(ge(ge(ge({},d),{},{fill:"#eee"},l),s),ur(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return S.createElement(Eb,Ra({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=Ge(f,Pi);if(!l)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,p=function(h,g){var x=Array.isArray(h.value)?h.value[1]:h.value;return{x:h.x,y:h.y,value:x,errorVal:Ae(h,g)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(re,y,l.map(function(v){return S.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:d,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,c=n.left,f=n.top,l=n.width,d=n.height,p=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var h=this.state.isAnimationFinished,g=Q("recharts-bar",o),x=u&&u.allowDataOverflow,w=s&&s.allowDataOverflow,O=x||w,m=Z(v)?this.id:v;return S.createElement(re,{className:g},x||w?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(m)},S.createElement("rect",{x:x?c:c-l/2,y:w?f:f-d/2,width:x?l:l*2,height:w?d:d*2}))):null,S.createElement(re,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!p||h)&&_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}}])})(N.PureComponent);Gw=br;Dt(br,"displayName","Bar");Dt(br,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!vr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Dt(br,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,s=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,p=FM(n,r);if(!p)return null;var y=t.layout,v=r.type.defaultProps,h=v!==void 0?ge(ge({},v),r.props):r.props,g=h.dataKey,x=h.children,w=h.minPointSize,O=y==="horizontal"?o:a,m=c?O.scale.domain():null,b=VM({numericAxis:O}),_=Ge(x,io),A=l.map(function(P,j){var E,T,M,C,$,I;c?E=zM(c[f+j],m):(E=Ae(P,g),Array.isArray(E)||(E=[b,E]));var D=oN(w,Gw.defaultProps.minPointSize)(E[1],j);if(y==="horizontal"){var B,F=[o.scale(E[0]),o.scale(E[1])],H=F[0],V=F[1];T=ag({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:P,index:j}),M=(B=V??H)!==null&&B!==void 0?B:void 0,C=p.size;var W=H-V;if($=Number.isNaN(W)?0:W,I={x:T,y:o.y,width:C,height:o.height},Math.abs(D)>0&&Math.abs($)<Math.abs(D)){var X=Ie($||D)*(Math.abs(D)-Math.abs($));M-=X,$+=X}}else{var de=[a.scale(E[0]),a.scale(E[1])],me=de[0],Be=de[1];if(T=me,M=ag({axis:o,ticks:s,bandSize:i,offset:p.offset,entry:P,index:j}),C=Be-me,$=p.size,I={x:a.x,y:M,width:a.width,height:$},Math.abs(D)>0&&Math.abs(C)<Math.abs(D)){var Ut=Ie(C||D)*(Math.abs(D)-Math.abs(C));C+=Ut}}return ge(ge(ge({},P),{},{x:T,y:M,width:C,height:$,value:c?E:E[1],payload:P,background:I},_&&_[j]&&_[j].props),{},{tooltipPayload:[ww(r,P)],tooltipPosition:{x:T+C/2,y:M+$/2}})});return ge({data:A,layout:y},d)});function pi(e){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pi(e)}function mN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cb(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,Yw(n.key),n)}}function gN(e,t,r){return t&&Cb(e.prototype,t),r&&Cb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),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 it(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){Ao(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 Ao(e,t,r){return t=Yw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yw(e){var t=bN(e,"string");return pi(t)=="symbol"?t:t+""}function bN(e,t){if(pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zw=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},d=!!We(c,br);return f.reduce(function(p,y){var v=r[y],h=v.orientation,g=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,m=v.reversed,b="".concat(h).concat(O?"Mirror":""),_,A,P,j,E;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var T=g[1]-g[0],M=1/0,C=v.categoricalDomain.sort(E_);if(C.forEach(function(de,me){me>0&&(M=Math.min((de||0)-(C[me-1]||0),M))}),Number.isFinite(M)){var $=M/T,I=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=$*I/2),v.padding==="no-gap"){var D=ke(t.barCategoryGap,$*I),B=$*I/2;_=B-D-(B-D)/I*D}}}i==="xAxis"?A=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?A=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)]:A=v.range,m&&(A=[A[1],A[0]]);var F=mw(v,a,d),H=F.scale,V=F.realScaleType;H.domain(g).range(A),gw(H);var W=bw(H,it(it({},v),{},{realScaleType:V}));i==="xAxis"?(E=h==="top"&&!O||h==="bottom"&&O,P=n.left,j=l[b]-E*v.height):i==="yAxis"&&(E=h==="left"&&!O||h==="right"&&O,P=l[b]-E*v.width,j=n.top);var X=it(it(it({},v),W),{},{realScaleType:V,x:P,y:j,scale:H,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=ga(X,W),!v.hide&&i==="xAxis"?l[b]+=(E?-1:1)*X.height:v.hide||(l[b]+=(E?-1:1)*X.width),it(it({},p),{},Ao({},y,X))},{})},Jw=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)}},xN=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Jw({x:r,y:n},{x:i,y:a})},Qw=(function(){function e(t){mN(this,e),this.scale=t}return gN(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)}}])})();Ao(Qw,"EPS",1e-4);var th=function(t){var r=Object.keys(t).reduce(function(n,i){return it(it({},n),{},Ao({},i,Qw.create(t[i])))},{});return it(it({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return VR(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return Kw(i,function(a,o){return r[o].isInRange(a)})}})};function wN(e){return(e%180+180)%180}var ON=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=wN(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)},Pl,kb;function _N(){if(kb)return Pl;kb=1;var e=vt(),t=xi(),r=to();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 Pl=n,Pl}var Tl,Rb;function AN(){if(Rb)return Tl;Rb=1;var e=zw();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Tl=t,Tl}var jl,Nb;function SN(){if(Nb)return jl;Nb=1;var e=Q0(),t=vt(),r=AN(),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 jl=i,jl}var El,Db;function PN(){if(Db)return El;Db=1;var e=_N(),t=SN(),r=e(t);return El=r,El}var TN=PN();const jN=ue(TN);var EN=v0();const MN=ue(EN);var $N=MN(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("")}),rh=N.createContext(void 0),nh=N.createContext(void 0),eO=N.createContext(void 0),tO=N.createContext({}),rO=N.createContext(void 0),nO=N.createContext(0),iO=N.createContext(0),qb=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=$N(a);return S.createElement(rh.Provider,{value:n},S.createElement(nh.Provider,{value:i},S.createElement(tO.Provider,{value:a},S.createElement(eO.Provider,{value:f},S.createElement(rO.Provider,{value:o},S.createElement(nO.Provider,{value:c},S.createElement(iO.Provider,{value:s},u)))))))},CN=function(){return N.useContext(rO)},aO=function(t){var r=N.useContext(rh);r==null&&lr();var n=r[t];return n==null&&lr(),n},IN=function(){var t=N.useContext(rh);return Nt(t)},kN=function(){var t=N.useContext(nh),r=jN(t,function(n){return Kw(n.domain,Number.isFinite)});return r||Nt(t)},oO=function(t){var r=N.useContext(nh);r==null&&lr();var n=r[t];return n==null&&lr(),n},RN=function(){var t=N.useContext(eO);return t},NN=function(){return N.useContext(tO)},ih=function(){return N.useContext(iO)},ah=function(){return N.useContext(nO)};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)}function DN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qN(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,sO(n.key),n)}}function LN(e,t,r){return t&&qN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BN(e,t,r){return t=Da(t),FN(e,uO()?Reflect.construct(t,r||[],Da(e).constructor):t.apply(e,r))}function FN(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 zN(e)}function zN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uO=function(){return!!e})()}function Da(e){return Da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Da(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&&zf(e,t)}function zf(e,t){return zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zf(e,t)}function Lb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lb(Object(r),!0).forEach(function(n){oh(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 oh(e,t,r){return t=sO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sO(e){var t=UN(e,"string");return Xr(t)=="symbol"?t:t+""}function UN(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 HN(e,t){return XN(e)||VN(e,t)||GN(e,t)||KN()}function KN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
61In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GN(e,t){if(e){if(typeof e=="string")return Fb(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 Fb(e,t)}}function Fb(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 VN(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 XN(e){if(Array.isArray(e))return e}function Wf(){return Wf=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},Wf.apply(this,arguments)}var YN=function(t,r){var n;return S.isValidElement(t)?n=S.cloneElement(t,r):Y(t)?n=t(r):n=S.createElement("line",Wf({},r,{className:"recharts-reference-line-line"})),n},ZN=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,d=a.width,p=a.height;if(n){var y=c.y,v=t.y.apply(y,{position:o});if(ft(c,"discard")&&!t.y.isInRange(v))return null;var h=[{x:f+d,y:v},{x:f,y:v}];return s==="left"?h.reverse():h}if(r){var g=c.x,x=t.x.apply(g,{position:o});if(ft(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,m=O.map(function(b){return t.apply(b,{position:o})});return ft(c,"discard")&&UR(m,function(b){return!t.isInRange(b)})?null:m}return null};function JN(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=CN(),f=aO(i),l=oO(a),d=RN();if(!c||!d)return null;ut(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=th({x:f.scale,y:l.scale}),y=Se(t),v=Se(r),h=n&&n.length===2,g=ZN(p,y,v,h,d,e.position,f.orientation,l.orientation,e);if(!g)return null;var x=HN(g,2),w=x[0],O=w.x,m=w.y,b=x[1],_=b.x,A=b.y,P=ft(e,"hidden")?"url(#".concat(c,")"):void 0,j=Bb(Bb({clipPath:P},K(e,!0)),{},{x1:O,y1:m,x2:_,y2:A});return S.createElement(re,{className:Q("recharts-reference-line",u)},YN(o,j),je.renderCallByParent(e,xN({x1:O,y1:m,x2:_,y2:A})))}var uh=(function(e){function t(){return DN(this,t),BN(this,t,arguments)}return WN(t,e),LN(t,[{key:"render",value:function(){return S.createElement(JN,this.props)}}])})(S.Component);oh(uh,"displayName","ReferenceLine");oh(uh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Uf(){return Uf=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},Uf.apply(this,arguments)}function Yr(e){"@babel/helpers - typeof";return Yr=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},Yr(e)}function zb(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 Wb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zb(Object(r),!0).forEach(function(n){So(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eD(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,lO(n.key),n)}}function tD(e,t,r){return t&&eD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rD(e,t,r){return t=qa(t),nD(e,cO()?Reflect.construct(t,r||[],qa(e).constructor):t.apply(e,r))}function nD(e,t){if(t&&(Yr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iD(e)}function iD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cO=function(){return!!e})()}function qa(e){return qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qa(e)}function aD(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 So(e,t,r){return t=lO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lO(e){var t=oD(e,"string");return Yr(t)=="symbol"?t:t+""}function oD(e,t){if(Yr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uD=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=th({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return ft(t,"discard")&&!o.isInRange(u)?null:u},Po=(function(e){function t(){return QN(this,t),rD(this,t,arguments)}return aD(t,e),tD(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=Se(i),f=Se(a);if(ut(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=uD(this.props);if(!l)return null;var d=l.x,p=l.y,y=this.props,v=y.shape,h=y.className,g=ft(this.props,"hidden")?"url(#".concat(s,")"):void 0,x=Wb(Wb({clipPath:g},K(this.props,!0)),{},{cx:d,cy:p});return S.createElement(re,{className:Q("recharts-reference-dot",h)},t.renderDot(v,x),je.renderCallByParent(this.props,{x:d-o,y:p-o,width:2*o,height:2*o}))}}])})(S.Component);So(Po,"displayName","ReferenceDot");So(Po,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});So(Po,"renderDot",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):Y(e)?r=e(t):r=S.createElement(mo,Uf({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Kf(){return Kf=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},Kf.apply(this,arguments)}function Zr(e){"@babel/helpers - typeof";return Zr=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},Zr(e)}function Ub(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 Hb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ub(Object(r),!0).forEach(function(n){To(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ub(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dO(n.key),n)}}function lD(e,t,r){return t&&cD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fD(e,t,r){return t=La(t),dD(e,fO()?Reflect.construct(t,r||[],La(e).constructor):t.apply(e,r))}function dD(e,t){if(t&&(Zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hD(e)}function hD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fO=function(){return!!e})()}function La(e){return La=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},La(e)}function pD(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&&Gf(e,t)}function Gf(e,t){return Gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gf(e,t)}function To(e,t,r){return t=dO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dO(e){var t=vD(e,"string");return Zr(t)=="symbol"?t:t+""}function vD(e,t){if(Zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yD=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var d=th({x:f.scale,y:l.scale}),p={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},y={x:r?d.x.apply(u,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(c,{position:"end"}):d.y.rangeMax};return ft(a,"discard")&&(!d.isInRange(p)||!d.isInRange(y))?null:Jw(p,y)},jo=(function(e){function t(){return sD(this,t),fD(this,t,arguments)}return pD(t,e),lD(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.className,c=n.alwaysShow,f=n.clipPathId;ut(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Se(i),d=Se(a),p=Se(o),y=Se(u),v=this.props.shape;if(!l&&!d&&!p&&!y&&!v)return null;var h=yD(l,d,p,y,this.props);if(!h&&!v)return null;var g=ft(this.props,"hidden")?"url(#".concat(f,")"):void 0;return S.createElement(re,{className:Q("recharts-reference-area",s)},t.renderRect(v,Hb(Hb({clipPath:g},K(this.props,!0)),h)),je.renderCallByParent(this.props,h))}}])})(S.Component);To(jo,"displayName","ReferenceArea");To(jo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});To(jo,"renderRect",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):Y(e)?r=e(t):r=S.createElement(eh,Kf({},t,{className:"recharts-reference-area-rect"})),r});function hO(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 mD(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return ON(n,r)}function gD(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 Ba(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 bD(e,t){return hO(e,t+1)}function xD(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:hO(n,c)};var v=s,h,g=function(){return h===void 0&&(h=r(y,v)),h},x=y.coordinate,w=s===0||Ba(e,x,g,f,u);w||(s=0,f=o,c+=1),w&&(f=x+e*(g()/2+i),s+=c)},d;c<=a.length;)if(d=l(),d)return d.v;return[]}function vi(e){"@babel/helpers - typeof";return vi=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},vi(e)}function Kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kb(Object(r),!0).forEach(function(n){wD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wD(e,t,r){return t=OD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OD(e){var t=_D(e,"string");return vi(t)=="symbol"?t:t+""}function _D(e,t){if(vi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AD(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=function(d){var p=a[d],y,v=function(){return y===void 0&&(y=r(p,d)),y};if(d===o-1){var h=e*(p.coordinate+e*v()/2-s);a[d]=p=$e($e({},p),{},{tickCoord:h>0?p.coordinate-h*e:p.coordinate})}else a[d]=p=$e($e({},p),{},{tickCoord:p.coordinate});var g=Ba(e,p.tickCoord,v,u,s);g&&(s=p.tickCoord-e*(v()/2+i),a[d]=$e($e({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function SD(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var f=n[u-1],l=r(f,u-1),d=e*(f.coordinate+e*l/2-c);o[u-1]=f=$e($e({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=Ba(e,f.tickCoord,function(){return l},s,c);p&&(c=f.tickCoord-e*(l/2+i),o[u-1]=$e($e({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,m=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var b=e*(w.coordinate-e*m()/2-s);o[x]=w=$e($e({},w),{},{tickCoord:b<0?w.coordinate-b*e:w.coordinate})}else o[x]=w=$e($e({},w),{},{tickCoord:w.coordinate});var _=Ba(e,w.tickCoord,m,s,c);_&&(s=w.tickCoord+e*(m()/2+i),o[x]=$e($e({},w),{},{isShow:!0}))},h=0;h<y;h++)v(h);return o}function sh(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)||vr.isSsr)return bD(i,typeof s=="number"&&L(s)?s:0);var d=[],p=u==="top"||u==="bottom"?"width":"height",y=f&&p==="width"?Mn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var m=Y(c)?c(w.value,O):w.value;return p==="width"?mD(Mn(m,{fontSize:t,letterSpacing:r}),y,l):Mn(m,{fontSize:t,letterSpacing:r})[p]},h=i.length>=2?Ie(i[1].coordinate-i[0].coordinate):1,g=gD(a,h,p);return s==="equidistantPreserveStart"?xD(h,g,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?d=SD(h,g,v,i,o,s==="preserveStartEnd"):d=AD(h,g,v,i,o),d.filter(function(x){return x.isShow}))}var PD=["viewBox"],TD=["viewBox"],jD=["ticks"];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 jr(){return jr=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},jr.apply(this,arguments)}function Gb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gb(Object(r),!0).forEach(function(n){ch(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ml(e,t){if(e==null)return{};var r=ED(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 ED(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 MD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vO(n.key),n)}}function $D(e,t,r){return t&&Vb(e.prototype,t),r&&Vb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function CD(e,t,r){return t=Fa(t),ID(e,pO()?Reflect.construct(t,r||[],Fa(e).constructor):t.apply(e,r))}function ID(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 kD(e)}function kD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pO=function(){return!!e})()}function Fa(e){return Fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fa(e)}function RD(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&&Vf(e,t)}function Vf(e,t){return Vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vf(e,t)}function ch(e,t,r){return t=vO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vO(e){var t=ND(e,"string");return Jr(t)=="symbol"?t:t+""}function ND(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 vn=(function(e){function t(r){var n;return MD(this,t),n=CD(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return RD(t,e),$D(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Ml(n,PD),u=this.props,s=u.viewBox,c=Ml(u,TD);return!Mr(a,s)||!Mr(o,c)||!Mr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,s=i.height,c=i.orientation,f=i.tickSize,l=i.mirror,d=i.tickMargin,p,y,v,h,g,x,w=l?-1:1,O=n.tickSize||f,m=L(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":p=y=n.coordinate,h=o+ +!l*s,v=h-w*O,x=v-w*d,g=m;break;case"left":v=h=n.coordinate,y=a+ +!l*u,p=y-w*O,g=p-w*d,x=m;break;case"right":v=h=n.coordinate,y=a+ +l*u,p=y+w*O,g=p+w*d,x=m;break;default:p=y=n.coordinate,h=o+ +l*s,v=h+w*O,x=v+w*d,g=m;break}return{line:{x1:p,y1:v,x2:y,y2:h},tick:{x:g,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.orientation,c=n.mirror,f=n.axisLine,l=Oe(Oe(Oe({},K(this.props,!1)),K(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var d=+(s==="top"&&!c||s==="bottom"&&c);l=Oe(Oe({},l),{},{x1:i,y1:a+d*u,x2:i+o,y2:a+d*u})}else{var p=+(s==="left"&&!c||s==="right"&&c);l=Oe(Oe({},l),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+u})}return S.createElement("line",jr({},l,{className:Q("recharts-cartesian-axis-line",Ke(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,f=u.tick,l=u.tickFormatter,d=u.unit,p=sh(Oe(Oe({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),h=K(this.props,!1),g=K(f,!1),x=Oe(Oe({},h),{},{fill:"none"},K(s,!1)),w=p.map(function(O,m){var b=o.getTickLineCoord(O),_=b.line,A=b.tick,P=Oe(Oe(Oe(Oe({textAnchor:y,verticalAnchor:v},h),{},{stroke:"none",fill:c},g),A),{},{index:m,payload:O,visibleTicksCount:p.length,tickFormatter:l});return S.createElement(re,jr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},ur(o.props,O,m)),s&&S.createElement("line",jr({},x,_,{className:Q("recharts-cartesian-axis-tick-line",Ke(s,"className"))})),f&&t.renderTickItem(f,P,"".concat(Y(l)?l(O.value,m):O.value).concat(d||"")))});return S.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,s=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var l=this.props,d=l.ticks,p=Ml(l,jD),y=d;return Y(s)&&(y=d&&d.length>0?s(this.props):s(p)),o<=0||u<=0||!y||!y.length?null:S.createElement(re,{className:Q("recharts-cartesian-axis",c),ref:function(h){n.layerReference=h}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),je.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=Q(i.className,"recharts-cartesian-axis-tick-value");return S.isValidElement(n)?o=S.cloneElement(n,Oe(Oe({},i),{},{className:u})):Y(n)?o=n(Oe(Oe({},i),{},{className:u})):o=S.createElement(sr,jr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(N.Component);ch(vn,"displayName","CartesianAxis");ch(vn,"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 DD=["x1","y1","x2","y2","key"],qD=["offset"];function fr(e){"@babel/helpers - typeof";return fr=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},fr(e)}function Xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xb(Object(r),!0).forEach(function(n){LD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LD(e,t,r){return t=BD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BD(e){var t=FD(e,"string");return fr(t)=="symbol"?t:t+""}function FD(e,t){if(fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nr(){return nr=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},nr.apply(this,arguments)}function Yb(e,t){if(e==null)return{};var r=zD(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 zD(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 WD=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 S.createElement("rect",{x:i,y:a,ry:s,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function yO(e,t){var r;if(S.isValidElement(e))r=S.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=Yb(t,DD),c=K(s,!1);c.offset;var f=Yb(c,qD);r=S.createElement("line",nr({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function UD(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=Ce(Ce({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(s),index:s});return yO(i,c)});return S.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function HD(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=Ce(Ce({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(s),index:s});return yO(i,c)});return S.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function KD(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,s=e.horizontal,c=s===void 0?!0:s;if(!c||!t||!t.length)return null;var f=u.map(function(d){return Math.round(d+i-i)}).sort(function(d,p){return d-p});i!==f[0]&&f.unshift(0);var l=f.map(function(d,p){var y=!f[p+1],v=y?i+o-d:f[p+1]-d;if(v<=0)return null;var h=p%t.length;return S.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:v,width:a,stroke:"none",fill:t[h],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function GD(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,s=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var f=c.map(function(d){return Math.round(d+a-a)}).sort(function(d,p){return d-p});a!==f[0]&&f.unshift(0);var l=f.map(function(d,p){var y=!f[p+1],v=y?a+u-d:f[p+1]-d;if(v<=0)return null;var h=p%n.length;return S.createElement("rect",{key:"react-".concat(p),x:d,y:o,width:v,height:s,stroke:"none",fill:n[h],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var VD=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return yw(sh(Ce(Ce(Ce({},vn.defaultProps),n),{},{ticks:xt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},XD=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return yw(sh(Ce(Ce(Ce({},vn.defaultProps),n),{},{ticks:xt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},_r={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Xf(e){var t,r,n,i,a,o,u=ih(),s=ah(),c=NN(),f=Ce(Ce({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:_r.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:_r.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:_r.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:_r.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:_r.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:_r.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,d=f.y,p=f.width,y=f.height,v=f.syncWithTicks,h=f.horizontalValues,g=f.verticalValues,x=IN(),w=kN();if(!L(p)||p<=0||!L(y)||y<=0||!L(l)||l!==+l||!L(d)||d!==+d)return null;var O=f.verticalCoordinatesGenerator||VD,m=f.horizontalCoordinatesGenerator||XD,b=f.horizontalPoints,_=f.verticalPoints;if((!b||!b.length)&&Y(m)){var A=h&&h.length,P=m({yAxis:w?Ce(Ce({},w),{},{ticks:A?h:w.ticks}):void 0,width:u,height:s,offset:c},A?!0:v);ut(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(fr(P),"]")),Array.isArray(P)&&(b=P)}if((!_||!_.length)&&Y(O)){var j=g&&g.length,E=O({xAxis:x?Ce(Ce({},x),{},{ticks:j?g:x.ticks}):void 0,width:u,height:s,offset:c},j?!0:v);ut(Array.isArray(E),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(fr(E),"]")),Array.isArray(E)&&(_=E)}return S.createElement("g",{className:"recharts-cartesian-grid"},S.createElement(WD,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),S.createElement(UD,nr({},f,{offset:c,horizontalPoints:b,xAxis:x,yAxis:w})),S.createElement(HD,nr({},f,{offset:c,verticalPoints:_,xAxis:x,yAxis:w})),S.createElement(KD,nr({},f,{horizontalPoints:b})),S.createElement(GD,nr({},f,{verticalPoints:_})))}Xf.displayName="CartesianGrid";var YD=["type","layout","connectNulls","ref"],ZD=["key"];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 Zb(e,t){if(e==null)return{};var r=JD(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 JD(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 Nn(){return Nn=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},Nn.apply(this,arguments)}function Jb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jb(Object(r),!0).forEach(function(n){at(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ar(e){return r2(e)||t2(e)||e2(e)||QD()}function QD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
62In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e2(e,t){if(e){if(typeof e=="string")return Yf(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 Yf(e,t)}}function t2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function r2(e){if(Array.isArray(e))return Yf(e)}function Yf(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 n2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qb(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,gO(n.key),n)}}function i2(e,t,r){return t&&Qb(e.prototype,t),r&&Qb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a2(e,t,r){return t=za(t),o2(e,mO()?Reflect.construct(t,r||[],za(e).constructor):t.apply(e,r))}function o2(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 u2(e)}function u2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mO=function(){return!!e})()}function za(e){return za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},za(e)}function s2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zf(e,t)}function Zf(e,t){return Zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zf(e,t)}function at(e,t,r){return t=gO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gO(e){var t=c2(e,"string");return Qr(t)=="symbol"?t:t+""}function c2(e,t){if(Qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var en=(function(e){function t(){var r;n2(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=a2(this,t,[].concat(i)),at(r,"state",{isAnimationFinished:!0,totalLength:0}),at(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),at(r,"getStrokeDasharray",function(o,u,s){var c=s.reduce(function(g,x){return g+x});if(!c)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/c),l=o%c,d=u-o,p=[],y=0,v=0;y<s.length;v+=s[y],++y)if(v+s[y]>l){p=[].concat(Ar(s.slice(0,y)),[l-v]);break}var h=p.length%2===0?[0,d]:[d];return[].concat(Ar(t.repeat(s,f)),Ar(p),h).map(function(g){return"".concat(g,"px")}).join(", ")}),at(r,"id",ln("recharts-line-")),at(r,"pathRef",function(o){r.mainCurve=o}),at(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),at(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return s2(t,e),i2(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,s=a.yAxis,c=a.layout,f=a.children,l=Ge(f,Pi);if(!l)return null;var d=function(v,h){return{x:v.x,y:v.y,value:v.value,errorVal:Ae(v.payload,h)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(re,p,l.map(function(y){return S.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,s=u.dot,c=u.points,f=u.dataKey,l=K(this.props,!1),d=K(s,!0),p=c.map(function(v,h){var g=Fe(Fe(Fe({key:"dot-".concat(h),r:3},l),d),{},{index:h,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:c});return t.renderDotItem(s,g)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(re,Nn({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,s=u.type,c=u.layout,f=u.connectNulls;u.ref;var l=Zb(u,YD),d=Fe(Fe(Fe({},K(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:s,layout:c,connectNulls:f});return S.createElement(wa,Nn({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.strokeDasharray,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,d=o.animationEasing,p=o.animationId,y=o.animateNewValues,v=o.width,h=o.height,g=this.state,x=g.prevPoints,w=g.totalLength;return S.createElement(ht,{begin:f,duration:l,isActive:c,easing:d,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var m=O.t;if(x){var b=x.length/u.length,_=u.map(function(T,M){var C=Math.floor(M*b);if(x[C]){var $=x[C],I=Ue($.x,T.x),D=Ue($.y,T.y);return Fe(Fe({},T),{},{x:I(m),y:D(m)})}if(y){var B=Ue(v*2,T.x),F=Ue(h/2,T.y);return Fe(Fe({},T),{},{x:B(m),y:F(m)})}return Fe(Fe({},T),{},{x:T.x,y:T.y})});return a.renderCurveStatically(_,n,i)}var A=Ue(0,w),P=A(m),j;if(s){var E="".concat(s).split(/[,\s]+/gim).map(function(T){return parseFloat(T)});j=a.getStrokeDasharray(P,w,E)}else j=a.generateSimpleStrokeDasharray(w,P);return a.renderCurveStatically(u,n,i,{strokeDasharray:j})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,s=this.state,c=s.prevPoints,f=s.totalLength;return u&&o&&o.length&&(!c&&f>0||!Si(c,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.xAxis,f=i.yAxis,l=i.top,d=i.left,p=i.width,y=i.height,v=i.isAnimationActive,h=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,x=u.length===1,w=Q("recharts-line",s),O=c&&c.allowDataOverflow,m=f&&f.allowDataOverflow,b=O||m,_=Z(h)?this.id:h,A=(n=K(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=A.r,j=P===void 0?3:P,E=A.strokeWidth,T=E===void 0?2:E,M=q_(o)?o:{},C=M.clipDot,$=C===void 0?!0:C,I=j*2+T;return S.createElement(re,{className:w},O||m?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(_)},S.createElement("rect",{x:O?d:d-p/2,y:m?l:l-y/2,width:O?p:p*2,height:m?y:y*2})),!$&&S.createElement("clipPath",{id:"clipPath-dots-".concat(_)},S.createElement("rect",{x:d-I/2,y:l-I/2,width:p+I,height:y+I}))):null,!x&&this.renderCurve(b,_),this.renderErrorBar(b,_),(x||o)&&this.renderDots(b,$,_),(!v||g)&&_t.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Ar(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(Ar(o),Ar(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(S.isValidElement(n))a=S.cloneElement(n,i);else if(Y(n))a=n(i);else{var o=i.key,u=Zb(i,ZD),s=Q("recharts-line-dot",typeof n!="boolean"?n.className:"");a=S.createElement(mo,Nn({key:o},u,{className:s}))}return a}}])})(N.PureComponent);at(en,"displayName","Line");at(en,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!vr.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});at(en,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,u=e.bandSize,s=e.displayedData,c=e.offset,f=t.layout,l=s.map(function(d,p){var y=Ae(d,o);return f==="horizontal"?{x:ig({axis:r,ticks:i,bandSize:u,entry:d,index:p}),y:Z(y)?null:n.scale(y),value:y,payload:d}:{x:Z(y)?null:r.scale(y),y:ig({axis:n,ticks:a,bandSize:u,entry:d,index:p}),value:y,payload:d}});return Fe({points:l,layout:f},c)});function tn(e){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tn(e)}function l2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wO(n.key),n)}}function d2(e,t,r){return t&&f2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function h2(e,t,r){return t=Wa(t),p2(e,bO()?Reflect.construct(t,r||[],Wa(e).constructor):t.apply(e,r))}function p2(e,t){if(t&&(tn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v2(e)}function v2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bO=function(){return!!e})()}function Wa(e){return Wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wa(e)}function y2(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&&Jf(e,t)}function Jf(e,t){return Jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jf(e,t)}function xO(e,t,r){return t=wO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wO(e){var t=m2(e,"string");return tn(t)=="symbol"?t:t+""}function m2(e,t){if(tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Qf(){return Qf=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},Qf.apply(this,arguments)}function g2(e){var t=e.xAxisId,r=ih(),n=ah(),i=aO(t);return i==null?null:N.createElement(vn,Qf({},i,{className:Q("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return xt(o,!0)}}))}var rn=(function(e){function t(){return l2(this,t),h2(this,t,arguments)}return y2(t,e),d2(t,[{key:"render",value:function(){return N.createElement(g2,this.props)}}])})(N.Component);xO(rn,"displayName","XAxis");xO(rn,"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 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 b2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x2(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,AO(n.key),n)}}function w2(e,t,r){return t&&x2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function O2(e,t,r){return t=Ua(t),_2(e,OO()?Reflect.construct(t,r||[],Ua(e).constructor):t.apply(e,r))}function _2(e,t){if(t&&(nn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A2(e)}function A2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OO=function(){return!!e})()}function Ua(e){return Ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ua(e)}function S2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ed(e,t)}function ed(e,t){return ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ed(e,t)}function _O(e,t,r){return t=AO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AO(e){var t=P2(e,"string");return nn(t)=="symbol"?t:t+""}function P2(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 String(e)}function td(){return td=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},td.apply(this,arguments)}var T2=function(t){var r=t.yAxisId,n=ih(),i=ah(),a=oO(r);return a==null?null:N.createElement(vn,td({},a,{className:Q("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return xt(u,!0)}}))},an=(function(e){function t(){return b2(this,t),O2(this,t,arguments)}return S2(t,e),w2(t,[{key:"render",value:function(){return N.createElement(T2,this.props)}}])})(N.Component);_O(an,"displayName","YAxis");_O(an,"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 e0(e){return $2(e)||M2(e)||E2(e)||j2()}function j2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
63In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E2(e,t){if(e){if(typeof e=="string")return rd(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 rd(e,t)}}function M2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $2(e){if(Array.isArray(e))return rd(e)}function rd(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 nd=function(t,r,n,i,a){var o=Ge(t,uh),u=Ge(t,Po),s=[].concat(e0(o),e0(u)),c=Ge(t,jo),f="".concat(i,"Id"),l=i[0],d=r;if(s.length&&(d=s.reduce(function(v,h){if(h.props[f]===n&&ft(h.props,"extendDomain")&&L(h.props[l])){var g=h.props[l];return[Math.min(v[0],g),Math.max(v[1],g)]}return v},d)),c.length){var p="".concat(l,"1"),y="".concat(l,"2");d=c.reduce(function(v,h){if(h.props[f]===n&&ft(h.props,"extendDomain")&&L(h.props[p])&&L(h.props[y])){var g=h.props[p],x=h.props[y];return[Math.min(v[0],g,x),Math.max(v[1],g,x)]}return v},d)}return a&&a.length&&(d=a.reduce(function(v,h){return L(h)?[Math.min(v[0],h),Math.max(v[1],h)]:v},d)),d},$l={exports:{}},t0;function C2(){return t0||(t0=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function a(s,c,f,l,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,l||s,d),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 d=0,p=l.length,y=new Array(p);d<p;d++)y[d]=l[d].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,d,p,y){var v=r?r+c:c;if(!this._events[v])return!1;var h=this._events[v],g=arguments.length,x,w;if(h.fn){switch(h.once&&this.removeListener(c,h.fn,void 0,!0),g){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,f),!0;case 3:return h.fn.call(h.context,f,l),!0;case 4:return h.fn.call(h.context,f,l,d),!0;case 5:return h.fn.call(h.context,f,l,d,p),!0;case 6:return h.fn.call(h.context,f,l,d,p,y),!0}for(w=1,x=new Array(g-1);w<g;w++)x[w-1]=arguments[w];h.fn.apply(h.context,x)}else{var O=h.length,m;for(w=0;w<O;w++)switch(h[w].once&&this.removeListener(c,h[w].fn,void 0,!0),g){case 1:h[w].fn.call(h[w].context);break;case 2:h[w].fn.call(h[w].context,f);break;case 3:h[w].fn.call(h[w].context,f,l);break;case 4:h[w].fn.call(h[w].context,f,l,d);break;default:if(!x)for(m=1,x=new Array(g-1);m<g;m++)x[m-1]=arguments[m];h[w].fn.apply(h[w].context,x)}}return!0},u.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,d){var p=r?r+c:c;if(!this._events[p])return this;if(!f)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===f&&(!d||y.once)&&(!l||y.context===l)&&o(this,p);else{for(var v=0,h=[],g=y.length;v<g;v++)(y[v].fn!==f||d&&!y[v].once||l&&y[v].context!==l)&&h.push(y[v]);h.length?this._events[p]=h.length===1?h[0]:h:o(this,p)}return this},u.prototype.removeAllListeners=function(c){var f;return c?(f=r?r+c:c,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})($l)),$l.exports}var I2=C2();const k2=ue(I2);var Cl=new k2,Il="recharts.syncMouseEvents";function yi(e){"@babel/helpers - typeof";return yi=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},yi(e)}function R2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N2(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,SO(n.key),n)}}function D2(e,t,r){return t&&N2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kl(e,t,r){return t=SO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SO(e){var t=q2(e,"string");return yi(t)=="symbol"?t:t+""}function q2(e,t){if(yi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var L2=(function(){function e(){R2(this,e),kl(this,"activeIndex",0),kl(this,"coordinateList",[]),kl(this,"layout","horizontal")}return D2(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,s=r.layout,c=s===void 0?null:s,f=r.offset,l=f===void 0?null:f,d=r.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,s=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+s+c,d=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:d})}}}])})();function B2(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 F2(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 PO(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=fe(t,r,n,i),u=fe(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function z2(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,s=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,d=fe(u,s,c,l),p=fe(u,s,f,l);n=d.x,i=d.y,a=p.x,o=p.y}else return PO(t);return[{x:n,y:i},{x:a,y:o}]}function mi(e){"@babel/helpers - typeof";return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(e)}function r0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?r0(Object(r),!0).forEach(function(n){W2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):r0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function W2(e,t,r){return t=U2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U2(e){var t=H2(e,"string");return mi(t)=="symbol"?t:t+""}function H2(e,t){if(mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function K2(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,d=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var y,v=wa;if(d==="ScatterChart")y=o,v=pk;else if(d==="BarChart")y=F2(l,o,s,f),v=eh;else if(l==="radial"){var h=PO(o),g=h.cx,x=h.cy,w=h.radius,O=h.startAngle,m=h.endAngle;y={cx:g,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=Tw}else y={points:z2(l,o,s)},v=wa;var b=Bi(Bi(Bi(Bi({stroke:"#ccc",pointerEvents:"none"},s),y),K(p,!1)),{},{payload:u,payloadIndex:c,className:Q("recharts-tooltip-cursor",p.className)});return N.isValidElement(p)?N.cloneElement(p,b):N.createElement(v,b)}var G2=["item"],V2=["children","className","width","height","style","compact","title","desc"];function on(e){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(e)}function Er(){return Er=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},Er.apply(this,arguments)}function n0(e,t){return Z2(e)||Y2(e,t)||jO(e,t)||X2()}function X2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
64In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y2(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 Z2(e){if(Array.isArray(e))return e}function i0(e,t){if(e==null)return{};var r=J2(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 J2(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 Q2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,EO(n.key),n)}}function tq(e,t,r){return t&&eq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rq(e,t,r){return t=Ha(t),nq(e,TO()?Reflect.construct(t,r||[],Ha(e).constructor):t.apply(e,r))}function nq(e,t){if(t&&(on(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iq(e)}function iq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TO=function(){return!!e})()}function Ha(e){return Ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ha(e)}function aq(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&&id(e,t)}function id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},id(e,t)}function un(e){return sq(e)||uq(e)||jO(e)||oq()}function oq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
65In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jO(e,t){if(e){if(typeof e=="string")return ad(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ad(e,t)}}function uq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sq(e){if(Array.isArray(e))return ad(e)}function ad(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a0(Object(r),!0).forEach(function(n){G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G(e,t,r){return t=EO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EO(e){var t=cq(e,"string");return on(t)=="symbol"?t:t+""}function cq(e,t){if(on(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(on(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lq={xAxis:["bottom","top"],yAxis:["left","right"]},fq={width:"100%",height:"100%"},MO={x:0,y:0};function Fi(e){return e}var dq=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},hq=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),fe(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return k(k(k({},i),fe(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return MO},Eo=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(un(u),un(c)):u},[]);return o.length>0?o:t&&t.length&&L(i)&&L(a)?t.slice(i,a+1):[]};function $O(e){return e==="number"?[0,"auto"]:void 0}var od=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Eo(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var f,l=(f=c.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=l===void 0?u:l;d=Ki(p,o.dataKey,i)}else d=l&&l[n]||u[n];return d?[].concat(un(s),[ww(c,d)]):s},[])},o0=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=dq(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=RM(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,d=od(t,r,f,l),p=hq(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:d,activeCoordinate:p}}return null},pq=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=t.stackOffset,p=vw(f,a);return n.reduce(function(y,v){var h,g=v.type.defaultProps!==void 0?k(k({},v.type.defaultProps),v.props):v.props,x=g.type,w=g.dataKey,O=g.allowDataOverflow,m=g.allowDuplicatedCategory,b=g.scale,_=g.ticks,A=g.includeHidden,P=g[o];if(y[P])return y;var j=Eo(t.data,{graphicalItems:i.filter(function(W){var X,de=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o];return de===P}),dataStartIndex:s,dataEndIndex:c}),E=j.length,T,M,C;B2(g.domain,O,x)&&(T=bf(g.domain,null,O),p&&(x==="number"||b!=="auto")&&(C=Cn(j,w,"category")));var $=$O(x);if(!T||T.length===0){var I,D=(I=g.domain)!==null&&I!==void 0?I:$;if(w){if(T=Cn(j,w,x),x==="category"&&p){var B=j_(T);m&&B?(M=T,T=Ca(0,E)):m||(T=sg(D,T,v).reduce(function(W,X){return W.indexOf(X)>=0?W:[].concat(un(W),[X])},[]))}else if(x==="category")m?T=T.filter(function(W){return W!==""&&!Z(W)}):T=sg(D,T,v).reduce(function(W,X){return W.indexOf(X)>=0||X===""||Z(X)?W:[].concat(un(W),[X])},[]);else if(x==="number"){var F=BM(j,i.filter(function(W){var X,de,me=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o],Be="hide"in W.props?W.props.hide:(de=W.type.defaultProps)===null||de===void 0?void 0:de.hide;return me===P&&(A||!Be)}),w,a,f);F&&(T=F)}p&&(x==="number"||b!=="auto")&&(C=Cn(j,w,"category"))}else p?T=Ca(0,E):u&&u[P]&&u[P].hasStack&&x==="number"?T=d==="expand"?[0,1]:xw(u[P].stackGroups,s,c):T=pw(j,i.filter(function(W){var X=o in W.props?W.props[o]:W.type.defaultProps[o],de="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return X===P&&(A||!de)}),x,f,!0);if(x==="number")T=nd(l,T,P,a,_),D&&(T=bf(D,T,O));else if(x==="category"&&D){var H=D,V=T.every(function(W){return H.indexOf(W)>=0});V&&(T=H)}}return k(k({},y),{},G({},P,k(k({},g),{},{axisType:a,domain:T,categoricalDomain:C,duplicateDomain:M,originalDomain:(h=g.domain)!==null&&h!==void 0?h:$,isCategorical:p,layout:f})))},{})},vq=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=Eo(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=d.length,y=vw(f,a),v=-1;return n.reduce(function(h,g){var x=g.type.defaultProps!==void 0?k(k({},g.type.defaultProps),g.props):g.props,w=x[o],O=$O("number");if(!h[w]){v++;var m;return y?m=Ca(0,p):u&&u[w]&&u[w].hasStack?(m=xw(u[w].stackGroups,s,c),m=nd(l,m,w,a)):(m=bf(O,pw(d,n.filter(function(b){var _,A,P=o in b.props?b.props[o]:(_=b.type.defaultProps)===null||_===void 0?void 0:_[o],j="hide"in b.props?b.props.hide:(A=b.type.defaultProps)===null||A===void 0?void 0:A.hide;return P===w&&!j}),"number",f),i.defaultProps.allowDataOverflow),m=nd(l,m,w,a)),k(k({},h),{},G({},w,k(k({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ke(lq,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return h},{})},yq=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),d=Ge(f,a),p={};return d&&d.length?p=pq(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=vq(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),p},mq=function(t){var r=Nt(t),n=xt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Td(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ga(r,n)}},u0=function(t){var r=t.children,n=t.defaultShowTooltip,i=We(r,Gr),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}},gq=function(t){return!t||!t.length?!1:t.some(function(r){var n=wt(r&&r.type);return n&&n.indexOf("Bar")>=0})},s0=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"}},bq=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,f=n.height,l=n.children,d=n.margin||{},p=We(l,Gr),y=We(l,qt),v=Object.keys(s).reduce(function(m,b){var _=s[b],A=_.orientation;return!_.mirror&&!_.hide?k(k({},m),{},G({},A,m[A]+_.width)):m},{left:d.left||0,right:d.right||0}),h=Object.keys(o).reduce(function(m,b){var _=o[b],A=_.orientation;return!_.mirror&&!_.hide?k(k({},m),{},G({},A,Ke(m,"".concat(A))+_.height)):m},{top:d.top||0,bottom:d.bottom||0}),g=k(k({},h),v),x=g.bottom;p&&(g.bottom+=p.props.height||Gr.defaultProps.height),y&&r&&(g=qM(g,i,n,r));var w=c-g.left-g.right,O=f-g.top-g.bottom;return k(k({brushBottom:x},g),{},{width:Math.max(w,0),height:Math.max(O,0)})},xq=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},lh=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,s=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,d=function(g,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,b=x.updateId,_=x.dataStartIndex,A=x.dataEndIndex,P=g.barSize,j=g.layout,E=g.barGap,T=g.barCategoryGap,M=g.maxBarSize,C=s0(j),$=C.numericAxisName,I=C.cateAxisName,D=gq(w),B=[];return w.forEach(function(F,H){var V=Eo(g.data,{graphicalItems:[F],dataStartIndex:_,dataEndIndex:A}),W=F.type.defaultProps!==void 0?k(k({},F.type.defaultProps),F.props):F.props,X=W.dataKey,de=W.maxBarSize,me=W["".concat($,"Id")],Be=W["".concat(I,"Id")],Ut={},Ne=s.reduce(function(Ht,Kt){var Mo=x["".concat(Kt.axisType,"Map")],fh=W["".concat(Kt.axisType,"Id")];Mo&&Mo[fh]||Kt.axisType==="zAxis"||lr();var dh=Mo[fh];return k(k({},Ht),{},G(G({},Kt.axisType,dh),"".concat(Kt.axisType,"Ticks"),xt(dh)))},Ut),z=Ne[I],J=Ne["".concat(I,"Ticks")],ee=O&&O[me]&&O[me].hasStack&&XM(F,O[me].stackGroups),q=wt(F.type).indexOf("Bar")>=0,ve=ga(z,J),te=[],xe=D&&NM({barSize:P,stackGroups:O,totalSize:xq(Ne,I)});if(q){var we,De,Ct=Z(de)?M:de,xr=(we=(De=ga(z,J,!0))!==null&&De!==void 0?De:Ct)!==null&&we!==void 0?we:0;te=DM({barGap:E,barCategoryGap:T,bandSize:xr!==ve?xr:ve,sizeList:xe[Be],maxBarSize:Ct}),xr!==ve&&(te=te.map(function(Ht){return k(k({},Ht),{},{position:k(k({},Ht.position),{},{offset:Ht.position.offset-xr/2})})}))}var Ti=F&&F.type&&F.type.getComposedData;Ti&&B.push({props:k(k({},Ti(k(k({},Ne),{},{displayedData:V,props:g,dataKey:X,item:F,bandSize:ve,barPosition:te,offset:m,stackedData:ee,layout:j,dataStartIndex:_,dataEndIndex:A}))),{},G(G(G({key:F.key||"item-".concat(H)},$,Ne[$]),I,Ne[I]),"animationId",b)),childIndex:F_(F,g.children),item:F})}),B},p=function(g,x){var w=g.props,O=g.dataStartIndex,m=g.dataEndIndex,b=g.updateId;if(!Op({props:w}))return null;var _=w.children,A=w.layout,P=w.stackOffset,j=w.data,E=w.reverseStackOrder,T=s0(A),M=T.numericAxisName,C=T.cateAxisName,$=Ge(_,n),I=GM(j,$,"".concat(M,"Id"),"".concat(C,"Id"),P,E),D=s.reduce(function(W,X){var de="".concat(X.axisType,"Map");return k(k({},W),{},G({},de,yq(w,k(k({},X),{},{graphicalItems:$,stackGroups:X.axisType===M&&I,dataStartIndex:O,dataEndIndex:m}))))},{}),B=bq(k(k({},D),{},{props:w,graphicalItems:$}),x?.legendBBox);Object.keys(D).forEach(function(W){D[W]=f(w,D[W],B,W.replace("Map",""),r)});var F=D["".concat(C,"Map")],H=mq(F),V=d(w,k(k({},D),{},{dataStartIndex:O,dataEndIndex:m,updateId:b,graphicalItems:$,stackGroups:I,offset:B}));return k(k({formattedGraphicalItems:V,graphicalItems:$,offset:B,stackGroups:I},H),D)},y=(function(h){function g(x){var w,O,m;return Q2(this,g),m=rq(this,g,[x]),G(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),G(m,"accessibilityManager",new L2),G(m,"handleLegendBBoxUpdate",function(b){if(b){var _=m.state,A=_.dataStartIndex,P=_.dataEndIndex,j=_.updateId;m.setState(k({legendBBox:b},p({props:m.props,dataStartIndex:A,dataEndIndex:P,updateId:j},k(k({},m.state),{},{legendBBox:b}))))}}),G(m,"handleReceiveSyncEvent",function(b,_,A){if(m.props.syncId===b){if(A===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),G(m,"handleBrushChange",function(b){var _=b.startIndex,A=b.endIndex;if(_!==m.state.dataStartIndex||A!==m.state.dataEndIndex){var P=m.state.updateId;m.setState(function(){return k({dataStartIndex:_,dataEndIndex:A},p({props:m.props,dataStartIndex:_,dataEndIndex:A,updateId:P},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:A})}}),G(m,"handleMouseEnter",function(b){var _=m.getMouseInfo(b);if(_){var A=k(k({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var P=m.props.onMouseEnter;Y(P)&&P(A,b)}}),G(m,"triggeredAfterMouseMove",function(b){var _=m.getMouseInfo(b),A=_?k(k({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var P=m.props.onMouseMove;Y(P)&&P(A,b)}),G(m,"handleItemMouseEnter",function(b){m.setState(function(){return{isTooltipActive:!0,activeItem:b,activePayload:b.tooltipPayload,activeCoordinate:b.tooltipPosition||{x:b.cx,y:b.cy}}})}),G(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),G(m,"handleMouseMove",function(b){b.persist(),m.throttleTriggeredAfterMouseMove(b)}),G(m,"handleMouseLeave",function(b){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var A=m.props.onMouseLeave;Y(A)&&A(_,b)}),G(m,"handleOuterEvent",function(b){var _=B_(b),A=Ke(m.props,"".concat(_));if(_&&Y(A)){var P,j;/.*touch.*/i.test(_)?j=m.getMouseInfo(b.changedTouches[0]):j=m.getMouseInfo(b),A((P=j)!==null&&P!==void 0?P:{},b)}}),G(m,"handleClick",function(b){var _=m.getMouseInfo(b);if(_){var A=k(k({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var P=m.props.onClick;Y(P)&&P(A,b)}}),G(m,"handleMouseDown",function(b){var _=m.props.onMouseDown;if(Y(_)){var A=m.getMouseInfo(b);_(A,b)}}),G(m,"handleMouseUp",function(b){var _=m.props.onMouseUp;if(Y(_)){var A=m.getMouseInfo(b);_(A,b)}}),G(m,"handleTouchMove",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(b.changedTouches[0])}),G(m,"handleTouchStart",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseDown(b.changedTouches[0])}),G(m,"handleTouchEnd",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseUp(b.changedTouches[0])}),G(m,"handleDoubleClick",function(b){var _=m.props.onDoubleClick;if(Y(_)){var A=m.getMouseInfo(b);_(A,b)}}),G(m,"handleContextMenu",function(b){var _=m.props.onContextMenu;if(Y(_)){var A=m.getMouseInfo(b);_(A,b)}}),G(m,"triggerSyncEvent",function(b){m.props.syncId!==void 0&&Cl.emit(Il,m.props.syncId,b,m.eventEmitterSymbol)}),G(m,"applySyncEvent",function(b){var _=m.props,A=_.layout,P=_.syncMethod,j=m.state.updateId,E=b.dataStartIndex,T=b.dataEndIndex;if(b.dataStartIndex!==void 0||b.dataEndIndex!==void 0)m.setState(k({dataStartIndex:E,dataEndIndex:T},p({props:m.props,dataStartIndex:E,dataEndIndex:T,updateId:j},m.state)));else if(b.activeTooltipIndex!==void 0){var M=b.chartX,C=b.chartY,$=b.activeTooltipIndex,I=m.state,D=I.offset,B=I.tooltipTicks;if(!D)return;if(typeof P=="function")$=P(B,b);else if(P==="value"){$=-1;for(var F=0;F<B.length;F++)if(B[F].value===b.activeLabel){$=F;break}}var H=k(k({},D),{},{x:D.left,y:D.top}),V=Math.min(M,H.x+H.width),W=Math.min(C,H.y+H.height),X=B[$]&&B[$].value,de=od(m.state,m.props.data,$),me=B[$]?{x:A==="horizontal"?B[$].coordinate:V,y:A==="horizontal"?W:B[$].coordinate}:MO;m.setState(k(k({},b),{},{activeLabel:X,activeCoordinate:me,activePayload:de,activeTooltipIndex:$}))}else m.setState(b)}),G(m,"renderCursor",function(b){var _,A=m.state,P=A.isTooltipActive,j=A.activeCoordinate,E=A.activePayload,T=A.offset,M=A.activeTooltipIndex,C=A.tooltipAxisBandSize,$=m.getTooltipEventType(),I=(_=b.props.active)!==null&&_!==void 0?_:P,D=m.props.layout,B=b.key||"_recharts-cursor";return S.createElement(K2,{key:B,activeCoordinate:j,activePayload:E,activeTooltipIndex:M,chartName:r,element:b,isActive:I,layout:D,offset:T,tooltipAxisBandSize:C,tooltipEventType:$})}),G(m,"renderPolarAxis",function(b,_,A){var P=Ke(b,"type.axisType"),j=Ke(m.state,"".concat(P,"Map")),E=b.type.defaultProps,T=E!==void 0?k(k({},E),b.props):b.props,M=j&&j[T["".concat(P,"Id")]];return N.cloneElement(b,k(k({},M),{},{className:Q(P,M.className),key:b.key||"".concat(_,"-").concat(A),ticks:xt(M,!0)}))}),G(m,"renderPolarGrid",function(b){var _=b.props,A=_.radialLines,P=_.polarAngles,j=_.polarRadius,E=m.state,T=E.radiusAxisMap,M=E.angleAxisMap,C=Nt(T),$=Nt(M),I=$.cx,D=$.cy,B=$.innerRadius,F=$.outerRadius;return N.cloneElement(b,{polarAngles:Array.isArray(P)?P:xt($,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray(j)?j:xt(C,!0).map(function(H){return H.coordinate}),cx:I,cy:D,innerRadius:B,outerRadius:F,key:b.key||"polar-grid",radialLines:A})}),G(m,"renderLegend",function(){var b=m.state.formattedGraphicalItems,_=m.props,A=_.children,P=_.width,j=_.height,E=m.props.margin||{},T=P-(E.left||0)-(E.right||0),M=dw({children:A,formattedGraphicalItems:b,legendWidth:T,legendContent:c});if(!M)return null;var C=M.item,$=i0(M,G2);return N.cloneElement(C,k(k({},$),{},{chartWidth:P,chartHeight:j,margin:E,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),G(m,"renderTooltip",function(){var b,_=m.props,A=_.children,P=_.accessibilityLayer,j=We(A,Je);if(!j)return null;var E=m.state,T=E.isTooltipActive,M=E.activeCoordinate,C=E.activePayload,$=E.activeLabel,I=E.offset,D=(b=j.props.active)!==null&&b!==void 0?b:T;return N.cloneElement(j,{viewBox:k(k({},I),{},{x:I.left,y:I.top}),active:D,label:$,payload:D?C:[],coordinate:M,accessibilityLayer:P})}),G(m,"renderBrush",function(b){var _=m.props,A=_.margin,P=_.data,j=m.state,E=j.offset,T=j.dataStartIndex,M=j.dataEndIndex,C=j.updateId;return N.cloneElement(b,{key:b.key||"_recharts-brush",onChange:Ni(m.handleBrushChange,b.props.onChange),data:P,x:L(b.props.x)?b.props.x:E.left,y:L(b.props.y)?b.props.y:E.top+E.height+E.brushBottom-(A.bottom||0),width:L(b.props.width)?b.props.width:E.width,startIndex:T,endIndex:M,updateId:"brush-".concat(C)})}),G(m,"renderReferenceElement",function(b,_,A){if(!b)return null;var P=m,j=P.clipPathId,E=m.state,T=E.xAxisMap,M=E.yAxisMap,C=E.offset,$=b.type.defaultProps||{},I=b.props,D=I.xAxisId,B=D===void 0?$.xAxisId:D,F=I.yAxisId,H=F===void 0?$.yAxisId:F;return N.cloneElement(b,{key:b.key||"".concat(_,"-").concat(A),xAxis:T[B],yAxis:M[H],viewBox:{x:C.left,y:C.top,width:C.width,height:C.height},clipPathId:j})}),G(m,"renderActivePoints",function(b){var _=b.item,A=b.activePoint,P=b.basePoint,j=b.childIndex,E=b.isRange,T=[],M=_.props.key,C=_.item.type.defaultProps!==void 0?k(k({},_.item.type.defaultProps),_.item.props):_.item.props,$=C.activeDot,I=C.dataKey,D=k(k({index:j,dataKey:I,cx:A.x,cy:A.y,r:4,fill:Qd(_.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},K($,!1)),Gi($));return T.push(g.renderActiveDot($,D,"".concat(M,"-activePoint-").concat(j))),P?T.push(g.renderActiveDot($,k(k({},D),{},{cx:P.x,cy:P.y}),"".concat(M,"-basePoint-").concat(j))):E&&T.push(null),T}),G(m,"renderGraphicChild",function(b,_,A){var P=m.filterFormatItem(b,_,A);if(!P)return null;var j=m.getTooltipEventType(),E=m.state,T=E.isTooltipActive,M=E.tooltipAxis,C=E.activeTooltipIndex,$=E.activeLabel,I=m.props.children,D=We(I,Je),B=P.props,F=B.points,H=B.isRange,V=B.baseLine,W=P.item.type.defaultProps!==void 0?k(k({},P.item.type.defaultProps),P.item.props):P.item.props,X=W.activeDot,de=W.hide,me=W.activeBar,Be=W.activeShape,Ut=!!(!de&&T&&D&&(X||me||Be)),Ne={};j!=="axis"&&D&&D.props.trigger==="click"?Ne={onClick:Ni(m.handleItemMouseEnter,b.props.onClick)}:j!=="axis"&&(Ne={onMouseLeave:Ni(m.handleItemMouseLeave,b.props.onMouseLeave),onMouseEnter:Ni(m.handleItemMouseEnter,b.props.onMouseEnter)});var z=N.cloneElement(b,k(k({},P.props),Ne));function J(Kt){return typeof M.dataKey=="function"?M.dataKey(Kt.payload):null}if(Ut)if(C>=0){var ee,q;if(M.dataKey&&!M.allowDuplicatedCategory){var ve=typeof M.dataKey=="function"?J:"payload.".concat(M.dataKey.toString());ee=Ki(F,ve,$),q=H&&V&&Ki(V,ve,$)}else ee=F?.[C],q=H&&V&&V[C];if(Be||me){var te=b.props.activeIndex!==void 0?b.props.activeIndex:C;return[N.cloneElement(b,k(k(k({},P.props),Ne),{},{activeIndex:te})),null,null]}if(!Z(ee))return[z].concat(un(m.renderActivePoints({item:P,activePoint:ee,basePoint:q,childIndex:C,isRange:H})))}else{var xe,we=(xe=m.getItemByXY(m.state.activeCoordinate))!==null&&xe!==void 0?xe:{graphicalItem:z},De=we.graphicalItem,Ct=De.item,xr=Ct===void 0?b:Ct,Ti=De.childIndex,Ht=k(k(k({},P.props),Ne),{},{activeIndex:Ti});return[N.cloneElement(xr,Ht),null,null]}return H?[z,null,null]:[z,null]}),G(m,"renderCustomized",function(b,_,A){return N.cloneElement(b,k(k({key:"recharts-customized-".concat(A)},m.props),m.state))}),G(m,"renderMap",{CartesianGrid:{handler:Fi,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:Fi},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:Fi},YAxis:{handler:Fi},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:ln("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=dx(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return aq(g,h),tq(g,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,m=w.data,b=w.height,_=w.layout,A=We(O,Je);if(A){var P=A.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var j=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,E=od(this.state,m,P,j),T=this.state.tooltipTicks[P].coordinate,M=(this.state.offset.top+b)/2,C=_==="horizontal",$=C?{x:T,y:M}:{y:T,x:M},I=this.state.formattedGraphicalItems.find(function(B){var F=B.item;return F.type.name==="Scatter"});I&&($=k(k({},$),I.props.points[P].tooltipPosition),E=I.props.points[P].tooltipPayload);var D={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:j,activePayload:E,activeCoordinate:$};this.setState(D),this.renderCursor(A),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var m,b;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0}})}return null}},{key:"componentDidUpdate",value:function(w){Bl([We(w.children,Je)],[We(this.props.children,Je)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=We(this.props.children,Je);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,m=O.getBoundingClientRect(),b=TP(m),_={chartX:Math.round(w.pageX-b.left),chartY:Math.round(w.pageY-b.top)},A=m.width/O.offsetWidth||1,P=this.inRange(_.chartX,_.chartY,A);if(!P)return null;var j=this.state,E=j.xAxisMap,T=j.yAxisMap,M=this.getTooltipEventType(),C=o0(this.state,this.props.data,this.props.layout,P);if(M!=="axis"&&E&&T){var $=Nt(E).scale,I=Nt(T).scale,D=$&&$.invert?$.invert(_.chartX):null,B=I&&I.invert?I.invert(_.chartY):null;return k(k({},_),{},{xValue:D,yValue:B},C)}return C?k(k({},_),C):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,b=this.props.layout,_=w/m,A=O/m;if(b==="horizontal"||b==="vertical"){var P=this.state.offset,j=_>=P.left&&_<=P.left+P.width&&A>=P.top&&A<=P.top+P.height;return j?{x:_,y:A}:null}var E=this.state,T=E.angleAxisMap,M=E.radiusAxisMap;if(T&&M){var C=Nt(T);return fg({x:_,y:A},C)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=We(w,Je),b={};m&&O==="axis"&&(m.props.trigger==="click"?b={onClick:this.handleClick}:b={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var _=Gi(this.props,this.handleOuterEvent);return k(k({},_),b)}},{key:"addListener",value:function(){Cl.on(Il,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Cl.removeListener(Il,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var b=this.state.formattedGraphicalItems,_=0,A=b.length;_<A;_++){var P=b[_];if(P.item===w||P.props.key===w.key||O===wt(P.item.type)&&m===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,b=O.top,_=O.height,A=O.width;return S.createElement("defs",null,S.createElement("clipPath",{id:w},S.createElement("rect",{x:m,y:b,height:_,width:A})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=n0(m,2),_=b[0],A=b[1];return k(k({},O),{},G({},_,A.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=n0(m,2),_=b[0],A=b[1];return k(k({},O),{},G({},_,A.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,m=O.formattedGraphicalItems,b=O.activeItem;if(m&&m.length)for(var _=0,A=m.length;_<A;_++){var P=m[_],j=P.props,E=P.item,T=E.type.defaultProps!==void 0?k(k({},E.type.defaultProps),E.props):E.props,M=wt(E.type);if(M==="Bar"){var C=(j.data||[]).find(function(B){return VI(w,B)});if(C)return{graphicalItem:P,payload:C}}else if(M==="RadialBar"){var $=(j.data||[]).find(function(B){return fg(w,B)});if($)return{graphicalItem:P,payload:$}}else if(Oo(P,b)||_o(P,b)||fi(P,b)){var I=mR({graphicalItem:P,activeTooltipItem:b,itemData:T.data}),D=T.activeIndex===void 0?I:T.activeIndex;return{graphicalItem:k(k({},P),{},{childIndex:D}),payload:fi(P,b)?T.data[I]:P.props.data[I]}}}return null}},{key:"render",value:function(){var w=this;if(!Op(this))return null;var O=this.props,m=O.children,b=O.className,_=O.width,A=O.height,P=O.style,j=O.compact,E=O.title,T=O.desc,M=i0(O,V2),C=K(M,!1);if(j)return S.createElement(qb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement(zl,Er({},C,{width:_,height:A,title:E,desc:T}),this.renderClipPath(),Ap(m,this.renderMap)));if(this.props.accessibilityLayer){var $,I;C.tabIndex=($=this.props.tabIndex)!==null&&$!==void 0?$:0,C.role=(I=this.props.role)!==null&&I!==void 0?I:"application",C.onKeyDown=function(B){w.accessibilityManager.keyboardEvent(B)},C.onFocus=function(){w.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return S.createElement(qb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement("div",Er({className:Q("recharts-wrapper",b),style:k({position:"relative",cursor:"default",width:_,height:A},P)},D,{ref:function(F){w.container=F}}),S.createElement(zl,Er({},C,{width:_,height:A,title:E,desc:T,style:fq}),this.renderClipPath(),Ap(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(N.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(h,g){var x=h.dataKey,w=h.data,O=h.children,m=h.width,b=h.height,_=h.layout,A=h.stackOffset,P=h.margin,j=g.dataStartIndex,E=g.dataEndIndex;if(g.updateId===void 0){var T=u0(h);return k(k(k({},T),{},{updateId:0},p(k(k({props:h},T),{},{updateId:0}),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:A,prevMargin:P,prevChildren:O})}if(x!==g.prevDataKey||w!==g.prevData||m!==g.prevWidth||b!==g.prevHeight||_!==g.prevLayout||A!==g.prevStackOffset||!Mr(P,g.prevMargin)){var M=u0(h),C={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},$=k(k({},o0(g,w,_)),{},{updateId:g.updateId+1}),I=k(k(k({},M),C),$);return k(k(k({},I),p(k({props:h},I),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:A,prevMargin:P,prevChildren:O})}if(!Bl(O,g.prevChildren)){var D,B,F,H,V=We(O,Gr),W=V&&(D=(B=V.props)===null||B===void 0?void 0:B.startIndex)!==null&&D!==void 0?D:j,X=V&&(F=(H=V.props)===null||H===void 0?void 0:H.endIndex)!==null&&F!==void 0?F:E,de=W!==j||
65X!==E,me=!Z(w),Be=me&&!de?g.updateId:g.updateId+1;return k(k({updateId:Be},p(k(k({props:h},g),{},{updateId:Be,dataStartIndex:W,dataEndIndex:X}),g)),{},{prevChildren:O,dataStartIndex:W,dataEndIndex:X})}return null}),G(y,"renderActiveDot",function(h,g,x){var w;return N.isValidElement(h)?w=N.cloneElement(h,g):Y(h)?w=h(g):w=S.createElement(mo,g),S.createElement(re,{className:"recharts-active-dot",key:x},w)});var v=N.forwardRef(function(g,x){return S.createElement(y,Er({},g,{ref:x}))});return v.displayName=y.displayName,v},wq=lh({chartName:"LineChart",GraphicalChild:en,axisComponents:[{axisType:"xAxis",AxisComp:rn},{axisType:"yAxis",AxisComp:an}],formatAxisMap:Zw}),Oq=lh({chartName:"BarChart",GraphicalChild:br,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:rn},{axisType:"yAxis",AxisComp:an}],formatAxisMap:Zw}),_q=lh({chartName:"PieChart",GraphicalChild:$t,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:wo},{axisType:"radiusAxis",AxisComp:bo}],formatAxisMap:a$,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const Aq=[{label:"24h",days:1},{label:"7d",days:7},{label:"30d",days:30},{label:"90d",days:90}],Sn=["#c9a86a","#8b5cf6","#22c55e","#ef4444","#3b82f6","#f59e0b","#ec4899","#14b8a6","#a3a3a3"],Tt="var(--bone)",It="var(--faint)",c0="var(--hairline)",zi={fill:Tt,color:Tt,fontSize:12,stroke:"none"},Rl={backgroundColor:"var(--card)",border:"1px solid var(--border)",color:Tt,fontSize:12},Nl={color:Tt},Dl={color:Tt},l0={color:Tt,fill:Tt,fontSize:12},Sq={fill:Tt,color:Tt,fontSize:12};function f0(e){return e.toISOString().slice(0,10)}function d0(e){return`${e.toISOString().slice(0,13)}:00`}function Pq(e,t){const r=new Date,n=new Date(r.getTime()-t*24*3600*1e3),i=t<=1,a=new Map;if(i)for(let o=0;o<24;o++){const u=new Date(r.getTime()-o*3600*1e3);a.set(d0(u),{views:0,sessions:new Set})}else for(let o=0;o<t;o++){const u=new Date(r.getTime()-o*24*3600*1e3);a.set(f0(u),{views:0,sessions:new Set})}for(const o of e){const u=new Date(o.created_at);if(u<n)continue;const s=i?d0(u):f0(u),c=a.get(s)??{views:0,sessions:new Set};c.views+=1,o.session_id&&c.sessions.add(o.session_id),a.set(s,c)}return Array.from(a.entries()).sort(([o],[u])=>o.localeCompare(u)).map(([o,u])=>({label:i?o.slice(11,16):o.slice(5),views:u.views,visitors:u.sessions.size}))}function Pn(e,t,r=8){const n=new Map;for(const i of e){const a=i[t]??"(unknown)",o=String(a);n.set(o,(n.get(o)??0)+1)}return Array.from(n.entries()).sort((i,a)=>a[1]-i[1]).slice(0,r).map(([i,a])=>({name:i,value:a}))}function Ze({label:e,value:t,hint:r}){return R.jsxs("div",{className:"rounded-lg border border-border bg-card p-5",children:[R.jsx("div",{className:"text-xs uppercase tracking-wider text-foreground",children:e}),R.jsx("div",{className:"mt-2 text-3xl font-semibold text-foreground",children:t}),r?R.jsx("div",{className:"mt-1 text-xs text-foreground",children:r}):null]})}function kt({title:e,children:t}){return R.jsxs("div",{className:"rounded-lg border border-border bg-card p-5",children:[R.jsx("h3",{className:"mb-4 text-sm font-medium uppercase tracking-wider text-foreground",children:e}),t]})}function Tq(){const[e,t]=N.useState(7),r=Jt(NO),n=Jt(DO),i=Jt(qO),a=Jt(LO),[o,u]=N.useState(!1),s=Jt(RO),{data:c,isLoading:f,error:l}=Ui({queryKey:["page_views",e],queryFn:async()=>await r({data:{days:e}}),refetchInterval:6e4}),{data:d}=Ui({queryKey:["cart_events",e],queryFn:async()=>await n({data:{days:e}}),refetchInterval:6e4}),{data:p,refetch:y}=Ui({queryKey:["orders",e],queryFn:async()=>await i({data:{days:e}}),refetchInterval:6e4}),v=async()=>{u(!0);try{const j=await a({data:{days:e}});j.ok?($o.success(`Synced ${j.synced} orders from Shopify`),await y()):$o.error(j.error??"Order sync failed")}catch(j){$o.error(j.message)}finally{u(!1)}},h=N.useMemo(()=>{const j=c??[],E=new Set(j.map(I=>I.session_id).filter(Boolean)),T=E.size?j.length/E.size:0,M=new Map;for(const I of j)I.session_id&&M.set(I.session_id,(M.get(I.session_id)??0)+1);const C=Array.from(M.values()).filter(I=>I===1).length,$=M.size?Math.round(C/M.size*100):0;return{views:j.length,visitors:E.size,viewsPerSession:T.toFixed(1),bounceRate:$}},[c]),g=N.useMemo(()=>Pq(c??[],e),[c,e]),x=N.useMemo(()=>Pn(c??[],"path",10),[c]),w=N.useMemo(()=>Pn(c??[],"source",8),[c]),O=N.useMemo(()=>Pn(c??[],"device",5),[c]),m=N.useMemo(()=>Pn(c??[],"campaign",8).filter(j=>j.name!=="(unknown)"),[c]),b=N.useMemo(()=>Pn(c??[],"country",8),[c]),_=N.useMemo(()=>{const j=d??[],E=new Set(j.map($=>
65$.session_id).filter(Boolean)),T=j.reduce(($,I)=>$+Number(I.price??0)*Number(I.quantity??0),0),M=new Set((c??[]).map($=>$.session_id).filter(Boolean)),C=M.size?E.size/M.size*100:0;return{events:j.length,sessions:E.size,value:T,rate:C.toFixed(1)}},[d,c]),A=N.useMemo(()=>{const j=d??[],E=new Map;for(const T of j){const M=T.product_title||"(unknown)";E.set(M,(E.get(M)??0)+(T.quantity??1))}return Array.from(E.entries()).sort((T,M)=>M[1]-T[1]).slice(0,8).map(([T,M])=>({name:T,value:M}))},[d]),P=N.useMemo(()=>{const j=p??[],E=j.reduce((M,C)=>M+Number(C.total_price??0),0),T=j.reduce((M,C)=>M+Number(C.num_items??0),0);return{count:j.length,revenue:E,units:T}},[p]);return R.jsx("div",{className:"min-h-screen bg-background px-6 py-10 text-foreground",children:R.jsxs("div",{className:"mx-auto max-w-6xl",children:[R.jsxs("div",{className:"mb-8 flex flex-wrap items-end justify-between gap-4",children:[R.jsxs("div",{children:[R.jsx("h1",{className:"text-3xl font-semibold tracking-tight",children:"Visitor analytics"}),R.jsxs("p",{className:"mt-1 text-sm text-foreground",children:["Traffic sources, top pages, and trends. Data collected from ",new Date(Date.now()-e*864e5).toLocaleDateString(),"."]})]}),R.jsxs("div",{className:"flex gap-1 rounded-md border border-border bg-card p-1",children:[Aq.map(j=>R.jsx("button",{onClick:()=>t(j.days),className:`rounded px-3 py-1.5 text-sm transition-colors ${e===j.days?"bg-primary text-primary-foreground":"text-foreground hover:text-foreground"}`,children:j.label},j.label)),R.jsx("button",{onClick:v,disabled:o,className:"rounded px-3 py-1.5 text-sm text-foreground disabled:opacity-50",children:o?"Syncing…":"Sync orders"}),R.jsx("button",{onClick:async()=>{await s(),window.location.reload()},className:"rounded px-3 py-1.5 text-sm text-foreground",children:"Sign out"})]})]}),l?R.jsxs("div",{className:"rounded-md border border-destructive/40 bg-destructive/10 p-4 text-sm text-destructive",children:["Failed to load analytics: ",l.message]}):null,R.jsxs("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-4",children:[R.jsx(Ze,{label:"Page views",value:f?"…":h.views.toLocaleString()}),R.jsx(Ze,{label:"Unique visitors",value:f?"…":h.visitors.toLocaleString(),hint:"approx., by session"}),R.jsx(Ze,{label:"Views / visitor",value:f?"…":h.viewsPerSession}),R.jsx(Ze,{label:"Bounce rate",value:f?"…":`${h.bounceRate}%`,hint:"1-page sessions"})]}),R.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-4 md:grid-cols-4",children:[R.jsx(Ze,{label:"Add to carts",value:_.events.toLocaleString(),hint:"events"}),R.jsx(Ze,{label:"Carts started",value:_.sessions.toLocaleString(),hint:"unique sessions"}),R.jsx(Ze,{label:"Cart conversion",value:`${_.rate}%`,hint:"carts / visitors"}),R.jsx(Ze,{label:"Cart value",value:`$${_.value.toFixed(0)}`,hint:"items × price"})]}),R.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-4 md:grid-cols-4",children:[R.jsx(Ze,{label:"Orders",value:P.count.toLocaleString(),hint:"from Shopify"}),R.jsx(Ze,{label:"Revenue",value:`$${P.revenue.toFixed(0)}`,hint:"total order value"}),R.jsx(Ze,{label:"Units sold",value:P.units.toLocaleString(),hint:"line items"}),R.jsx(Ze,{label:"AOV",value:`$${P.count?(P.revenue/P.count).toFixed(0):"0"}`,hint:"avg order value"})]}),R.jsx("div",{className:"mt-6",children:R.jsx(kt,{title:e<=1?"Traffic (hourly)":"Traffic (daily)",children:R.jsx("div",{className:"analytics-chart h-72 w-full",children:R.jsx(qc,{children:R.jsxs(wq,{data:g,margin:{top:8,right:16,left:-12,bottom:0},children:[R.jsx(Xf,{stroke:c0,strokeDasharray:"3 3"}),R.jsx(rn,{dataKey:"label",tick:zi,stroke:It,tickLine:{stroke:It}}),R.jsx(an,{tick:zi,stroke:It,tickLine:{stroke:It},allowDecimals:!1}),R.jsx(Je,{contentStyle:Rl,labelStyle:Nl,itemStyle:Dl}),R.jsx(qt,{wrapperStyle:l0,formatter:j=>R.jsx("span",{className:"text-foreground",children:j})}),R.jsx(en,{type:"monotone",dataKey:"views",stroke:Sn[0],strokeWidth:2,dot:!1,name:"Views"}),R.jsx(en,{type:"monotone",dataKey:"visitors",stroke:Sn[1],strokeWidth:2,dot:!1,name:"Visitors"})]})})})})}),R.jsxs("div",{className:"mt-6 grid gap-6 lg:grid-cols-2",children:[R.jsx(kt,{title:"Top sources",children:R.jsx("div",{className:"analytics-chart h-72 w-full",children:R.jsx(qc,{children:R.jsxs(Oq,{data:w,layout:"vertical",margin:{top:4,right:16,left:24,bottom:0},children:[R.jsx(Xf,{stroke:c0,strokeDasharray:"3 3",horizontal:!1}),R.jsx(rn,{type:"number",tick:zi,stroke:It,tickLine:{stroke:It},allowDecimals:!1}),R.jsx(an,{dataKey:"name",type:"category",width:118,tick:zi,stroke:It,tickLine:{stroke:It}}),R.jsx(Je,{contentStyle:Rl,labelStyle:Nl,itemStyle:Dl}),R.jsx(br,{dataKey:"value",fill:Sn[0],radius:[0,4,4,0]})]})})})}),R.jsx(kt,{title:"Devices",children:R.jsx("div",{className:"analytics-chart h-72 w-full",children:R.jsx(qc,{children:R.jsxs(_q,{children:[R.jsx($t,{data:O,dataKey:"value",nameKey:"name",innerRadius:50,outerRadius:90,paddingAngle:2,label:Sq,children:O.map((j,E)=>R.jsx(io,{fill:Sn[E%Sn.length]},E))}),R.jsx(Je,{contentStyle:Rl,labelStyle:Nl,itemStyle:Dl}),R.jsx(qt,{wrapperStyle:l0,formatter:j=>R.jsx("span",{className:"text-foreground",children:j})})]})})})})]}),R.jsxs("div",{className:"mt-6 grid gap-6 lg:grid-cols-2",children:[R.jsx(kt,{title:"Top pages",children:R.jsx(Wi,{rows:x,labelHeader:"Path"})}),R.jsx(kt,{title:"Regions (by timezone)",children:R.jsx(Wi,{rows:b,labelHeader:"Region"})})]}),R.jsx("div",{className:"mt-6",children:R.jsx(kt,{title:"Top add-to-cart products",children:R.jsx(Wi,{rows:A,labelHeader:"Product"})})}),p&&p.length>0?R.jsx("div",{className:"mt-6",children:R.jsx(kt,{title:"Recent orders",children:R.jsxs("div",{className:"space-y-2",children:[R.jsxs("div",{className:"flex text-xs uppercase tracking-wider text-foreground",children:[R.jsx("div",{className:"w-24",children:"Order"}),R.jsx("div",{className:"flex-1",children:"When"}),R.jsx("div",{className:"w-32",children:"Source"}),R.jsx("div",{className:"w-20 text-right",children:"Items"}),R.jsx("div",{className:"w-24 text-right",children:"Total"})]}),p.slice(0,20).map(j=>R.jsxs("div",{className:"flex items-center rounded border border-border bg-background/40 px-3 py-2 text-sm text-foreground",children:[R.jsxs("div",{className:"w-24 tabular-nums",children:["#",j.order_number??j.shopify_order_id.slice(-6)]}),R.jsx("div",{className:"flex-1 truncate",children:new Date(j.created_at).toLocaleStr
65ing()}),R.jsx("div",{className:"w-32 truncate",children:j.source_name??"—"}),R.jsx("div",{className:"w-20 text-right tabular-nums",children:j.num_items??"—"}),R.jsxs("div",{className:"w-24 text-right tabular-nums",children:[j.currency??"USD"," ",Number(j.total_price??0).toFixed(2)]})]},j.shopify_order_id))]})})}):null,m.length>0?R.jsx("div",{className:"mt-6",children:R.jsx(kt,{title:"Campaigns (utm_campaign)",children:R.jsx(Wi,{rows:m,labelHeader:"Campaign"})})}):null,R.jsx("p",{className:"mt-8 text-xs text-foreground",children:"Tracking started when this dashboard was added; historical data is not backfilled."})]})})}function Wi({rows:e,labelHeader:t}){const r=e.reduce((n,i)=>n+i.value,0)||1;return e.length===0?R.jsx("div",{className:"text-sm text-foreground",children:"No data yet."}):R.jsxs("div",{className:"space-y-2",children:[R.jsxs("div",{className:"flex text-xs uppercase tracking-wider text-foreground",children:[R.jsx("div",{className:"flex-1",children:t}),R.jsx("div",{className:"w-16 text-right",children:"Views"})]}),e.map(n=>R.jsxs("div",{className:"relative overflow-hidden rounded border border-border bg-background/40",children:[R.jsx("div",{className:"absolute inset-y-0 left-0 bg-primary/15",style:{width:`${n.value/r*100}%`}}),R.jsxs("div",{className:"relative flex items-center px-3 py-2 text-sm",children:[R.jsx("div",{className:"flex-1 truncate text-foreground",children:n.name}),R.jsx("div",{className:"w-16 text-right tabular-nums text-foreground",children:n.value})]})]},n.name))]})}function Mq(){const e=Jt(IO),t=Jt(kO),[r,n]=N.useState(""),[i,a]=N.useState(null),[o,u]=N.useState(!1),{data:s,isLoading:c,refetch:f}=Ui({queryKey:["analytics_session"],queryFn:()=>e()});return c?R.jsx("div",{className:"min-h-screen bg-background px-6 py-10 text-foreground",children:"Loading…"}):s?.authed?R.jsx(Tq,{}):R.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-6 text-foreground",children:R.jsxs("form",{className:"w-full max-w-sm rounded-lg border border-border bg-card p-6",onSubmit:async l=>{l.preventDefault(),u(!0),a(null);try{(await t({data:{password:r}})).authed?(n(""),await f()):a("Incorrect password")}catch{a("Sign in failed")}finally{u(!1)}},children:[R.jsx("h1",{className:"text-lg font-semibold",children:"Analytics access"}),R.jsx("p",{className:"mt-1 text-sm opacity-70",children:"Enter the analytics password to continue."}),R.jsx("input",{type:"password",value:r,autoComplete:"current-password",onChange:l=>n(l.target.value),className:"mt-4 w-full rounded border border-border bg-background px-3 py-2 text-sm text-foreground",placeholder:"Password"}),i?R.jsx("div",{className:"mt-2 text-sm text-destructive",children:i}):null,R.jsx("button",{type:"submit",disabled:o||!r,className:"mt-4 w-full rounded bg-primary px-3 py-2 text-sm text-primary-foreground disabled:opacity-50",children:o?"Checking…":"Enter"})]})})}export{Mq 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.