claude-session-dashboard 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,65 +0,0 @@
1
- import{i as Jn,g as ue,r as N,R as T,k as Kt,j as rr}from"./main-CkUc_xJ0.js";import{u as nw}from"./createServerFn-B5mibSc4.js";import{D as iw,n as aw,s as ow}from"./settings.types-l5MKKuAK.js";function Hg(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Hg(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ee(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Hg(e))&&(n&&(n+=" "),n+=t);return n}var Ua,fh;function Ie(){if(fh)return Ua;fh=1;var e=Array.isArray;return Ua=e,Ua}var Wa,hh;function Gg(){if(hh)return Wa;hh=1;var e=typeof Jn=="object"&&Jn&&Jn.Object===Object&&Jn;return Wa=e,Wa}var za,ph;function at(){if(ph)return za;ph=1;var e=Gg(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return za=r,za}var Ha,dh;function Wn(){if(dh)return Ha;dh=1;var e=at(),t=e.Symbol;return Ha=t,Ha}var Ga,vh;function uw(){if(vh)return Ga;vh=1;var e=Wn(),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 Ga=a,Ga}var Ka,yh;function sw(){if(yh)return Ka;yh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ka=r,Ka}var Va,mh;function mt(){if(mh)return Va;mh=1;var e=Wn(),t=uw(),r=sw(),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 Va=o,Va}var Xa,gh;function gt(){if(gh)return Xa;gh=1;function e(t){return t!=null&&typeof t=="object"}return Xa=e,Xa}var Ya,bh;function kr(){if(bh)return Ya;bh=1;var e=mt(),t=gt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Ya=n,Ya}var Za,xh;function of(){if(xh)return Za;xh=1;var e=Ie(),t=kr(),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 Za=i,Za}var Ja,wh;function Et(){if(wh)return Ja;wh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Ja=e,Ja}var Qa,Oh;function uf(){if(Oh)return Qa;Oh=1;var e=mt(),t=Et(),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 Qa=o,Qa}var eo,_h;function cw(){if(_h)return eo;_h=1;var e=at(),t=e["__core-js_shared__"];return eo=t,eo}var to,Sh;function lw(){if(Sh)return to;Sh=1;var e=cw(),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 to=r,to}var ro,Ah;function Kg(){if(Ah)return ro;Ah=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 ro=r,ro}var no,Ph;function fw(){if(Ph)return no;Ph=1;var e=uf(),t=lw(),r=Et(),n=Kg(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!r(h)||t(h))return!1;var d=e(h)?f:a;return d.test(n(h))}return no=l,no}var io,Th;function hw(){if(Th)return io;Th=1;function e(t,r){return t?.[r]}return io=e,io}var ao,Eh;function Yt(){if(Eh)return ao;Eh=1;var e=fw(),t=hw();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return ao=r,ao}var oo,jh;function la(){if(jh)return oo;jh=1;var e=Yt(),t=e(Object,"create");return oo=t,oo}var uo,Mh;function pw(){if(Mh)return uo;Mh=1;var e=la();function t(){this.__data__=e?e(null):{},this.size=0}return uo=t,uo}var so,Ch;function dw(){if(Ch)return so;Ch=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return so=e,so}var co,$h;function vw(){if($h)return co;$h=1;var e=la(),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 co=i,co}var lo,Ih;function yw(){if(Ih)return lo;Ih=1;var e=la(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return lo=n,lo}var fo,Rh;function mw(){if(Rh)return fo;Rh=1;var e=la(),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 fo=r,fo}var ho,kh;function gw(){if(kh)return ho;kh=1;var e=pw(),t=dw(),r=vw(),n=yw(),i=mw();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,ho=a,ho}var po,Dh;function bw(){if(Dh)return po;Dh=1;function e(){this.__data__=[],this.size=0}return po=e,po}var vo,Nh;function sf(){if(Nh)return vo;Nh=1;function e(t,r){return t===r||t!==t&&r!==r}return vo=e,vo}var yo,qh;function fa(){if(qh)return yo;qh=1;var e=sf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return yo=t,yo}var mo,Lh;function xw(){if(Lh)return mo;Lh=1;var e=fa(),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 mo=n,mo}var go,Bh;function ww(){if(Bh)return go;Bh=1;var e=fa();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return go=t,go}var bo,Fh;function Ow(){if(Fh)return bo;Fh=1;var e=fa();function t(r){return e(this.__data__,r)>-1}return bo=t,bo}var xo,Uh;function _w(){if(Uh)return xo;Uh=1;var e=fa();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 xo=t,xo}var wo,Wh;function ha(){if(Wh)return wo;Wh=1;var e=bw(),t=xw(),r=ww(),n=Ow(),i=_w();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,wo=a,wo}var Oo,zh;function cf(){if(zh)return Oo;zh=1;var e=Yt(),t=at(),r=e(t,"Map");return Oo=r,Oo}var _o,Hh;function Sw(){if(Hh)return _o;Hh=1;var e=gw(),t=ha(),r=cf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return _o=n,_o}var So,Gh;function Aw(){if(Gh)return So;Gh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return So=e,So}var Ao,Kh;function pa(){if(Kh)return Ao;Kh=1;var e=Aw();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Ao=t,Ao}var Po,Vh;function Pw(){if(Vh)return Po;Vh=1;var e=pa();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Po=t,Po}var To,Xh;function Tw(){if(Xh)return To;Xh=1;var e=pa();function t(r){return e(this,r).get(r)}return To=t,To}var Eo,Yh;function Ew(){if(Yh)return Eo;Yh=1;var e=pa();function t(r){return e(this,r).has(r)}return Eo=t,Eo}var jo,Zh;function jw(){if(Zh)return jo;Zh=1;var e=pa();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 jo=t,jo}var Mo,Jh;function lf(){if(Jh)return Mo;Jh=1;var e=Sw(),t=Pw(),r=Tw(),n=Ew(),i=jw();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,Mo=a,Mo}var Co,Qh;function Vg(){if(Qh)return Co;Qh=1;var e=lf(),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,Co=r,Co}var $o,ep;function Mw(){if(ep)return $o;ep=1;var e=Vg(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return $o=r,$o}var Io,tp;function Cw(){if(tp)return Io;tp=1;var e=Mw(),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 Io=n,Io}var Ro,rp;function ff(){if(rp)return Ro;rp=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 Ro=e,Ro}var ko,np;function $w(){if(np)return ko;np=1;var e=Wn(),t=ff(),r=Ie(),n=kr(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return ko=o,ko}var Do,ip;function Xg(){if(ip)return Do;ip=1;var e=$w();function t(r){return r==null?"":e(r)}return Do=t,Do}var No,ap;function Yg(){if(ap)return No;ap=1;var e=Ie(),t=of(),r=Cw(),n=Xg();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return No=i,No}var qo,op;function da(){if(op)return qo;op=1;var e=kr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return qo=t,qo}var Lo,up;function hf(){if(up)return Lo;up=1;var e=Yg(),t=da();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 Lo=r,Lo}var Bo,sp;function Zg(){if(sp)return Bo;sp=1;var e=hf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Bo=t,Bo}var Iw=Zg();const ze=ue(Iw);var Fo,cp;function Rw(){if(cp)return Fo;cp=1;function e(t){return t==null}return Fo=e,Fo}var kw=Rw();const Z=ue(kw);var Uo,lp;function Dw(){if(lp)return Uo;lp=1;var e=mt(),t=Ie(),r=gt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Uo=i,Uo}var Nw=Dw();const Vt=ue(Nw);var qw=uf();const Y=ue(qw);var Lw=Et();const Dr=ue(Lw);var Wo={exports:{}},re={};var fp;function Bw(){if(fp)return re;fp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(p){if(typeof p=="object"&&p!==null){var b=p.$$typeof;switch(b){case e:switch(p=p.type,p){case r:case i:case n:case c:case f:return p;default:switch(p=p&&p.$$typeof,p){case u:case o:case s:case h:case l:case a:return p;default:return b}}case t:return b}}}return re.ContextConsumer=o,re.ContextProvider=a,re.Element=e,re.ForwardRef=s,re.Fragment=r,re.Lazy=h,re.Memo=l,re.Portal=t,re.Profiler=i,re.StrictMode=n,re.Suspense=c,re.SuspenseList=f,re.isAsyncMode=function(){return!1},re.isConcurrentMode=function(){return!1},re.isContextConsumer=function(p){return v(p)===o},re.isContextProvider=function(p){return v(p)===a},re.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},re.isForwardRef=function(p){return v(p)===s},re.isFragment=function(p){return v(p)===r},re.isLazy=function(p){return v(p)===h},re.isMemo=function(p){return v(p)===l},re.isPortal=function(p){return v(p)===t},re.isProfiler=function(p){return v(p)===i},re.isStrictMode=function(p){return v(p)===n},re.isSuspense=function(p){return v(p)===c},re.isSuspenseList=function(p){return v(p)===f},re.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===c||p===f||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===l||p.$$typeof===a||p.$$typeof===o||p.$$typeof===s||p.$$typeof===y||p.getModuleId!==void 0)},re.typeOf=v,re}var hp;function Fw(){return hp||(hp=1,Wo.exports=Bw()),Wo.exports}var Uw=Fw(),zo,pp;function Jg(){if(pp)return zo;pp=1;var e=mt(),t=gt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return zo=n,zo}var Ho,dp;function Ww(){if(dp)return Ho;dp=1;var e=Jg();function t(r){return e(r)&&r!=+r}return Ho=t,Ho}var zw=Ww();const Nr=ue(zw);var Hw=Jg();const Gw=ue(Hw);var Ye=function(t){return t===0?0:t>0?1:-1},Lt=function(t){return Vt(t)&&t.indexOf("%")===t.length-1},q=function(t){return Gw(t)&&!Nr(t)},Kw=function(t){return Z(t)},we=function(t){return q(t)||Vt(t)},Vw=0,zn=function(t){var r=++Vw;return"".concat(t||"").concat(r)},Ze=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(!q(t)&&!Vt(t))return n;var a;if(Lt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Nr(a)&&(a=n),i&&a>r&&(a=r),a},_t=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Xw=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 q(t)&&q(r)?function(n){return t+n*(r-t)}:function(){return r}};function hi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):ze(n,t))===r})}var Yw=function(t,r){return q(t)&&q(r)?t-r:Vt(t)&&Vt(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function sr(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 Wc(e){"@babel/helpers - typeof";return Wc=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},Wc(e)}var Zw=["viewBox","children"],Jw=["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"],vp=["points","pathLength"],Go={svg:Zw,polygon:vp,polyline:vp},pf=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],pi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(N.isValidElement(t)&&(n=t.props),!Dr(n))return null;var i={};return Object.keys(n).forEach(function(a){pf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Qw=function(t,r,n){return function(i){return t(r,n,i),null}},di=function(t,r,n){if(!Dr(t)||Wc(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];pf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Qw(o,r,n))}),i},eO=["children"],tO=["children"];function yp(e,t){if(e==null)return{};var r=rO(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 rO(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 zc(e){"@babel/helpers - typeof";return zc=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},zc(e)}var mp={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"},ft=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},gp=null,Ko=null,df=function e(t){if(t===gp&&Array.isArray(Ko))return Ko;var r=[];return N.Children.forEach(t,function(n){Z(n)||(Uw.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Ko=r,gp=t,r};function Je(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return ft(i)}):n=[ft(t)],df(e).forEach(function(i){var a=ze(i,"type.displayName")||ze(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function De(e,t){var r=Je(e,t);return r&&r[0]}var bp=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!q(n)||n<=0||!q(i)||i<=0)},nO=["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"],iO=function(t){return t&&t.type&&Vt(t.type)&&nO.indexOf(t.type)>=0},aO=function(t){return t&&zc(t)==="object"&&"clipDot"in t},oO=function(t,r,n,i){var a,o=(a=Go?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Y(t)&&(i&&o.includes(r)||Jw.includes(r))||n&&pf.includes(r)},J=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(N.isValidElement(t)&&(i=t.props),!Dr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;oO((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Hc=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 xp(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(!xp(a,o))return!1}return!0},xp=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=yp(n,eO),o=r.props||{},u=o.children,s=yp(o,tO);return i&&u?sr(a,s)&&Hc(i,u):!i&&!u?sr(a,s):!1}return!1},wp=function(t,r){var n=[],i={};return df(t).forEach(function(a,o){if(iO(a))n.push(a);else if(a){var u=ft(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},uO=function(t){var r=t&&t.type;return r&&mp[r]?mp[r]:null},sO=function(t,r){return df(r).indexOf(t)},cO=["children","width","height","viewBox","className","style","title","desc"];function Gc(){return Gc=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},Gc.apply(this,arguments)}function lO(e,t){if(e==null)return{};var r=fO(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 fO(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 Kc(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=lO(e,cO),f=i||{width:r,height:n,x:0,y:0},l=ee("recharts-surface",a);return T.createElement("svg",Gc({},J(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),T.createElement("title",null,u),T.createElement("desc",null,s),t)}var hO=["children","className"];function Vc(){return Vc=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},Vc.apply(this,arguments)}function pO(e,t){if(e==null)return{};var r=dO(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 dO(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 fe=T.forwardRef(function(e,t){var r=e.children,n=e.className,i=pO(e,hO),a=ee("recharts-layer",n);return T.createElement("g",Vc({className:a},J(i,!0),{ref:t}),r)}),zt=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]},Vo,Op;function vO(){if(Op)return Vo;Op=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 Vo=e,Vo}var Xo,_p;function yO(){if(_p)return Xo;_p=1;var e=vO();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 Xo=t,Xo}var Yo,Sp;function Qg(){if(Sp)return Yo;Sp=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 Yo=s,Yo}var Zo,Ap;function mO(){if(Ap)return Zo;Ap=1;function e(t){return t.split("")}return Zo=e,Zo}var Jo,Pp;function gO(){if(Pp)return Jo;Pp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",y=c+"?",v="["+a+"]?",p="(?:"+d+"(?:"+[f,l,h].join("|")+")"+v+y+")*",b=v+y+p,x="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(s+"(?="+s+")|"+x+b,"g");function O(m){return m.match(w)||[]}return Jo=O,Jo}var Qo,Tp;function bO(){if(Tp)return Qo;Tp=1;var e=mO(),t=Qg(),r=gO();function n(i){return t(i)?r(i):e(i)}return Qo=n,Qo}var eu,Ep;function xO(){if(Ep)return eu;Ep=1;var e=yO(),t=Qg(),r=bO(),n=Xg();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 eu=i,eu}var tu,jp;function wO(){if(jp)return tu;jp=1;var e=xO(),t=e("toUpperCase");return tu=t,tu}var OO=wO();const va=ue(OO);function oe(e){return function(){return e}}const eb=Math.cos,vi=Math.sin,Qe=Math.sqrt,yi=Math.PI,ya=2*yi,Xc=Math.PI,Yc=2*Xc,Nt=1e-6,_O=Yc-Nt;function tb(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function SO(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return tb;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class AO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?tb:SO(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,c=i-r,f=o-t,l=u-r,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Nt)if(!(Math.abs(l*s-c*f)>Nt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=n-o,y=i-u,v=s*s+c*c,p=d*d+y*y,b=Math.sqrt(v),x=Math.sqrt(h),w=a*Math.tan((Xc-Math.acos((v+h-p)/(2*b*x)))/2),O=w/x,m=w/b;Math.abs(O-1)>Nt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*d>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,h=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>Nt||Math.abs(this._y1-f)>Nt)&&this._append`L${c},${f}`,n&&(h<0&&(h=h%Yc+Yc),h>_O?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:h>Nt&&this._append`A${n},${n},0,${+(h>=Xc)},${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 vf(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 AO(t)}function yf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function rb(e){this._context=e}rb.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 ma(e){return new rb(e)}function nb(e){return e[0]}function ib(e){return e[1]}function ab(e,t){var r=oe(!0),n=null,i=ma,a=null,o=vf(u);e=typeof e=="function"?e:e===void 0?nb:oe(e),t=typeof t=="function"?t:t===void 0?ib:oe(t);function u(s){var c,f=(s=yf(s)).length,l,h=!1,d;for(n==null&&(a=i(d=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,c,s),+t(l,c,s));if(d)return a=null,d+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:oe(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:oe(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:oe(!!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 Qn(e,t,r){var n=null,i=oe(!0),a=null,o=ma,u=null,s=vf(c);e=typeof e=="function"?e:e===void 0?nb:oe(+e),t=typeof t=="function"?t:oe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?ib:oe(+r);function c(l){var h,d,y,v=(l=yf(l)).length,p,b=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=s())),h=0;h<=v;++h){if(!(h<v&&i(p=l[h],h,l))===b)if(b=!b)d=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=h-1;y>=d;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}b&&(w[h]=+e(p,h,l),O[h]=+t(p,h,l),u.point(n?+n(p,h,l):w[h],r?+r(p,h,l):O[h]))}if(x)return u=null,x+""||null}function f(){return ab().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:oe(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:oe(+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:oe(!!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 ob{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 PO(e){return new ob(e,!0)}function TO(e){return new ob(e,!1)}const mf={draw(e,t){const r=Qe(t/yi);e.moveTo(r,0),e.arc(0,0,r,0,ya)}},EO={draw(e,t){const r=Qe(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()}},ub=Qe(1/3),jO=ub*2,MO={draw(e,t){const r=Qe(t/jO),n=r*ub;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},CO={draw(e,t){const r=Qe(t),n=-r/2;e.rect(n,n,r,r)}},$O=.8908130915292852,sb=vi(yi/10)/vi(7*yi/10),IO=vi(ya/10)*sb,RO=-eb(ya/10)*sb,kO={draw(e,t){const r=Qe(t*$O),n=IO*r,i=RO*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ya*a/5,u=eb(o),s=vi(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},ru=Qe(3),DO={draw(e,t){const r=-Qe(t/(ru*3));e.moveTo(0,r*2),e.lineTo(-ru*r,-r),e.lineTo(ru*r,-r),e.closePath()}},Le=-.5,Be=Qe(3)/2,Zc=1/Qe(12),NO=(Zc/2+1)*3,qO={draw(e,t){const r=Qe(t/NO),n=r/2,i=r*Zc,a=n,o=r*Zc+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Le*n-Be*i,Be*n+Le*i),e.lineTo(Le*a-Be*o,Be*a+Le*o),e.lineTo(Le*u-Be*s,Be*u+Le*s),e.lineTo(Le*n+Be*i,Le*i-Be*n),e.lineTo(Le*a+Be*o,Le*o-Be*a),e.lineTo(Le*u+Be*s,Le*s-Be*u),e.closePath()}};function LO(e,t){let r=null,n=vf(i);e=typeof e=="function"?e:oe(e||mf),t=typeof t=="function"?t:oe(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:oe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:oe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function mi(){}function gi(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 cb(e){this._context=e}cb.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:gi(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:gi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BO(e){return new cb(e)}function lb(e){this._context=e}lb.prototype={areaStart:mi,areaEnd:mi,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:gi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function FO(e){return new lb(e)}function fb(e){this._context=e}fb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._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:gi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UO(e){return new fb(e)}function hb(e){this._context=e}hb.prototype={areaStart:mi,areaEnd:mi,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 WO(e){return new hb(e)}function Mp(e){return e<0?-1:1}function Cp(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(Mp(a)+Mp(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function $p(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function nu(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 bi(e){this._context=e}bi.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:nu(this,this._t0,$p(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,nu(this,$p(this,r=Cp(this,e,t)),r);break;default:nu(this,this._t0,r=Cp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function pb(e){this._context=new db(e)}(pb.prototype=Object.create(bi.prototype)).point=function(e,t){bi.prototype.point.call(this,t,e)};function db(e){this._context=e}db.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 zO(e){return new bi(e)}function HO(e){return new pb(e)}function vb(e){this._context=e}vb.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=Ip(e),i=Ip(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 Ip(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 GO(e){return new vb(e)}function ga(e,t){this._context=e,this._t=t}ga.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function KO(e){return new ga(e,.5)}function VO(e){return new ga(e,0)}function XO(e){return new ga(e,1)}function hr(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 Jc(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function YO(e,t){return e[t]}function ZO(e){const t=[];return t.key=e,t}function JO(){var e=oe([]),t=Jc,r=hr,n=YO;function i(a){var o=Array.from(e.apply(this,arguments),ZO),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=yf(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:oe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:oe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Jc:typeof a=="function"?a:oe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??hr,i):r},i}function QO(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}hr(e,t)}}function e1(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}hr(e,t)}}function t1(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,c=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,h=f[n-1][1]||0,d=(l-h)/2,y=0;y<u;++y){var v=e[t[y]],p=v[n][1]||0,b=v[n-1][1]||0;d+=p-b}s+=l,c+=d*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,hr(e,t)}}function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(e)}var r1=["type","size","sizeType"];function Qc(){return Qc=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},Qc.apply(this,arguments)}function Rp(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 kp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rp(Object(r),!0).forEach(function(n){n1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n1(e,t,r){return t=i1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i1(e){var t=a1(e,"string");return un(t)=="symbol"?t:t+""}function a1(e,t){if(un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o1(e,t){if(e==null)return{};var r=u1(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 u1(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 yb={symbolCircle:mf,symbolCross:EO,symbolDiamond:MO,symbolSquare:CO,symbolStar:kO,symbolTriangle:DO,symbolWye:qO},s1=Math.PI/180,c1=function(t){var r="symbol".concat(va(t));return yb[r]||mf},l1=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*s1;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}},f1=function(t,r){yb["symbol".concat(va(t))]=r},gf=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=o1(t,r1),c=kp(kp({},s),{},{type:n,size:a,sizeType:u}),f=function(){var p=c1(n),b=LO().type(p).size(l1(a,u,n));return b()},l=c.className,h=c.cx,d=c.cy,y=J(c,!0);return h===+h&&d===+d&&a===+a?T.createElement("path",Qc({},y,{className:ee("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(d,")"),d:f()})):null};gf.registerSymbol=f1;function pr(e){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pr(e)}function el(){return el=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},el.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 h1(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){sn(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 p1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d1(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,gb(n.key),n)}}function v1(e,t,r){return t&&d1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function y1(e,t,r){return t=xi(t),m1(e,mb()?Reflect.construct(t,r||[],xi(e).constructor):t.apply(e,r))}function m1(e,t){if(t&&(pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g1(e)}function g1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mb=function(){return!!e})()}function xi(e){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xi(e)}function b1(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&&tl(e,t)}function tl(e,t){return tl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tl(e,t)}function sn(e,t,r){return t=gb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gb(e){var t=x1(e,"string");return pr(t)=="symbol"?t:t+""}function x1(e,t){if(pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fe=32,bf=(function(e){function t(){return p1(this,t),y1(this,t,arguments)}return b1(t,e),v1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Fe/2,o=Fe/6,u=Fe/3,s=n.inactive?i:n.color;if(n.type==="plainline")return T.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Fe,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return T.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(Fe,"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 T.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Fe/8,"h").concat(Fe,"v").concat(Fe*3/4,"h").concat(-Fe,"z"),className:"recharts-legend-icon"});if(T.isValidElement(n.legendIcon)){var c=h1({},n);return delete c.legendIcon,T.cloneElement(n.legendIcon,c)}return T.createElement(gf,{fill:s,cx:a,cy:a,size:Fe,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:Fe,height:Fe},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(d,y){var v=d.formatter||s,p=ee(sn(sn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",d.inactive));if(d.type==="none")return null;var b=Y(d.value)?null:d.value;zt(!Y(d.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=d.inactive?c:d.color;return T.createElement("li",el({className:p,style:l,key:"legend-item-".concat(y)},di(n.props,d,y)),T.createElement(Kc,{width:o,height:o,viewBox:f,style:h},n.renderIcon(d)),T.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(b,d,y):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return T.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(N.PureComponent);sn(bf,"displayName","Legend");sn(bf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var iu,Np;function w1(){if(Np)return iu;Np=1;var e=ha();function t(){this.__data__=new e,this.size=0}return iu=t,iu}var au,qp;function O1(){if(qp)return au;qp=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return au=e,au}var ou,Lp;function _1(){if(Lp)return ou;Lp=1;function e(t){return this.__data__.get(t)}return ou=e,ou}var uu,Bp;function S1(){if(Bp)return uu;Bp=1;function e(t){return this.__data__.has(t)}return uu=e,uu}var su,Fp;function A1(){if(Fp)return su;Fp=1;var e=ha(),t=cf(),r=lf(),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 su=i,su}var cu,Up;function bb(){if(Up)return cu;Up=1;var e=ha(),t=w1(),r=O1(),n=_1(),i=S1(),a=A1();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,cu=o,cu}var lu,Wp;function P1(){if(Wp)return lu;Wp=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return lu=t,lu}var fu,zp;function T1(){if(zp)return fu;zp=1;function e(t){return this.__data__.has(t)}return fu=e,fu}var hu,Hp;function xb(){if(Hp)return hu;Hp=1;var e=lf(),t=P1(),r=T1();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,hu=n,hu}var pu,Gp;function wb(){if(Gp)return pu;Gp=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 pu=e,pu}var du,Kp;function Ob(){if(Kp)return du;Kp=1;function e(t,r){return t.has(r)}return du=e,du}var vu,Vp;function _b(){if(Vp)return vu;Vp=1;var e=xb(),t=wb(),r=Ob(),n=1,i=2;function a(o,u,s,c,f,l){var h=s&n,d=o.length,y=u.length;if(d!=y&&!(h&&y>d))return!1;var v=l.get(o),p=l.get(u);if(v&&p)return v==u&&p==o;var b=-1,x=!0,w=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++b<d;){var O=o[b],m=u[b];if(c)var g=h?c(m,O,b,u,o,l):c(O,m,b,o,u,l);if(g!==void 0){if(g)continue;x=!1;break}if(w){if(!t(u,function(_,S){if(!r(w,S)&&(O===_||f(O,_,s,c,l)))return w.push(S)})){x=!1;break}}else if(!(O===m||f(O,m,s,c,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return vu=a,vu}var yu,Xp;function E1(){if(Xp)return yu;Xp=1;var e=at(),t=e.Uint8Array;return yu=t,yu}var mu,Yp;function j1(){if(Yp)return mu;Yp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return mu=e,mu}var gu,Zp;function xf(){if(Zp)return gu;Zp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return gu=e,gu}var bu,Jp;function M1(){if(Jp)return bu;Jp=1;var e=Wn(),t=E1(),r=sf(),n=_b(),i=j1(),a=xf(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",d="[object RegExp]",y="[object Set]",v="[object String]",p="[object Symbol]",b="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function m(g,_,S,A,M,E,P){switch(S){case x:if(g.byteLength!=_.byteLength||g.byteOffset!=_.byteOffset)return!1;g=g.buffer,_=_.buffer;case b:return!(g.byteLength!=_.byteLength||!E(new t(g),new t(_)));case s:case c:case h:return r(+g,+_);case f:return g.name==_.name&&g.message==_.message;case d:case v:return g==_+"";case l:var j=i;case y:var $=A&o;if(j||(j=a),g.size!=_.size&&!$)return!1;var C=P.get(g);if(C)return C==_;A|=u,P.set(g,_);var R=n(j(g),j(_),A,M,E,P);return P.delete(g),R;case p:if(O)return O.call(g)==O.call(_)}return!1}return bu=m,bu}var xu,Qp;function Sb(){if(Qp)return xu;Qp=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 xu=e,xu}var wu,ed;function C1(){if(ed)return wu;ed=1;var e=Sb(),t=Ie();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return wu=r,wu}var Ou,td;function $1(){if(td)return Ou;td=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 Ou=e,Ou}var _u,rd;function I1(){if(rd)return _u;rd=1;function e(){return[]}return _u=e,_u}var Su,nd;function R1(){if(nd)return Su;nd=1;var e=$1(),t=I1(),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 Su=a,Su}var Au,id;function k1(){if(id)return Au;id=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Au=e,Au}var Pu,ad;function D1(){if(ad)return Pu;ad=1;var e=mt(),t=gt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Pu=n,Pu}var Tu,od;function wf(){if(od)return Tu;od=1;var e=D1(),t=gt(),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 Tu=a,Tu}var Jr={exports:{}},Eu,ud;function N1(){if(ud)return Eu;ud=1;function e(){return!1}return Eu=e,Eu}Jr.exports;var sd;function Ab(){return sd||(sd=1,(function(e,t){var r=at(),n=N1(),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})(Jr,Jr.exports)),Jr.exports}var ju,cd;function Of(){if(cd)return ju;cd=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 ju=r,ju}var Mu,ld;function _f(){if(ld)return Mu;ld=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Mu=t,Mu}var Cu,fd;function q1(){if(fd)return Cu;fd=1;var e=mt(),t=_f(),r=gt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",d="[object Set]",y="[object String]",v="[object WeakMap]",p="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",g="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",A="[object Uint16Array]",M="[object Uint32Array]",E={};E[x]=E[w]=E[O]=E[m]=E[g]=E[_]=E[S]=E[A]=E[M]=!0,E[n]=E[i]=E[p]=E[a]=E[b]=E[o]=E[u]=E[s]=E[c]=E[f]=E[l]=E[h]=E[d]=E[y]=E[v]=!1;function P(j){return r(j)&&t(j.length)&&!!E[e(j)]}return Cu=P,Cu}var $u,hd;function Pb(){if(hd)return $u;hd=1;function e(t){return function(r){return t(r)}}return $u=e,$u}var Qr={exports:{}};Qr.exports;var pd;function L1(){return pd||(pd=1,(function(e,t){var r=Gg(),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})(Qr,Qr.exports)),Qr.exports}var Iu,dd;function Tb(){if(dd)return Iu;dd=1;var e=q1(),t=Pb(),r=L1(),n=r&&r.isTypedArray,i=n?t(n):e;return Iu=i,Iu}var Ru,vd;function B1(){if(vd)return Ru;vd=1;var e=k1(),t=wf(),r=Ie(),n=Ab(),i=Of(),a=Tb(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),h=!l&&t(c),d=!l&&!h&&n(c),y=!l&&!h&&!d&&a(c),v=l||h||d||y,p=v?e(c.length,String):[],b=p.length;for(var x in c)(f||u.call(c,x))&&!(v&&(x=="length"||d&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,b)))&&p.push(x);return p}return Ru=s,Ru}var ku,yd;function F1(){if(yd)return ku;yd=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return ku=t,ku}var Du,md;function Eb(){if(md)return Du;md=1;function e(t,r){return function(n){return t(r(n))}}return Du=e,Du}var Nu,gd;function U1(){if(gd)return Nu;gd=1;var e=Eb(),t=e(Object.keys,Object);return Nu=t,Nu}var qu,bd;function W1(){if(bd)return qu;bd=1;var e=F1(),t=U1(),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 qu=i,qu}var Lu,xd;function Hn(){if(xd)return Lu;xd=1;var e=uf(),t=_f();function r(n){return n!=null&&t(n.length)&&!e(n)}return Lu=r,Lu}var Bu,wd;function ba(){if(wd)return Bu;wd=1;var e=B1(),t=W1(),r=Hn();function n(i){return r(i)?e(i):t(i)}return Bu=n,Bu}var Fu,Od;function z1(){if(Od)return Fu;Od=1;var e=C1(),t=R1(),r=ba();function n(i){return e(i,r,t)}return Fu=n,Fu}var Uu,_d;function H1(){if(_d)return Uu;_d=1;var e=z1(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,f){var l=u&t,h=e(a),d=h.length,y=e(o),v=y.length;if(d!=v&&!l)return!1;for(var p=d;p--;){var b=h[p];if(!(l?b in o:n.call(o,b)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var m=l;++p<d;){b=h[p];var g=a[b],_=o[b];if(s)var S=l?s(_,g,b,o,a,f):s(g,_,b,a,o,f);if(!(S===void 0?g===_||c(g,_,u,s,f):S)){O=!1;break}m||(m=b=="constructor")}if(O&&!m){var A=a.constructor,M=o.constructor;A!=M&&"constructor"in a&&"constructor"in o&&!(typeof A=="function"&&A instanceof A&&typeof M=="function"&&M instanceof M)&&(O=!1)}return f.delete(a),f.delete(o),O}return Uu=i,Uu}var Wu,Sd;function G1(){if(Sd)return Wu;Sd=1;var e=Yt(),t=at(),r=e(t,"DataView");return Wu=r,Wu}var zu,Ad;function K1(){if(Ad)return zu;Ad=1;var e=Yt(),t=at(),r=e(t,"Promise");return zu=r,zu}var Hu,Pd;function jb(){if(Pd)return Hu;Pd=1;var e=Yt(),t=at(),r=e(t,"Set");return Hu=r,Hu}var Gu,Td;function V1(){if(Td)return Gu;Td=1;var e=Yt(),t=at(),r=e(t,"WeakMap");return Gu=r,Gu}var Ku,Ed;function X1(){if(Ed)return Ku;Ed=1;var e=G1(),t=cf(),r=K1(),n=jb(),i=V1(),a=mt(),o=Kg(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",d=o(e),y=o(t),v=o(r),p=o(n),b=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=h||t&&x(new t)!=u||r&&x(r.resolve())!=c||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),m=O==s?w.constructor:void 0,g=m?o(m):"";if(g)switch(g){case d:return h;case y:return u;case v:return c;case p:return f;case b:return l}return O}),Ku=x,Ku}var Vu,jd;function Y1(){if(jd)return Vu;jd=1;var e=bb(),t=_b(),r=M1(),n=H1(),i=X1(),a=Ie(),o=Ab(),u=Tb(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function y(v,p,b,x,w,O){var m=a(v),g=a(p),_=m?f:i(v),S=g?f:i(p);_=_==c?l:_,S=S==c?l:S;var A=_==l,M=S==l,E=_==S;if(E&&o(v)){if(!o(p))return!1;m=!0,A=!1}if(E&&!A)return O||(O=new e),m||u(v)?t(v,p,b,x,w,O):r(v,p,_,b,x,w,O);if(!(b&s)){var P=A&&d.call(v,"__wrapped__"),j=M&&d.call(p,"__wrapped__");if(P||j){var $=P?v.value():v,C=j?p.value():p;return O||(O=new e),w($,C,b,x,O)}}return E?(O||(O=new e),n(v,p,b,x,w,O)):!1}return Vu=y,Vu}var Xu,Md;function Sf(){if(Md)return Xu;Md=1;var e=Y1(),t=gt();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 Xu=r,Xu}var Yu,Cd;function Z1(){if(Cd)return Yu;Cd=1;var e=bb(),t=Sf(),r=1,n=2;function i(a,o,u,s){var c=u.length,f=c,l=!s;if(a==null)return!f;for(a=Object(a);c--;){var h=u[c];if(l&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++c<f;){h=u[c];var d=h[0],y=a[d],v=h[1];if(l&&h[2]){if(y===void 0&&!(d in a))return!1}else{var p=new e;if(s)var b=s(y,v,d,a,o,p);if(!(b===void 0?t(v,y,r|n,s,p):b))return!1}}return!0}return Yu=i,Yu}var Zu,$d;function Mb(){if($d)return Zu;$d=1;var e=Et();function t(r){return r===r&&!e(r)}return Zu=t,Zu}var Ju,Id;function J1(){if(Id)return Ju;Id=1;var e=Mb(),t=ba();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 Ju=r,Ju}var Qu,Rd;function Cb(){if(Rd)return Qu;Rd=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Qu=e,Qu}var es,kd;function Q1(){if(kd)return es;kd=1;var e=Z1(),t=J1(),r=Cb();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 es=n,es}var ts,Dd;function e_(){if(Dd)return ts;Dd=1;function e(t,r){return t!=null&&r in Object(t)}return ts=e,ts}var rs,Nd;function t_(){if(Nd)return rs;Nd=1;var e=Yg(),t=wf(),r=Ie(),n=Of(),i=_f(),a=da();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,h=!1;++f<l;){var d=a(s[f]);if(!(h=u!=null&&c(u,d)))break;u=u[d]}return h||++f!=l?h:(l=u==null?0:u.length,!!l&&i(l)&&n(d,l)&&(r(u)||t(u)))}return rs=o,rs}var ns,qd;function r_(){if(qd)return ns;qd=1;var e=e_(),t=t_();function r(n,i){return n!=null&&t(n,i,e)}return ns=r,ns}var is,Ld;function n_(){if(Ld)return is;Ld=1;var e=Sf(),t=Zg(),r=r_(),n=of(),i=Mb(),a=Cb(),o=da(),u=1,s=2;function c(f,l){return n(f)&&i(l)?a(o(f),l):function(h){var d=t(h,f);return d===void 0&&d===l?r(h,f):e(l,d,u|s)}}return is=c,is}var as,Bd;function qr(){if(Bd)return as;Bd=1;function e(t){return t}return as=e,as}var os,Fd;function i_(){if(Fd)return os;Fd=1;function e(t){return function(r){return r?.[t]}}return os=e,os}var us,Ud;function a_(){if(Ud)return us;Ud=1;var e=hf();function t(r){return function(n){return e(n,r)}}return us=t,us}var ss,Wd;function o_(){if(Wd)return ss;Wd=1;var e=i_(),t=a_(),r=of(),n=da();function i(a){return r(a)?e(n(a)):t(a)}return ss=i,ss}var cs,zd;function jt(){if(zd)return cs;zd=1;var e=Q1(),t=n_(),r=qr(),n=Ie(),i=o_();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 cs=a,cs}var ls,Hd;function $b(){if(Hd)return ls;Hd=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 ls=e,ls}var fs,Gd;function u_(){if(Gd)return fs;Gd=1;function e(t){return t!==t}return fs=e,fs}var hs,Kd;function s_(){if(Kd)return hs;Kd=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 hs=e,hs}var ps,Vd;function c_(){if(Vd)return ps;Vd=1;var e=$b(),t=u_(),r=s_();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return ps=n,ps}var ds,Xd;function l_(){if(Xd)return ds;Xd=1;var e=c_();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return ds=t,ds}var vs,Yd;function f_(){if(Yd)return vs;Yd=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 vs=e,vs}var ys,Zd;function h_(){if(Zd)return ys;Zd=1;function e(){}return ys=e,ys}var ms,Jd;function p_(){if(Jd)return ms;Jd=1;var e=jb(),t=h_(),r=xf(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return ms=i,ms}var gs,Qd;function d_(){if(Qd)return gs;Qd=1;var e=xb(),t=l_(),r=f_(),n=Ob(),i=p_(),a=xf(),o=200;function u(s,c,f){var l=-1,h=t,d=s.length,y=!0,v=[],p=v;if(f)y=!1,h=r;else if(d>=o){var b=c?null:i(s);if(b)return a(b);y=!1,h=n,p=new e}else p=c?[]:v;e:for(;++l<d;){var x=s[l],w=c?c(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=p.length;O--;)if(p[O]===w)continue e;c&&p.push(w),v.push(x)}else h(p,w,f)||(p!==v&&p.push(w),v.push(x))}return v}return gs=u,gs}var bs,ev;function v_(){if(ev)return bs;ev=1;var e=jt(),t=d_();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return bs=r,bs}var y_=v_();const tv=ue(y_);function Ib(e,t,r){return t===!0?tv(e,r):Y(t)?tv(e,t):e}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)}var m_=["ref"];function rv(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 ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rv(Object(r),!0).forEach(function(n){xa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nv(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,kb(n.key),n)}}function b_(e,t,r){return t&&nv(e.prototype,t),r&&nv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function x_(e,t,r){return t=wi(t),w_(e,Rb()?Reflect.construct(t,r||[],wi(e).constructor):t.apply(e,r))}function w_(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 O_(e)}function O_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rb=function(){return!!e})()}function wi(e){return wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wi(e)}function __(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&&rl(e,t)}function rl(e,t){return rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rl(e,t)}function xa(e,t,r){return t=kb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kb(e){var t=S_(e,"string");return dr(t)=="symbol"?t:t+""}function S_(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 A_(e,t){if(e==null)return{};var r=P_(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 P_(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 T_(e){return e.value}function E_(e,t){if(T.isValidElement(e))return T.cloneElement(e,t);if(typeof e=="function")return T.createElement(e,t);t.ref;var r=A_(t,m_);return T.createElement(bf,r)}var iv=1,cr=(function(e){function t(){var r;g_(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=x_(this,t,[].concat(i)),xa(r,"lastBoundingBox",{width:-1,height:-1}),r}return __(t,e),b_(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)>iv||Math.abs(i.height-this.lastBoundingBox.height)>iv)&&(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?ot({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,c=i.chartWidth,f=i.chartHeight,l,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var d=this.getBBoxSnapshot();l={left:((c||0)-d.width)/2}}else l=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();h={top:((f||0)-y.height)/2}}else h=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return ot(ot({},l),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,l=ot(ot({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return T.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(d){n.wrapperNode=d}},E_(a,ot(ot({},this.props),{},{payload:Ib(f,c,T_)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ot(ot({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&q(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(N.PureComponent);xa(cr,"displayName","Legend");xa(cr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var xs,av;function j_(){if(av)return xs;av=1;var e=Wn(),t=wf(),r=Ie(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return xs=i,xs}var ws,ov;function Db(){if(ov)return ws;ov=1;var e=Sb(),t=j_();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 ws=r,ws}var Os,uv;function M_(){if(uv)return Os;uv=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 Os=e,Os}var _s,sv;function C_(){if(sv)return _s;sv=1;var e=M_(),t=e();return _s=t,_s}var Ss,cv;function Nb(){if(cv)return Ss;cv=1;var e=C_(),t=ba();function r(n,i){return n&&e(n,i,t)}return Ss=r,Ss}var As,lv;function $_(){if(lv)return As;lv=1;var e=Hn();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 As=t,As}var Ps,fv;function Af(){if(fv)return Ps;fv=1;var e=Nb(),t=$_(),r=t(e);return Ps=r,Ps}var Ts,hv;function qb(){if(hv)return Ts;hv=1;var e=Af(),t=Hn();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 Ts=r,Ts}var Es,pv;function I_(){if(pv)return Es;pv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Es=e,Es}var js,dv;function R_(){if(dv)return js;dv=1;var e=kr();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 js=t,js}var Ms,vv;function k_(){if(vv)return Ms;vv=1;var e=R_();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 Ms=t,Ms}var Cs,yv;function D_(){if(yv)return Cs;yv=1;var e=ff(),t=hf(),r=jt(),n=qb(),i=I_(),a=Pb(),o=k_(),u=qr(),s=Ie();function c(f,l,h){l.length?l=e(l,function(v){return s(v)?function(p){return t(p,v.length===1?v[0]:v)}:v}):l=[u];var d=-1;l=e(l,a(r));var y=n(f,function(v,p,b){var x=e(l,function(w){return w(v)});return{criteria:x,index:++d,value:v}});return i(y,function(v,p){return o(v,p,h)})}return Cs=c,Cs}var $s,mv;function N_(){if(mv)return $s;mv=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 $s=e,$s}var Is,gv;function q_(){if(gv)return Is;gv=1;var e=N_(),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 Is=r,Is}var Rs,bv;function L_(){if(bv)return Rs;bv=1;function e(t){return function(){return t}}return Rs=e,Rs}var ks,xv;function Lb(){if(xv)return ks;xv=1;var e=Yt(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return ks=t,ks}var Ds,wv;function B_(){if(wv)return Ds;wv=1;var e=L_(),t=Lb(),r=qr(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Ds=n,Ds}var Ns,Ov;function F_(){if(Ov)return Ns;Ov=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 Ns=n,Ns}var qs,_v;function U_(){if(_v)return qs;_v=1;var e=B_(),t=F_(),r=t(e);return qs=r,qs}var Ls,Sv;function W_(){if(Sv)return Ls;Sv=1;var e=qr(),t=q_(),r=U_();function n(i,a){return r(t(i,a,e),i+"")}return Ls=n,Ls}var Bs,Av;function wa(){if(Av)return Bs;Av=1;var e=sf(),t=Hn(),r=Of(),n=Et();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 Bs=i,Bs}var Fs,Pv;function z_(){if(Pv)return Fs;Pv=1;var e=Db(),t=D_(),r=W_(),n=wa(),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 Fs=i,Fs}var H_=z_();const Pf=ue(H_);function cn(e){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(e)}function nl(){return nl=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},nl.apply(this,arguments)}function G_(e,t){return Y_(e)||X_(e,t)||V_(e,t)||K_()}function K_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V_(e,t){if(e){if(typeof e=="string")return Tv(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 Tv(e,t)}}function Tv(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 X_(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 Y_(e){if(Array.isArray(e))return e}function Ev(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 Us(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ev(Object(r),!0).forEach(function(n){Z_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ev(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Z_(e,t,r){return t=J_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J_(e){var t=Q_(e,"string");return cn(t)=="symbol"?t:t+""}function Q_(e,t){if(cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eS(e){return Array.isArray(e)&&we(e[0])&&we(e[1])?e.join(" ~ "):e}var tS=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,s=t.labelStyle,c=s===void 0?{}:s,f=t.payload,l=t.formatter,h=t.itemSorter,d=t.wrapperClassName,y=t.labelClassName,v=t.label,p=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,w=function(){if(f&&f.length){var P={padding:0,margin:0},j=(h?Pf(f,h):f).map(function($,C){if($.type==="none")return null;var R=Us({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},u),D=$.formatter||l||eS,L=$.value,B=$.name,z=L,G=B;if(D&&z!=null&&G!=null){var U=D(L,B,$,C,f);if(Array.isArray(U)){var K=G_(U,2);z=K[0],G=K[1]}else z=U}return T.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:R},we(G)?T.createElement("span",{className:"recharts-tooltip-item-name"},G):null,we(G)?T.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,T.createElement("span",{className:"recharts-tooltip-item-value"},z),T.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return T.createElement("ul",{className:"recharts-tooltip-item-list",style:P},j)}return null},O=Us({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=Us({margin:0},c),g=!Z(v),_=g?v:"",S=ee("recharts-default-tooltip",d),A=ee("recharts-tooltip-label",y);g&&p&&f!==void 0&&f!==null&&(_=p(v,f));var M=x?{role:"status","aria-live":"assertive"}:{};return T.createElement("div",nl({className:S,style:O},M),T.createElement("p",{className:A,style:m},T.isValidElement(_)?_:"".concat(_)),w())};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 ei(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 ln(t)=="symbol"?t:t+""}function nS(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)}var Wr="recharts-tooltip-wrapper",iS={visibility:"hidden"};function aS(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ee(Wr,ei(ei(ei(ei({},"".concat(Wr,"-right"),q(r)&&t&&q(t.x)&&r>=t.x),"".concat(Wr,"-left"),q(r)&&t&&q(t.x)&&r<t.x),"".concat(Wr,"-bottom"),q(n)&&t&&q(t.y)&&n>=t.y),"".concat(Wr,"-top"),q(n)&&t&&q(t.y)&&n<t.y))}function jv(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&&q(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var h=f,d=s[n];return h<d?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 oS(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 uS(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=jv({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=jv({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=oS({translateX:f,translateY:l,useTranslate3d:u})):c=iS,{cssProperties:c,cssClasses:aS({translateX:f,translateY:l,coordinate:r})}}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 Mv(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 Cv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mv(Object(r),!0).forEach(function(n){al(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cS(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,Fb(n.key),n)}}function lS(e,t,r){return t&&cS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fS(e,t,r){return t=Oi(t),hS(e,Bb()?Reflect.construct(t,r||[],Oi(e).constructor):t.apply(e,r))}function hS(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 pS(e)}function pS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bb=function(){return!!e})()}function Oi(e){return Oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oi(e)}function dS(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&&il(e,t)}function il(e,t){return il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},il(e,t)}function al(e,t,r){return t=Fb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fb(e){var t=vS(e,"string");return vr(t)=="symbol"?t:t+""}function vS(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 $v=1,yS=(function(e){function t(){var r;sS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=fS(this,t,[].concat(i)),al(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),al(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,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 dS(t,e),lS(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>$v||Math.abs(n.height-this.state.lastBoundingBox.height)>$v)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.children,f=i.coordinate,l=i.hasPayload,h=i.isAnimationActive,d=i.offset,y=i.position,v=i.reverseDirection,p=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,w=uS({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:d,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:b}),O=w.cssClasses,m=w.cssProperties,g=Cv(Cv({transition:h&&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 T.createElement("div",{tabIndex:-1,className:O,style:g,ref:function(S){n.wrapperNode=S}},c)}}])})(N.PureComponent),mS=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Lr={isSsr:mS()};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 Iv(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 Rv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Iv(Object(r),!0).forEach(function(n){Tf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bS(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,Wb(n.key),n)}}function xS(e,t,r){return t&&bS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wS(e,t,r){return t=_i(t),OS(e,Ub()?Reflect.construct(t,r||[],_i(e).constructor):t.apply(e,r))}function OS(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 _S(e)}function _S(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ub(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ub=function(){return!!e})()}function _i(e){return _i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_i(e)}function SS(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&&ol(e,t)}function ol(e,t){return ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ol(e,t)}function Tf(e,t,r){return t=Wb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wb(e){var t=AS(e,"string");return yr(t)=="symbol"?t:t+""}function AS(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)}function PS(e){return e.dataKey}function TS(e,t){return T.isValidElement(e)?T.cloneElement(e,t):typeof e=="function"?T.createElement(e,t):T.createElement(tS,t)}var ut=(function(e){function t(){return gS(this,t),wS(this,t,arguments)}return SS(t,e),xS(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.content,f=i.coordinate,l=i.filterNull,h=i.isAnimationActive,d=i.offset,y=i.payload,v=i.payloadUniqBy,p=i.position,b=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=Ib(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,PS));var g=m.length>0;return T.createElement(yS,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:h,active:a,coordinate:f,hasPayload:g,offset:d,position:p,reverseDirection:b,useTranslate3d:x,viewBox:w,wrapperStyle:O},TS(c,Rv(Rv({},this.props),{},{payload:m})))}}])})(N.PureComponent);Tf(ut,"displayName","Tooltip");Tf(ut,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Lr.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 Ws,kv;function ES(){if(kv)return Ws;kv=1;var e=at(),t=function(){return e.Date.now()};return Ws=t,Ws}var zs,Dv;function jS(){if(Dv)return zs;Dv=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return zs=t,zs}var Hs,Nv;function MS(){if(Nv)return Hs;Nv=1;var e=jS(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Hs=r,Hs}var Gs,qv;function zb(){if(qv)return Gs;qv=1;var e=MS(),t=Et(),r=kr(),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 Gs=s,Gs}var Ks,Lv;function CS(){if(Lv)return Ks;Lv=1;var e=Et(),t=ES(),r=zb(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var f,l,h,d,y,v,p=0,b=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(b=!!c.leading,x="maxWait"in c,h=x?i(r(c.maxWait)||0,s):h,w="trailing"in c?!!c.trailing:w);function O(j){var $=f,C=l;return f=l=void 0,p=j,d=u.apply(C,$),d}function m(j){return p=j,y=setTimeout(S,s),b?O(j):d}function g(j){var $=j-v,C=j-p,R=s-$;return x?a(R,h-C):R}function _(j){var $=j-v,C=j-p;return v===void 0||$>=s||$<0||x&&C>=h}function S(){var j=t();if(_(j))return A(j);y=setTimeout(S,g(j))}function A(j){return y=void 0,w&&f?O(j):(f=l=void 0,d)}function M(){y!==void 0&&clearTimeout(y),p=0,f=v=l=y=void 0}function E(){return y===void 0?d:A(t())}function P(){var j=t(),$=_(j);if(f=arguments,l=this,v=j,$){if(y===void 0)return m(v);if(x)return clearTimeout(y),y=setTimeout(S,s),O(v)}return y===void 0&&(y=setTimeout(S,s)),d}return P.cancel=M,P.flush=E,P}return Ks=o,Ks}var Vs,Bv;function $S(){if(Bv)return Vs;Bv=1;var e=CS(),t=Et(),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 Vs=n,Vs}var IS=$S();const Hb=ue(IS);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 Fv(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 ti(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fv(Object(r),!0).forEach(function(n){RS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RS(e,t,r){return t=kS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kS(e){var t=DS(e,"string");return fn(t)=="symbol"?t:t+""}function DS(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 NS(e,t){return FS(e)||BS(e,t)||LS(e,t)||qS()}function qS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LS(e,t){if(e){if(typeof e=="string")return Uv(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 Uv(e,t)}}function Uv(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 BS(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 FS(e){if(Array.isArray(e))return e}var KD=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,h=e.maxHeight,d=e.children,y=e.debounce,v=y===void 0?0:y,p=e.id,b=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,m=N.useRef(null),g=N.useRef();g.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}),S=NS(_,2),A=S[0],M=S[1],E=N.useCallback(function(j,$){M(function(C){var R=Math.round(j),D=Math.round($);return C.containerWidth===R&&C.containerHeight===D?C:{containerWidth:R,containerHeight:D}})},[]);N.useEffect(function(){var j=function(B){var z,G=B[0].contentRect,U=G.width,K=G.height;E(U,K),(z=g.current)===null||z===void 0||z.call(g,U,K)};v>0&&(j=Hb(j,v,{trailing:!0,leading:!1}));var $=new ResizeObserver(j),C=m.current.getBoundingClientRect(),R=C.width,D=C.height;return E(R,D),$.observe(m.current),function(){$.disconnect()}},[E,v]);var P=N.useMemo(function(){var j=A.containerWidth,$=A.containerHeight;if(j<0||$<0)return null;zt(Lt(o)||Lt(s),`The width(%s) and height(%s) are both fixed numbers,
7
- maybe you don't need to use a ResponsiveContainer.`,o,s),zt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var C=Lt(o)?j:o,R=Lt(s)?$:s;r&&r>0&&(C?R=C/r:R&&(C=R*r),h&&R>h&&(R=h)),zt(C>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0,
8
- please check the style of container, or the props width(%s) and height(%s),
9
- or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
10
- height and width.`,C,R,o,s,f,l,r);var D=!Array.isArray(d)&&ft(d.type).endsWith("Chart");return T.Children.map(d,function(L){return T.isValidElement(L)?N.cloneElement(L,ti({width:C,height:R},D?{style:ti({height:"100%",width:"100%",maxHeight:R,maxWidth:C},L.props.style)}:{})):L})},[r,d,s,h,l,f,A,o]);return T.createElement("div",{id:p?"".concat(p):void 0,className:ee("recharts-responsive-container",b),style:ti(ti({},O),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:h}),ref:m},P)}),Gb=function(t){return null};Gb.displayName="Cell";function hn(e){"@babel/helpers - typeof";return hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(e)}function Wv(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 ul(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wv(Object(r),!0).forEach(function(n){US(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function US(e,t,r){return t=WS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WS(e){var t=zS(e,"string");return hn(t)=="symbol"?t:t+""}function zS(e,t){if(hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nr={widthCache:{},cacheCount:0},HS=2e3,GS={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},zv="recharts_measurement_span";function KS(e){var t=ul({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var tn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Lr.isSsr)return{width:0,height:0};var n=KS(r),i=JSON.stringify({text:t,copyStyle:n});if(nr.widthCache[i])return nr.widthCache[i];try{var a=document.getElementById(zv);a||(a=document.createElement("span"),a.setAttribute("id",zv),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=ul(ul({},GS),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return nr.widthCache[i]=s,++nr.cacheCount>HS&&(nr.cacheCount=0,nr.widthCache={}),s}catch{return{width:0,height:0}}},VS=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function pn(e){"@babel/helpers - typeof";return pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(e)}function Si(e,t){return JS(e)||ZS(e,t)||YS(e,t)||XS()}function XS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
11
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YS(e,t){if(e){if(typeof e=="string")return Hv(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 Hv(e,t)}}function Hv(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 ZS(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 JS(e){if(Array.isArray(e))return e}function QS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gv(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,tA(n.key),n)}}function eA(e,t,r){return t&&Gv(e.prototype,t),r&&Gv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tA(e){var t=rA(e,"string");return pn(t)=="symbol"?t:t+""}function rA(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Kv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Vv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,nA=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,iA=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Kb={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},aA=Object.keys(Kb),ar="NaN";function oA(e,t){return e*Kb[t]}var ri=(function(){function e(t,r){QS(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!nA.test(r)&&(this.num=NaN,this.unit=""),aA.includes(r)&&(this.num=oA(t,r),this.unit="px")}return eA(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=iA.exec(r))!==null&&n!==void 0?n:[],a=Si(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function Vb(e){if(e.includes(ar))return ar;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Kv.exec(t))!==null&&r!==void 0?r:[],i=Si(n,4),a=i[1],o=i[2],u=i[3],s=ri.parse(a??""),c=ri.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return ar;t=t.replace(Kv,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=Vv.exec(t))!==null&&l!==void 0?l:[],d=Si(h,4),y=d[1],v=d[2],p=d[3],b=ri.parse(y??""),x=ri.parse(p??""),w=v==="+"?b.add(x):b.subtract(x);if(w.isNaN())return ar;t=t.replace(Vv,w.toString())}return t}var Xv=/\(([^()]*)\)/;function uA(e){for(var t=e;t.includes("(");){var r=Xv.exec(t),n=Si(r,2),i=n[1];t=t.replace(Xv,Vb(i))}return t}function sA(e){var t=e.replace(/\s+/g,"");return t=uA(t),t=Vb(t),t}function cA(e){try{return sA(e)}catch{return ar}}function Xs(e){var t=cA(e.slice(5,-1));return t===ar?"":t}var lA=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],fA=["dx","dy","angle","className","breakAll"];function sl(){return sl=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},sl.apply(this,arguments)}function Yv(e,t){if(e==null)return{};var r=hA(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 hA(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 Zv(e,t){return yA(e)||vA(e,t)||dA(e,t)||pA()}function pA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dA(e,t){if(e){if(typeof e=="string")return Jv(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 Jv(e,t)}}function Jv(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 vA(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 yA(e){if(Array.isArray(e))return e}var Xb=/[ \f\n\r\t\v\u2028\u2029]+/,Yb=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(Xb));var o=a.map(function(s){return{word:s,width:tn(s,i).width}}),u=n?0:tn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},mA=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=q(o),l=u,h=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce(function(R,D){var L=D.word,B=D.width,z=R[R.length-1];if(z&&(i==null||a||z.width+B+n<Number(i)))z.words.push(L),z.width+=B+n;else{var G={words:[L],width:B};R.push(G)}return R},[])},d=h(r),y=function(C){return C.reduce(function(R,D){return R.width>D.width?R:D})};if(!f)return d;for(var v="…",p=function(C){var R=l.slice(0,C),D=Yb({breakAll:c,style:s,children:R+v}).wordsWithComputedWidth,L=h(D),B=L.length>o||y(L).width>Number(i);return[B,L]},b=0,x=l.length-1,w=0,O;b<=x&&w<=l.length-1;){var m=Math.floor((b+x)/2),g=m-1,_=p(g),S=Zv(_,2),A=S[0],M=S[1],E=p(m),P=Zv(E,1),j=P[0];if(!A&&!j&&(b=m+1),A&&j&&(x=m-1),!A&&j){O=M;break}w++}return O||d},Qv=function(t){var r=Z(t)?[]:t.toString().split(Xb);return[{words:r}]},gA=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!Lr.isSsr){var s,c,f=Yb({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;s=l,c=h}else return Qv(i);return mA({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return Qv(i)},ey="#808080",Ai=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,s=t.capHeight,c=s===void 0?"0.71em":s,f=t.scaleToFit,l=f===void 0?!1:f,h=t.textAnchor,d=h===void 0?"start":h,y=t.verticalAnchor,v=y===void 0?"end":y,p=t.fill,b=p===void 0?ey:p,x=Yv(t,lA),w=N.useMemo(function(){return gA({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,g=x.angle,_=x.className,S=x.breakAll,A=Yv(x,fA);if(!we(n)||!we(a))return null;var M=n+(q(O)?O:0),E=a+(q(m)?m:0),P;switch(v){case"start":P=Xs("calc(".concat(c,")"));break;case"middle":P=Xs("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:P=Xs("calc(".concat(w.length-1," * -").concat(u,")"));break}var j=[];if(l){var $=w[0].width,C=x.width;j.push("scale(".concat((q(C)?C/$:1)/$,")"))}return g&&j.push("rotate(".concat(g,", ").concat(M,", ").concat(E,")")),j.length&&(A.transform=j.join(" ")),T.createElement("text",sl({},J(A,!0),{x:M,y:E,className:ee("recharts-text",_),textAnchor:d,fill:b.includes("url")?ey:b}),w.map(function(R,D){var L=R.words.join(S?"":" ");return T.createElement("tspan",{x:M,dy:D===0?P:u,key:"".concat(L,"-").concat(D)},L)}))};function Pt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function bA(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ef(e){let t,r,n;e.length!==2?(t=Pt,r=(u,s)=>Pt(e(u),s),n=(u,s)=>e(u)-s):(t=e===Pt||e===bA?e:xA,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 xA(){return 0}function Zb(e){return e===null?NaN:+e}function*wA(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const OA=Ef(Pt),Gn=OA.right;Ef(Zb).center;class ty extends Map{constructor(t,r=AA){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(ry(this,t))}has(t){return super.has(ry(this,t))}set(t,r){return super.set(_A(this,t),r)}delete(t){return super.delete(SA(this,t))}}function ry({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function _A({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function SA({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function AA(e){return e!==null&&typeof e=="object"?e.valueOf():e}function PA(e=Pt){if(e===Pt)return Jb;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 Jb(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const TA=Math.sqrt(50),EA=Math.sqrt(10),jA=Math.sqrt(2);function Pi(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>=TA?10:a>=EA?5:a>=jA?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?Pi(e,t,r*2):[u,s,c]}function cl(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?Pi(t,e,r):Pi(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 ll(e,t,r){return t=+t,e=+e,r=+r,Pi(e,t,r)[2]}function fl(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?ll(t,e,r):ll(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function ny(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function iy(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Qb(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?Jb:PA(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),d=Math.max(r,Math.floor(t-c*l/s+h)),y=Math.min(n,Math.floor(t+(s-c)*l/s+h));Qb(e,t,d,y,i)}const a=e[t];let o=r,u=n;for(zr(e,r,t),i(e[n],a)>0&&zr(e,r,n);o<u;){for(zr(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?zr(e,r,u):(++u,zr(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function zr(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function MA(e,t,r){if(e=Float64Array.from(wA(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return iy(e);if(t>=1)return ny(e);var n,i=(n-1)*t,a=Math.floor(i),o=ny(Qb(e,a).subarray(0,a+1)),u=iy(e.subarray(a+1));return o+(u-o)*(i-a)}}function CA(e,t,r=Zb){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 $A(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 Ge(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function bt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const hl=Symbol("implicit");function jf(){var e=new ty,t=[],r=[],n=hl;function i(a){let o=e.get(a);if(o===void 0){if(n!==hl)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 ty;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 jf(t,r).unknown(n)},Ge.apply(i,arguments),i}function dn(){var e=jf().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,f=.5;delete e.unknown;function l(){var h=t().length,d=i<n,y=d?i:n,v=d?n:i;a=(v-y)/Math.max(1,h-s+c*2),u&&(a=Math.floor(a)),y+=(v-y-a*(h-s))*f,o=a*(1-s),u&&(y=Math.round(y),o=Math.round(o));var p=$A(h).map(function(b){return y+a*b});return r(d?p.reverse():p)}return e.domain=function(h){return arguments.length?(t(h),l()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(u=!!h,l()):u},e.padding=function(h){return arguments.length?(s=Math.min(1,c=+h),l()):s},e.paddingInner=function(h){return arguments.length?(s=Math.min(1,h),l()):s},e.paddingOuter=function(h){return arguments.length?(c=+h,l()):c},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},e.copy=function(){return dn(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},Ge.apply(l(),arguments)}function e0(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return e0(t())},e}function rn(){return e0(dn.apply(null,arguments).paddingInner(1))}function Mf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function t0(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Kn(){}var vn=.7,Ti=1/vn,lr="\\s*([+-]?\\d+)\\s*",yn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",IA=/^#([0-9a-f]{3,8})$/,RA=new RegExp(`^rgb\\(${lr},${lr},${lr}\\)$`),kA=new RegExp(`^rgb\\(${rt},${rt},${rt}\\)$`),DA=new RegExp(`^rgba\\(${lr},${lr},${lr},${yn}\\)$`),NA=new RegExp(`^rgba\\(${rt},${rt},${rt},${yn}\\)$`),qA=new RegExp(`^hsl\\(${yn},${rt},${rt}\\)$`),LA=new RegExp(`^hsla\\(${yn},${rt},${rt},${yn}\\)$`),ay={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};Mf(Kn,mn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:oy,formatHex:oy,formatHex8:BA,formatHsl:FA,formatRgb:uy,toString:uy});function oy(){return this.rgb().formatHex()}function BA(){return this.rgb().formatHex8()}function FA(){return r0(this).formatHsl()}function uy(){return this.rgb().formatRgb()}function mn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=IA.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?sy(t):r===3?new $e(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ni(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ni(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=RA.exec(e))?new $e(t[1],t[2],t[3],1):(t=kA.exec(e))?new $e(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=DA.exec(e))?ni(t[1],t[2],t[3],t[4]):(t=NA.exec(e))?ni(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=qA.exec(e))?fy(t[1],t[2]/100,t[3]/100,1):(t=LA.exec(e))?fy(t[1],t[2]/100,t[3]/100,t[4]):ay.hasOwnProperty(e)?sy(ay[e]):e==="transparent"?new $e(NaN,NaN,NaN,0):null}function sy(e){return new $e(e>>16&255,e>>8&255,e&255,1)}function ni(e,t,r,n){return n<=0&&(e=t=r=NaN),new $e(e,t,r,n)}function UA(e){return e instanceof Kn||(e=mn(e)),e?(e=e.rgb(),new $e(e.r,e.g,e.b,e.opacity)):new $e}function pl(e,t,r,n){return arguments.length===1?UA(e):new $e(e,t,r,n??1)}function $e(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Mf($e,pl,t0(Kn,{brighter(e){return e=e==null?Ti:Math.pow(Ti,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vn:Math.pow(vn,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $e(Ht(this.r),Ht(this.g),Ht(this.b),Ei(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:cy,formatHex:cy,formatHex8:WA,formatRgb:ly,toString:ly}));function cy(){return`#${Bt(this.r)}${Bt(this.g)}${Bt(this.b)}`}function WA(){return`#${Bt(this.r)}${Bt(this.g)}${Bt(this.b)}${Bt((isNaN(this.opacity)?1:this.opacity)*255)}`}function ly(){const e=Ei(this.opacity);return`${e===1?"rgb(":"rgba("}${Ht(this.r)}, ${Ht(this.g)}, ${Ht(this.b)}${e===1?")":`, ${e})`}`}function Ei(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ht(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bt(e){return e=Ht(e),(e<16?"0":"")+e.toString(16)}function fy(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xe(e,t,r,n)}function r0(e){if(e instanceof Xe)return new Xe(e.h,e.s,e.l,e.opacity);if(e instanceof Kn||(e=mn(e)),!e)return new Xe;if(e instanceof Xe)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 Xe(o,u,s,e.opacity)}function zA(e,t,r,n){return arguments.length===1?r0(e):new Xe(e,t,r,n??1)}function Xe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Mf(Xe,zA,t0(Kn,{brighter(e){return e=e==null?Ti:Math.pow(Ti,e),new Xe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vn:Math.pow(vn,e),new Xe(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 $e(Ys(e>=240?e-240:e+120,i,n),Ys(e,i,n),Ys(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xe(hy(this.h),ii(this.s),ii(this.l),Ei(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=Ei(this.opacity);return`${e===1?"hsl(":"hsla("}${hy(this.h)}, ${ii(this.s)*100}%, ${ii(this.l)*100}%${e===1?")":`, ${e})`}`}}));function hy(e){return e=(e||0)%360,e<0?e+360:e}function ii(e){return Math.max(0,Math.min(1,e||0))}function Ys(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 Cf=e=>()=>e;function HA(e,t){return function(r){return e+r*t}}function GA(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 KA(e){return(e=+e)==1?n0:function(t,r){return r-t?GA(t,r,e):Cf(isNaN(t)?r:t)}}function n0(e,t){var r=t-e;return r?HA(e,r):Cf(isNaN(e)?t:e)}const py=(function e(t){var r=KA(t);function n(i,a){var o=r((i=pl(i)).r,(a=pl(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=n0(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 VA(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 XA(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function YA(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]=Br(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 ZA(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ji(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function JA(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]=Br(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var dl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zs=new RegExp(dl.source,"g");function QA(e){return function(){return e}}function eP(e){return function(t){return e(t)+""}}function tP(e,t){var r=dl.lastIndex=Zs.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=dl.exec(e))&&(i=Zs.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:ji(n,i)})),r=Zs.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?eP(s[0].x):QA(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 Br(e,t){var r=typeof t,n;return t==null||r==="boolean"?Cf(t):(r==="number"?ji:r==="string"?(n=mn(t))?(t=n,py):tP:t instanceof mn?py:t instanceof Date?ZA:XA(t)?VA:Array.isArray(t)?YA:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?JA:ji)(e,t)}function $f(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function rP(e,t){t===void 0&&(t=e,e=Br);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 nP(e){return function(){return e}}function Mi(e){return+e}var dy=[0,1];function je(e){return e}function vl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:nP(isNaN(t)?NaN:.5)}function iP(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function aP(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=vl(i,n),a=r(o,a)):(n=vl(n,i),a=r(a,o)),function(u){return a(n(u))}}function oP(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]=vl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=Gn(e,u,1,n)-1;return a[s](i[s](u))}}function Vn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Oa(){var e=dy,t=dy,r=Br,n,i,a,o=je,u,s,c;function f(){var h=Math.min(e.length,t.length);return o!==je&&(o=iP(e[0],e[h-1])),u=h>2?oP:aP,s=c=null,l}function l(h){return h==null||isNaN(h=+h)?a:(s||(s=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((c||(c=u(t,e.map(n),ji)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Mi),f()):e.slice()},l.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},l.rangeRound=function(h){return t=Array.from(h),r=$f,f()},l.clamp=function(h){return arguments.length?(o=h?!0:je,f()):o!==je},l.interpolate=function(h){return arguments.length?(r=h,f()):r},l.unknown=function(h){return arguments.length?(a=h,l):a},function(h,d){return n=h,i=d,f()}}function If(){return Oa()(je,je)}function uP(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ci(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 mr(e){return e=Ci(Math.abs(e)),e?e[1]:NaN}function sP(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 cP(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var lP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gn(e){if(!(t=lP.exec(e)))throw new Error("invalid format: "+e);var t;return new Rf({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]})}gn.prototype=Rf.prototype;function Rf(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+""}Rf.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 fP(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 $i;function hP(e,t){var r=Ci(e,t);if(!r)return $i=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-($i=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")+Ci(e,Math.max(0,t+a-1))[0]}function vy(e,t){var r=Ci(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 yy={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:uP,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)=>vy(e*100,t),r:vy,s:hP,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function my(e){return e}var gy=Array.prototype.map,by=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function pP(e){var t=e.grouping===void 0||e.thousands===void 0?my:sP(gy.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?my:cP(gy.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(l,h){l=gn(l);var d=l.fill,y=l.align,v=l.sign,p=l.symbol,b=l.zero,x=l.width,w=l.comma,O=l.precision,m=l.trim,g=l.type;g==="n"?(w=!0,g="g"):yy[g]||(O===void 0&&(O=12),m=!0,g="g"),(b||d==="0"&&y==="=")&&(b=!0,d="0",y="=");var _=(h&&h.prefix!==void 0?h.prefix:"")+(p==="$"?r:p==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():""),S=(p==="$"?n:/[%p]/.test(g)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),A=yy[g],M=/[defgprs%]/.test(g);O=O===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function E(P){var j=_,$=S,C,R,D;if(g==="c")$=A(P)+$,P="";else{P=+P;var L=P<0||1/P<0;if(P=isNaN(P)?s:A(Math.abs(P),O),m&&(P=fP(P)),L&&+P==0&&v!=="+"&&(L=!1),j=(L?v==="("?v:u:v==="-"||v==="("?"":v)+j,$=(g==="s"&&!isNaN(P)&&$i!==void 0?by[8+$i/3]:"")+$+(L&&v==="("?")":""),M){for(C=-1,R=P.length;++C<R;)if(D=P.charCodeAt(C),48>D||D>57){$=(D===46?i+P.slice(C+1):P.slice(C))+$,P=P.slice(0,C);break}}}w&&!b&&(P=t(P,1/0));var B=j.length+P.length+$.length,z=B<x?new Array(x-B+1).join(d):"";switch(w&&b&&(P=t(z+P,z.length?x-$.length:1/0),z=""),y){case"<":P=j+P+$+z;break;case"=":P=j+z+P+$;break;case"^":P=z.slice(0,B=z.length>>1)+j+P+$+z.slice(B);break;default:P=z+j+P+$;break}return a(P)}return E.toString=function(){return l+""},E}function f(l,h){var d=Math.max(-8,Math.min(8,Math.floor(mr(h)/3)))*3,y=Math.pow(10,-d),v=c((l=gn(l),l.type="f",l),{suffix:by[8+d/3]});return function(p){return v(y*p)}}return{format:c,formatPrefix:f}}var ai,kf,i0;dP({thousands:",",grouping:[3],currency:["$",""]});function dP(e){return ai=pP(e),kf=ai.format,i0=ai.formatPrefix,ai}function vP(e){return Math.max(0,-mr(Math.abs(e)))}function yP(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(mr(t)/3)))*3-mr(Math.abs(e)))}function mP(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,mr(t)-mr(e))+1}function a0(e,t,r,n){var i=fl(e,t,r),a;switch(n=gn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=yP(i,o))&&(n.precision=a),i0(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=mP(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=vP(i))&&(n.precision=a-(n.type==="%")*2);break}}return kf(n)}function Mt(e){var t=e.domain;return e.ticks=function(r){var n=t();return cl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return a0(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=ll(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 Ii(){var e=If();return e.copy=function(){return Vn(e,Ii())},Ge.apply(e,arguments),Mt(e)}function o0(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,Mi),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return o0(e).unknown(t)},e=arguments.length?Array.from(e,Mi):[0,1],Mt(r)}function u0(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 xy(e){return Math.log(e)}function wy(e){return Math.exp(e)}function gP(e){return-Math.log(-e)}function bP(e){return-Math.exp(-e)}function xP(e){return isFinite(e)?+("1e"+e):e<0?0:e}function wP(e){return e===10?xP:e===Math.E?Math.exp:t=>Math.pow(e,t)}function OP(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 Oy(e){return(t,r)=>-e(-t,r)}function Df(e){const t=e(xy,wy),r=t.domain;let n=10,i,a;function o(){return i=OP(n),a=wP(n),r()[0]<0?(i=Oy(i),a=Oy(a),e(gP,bP)):e(xy,wy),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const s=r();let c=s[0],f=s[s.length-1];const l=f<c;l&&([c,f]=[f,c]);let h=i(c),d=i(f),y,v;const p=u==null?10:+u;let b=[];if(!(n%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),c>0){for(;h<=d;++h)for(y=1;y<n;++y)if(v=h<0?y/a(-h):y*a(h),!(v<c)){if(v>f)break;b.push(v)}}else for(;h<=d;++h)for(y=n-1;y>=1;--y)if(v=h>0?y/a(-h):y*a(h),!(v<c)){if(v>f)break;b.push(v)}b.length*2<p&&(b=cl(c,f,p))}else b=cl(h,d,Math.min(d-h,p)).map(a);return l?b.reverse():b},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=gn(s)).precision==null&&(s.trim=!0),s=kf(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(u0(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function s0(){const e=Df(Oa()).domain([1,10]);return e.copy=()=>Vn(e,s0()).base(e.base()),Ge.apply(e,arguments),e}function _y(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Sy(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Nf(e){var t=1,r=e(_y(t),Sy(t));return r.constant=function(n){return arguments.length?e(_y(t=+n),Sy(t)):t},Mt(r)}function c0(){var e=Nf(Oa());return e.copy=function(){return Vn(e,c0()).constant(e.constant())},Ge.apply(e,arguments)}function Ay(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function _P(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function SP(e){return e<0?-e*e:e*e}function qf(e){var t=e(je,je),r=1;function n(){return r===1?e(je,je):r===.5?e(_P,SP):e(Ay(r),Ay(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Mt(t)}function Lf(){var e=qf(Oa());return e.copy=function(){return Vn(e,Lf()).exponent(e.exponent())},Ge.apply(e,arguments),e}function AP(){return Lf.apply(null,arguments).exponent(.5)}function Py(e){return Math.sign(e)*e*e}function PP(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function l0(){var e=If(),t=[0,1],r=!1,n;function i(a){var o=PP(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Py(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,Mi)).map(Py)),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 l0(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ge.apply(i,arguments),Mt(i)}function f0(){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]=CA(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Gn(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(Pt),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 f0().domain(e).range(t).unknown(n)},Ge.apply(a,arguments)}function h0(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Gn(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 h0().domain([e,t]).range(i).unknown(a)},Ge.apply(Mt(o),arguments)}function p0(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Gn(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 p0().domain(e).range(t).unknown(r)},Ge.apply(i,arguments)}const Js=new Date,Qs=new Date;function Oe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>Oe(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)=>(Js.setTime(+a),Qs.setTime(+o),e(Js),e(Qs),Math.floor(r(Js,Qs))),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 Ri=Oe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ri.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Oe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ri);Ri.range;const ct=1e3,We=ct*60,lt=We*60,pt=lt*24,Bf=pt*7,Ty=pt*30,ec=pt*365,Ft=Oe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ct)},(e,t)=>(t-e)/ct,e=>e.getUTCSeconds());Ft.range;const Ff=Oe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ct)},(e,t)=>{e.setTime(+e+t*We)},(e,t)=>(t-e)/We,e=>e.getMinutes());Ff.range;const Uf=Oe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*We)},(e,t)=>(t-e)/We,e=>e.getUTCMinutes());Uf.range;const Wf=Oe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ct-e.getMinutes()*We)},(e,t)=>{e.setTime(+e+t*lt)},(e,t)=>(t-e)/lt,e=>e.getHours());Wf.range;const zf=Oe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*lt)},(e,t)=>(t-e)/lt,e=>e.getUTCHours());zf.range;const Xn=Oe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*We)/pt,e=>e.getDate()-1);Xn.range;const _a=Oe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/pt,e=>e.getUTCDate()-1);_a.range;const d0=Oe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/pt,e=>Math.floor(e/pt));d0.range;function Zt(e){return Oe(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())*We)/Bf)}const Sa=Zt(0),ki=Zt(1),TP=Zt(2),EP=Zt(3),gr=Zt(4),jP=Zt(5),MP=Zt(6);Sa.range;ki.range;TP.range;EP.range;gr.range;jP.range;MP.range;function Jt(e){return Oe(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)/Bf)}const Aa=Jt(0),Di=Jt(1),CP=Jt(2),$P=Jt(3),br=Jt(4),IP=Jt(5),RP=Jt(6);Aa.range;Di.range;CP.range;$P.range;br.range;IP.range;RP.range;const Hf=Oe(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());Hf.range;const Gf=Oe(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());Gf.range;const dt=Oe(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());dt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oe(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)});dt.range;const vt=Oe(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());vt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oe(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)});vt.range;function v0(e,t,r,n,i,a){const o=[[Ft,1,ct],[Ft,5,5*ct],[Ft,15,15*ct],[Ft,30,30*ct],[a,1,We],[a,5,5*We],[a,15,15*We],[a,30,30*We],[i,1,lt],[i,3,3*lt],[i,6,6*lt],[i,12,12*lt],[n,1,pt],[n,2,2*pt],[r,1,Bf],[t,1,Ty],[t,3,3*Ty],[e,1,ec]];function u(c,f,l){const h=f<c;h&&([c,f]=[f,c]);const d=l&&typeof l.range=="function"?l:s(c,f,l),y=d?d.range(c,+f+1):[];return h?y.reverse():y}function s(c,f,l){const h=Math.abs(f-c)/l,d=Ef(([,,p])=>p).right(o,h);if(d===o.length)return e.every(fl(c/ec,f/ec,l));if(d===0)return Ri.every(Math.max(fl(c,f,l),1));const[y,v]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return y.every(v)}return[u,s]}const[kP,DP]=v0(vt,Gf,Aa,d0,zf,Uf),[NP,qP]=v0(dt,Hf,Sa,Xn,Wf,Ff);function tc(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 rc(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 Hr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function LP(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=Gr(i),f=Kr(i),l=Gr(a),h=Kr(a),d=Gr(o),y=Kr(o),v=Gr(u),p=Kr(u),b=Gr(s),x=Kr(s),w={a:D,A:L,b:B,B:z,c:null,d:Iy,e:Iy,f:sT,g:gT,G:xT,H:aT,I:oT,j:uT,L:y0,m:cT,M:lT,p:G,q:U,Q:Dy,s:Ny,S:fT,u:hT,U:pT,V:dT,w:vT,W:yT,x:null,X:null,y:mT,Y:bT,Z:wT,"%":ky},O={a:K,A:se,b:de,B:Re,c:null,d:Ry,e:Ry,f:AT,g:kT,G:NT,H:OT,I:_T,j:ST,L:g0,m:PT,M:TT,p:It,q:Me,Q:Dy,s:Ny,S:ET,u:jT,U:MT,V:CT,w:$T,W:IT,x:null,X:null,y:RT,Y:DT,Z:qT,"%":ky},m={a:M,A:E,b:P,B:j,c:$,d:Cy,e:Cy,f:tT,g:My,G:jy,H:$y,I:$y,j:ZP,L:eT,m:YP,M:JP,p:A,q:XP,Q:nT,s:iT,S:QP,u:zP,U:HP,V:GP,w:WP,W:KP,x:C,X:R,y:My,Y:jy,Z:VP,"%":rT};w.x=g(r,w),w.X=g(n,w),w.c=g(t,w),O.x=g(r,O),O.X=g(n,O),O.c=g(t,O);function g(F,V){return function(X){var k=[],he=-1,Q=0,me=F.length,ge,Ce,xt;for(X instanceof Date||(X=new Date(+X));++he<me;)F.charCodeAt(he)===37&&(k.push(F.slice(Q,he)),(Ce=Ey[ge=F.charAt(++he)])!=null?ge=F.charAt(++he):Ce=ge==="e"?" ":"0",(xt=V[ge])&&(ge=xt(X,Ce)),k.push(ge),Q=he+1);return k.push(F.slice(Q,he)),k.join("")}}function _(F,V){return function(X){var k=Hr(1900,void 0,1),he=S(k,F,X+="",0),Q,me;if(he!=X.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(V&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(Q=rc(Hr(k.y,0,1)),me=Q.getUTCDay(),Q=me>4||me===0?Di.ceil(Q):Di(Q),Q=_a.offset(Q,(k.V-1)*7),k.y=Q.getUTCFullYear(),k.m=Q.getUTCMonth(),k.d=Q.getUTCDate()+(k.w+6)%7):(Q=tc(Hr(k.y,0,1)),me=Q.getDay(),Q=me>4||me===0?ki.ceil(Q):ki(Q),Q=Xn.offset(Q,(k.V-1)*7),k.y=Q.getFullYear(),k.m=Q.getMonth(),k.d=Q.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),me="Z"in k?rc(Hr(k.y,0,1)).getUTCDay():tc(Hr(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(me+5)%7:k.w+k.U*7-(me+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,rc(k)):tc(k)}}function S(F,V,X,k){for(var he=0,Q=V.length,me=X.length,ge,Ce;he<Q;){if(k>=me)return-1;if(ge=V.charCodeAt(he++),ge===37){if(ge=V.charAt(he++),Ce=m[ge in Ey?V.charAt(he++):ge],!Ce||(k=Ce(F,X,k))<0)return-1}else if(ge!=X.charCodeAt(k++))return-1}return k}function A(F,V,X){var k=c.exec(V.slice(X));return k?(F.p=f.get(k[0].toLowerCase()),X+k[0].length):-1}function M(F,V,X){var k=d.exec(V.slice(X));return k?(F.w=y.get(k[0].toLowerCase()),X+k[0].length):-1}function E(F,V,X){var k=l.exec(V.slice(X));return k?(F.w=h.get(k[0].toLowerCase()),X+k[0].length):-1}function P(F,V,X){var k=b.exec(V.slice(X));return k?(F.m=x.get(k[0].toLowerCase()),X+k[0].length):-1}function j(F,V,X){var k=v.exec(V.slice(X));return k?(F.m=p.get(k[0].toLowerCase()),X+k[0].length):-1}function $(F,V,X){return S(F,t,V,X)}function C(F,V,X){return S(F,r,V,X)}function R(F,V,X){return S(F,n,V,X)}function D(F){return o[F.getDay()]}function L(F){return a[F.getDay()]}function B(F){return s[F.getMonth()]}function z(F){return u[F.getMonth()]}function G(F){return i[+(F.getHours()>=12)]}function U(F){return 1+~~(F.getMonth()/3)}function K(F){return o[F.getUTCDay()]}function se(F){return a[F.getUTCDay()]}function de(F){return s[F.getUTCMonth()]}function Re(F){return u[F.getUTCMonth()]}function It(F){return i[+(F.getUTCHours()>=12)]}function Me(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var V=g(F+="",w);return V.toString=function(){return F},V},parse:function(F){var V=_(F+="",!1);return V.toString=function(){return F},V},utcFormat:function(F){var V=g(F+="",O);return V.toString=function(){return F},V},utcParse:function(F){var V=_(F+="",!0);return V.toString=function(){return F},V}}}var Ey={"-":"",_:" ",0:"0"},Se=/^\s*\d+/,BP=/^%/,FP=/[\\^$*+?|[\]().{}]/g;function te(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 UP(e){return e.replace(FP,"\\$&")}function Gr(e){return new RegExp("^(?:"+e.map(UP).join("|")+")","i")}function Kr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function WP(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function zP(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function HP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function GP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function KP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function jy(e,t,r){var n=Se.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function My(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function VP(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 XP(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function YP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Cy(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function ZP(e,t,r){var n=Se.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function $y(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function JP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function QP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function eT(e,t,r){var n=Se.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function tT(e,t,r){var n=Se.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function rT(e,t,r){var n=BP.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function nT(e,t,r){var n=Se.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function iT(e,t,r){var n=Se.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Iy(e,t){return te(e.getDate(),t,2)}function aT(e,t){return te(e.getHours(),t,2)}function oT(e,t){return te(e.getHours()%12||12,t,2)}function uT(e,t){return te(1+Xn.count(dt(e),e),t,3)}function y0(e,t){return te(e.getMilliseconds(),t,3)}function sT(e,t){return y0(e,t)+"000"}function cT(e,t){return te(e.getMonth()+1,t,2)}function lT(e,t){return te(e.getMinutes(),t,2)}function fT(e,t){return te(e.getSeconds(),t,2)}function hT(e){var t=e.getDay();return t===0?7:t}function pT(e,t){return te(Sa.count(dt(e)-1,e),t,2)}function m0(e){var t=e.getDay();return t>=4||t===0?gr(e):gr.ceil(e)}function dT(e,t){return e=m0(e),te(gr.count(dt(e),e)+(dt(e).getDay()===4),t,2)}function vT(e){return e.getDay()}function yT(e,t){return te(ki.count(dt(e)-1,e),t,2)}function mT(e,t){return te(e.getFullYear()%100,t,2)}function gT(e,t){return e=m0(e),te(e.getFullYear()%100,t,2)}function bT(e,t){return te(e.getFullYear()%1e4,t,4)}function xT(e,t){var r=e.getDay();return e=r>=4||r===0?gr(e):gr.ceil(e),te(e.getFullYear()%1e4,t,4)}function wT(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+te(t/60|0,"0",2)+te(t%60,"0",2)}function Ry(e,t){return te(e.getUTCDate(),t,2)}function OT(e,t){return te(e.getUTCHours(),t,2)}function _T(e,t){return te(e.getUTCHours()%12||12,t,2)}function ST(e,t){return te(1+_a.count(vt(e),e),t,3)}function g0(e,t){return te(e.getUTCMilliseconds(),t,3)}function AT(e,t){return g0(e,t)+"000"}function PT(e,t){return te(e.getUTCMonth()+1,t,2)}function TT(e,t){return te(e.getUTCMinutes(),t,2)}function ET(e,t){return te(e.getUTCSeconds(),t,2)}function jT(e){var t=e.getUTCDay();return t===0?7:t}function MT(e,t){return te(Aa.count(vt(e)-1,e),t,2)}function b0(e){var t=e.getUTCDay();return t>=4||t===0?br(e):br.ceil(e)}function CT(e,t){return e=b0(e),te(br.count(vt(e),e)+(vt(e).getUTCDay()===4),t,2)}function $T(e){return e.getUTCDay()}function IT(e,t){return te(Di.count(vt(e)-1,e),t,2)}function RT(e,t){return te(e.getUTCFullYear()%100,t,2)}function kT(e,t){return e=b0(e),te(e.getUTCFullYear()%100,t,2)}function DT(e,t){return te(e.getUTCFullYear()%1e4,t,4)}function NT(e,t){var r=e.getUTCDay();return e=r>=4||r===0?br(e):br.ceil(e),te(e.getUTCFullYear()%1e4,t,4)}function qT(){return"+0000"}function ky(){return"%"}function Dy(e){return+e}function Ny(e){return Math.floor(+e/1e3)}var ir,x0,w0;LT({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function LT(e){return ir=LP(e),x0=ir.format,ir.parse,w0=ir.utcFormat,ir.utcParse,ir}function BT(e){return new Date(e)}function FT(e){return e instanceof Date?+e:+new Date(+e)}function Kf(e,t,r,n,i,a,o,u,s,c){var f=If(),l=f.invert,h=f.domain,d=c(".%L"),y=c(":%S"),v=c("%I:%M"),p=c("%I %p"),b=c("%a %d"),x=c("%b %d"),w=c("%B"),O=c("%Y");function m(g){return(s(g)<g?d:u(g)<g?y:o(g)<g?v:a(g)<g?p:n(g)<g?i(g)<g?b:x:r(g)<g?w:O)(g)}return f.invert=function(g){return new Date(l(g))},f.domain=function(g){return arguments.length?h(Array.from(g,FT)):h().map(BT)},f.ticks=function(g){var _=h();return e(_[0],_[_.length-1],g??10)},f.tickFormat=function(g,_){return _==null?m:c(_)},f.nice=function(g){var _=h();return(!g||typeof g.range!="function")&&(g=t(_[0],_[_.length-1],g??10)),g?h(u0(_,g)):f},f.copy=function(){return Vn(f,Kf(e,t,r,n,i,a,o,u,s,c))},f}function UT(){return Ge.apply(Kf(NP,qP,dt,Hf,Sa,Xn,Wf,Ff,Ft,x0).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function WT(){return Ge.apply(Kf(kP,DP,vt,Gf,Aa,_a,zf,Uf,Ft,w0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Pa(){var e=0,t=1,r,n,i,a,o=je,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(u=!!l,c):u},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(h){var d,y;return arguments.length?([d,y]=h,o=l(d,y),c):[o(0),o(1)]}}return c.range=f(Br),c.rangeRound=f($f),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 Ct(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function O0(){var e=Mt(Pa()(je));return e.copy=function(){return Ct(e,O0())},bt.apply(e,arguments)}function _0(){var e=Df(Pa()).domain([1,10]);return e.copy=function(){return Ct(e,_0()).base(e.base())},bt.apply(e,arguments)}function S0(){var e=Nf(Pa());return e.copy=function(){return Ct(e,S0()).constant(e.constant())},bt.apply(e,arguments)}function Vf(){var e=qf(Pa());return e.copy=function(){return Ct(e,Vf()).exponent(e.exponent())},bt.apply(e,arguments)}function zT(){return Vf.apply(null,arguments).exponent(.5)}function A0(){var e=[],t=je;function r(n){if(n!=null&&!isNaN(n=+n))return t((Gn(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(Pt),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)=>MA(e,a/n))},r.copy=function(){return A0(t).domain(e)},bt.apply(r,arguments)}function Ta(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=je,f,l=!1,h;function d(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:s),c(l?Math.max(0,Math.min(1,v)):v))}d.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,d):[e,t,r]},d.clamp=function(v){return arguments.length?(l=!!v,d):l},d.interpolator=function(v){return arguments.length?(c=v,d):c};function y(v){return function(p){var b,x,w;return arguments.length?([b,x,w]=p,c=rP(v,[b,x,w]),d):[c(0),c(.5),c(1)]}}return d.range=y(Br),d.rangeRound=y($f),d.unknown=function(v){return arguments.length?(h=v,d):h},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,d}}function P0(){var e=Mt(Ta()(je));return e.copy=function(){return Ct(e,P0())},bt.apply(e,arguments)}function T0(){var e=Df(Ta()).domain([.1,1,10]);return e.copy=function(){return Ct(e,T0()).base(e.base())},bt.apply(e,arguments)}function E0(){var e=Nf(Ta());return e.copy=function(){return Ct(e,E0()).constant(e.constant())},bt.apply(e,arguments)}function Xf(){var e=qf(Ta());return e.copy=function(){return Ct(e,Xf()).exponent(e.exponent())},bt.apply(e,arguments)}function HT(){return Xf.apply(null,arguments).exponent(.5)}const qy=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:dn,scaleDiverging:P0,scaleDivergingLog:T0,scaleDivergingPow:Xf,scaleDivergingSqrt:HT,scaleDivergingSymlog:E0,scaleIdentity:o0,scaleImplicit:hl,scaleLinear:Ii,scaleLog:s0,scaleOrdinal:jf,scalePoint:rn,scalePow:Lf,scaleQuantile:f0,scaleQuantize:h0,scaleRadial:l0,scaleSequential:O0,scaleSequentialLog:_0,scaleSequentialPow:Vf,scaleSequentialQuantile:A0,scaleSequentialSqrt:zT,scaleSequentialSymlog:S0,scaleSqrt:AP,scaleSymlog:c0,scaleThreshold:p0,scaleTime:UT,scaleUtc:WT,tickFormat:a0},Symbol.toStringTag,{value:"Module"}));var nc,Ly;function j0(){if(Ly)return nc;Ly=1;var e=kr();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 nc=t,nc}var ic,By;function GT(){if(By)return ic;By=1;function e(t,r){return t>r}return ic=e,ic}var ac,Fy;function KT(){if(Fy)return ac;Fy=1;var e=j0(),t=GT(),r=qr();function n(i){return i&&i.length?e(i,r,t):void 0}return ac=n,ac}var VT=KT();const St=ue(VT);var oc,Uy;function XT(){if(Uy)return oc;Uy=1;function e(t,r){return t<r}return oc=e,oc}var uc,Wy;function YT(){if(Wy)return uc;Wy=1;var e=j0(),t=XT(),r=qr();function n(i){return i&&i.length?e(i,r,t):void 0}return uc=n,uc}var ZT=YT();const Ea=ue(ZT);var sc,zy;function JT(){if(zy)return sc;zy=1;var e=ff(),t=jt(),r=qb(),n=Ie();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return sc=i,sc}var cc,Hy;function QT(){if(Hy)return cc;Hy=1;var e=Db(),t=JT();function r(n,i){return e(t(n,i),1)}return cc=r,cc}var eE=QT();const tE=ue(eE);var lc,Gy;function rE(){if(Gy)return lc;Gy=1;var e=Sf();function t(r,n){return e(r,n)}return lc=t,lc}var nE=rE();const bn=ue(nE);var Fr=1e9,iE={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Zf,le=!0,He="[DecimalError] ",Gt=He+"Invalid argument: ",Yf=He+"Exponent out of range: ",Ur=Math.floor,qt=Math.pow,aE=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ne,_e=1e7,ce=7,M0=9007199254740991,Ni=Ur(M0/ce),W={};W.absoluteValue=W.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};W.comparedTo=W.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};W.decimalPlaces=W.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ce;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};W.dividedBy=W.div=function(e){return ht(this,new this.constructor(e))};W.dividedToIntegerBy=W.idiv=function(e){var t=this,r=t.constructor;return ae(ht(t,new r(e),0,1),r.precision)};W.equals=W.eq=function(e){return!this.cmp(e)};W.exponent=function(){return ye(this)};W.greaterThan=W.gt=function(e){return this.cmp(e)>0};W.greaterThanOrEqualTo=W.gte=function(e){return this.cmp(e)>=0};W.isInteger=W.isint=function(){return this.e>this.d.length-2};W.isNegative=W.isneg=function(){return this.s<0};W.isPositive=W.ispos=function(){return this.s>0};W.isZero=function(){return this.s===0};W.lessThan=W.lt=function(e){return this.cmp(e)<0};W.lessThanOrEqualTo=W.lte=function(e){return this.cmp(e)<1};W.logarithm=W.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(Ne))throw Error(He+"NaN");if(r.s<1)throw Error(He+(r.s?"NaN":"-Infinity"));return r.eq(Ne)?new n(0):(le=!1,t=ht(xn(r,a),xn(e,a),a),le=!0,ae(t,i))};W.minus=W.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?I0(t,e):C0(t,(e.s=-e.s,e))};W.modulo=W.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(He+"NaN");return r.s?(le=!1,t=ht(r,e,0,1).times(e),le=!0,r.minus(t)):ae(new n(r),i)};W.naturalExponential=W.exp=function(){return $0(this)};W.naturalLogarithm=W.ln=function(){return xn(this)};W.negated=W.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};W.plus=W.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?C0(t,e):I0(t,(e.s=-e.s,e))};W.precision=W.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Gt+e);if(t=ye(i)+1,n=i.d.length-1,r=n*ce+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};W.squareRoot=W.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(He+"NaN")}for(e=ye(u),le=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=et(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ur((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(ht(u,a,o+2)).times(.5),et(a.d).slice(0,o)===(t=et(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ae(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return le=!0,ae(n,r)};W.times=W.mul=function(e){var t,r,n,i,a,o,u,s,c,f=this,l=f.constructor,h=f.d,d=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,s=h.length,c=d.length,s<c&&(a=h,h=d,d=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]+d[n]*h[i-n-1]+t,a[i--]=u%_e|0,t=u/_e|0;a[i]=(a[i]+t)%_e|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,le?ae(e,l.precision):e};W.toDecimalPlaces=W.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(it(e,0,Fr),t===void 0?t=n.rounding:it(t,0,8),ae(r,e+ye(r)+1,t))};W.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Xt(n,!0):(it(e,0,Fr),t===void 0?t=i.rounding:it(t,0,8),n=ae(new i(n),e+1,t),r=Xt(n,!0,e+1)),r};W.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Xt(i):(it(e,0,Fr),t===void 0?t=a.rounding:it(t,0,8),n=ae(new a(i),e+ye(i)+1,t),r=Xt(n.abs(),!1,e+ye(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};W.toInteger=W.toint=function(){var e=this,t=e.constructor;return ae(new t(e),ye(e)+1,t.rounding)};W.toNumber=function(){return+this};W.toPower=W.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(Ne);if(u=new s(u),!u.s){if(e.s<1)throw Error(He+"Infinity");return u}if(u.eq(Ne))return u;if(n=s.precision,e.eq(Ne))return ae(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=M0){for(i=new s(Ne),t=Math.ceil(n/ce+4),le=!1;r%2&&(i=i.times(u),Vy(i.d,t)),r=Ur(r/2),r!==0;)u=u.times(u),Vy(u.d,t);return le=!0,e.s<0?new s(Ne).div(i):ae(i,n)}}else if(a<0)throw Error(He+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,le=!1,i=e.times(xn(u,n+c)),le=!0,i=$0(i),i.s=a,i};W.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ye(i),n=Xt(i,r<=a.toExpNeg||r>=a.toExpPos)):(it(e,1,Fr),t===void 0?t=a.rounding:it(t,0,8),i=ae(new a(i),e,t),r=ye(i),n=Xt(i,e<=r||r<=a.toExpNeg,e)),n};W.toSignificantDigits=W.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(it(e,1,Fr),t===void 0?t=n.rounding:it(t,0,8)),ae(new n(r),e,t)};W.toString=W.valueOf=W.val=W.toJSON=W[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ye(e),r=e.constructor;return Xt(e,t<=r.toExpNeg||t>=r.toExpPos)};function C0(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)),le?ae(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/ce),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)/_e|0,s[a]%=_e;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,le?ae(t,l):t}function it(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Gt+e)}function et(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=ce-n.length,r&&(a+=Ot(r)),a+=n;o=e[t],n=o+"",r=ce-n.length,r&&(a+=Ot(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var ht=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%_e|0,o=a/_e|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,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*_e+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,f,l,h,d,y,v,p,b,x,w,O,m,g,_,S,A=n.constructor,M=n.s==i.s?1:-1,E=n.d,P=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(He+"Division by zero");for(s=n.e-i.e,_=P.length,m=E.length,d=new A(M),y=d.d=[],c=0;P[c]==(E[c]||0);)++c;if(P[c]>(E[c]||0)&&--s,a==null?x=a=A.precision:o?x=a+(ye(n)-ye(i))+1:x=a,x<0)return new A(0);if(x=x/ce+2|0,c=0,_==1)for(f=0,P=P[0],x++;(c<m||f)&&x--;c++)w=f*_e+(E[c]||0),y[c]=w/P|0,f=w%P|0;else{for(f=_e/(P[0]+1)|0,f>1&&(P=e(P,f),E=e(E,f),_=P.length,m=E.length),O=_,v=E.slice(0,_),p=v.length;p<_;)v[p++]=0;S=P.slice(),S.unshift(0),g=P[0],P[1]>=_e/2&&++g;do f=0,u=t(P,v,_,p),u<0?(b=v[0],_!=p&&(b=b*_e+(v[1]||0)),f=b/g|0,f>1?(f>=_e&&(f=_e-1),l=e(P,f),h=l.length,p=v.length,u=t(l,v,h,p),u==1&&(f--,r(l,_<h?S:P,h))):(f==0&&(u=f=1),l=P.slice()),h=l.length,h<p&&l.unshift(0),r(v,l,p),u==-1&&(p=v.length,u=t(P,v,_,p),u<1&&(f++,r(v,_<p?S:P,p))),p=v.length):u===0&&(f++,v=[0]),y[c++]=f,u&&v[0]?v[p++]=E[O]||0:(v=[E[O]],p=1);while((O++<m||v[0]!==void 0)&&x--)}return y[0]||y.shift(),d.e=s,ae(d,o?a+ye(d)+1:a)}})();function $0(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(ye(e)>16)throw Error(Yf+ye(e));if(!e.s)return new f(Ne);for(le=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(qt(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Ne),f.precision=u;;){if(i=ae(i.times(e),u),r=r.times(++s),o=a.plus(ht(i,r,u)),et(o.d).slice(0,u)===et(a.d).slice(0,u)){for(;c--;)a=ae(a.times(a),u);return f.precision=l,t==null?(le=!0,ae(a,l)):a}a=o}}function ye(e){for(var t=e.e*ce,r=e.d[0];r>=10;r/=10)t++;return t}function fc(e,t,r){if(t>e.LN10.sd())throw le=!0,r&&(e.precision=r),Error(He+"LN10 precision limit exceeded");return ae(new e(e.LN10),t)}function Ot(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,h=10,d=e,y=d.d,v=d.constructor,p=v.precision;if(d.s<1)throw Error(He+(d.s?"NaN":"-Infinity"));if(d.eq(Ne))return new v(0);if(t==null?(le=!1,c=p):c=t,d.eq(10))return t==null&&(le=!0),fc(v,c);if(c+=h,v.precision=c,r=et(y),n=r.charAt(0),a=ye(d),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)d=d.times(e),r=et(d.d),n=r.charAt(0),l++;a=ye(d),n>1?(d=new v("0."+r),a++):d=new v(n+"."+r.slice(1))}else return s=fc(v,c+2,p).times(a+""),d=xn(new v(n+"."+r.slice(1)),c-h).plus(s),v.precision=p,t==null?(le=!0,ae(d,p)):d;for(u=o=d=ht(d.minus(Ne),d.plus(Ne),c),f=ae(d.times(d),c),i=3;;){if(o=ae(o.times(f),c),s=u.plus(ht(o,new v(i),c)),et(s.d).slice(0,c)===et(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(fc(v,c+2,p).times(a+""))),u=ht(u,new v(l),c),v.precision=p,t==null?(le=!0,ae(u,p)):u;u=s,i+=2}}function Ky(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=Ur(r/ce),e.d=[],n=(r+1)%ce,r<0&&(n+=ce),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ce;n<i;)e.d.push(+t.slice(n,n+=ce));t=t.slice(n),n=ce-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),le&&(e.e>Ni||e.e<-Ni))throw Error(Yf+r)}else e.s=0,e.e=0,e.d=[0];return e}function ae(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+=ce,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/ce),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=ce,i=n-ce+o}if(r!==void 0&&(a=qt(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/qt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=ye(e),l.length=1,t=t-a-1,l[0]=qt(10,(ce-t%ce)%ce),e.e=Ur(-t/ce)||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=qt(10,ce-n),l[f]=i>0?(c/qt(10,o-i)%qt(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==_e&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=_e)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(le&&(e.e>Ni||e.e<-Ni))throw Error(Yf+ye(e));return e}function I0(e,t){var r,n,i,a,o,u,s,c,f,l,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),le?ae(t,d):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(d/ce),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]=_e-1;--s[a],s[i]+=_e}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,le?ae(t,d):t):new h(0)}function Xt(e,t,r){var n,i=ye(e),a=et(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Ot(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Ot(-i-1)+a,r&&(n=r-o)>0&&(a+=Ot(n))):i>=o?(a+=Ot(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Ot(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Ot(n))),e.s<0?"-"+a:a}function Vy(e,t){if(e.length>t)return e.length=t,!0}function R0(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(Gt+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 Ky(o,a.toString())}else if(typeof a!="string")throw Error(Gt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,aE.test(a))Ky(o,a);else throw Error(Gt+a)}if(i.prototype=W,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=R0,i.config=i.set=oE,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 oE(e){if(!e||typeof e!="object")throw Error(He+"Object expected");var t,r,n,i=["precision",1,Fr,"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(Ur(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Gt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Gt+r+": "+n);return this}var Zf=R0(iE);Ne=new Zf(1);const ie=Zf;function uE(e){return fE(e)||lE(e)||cE(e)||sE()}function sE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cE(e,t){if(e){if(typeof e=="string")return yl(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 yl(e,t)}}function lE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function fE(e){if(Array.isArray(e))return yl(e)}function yl(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 hE=function(t){return t},k0={},D0=function(t){return t===k0},Xy=function(t){return function r(){return arguments.length===0||arguments.length===1&&D0(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},pE=function e(t,r){return t===1?r:Xy(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!==k0}).length;return o>=t?r.apply(void 0,i):e(t-o,Xy(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 D0(l)?s.shift():l});return r.apply(void 0,uE(f).concat(s))}))})},ja=function(t){return pE(t.length,t)},ml=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},dE=ja(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),vE=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return hE;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))}},gl=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},N0=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 yE(e){var t;return e===0?t=1:t=Math.floor(new ie(e).abs().log(10).toNumber())+1,t}function mE(e,t,r){for(var n=new ie(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var gE=ja(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),bE=ja(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),xE=ja(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Ma={rangeStep:mE,getDigitCount:yE,interpolateNumber:gE,uninterpolateNumber:bE,uninterpolateTruncation:xE};function bl(e){return _E(e)||OE(e)||q0(e)||wE()}function wE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _E(e){if(Array.isArray(e))return xl(e)}function wn(e,t){return PE(e)||AE(e,t)||q0(e,t)||SE()}function SE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q0(e,t){if(e){if(typeof e=="string")return xl(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 xl(e,t)}}function xl(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 AE(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 PE(e){if(Array.isArray(e))return e}function L0(e){var t=wn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function B0(e,t,r){if(e.lte(0))return new ie(0);var n=Ma.getDigitCount(e.toNumber()),i=new ie(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ie(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new ie(Math.ceil(s))}function TE(e,t,r){var n=1,i=new ie(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ie(10).pow(Ma.getDigitCount(e)-1),i=new ie(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ie(Math.floor(e)))}else e===0?i=new ie(Math.floor((t-1)/2)):r||(i=new ie(Math.floor(e)));var o=Math.floor((t-1)/2),u=vE(dE(function(s){return i.add(new ie(s-o).mul(n)).toNumber()}),ml);return u(0,t)}function F0(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 ie(0),tickMin:new ie(0),tickMax:new ie(0)};var a=B0(new ie(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ie(0):(o=new ie(e).add(t).div(2),o=o.sub(new ie(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new ie(t).sub(o).div(a).toNumber()),c=u+s+1;return c>r?F0(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 ie(u).mul(a)),tickMax:o.add(new ie(s).mul(a))})}function EE(e){var t=wn(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=L0([r,n]),s=wn(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat(bl(ml(0,i-1).map(function(){return 1/0}))):[].concat(bl(ml(0,i-1).map(function(){return-1/0})),[f]);return r>n?gl(l):l}if(c===f)return TE(c,i,a);var h=F0(c,f,o,a),d=h.step,y=h.tickMin,v=h.tickMax,p=Ma.rangeStep(y,v.add(new ie(.1).mul(d)),d);return r>n?gl(p):p}function jE(e,t){var r=wn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=L0([n,i]),u=wn(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=B0(new ie(c).sub(s).div(f-1),a,0),h=[].concat(bl(Ma.rangeStep(new ie(s),new ie(c).sub(new ie(.99).mul(l)),l)),[c]);return n>i?gl(h):h}var ME=N0(EE),CE=N0(jE),$E=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qi.apply(this,arguments)}function IE(e,t){return NE(e)||DE(e,t)||kE(e,t)||RE()}function RE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kE(e,t){if(e){if(typeof e=="string")return Yy(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 Yy(e,t)}}function Yy(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 DE(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 NE(e){if(Array.isArray(e))return e}function qE(e,t){if(e==null)return{};var r=LE(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 LE(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 BE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,z0(n.key),n)}}function UE(e,t,r){return t&&FE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WE(e,t,r){return t=Li(t),zE(e,U0()?Reflect.construct(t,r||[],Li(e).constructor):t.apply(e,r))}function zE(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 HE(e)}function HE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U0=function(){return!!e})()}function Li(e){return Li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Li(e)}function GE(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&&wl(e,t)}function wl(e,t){return wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wl(e,t)}function W0(e,t,r){return t=z0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z0(e){var t=KE(e,"string");return xr(t)=="symbol"?t:t+""}function KE(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)}var Ca=(function(e){function t(){return BE(this,t),WE(this,t,arguments)}return GE(t,e),UE(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,h=qE(n,$E),d=J(h,!1);this.props.direction==="x"&&f.type!=="number"&&Kt(!1);var y=s.map(function(v){var p=c(v,u),b=p.x,x=p.y,w=p.value,O=p.errorVal;if(!O)return null;var m=[],g,_;if(Array.isArray(O)){var S=IE(O,2);g=S[0],_=S[1]}else g=_=O;if(a==="vertical"){var A=f.scale,M=x+i,E=M+o,P=M-o,j=A(w-g),$=A(w+_);m.push({x1:$,y1:E,x2:$,y2:P}),m.push({x1:j,y1:M,x2:$,y2:M}),m.push({x1:j,y1:E,x2:j,y2:P})}else if(a==="horizontal"){var C=l.scale,R=b+i,D=R-o,L=R+o,B=C(w-g),z=C(w+_);m.push({x1:D,y1:z,x2:L,y2:z}),m.push({x1:R,y1:B,x2:R,y2:z}),m.push({x1:D,y1:B,x2:L,y2:B})}return T.createElement(fe,qi({className:"recharts-errorBar",key:"bar-".concat(m.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},d),m.map(function(G){return T.createElement("line",qi({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return T.createElement(fe,{className:"recharts-errorBars"},y)}}])})(T.Component);W0(Ca,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});W0(Ca,"displayName","ErrorBar");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 Zy(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 Dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zy(Object(r),!0).forEach(function(n){VE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VE(e,t,r){return t=XE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XE(e){var t=YE(e,"string");return On(t)=="symbol"?t:t+""}function YE(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 H0=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=De(r,cr);if(!o)return null;var u=cr.defaultProps,s=u!==void 0?Dt(Dt({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(f,l){var h=l.item,d=l.props,y=d.sectors||d.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):c=(n||[]).map(function(f){var l=f.item,h=l.type.defaultProps,d=h!==void 0?Dt(Dt({},h),l.props):{},y=d.dataKey,v=d.name,p=d.legendType,b=d.hide;return{inactive:b,dataKey:y,type:s.iconType||p||"square",color:Jf(l),value:v||y,payload:d}}),Dt(Dt(Dt({},s),cr.getWithHeight(o,i)),{},{payload:c,item:o})};function _n(e){"@babel/helpers - typeof";return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(e)}function Jy(e){return ej(e)||QE(e)||JE(e)||ZE()}function ZE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
17
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JE(e,t){if(e){if(typeof e=="string")return Ol(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 Ol(e,t)}}function QE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ej(e){if(Array.isArray(e))return Ol(e)}function Ol(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 Qy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qy(Object(r),!0).forEach(function(n){fr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fr(e,t,r){return t=tj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tj(e){var t=rj(e,"string");return _n(t)=="symbol"?t:t+""}function rj(e,t){if(_n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qe(e,t,r){return Z(e)||Z(t)?r:we(t)?ze(e,t,r):Y(t)?t(e):r}function nn(e,t,r,n){var i=tE(e,function(u){return qe(u,t)});if(r==="number"){var a=i.filter(function(u){return q(u)||parseFloat(u)});return a.length?[Ea(a),St(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Z(u)}):i;return o.map(function(u){return we(u)||u instanceof Date?u:""})}var nj=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,h=c>=u-1?i[0].coordinate:i[c+1].coordinate,d=void 0;if(Ye(l-f)!==Ye(h-l)){var y=[];if(Ye(h-l)===Ye(s[1]-s[0])){d=h;var v=l+s[1]-s[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{d=f;var p=h+s[1]-s[0];y[0]=Math.min(l,(p+l)/2),y[1]=Math.max(l,(p+l)/2)}var b=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[c].index;break}}else{var x=Math.min(f,h),w=Math.max(f,h);if(t>(x+l)/2&&t<=(w+l)/2){o=i[c].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Jf=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?pe(pe({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},ij=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),s=0,c=u.length;s<c;s++)for(var f=a[u[s]].stackGroups,l=Object.keys(f),h=0,d=l.length;h<d;h++){var y=f[l[h]],v=y.items,p=y.cateAxisId,b=v.filter(function(_){return ft(_.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?pe(pe({},x),b[0].props):b[0].props,O=w.barSize,m=w[p];o[m]||(o[m]=[]);var g=Z(O)?r:O;o[m].push({item:b[0],stackList:b.slice(1),barSize:Z(g)?void 0:Ze(g,n,0)})}}return o},aj=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=Ze(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,d=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&&d>0&&(h=!0,d*=.9,y=s*d);var v=(i-y)/2>>0,p={offset:v-c,size:0};f=o.reduce(function(O,m){var g={item:m.item,position:{offset:p.offset+p.size+c,size:h?d:m.barSize}},_=[].concat(Jy(O),[g]);return p=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){_.push({item:S,position:p})}),_},l)}else{var b=Ze(n,i,0,!0);i-2*b-(s-1)*c<=0&&(c=0);var x=(i-2*b-(s-1)*c)/s;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,g){var _=[].concat(Jy(O),[{item:m.item,position:{offset:b+(x+c)*g+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){_.push({item:S,position:_[_.length-1].position})}),_},l)}return f},oj=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=H0({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,h=f.height,d=c.align,y=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&d!=="center"&&q(t[d]))return pe(pe({},t),{},fr({},d,t[d]+(l||0)));if((v==="horizontal"||v==="vertical"&&d==="center")&&y!=="middle"&&q(t[y]))return pe(pe({},t),{},fr({},y,t[y]+(h||0)))}return t},uj=function(t,r,n){return Z(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},G0=function(t,r,n,i,a){var o=r.props.children,u=Je(o,Ca).filter(function(c){return uj(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=qe(f,n);if(Z(l))return c;var h=Array.isArray(l)?[Ea(l),St(l)]:[l,l],d=s.reduce(function(y,v){var p=qe(f,v,0),b=h[0]-Math.abs(Array.isArray(p)?p[0]:p),x=h[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(b,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(d[0],c[0]),Math.max(d[1],c[1])]},[1/0,-1/0])}return null},sj=function(t,r,n,i,a){var o=r.map(function(u){return G0(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},K0=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&G0(t,s,c,i)||nn(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},[])},V0=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},VD=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},Ut=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?Ye(u[0]-u[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var h=a?a.indexOf(l):l;return{coordinate:i(h)+c,value:l,offset:c}});return f.filter(function(l){return!Nr(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+c,value:l,index:h,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+c,value:l,offset:c}}):i.domain().map(function(l,h){return{coordinate:i(l)+c,value:a?a[l]:l,index:h,offset:c}})},hc=new WeakMap,oi=function(t,r){if(typeof r!="function")return t;hc.has(t)||hc.set(t,new WeakMap);var n=hc.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},X0=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:dn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Ii(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:rn(),realScaleType:"point"}:a==="category"?{scale:dn(),realScaleType:"band"}:{scale:Ii(),realScaleType:"linear"};if(Vt(i)){var s="scale".concat(va(i));return{scale:(qy[s]||rn)(),realScaleType:qy[s]?s:"point"}}return Y(i)?{scale:i}:{scale:rn(),realScaleType:"point"}},em=1e-4,Y0=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])-em,o=Math.max(i[0],i[1])+em,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},cj=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},lj=function(t,r){if(!r||r.length!==2||!q(r[0])||!q(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(!q(t[0])||t[0]<n)&&(a[0]=n),(!q(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},fj=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=Nr(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])}},hj=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=Nr(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)}},pj={sign:fj,expand:QO,none:hr,silhouette:e1,wiggle:t1,positive:hj},dj=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=pj[n],o=JO().keys(i).value(function(u,s){return+qe(u,s,0)}).order(Jc).offset(a);return o(t)},vj=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,h){var d,y=(d=h.type)!==null&&d!==void 0&&d.defaultProps?pe(pe({},h.type.defaultProps),h.props):h.props,v=y.stackId,p=y.hide;if(p)return l;var b=y[n],x=l[b]||{hasStack:!1,stackGroups:{}};if(we(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[zn("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return pe(pe({},l),{},fr({},b,x))},s),f={};return Object.keys(c).reduce(function(l,h){var d=c[h];if(d.hasStack){var y={};d.stackGroups=Object.keys(d.stackGroups).reduce(function(v,p){var b=d.stackGroups[p];return pe(pe({},v),{},fr({},p,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:dj(t,b.items,a)}))},y)}return pe(pe({},l),{},fr({},h,d))},f)},Z0=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=ME(c,a,u);return t.domain([Ea(f),St(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=CE(l,a,u);return{niceTicks:h}}return null};function tm(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=hi(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=qe(i,Z(o)?t.dataKey:o);return Z(s)?null:t.scale(s)}var rm=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=qe(o,r.dataKey,r.domain[u]);return Z(s)?null:r.scale(s)-a/2+i},yj=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]},mj=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?pe(pe({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(we(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},gj=function(t){return t.reduce(function(r,n){return[Ea(n.concat([r[0]]).filter(q)),St(n.concat([r[1]]).filter(q))]},[1/0,-1/0])},J0=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=gj(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})},nm=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,im=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,_l=function(t,r,n){if(Y(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(nm.test(t[0])){var a=+nm.exec(t[0])[1];i[0]=r[0]-a}else Y(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(im.test(t[1])){var o=+im.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},Bi=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=Pf(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},am=function(t,r,n){return!t||!t.length||bn(t,ze(n,"type.defaultProps.domain"))?r:t},Q0=function(t,r){var n=t.type.defaultProps?pe(pe({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,c=n.chartType,f=n.hide;return pe(pe({},J(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Jf(t),value:qe(r,i),type:s,payload:r,chartType:c,hide:f})};function Sn(e){"@babel/helpers - typeof";return Sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sn(e)}function om(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 st(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?om(Object(r),!0).forEach(function(n){ex(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):om(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ex(e,t,r){return t=bj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bj(e){var t=xj(e,"string");return Sn(t)=="symbol"?t:t+""}function xj(e,t){if(Sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wj(e,t){return Aj(e)||Sj(e,t)||_j(e,t)||Oj()}function Oj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _j(e,t){if(e){if(typeof e=="string")return um(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 um(e,t)}}function um(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 Sj(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 Aj(e){if(Array.isArray(e))return e}var Fi=Math.PI/180,Pj=function(t){return t*180/Math.PI},Pe=function(t,r,n,i){return{x:t+Math.cos(-Fi*i)*n,y:r+Math.sin(-Fi*i)*n}},Tj=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},XD=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.startAngle,c=t.endAngle,f=Ze(t.cx,o,o/2),l=Ze(t.cy,u,u/2),h=Tj(o,u,n),d=Ze(t.innerRadius,h,0),y=Ze(t.outerRadius,h,h*.8),v=Object.keys(r);return v.reduce(function(p,b){var x=r[b],w=x.domain,O=x.reversed,m;if(Z(x.range))i==="angleAxis"?m=[s,c]:i==="radiusAxis"&&(m=[d,y]),O&&(m=[m[1],m[0]]);else{m=x.range;var g=m,_=wj(g,2);s=_[0],c=_[1]}var S=X0(x,a),A=S.realScaleType,M=S.scale;M.domain(w).range(m),Y0(M);var E=Z0(M,st(st({},x),{},{realScaleType:A})),P=st(st(st({},x),E),{},{range:m,radius:y,realScaleType:A,scale:M,cx:f,cy:l,innerRadius:d,outerRadius:y,startAngle:s,endAngle:c});return st(st({},p),{},ex({},b,P))},{})},Ej=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))},jj=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=Ej({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:Pj(c),angleInRadian:c}},Mj=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}},Cj=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},sm=function(t,r){var n=t.x,i=t.y,a=jj({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=Mj(r),l=f.startAngle,h=f.endAngle,d=u,y;if(l<=h){for(;d>h;)d-=360;for(;d<l;)d+=360;y=d>=l&&d<=h}else{for(;d>l;)d-=360;for(;d<h;)d+=360;y=d>=h&&d<=l}return y?st(st({},r),{},{radius:o,angle:Cj(d,r)}):null},YD=function(t){return!N.isValidElement(t)&&!Y(t)&&typeof t!="boolean"?t.className:""};function An(e){"@babel/helpers - typeof";return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},An(e)}var $j=["offset"];function Ij(e){return Nj(e)||Dj(e)||kj(e)||Rj()}function Rj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
19
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kj(e,t){if(e){if(typeof e=="string")return Sl(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 Sl(e,t)}}function Dj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nj(e){if(Array.isArray(e))return Sl(e)}function Sl(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 qj(e,t){if(e==null)return{};var r=Lj(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 Lj(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 cm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cm(Object(r),!0).forEach(function(n){Bj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bj(e,t,r){return t=Fj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fj(e){var t=Uj(e,"string");return An(t)=="symbol"?t:t+""}function Uj(e,t){if(An(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(An(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pn(){return Pn=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},Pn.apply(this,arguments)}var Wj=function(t){var r=t.value,n=t.formatter,i=Z(t.children)?r:t.children;return Y(n)?n(i):i},zj=function(t,r){var n=Ye(r-t),i=Math.min(Math.abs(r-t),360);return n*i},Hj=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,c=s.cx,f=s.cy,l=s.innerRadius,h=s.outerRadius,d=s.startAngle,y=s.endAngle,v=s.clockWise,p=(l+h)/2,b=zj(d,y),x=b>=0?1:-1,w,O;i==="insideStart"?(w=d+x*o,O=v):i==="insideEnd"?(w=y-x*o,O=!v):i==="end"&&(w=y+x*o,O=v),O=b<=0?O:!O;var m=Pe(c,f,p,w),g=Pe(c,f,p,w+(O?1:-1)*359),_="M".concat(m.x,",").concat(m.y,`
20
- A`).concat(p,",").concat(p,",0,1,").concat(O?0:1,`,
21
- `).concat(g.x,",").concat(g.y),S=Z(t.id)?zn("recharts-radial-line-"):t.id;return T.createElement("text",Pn({},n,{dominantBaseline:"central",className:ee("recharts-radial-bar-label",u)}),T.createElement("defs",null,T.createElement("path",{id:S,d:_})),T.createElement("textPath",{xlinkHref:"#".concat(S)},r))},Gj=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,c=a.outerRadius,f=a.startAngle,l=a.endAngle,h=(f+l)/2;if(i==="outside"){var d=Pe(o,u,c+n,h),y=d.x,v=d.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 p=(s+c)/2,b=Pe(o,u,p,h),x=b.x,w=b.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Kj=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,c=o.width,f=o.height,l=f>=0?1:-1,h=l*i,d=l>0?"end":"start",y=l>0?"start":"end",v=c>=0?1:-1,p=v*i,b=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+c/2,y:s-l*i,textAnchor:"middle",verticalAnchor:d};return xe(xe({},w),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var O={x:u+c/2,y:s+f+h,textAnchor:"middle",verticalAnchor:y};return xe(xe({},O),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(a==="left"){var m={x:u-p,y:s+f/2,textAnchor:b,verticalAnchor:"middle"};return xe(xe({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var g={x:u+c+p,y:s+f/2,textAnchor:x,verticalAnchor:"middle"};return xe(xe({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:f}:{})}var _=n?{width:c,height:f}:{};return a==="insideLeft"?xe({x:u+p,y:s+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?xe({x:u+c-p,y:s+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideTop"?xe({x:u+c/2,y:s+h,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?xe({x:u+c/2,y:s+f-h,textAnchor:"middle",verticalAnchor:d},_):a==="insideTopLeft"?xe({x:u+p,y:s+h,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?xe({x:u+c-p,y:s+h,textAnchor:b,verticalAnchor:y},_):a==="insideBottomLeft"?xe({x:u+p,y:s+f-h,textAnchor:x,verticalAnchor:d},_):a==="insideBottomRight"?xe({x:u+c-p,y:s+f-h,textAnchor:b,verticalAnchor:d},_):Dr(a)&&(q(a.x)||Lt(a.x))&&(q(a.y)||Lt(a.y))?xe({x:u+Ze(a.x,c),y:s+Ze(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):xe({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},Vj=function(t){return"cx"in t&&q(t.cx)};function Ee(e){var t=e.offset,r=t===void 0?5:t,n=qj(e,$j),i=xe({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,c=i.content,f=i.className,l=f===void 0?"":f,h=i.textBreakAll;if(!a||Z(u)&&Z(s)&&!N.isValidElement(c)&&!Y(c))return null;if(N.isValidElement(c))return N.cloneElement(c,i);var d;if(Y(c)){if(d=N.createElement(c,i),N.isValidElement(d))return d}else d=Wj(i);var y=Vj(a),v=J(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Hj(i,d,v);var p=y?Gj(i):Kj(i);return T.createElement(Ai,Pn({className:ee("recharts-label",l)},v,p,{breakAll:h}),d)}Ee.displayName="Label";var tx=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,h=t.y,d=t.top,y=t.left,v=t.width,p=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(q(v)&&q(p)){if(q(l)&&q(h))return{x:l,y:h,width:v,height:p};if(q(d)&&q(y))return{x:d,y,width:v,height:p}}return q(l)&&q(h)?{x:l,y:h,width:0,height:0}:q(r)&&q(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:f||s||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},Xj=function(t,r){return t?t===!0?T.createElement(Ee,{key:"label-implicit",viewBox:r}):we(t)?T.createElement(Ee,{key:"label-implicit",viewBox:r,value:t}):N.isValidElement(t)?t.type===Ee?N.cloneElement(t,{key:"label-implicit",viewBox:r}):T.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):Y(t)?T.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):Dr(t)?T.createElement(Ee,Pn({viewBox:r},t,{key:"label-implicit"})):null:null},Yj=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=tx(t),o=Je(i,Ee).map(function(s,c){return N.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=Xj(t.label,r||a);return[u].concat(Ij(o))};Ee.parseViewBox=tx;Ee.renderCallByParent=Yj;var pc,lm;function Zj(){if(lm)return pc;lm=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return pc=e,pc}var Jj=Zj();const Qj=ue(Jj);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)}var eM=["valueAccessor"],tM=["data","dataKey","clockWise","id","textBreakAll"];function rM(e){return oM(e)||aM(e)||iM(e)||nM()}function nM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iM(e,t){if(e){if(typeof e=="string")return Al(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 Al(e,t)}}function aM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oM(e){if(Array.isArray(e))return Al(e)}function Al(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 Ui(){return Ui=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},Ui.apply(this,arguments)}function fm(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 hm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fm(Object(r),!0).forEach(function(n){uM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uM(e,t,r){return t=sM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sM(e){var t=cM(e,"string");return Tn(t)=="symbol"?t:t+""}function cM(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(t==="string"?String:Number)(e)}function pm(e,t){if(e==null)return{};var r=lM(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 lM(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 fM=function(t){return Array.isArray(t.value)?Qj(t.value):t.value};function Tt(e){var t=e.valueAccessor,r=t===void 0?fM:t,n=pm(e,eM),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=pm(n,tM);return!i||!i.length?null:T.createElement(fe,{className:"recharts-label-list"},i.map(function(f,l){var h=Z(a)?r(f,l):qe(f&&f.payload,a),d=Z(u)?{}:{id:"".concat(u,"-").concat(l)};return T.createElement(Ee,Ui({},J(f,!0),c,d,{parentViewBox:f.parentViewBox,value:h,textBreakAll:s,viewBox:Ee.parseViewBox(Z(o)?f:hm(hm({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}Tt.displayName="LabelList";function hM(e,t){return e?e===!0?T.createElement(Tt,{key:"labelList-implicit",data:t}):T.isValidElement(e)||Y(e)?T.createElement(Tt,{key:"labelList-implicit",data:t,content:e}):Dr(e)?T.createElement(Tt,Ui({data:t},e,{key:"labelList-implicit"})):null:null}function pM(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=Je(n,Tt).map(function(o,u){return N.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=hM(e.label,t);return[a].concat(rM(i))}Tt.renderCallByParent=pM;function En(e){"@babel/helpers - typeof";return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},En(e)}function Pl(){return Pl=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},Pl.apply(this,arguments)}function dm(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 vm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dm(Object(r),!0).forEach(function(n){dM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dM(e,t,r){return t=vM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vM(e){var t=yM(e,"string");return En(t)=="symbol"?t:t+""}function yM(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mM=function(t,r){var n=Ye(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ui=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)/Fi,h=c?a:a+o*l,d=Pe(r,n,f,h),y=Pe(r,n,i,h),v=c?a-o*l:a,p=Pe(r,n,f*Math.cos(l*Fi),v);return{center:d,circleTangency:y,lineTangency:p,theta:l}},rx=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=mM(o,u),c=o+s,f=Pe(r,n,a,o),l=Pe(r,n,a,c),h="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 d=Pe(r,n,i,o),y=Pe(r,n,i,c);h+="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(d.x,",").concat(d.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},gM=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=Ye(f-c),h=ui({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),d=h.circleTangency,y=h.lineTangency,v=h.theta,p=ui({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),b=p.circleTangency,x=p.lineTangency,w=p.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
- `):rx({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(d.x,",").concat(d.y,`
34
- A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(b.x,",").concat(b.y,`
35
- A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
36
- `);if(i>0){var g=ui({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=g.circleTangency,S=g.lineTangency,A=g.theta,M=ui({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),E=M.circleTangency,P=M.lineTangency,j=M.theta,$=s?Math.abs(c-f):Math.abs(c-f)-A-j;if($<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(P.x,",").concat(P.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(+($>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
39
- A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},bM={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},nx=function(t){var r=vm(vm({},bM),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,h=r.className;if(o<a||f===l)return null;var d=ee("recharts-sector",h),y=o-a,v=Ze(u,y,0,!0),p;return v>0&&Math.abs(f-l)<360?p=gM({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):p=rx({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),T.createElement("path",Pl({},J(r,!0),{className:d,d:p,role:"img"}))};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 Tl(){return Tl=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},Tl.apply(this,arguments)}function ym(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 mm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ym(Object(r),!0).forEach(function(n){xM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ym(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xM(e,t,r){return t=wM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wM(e){var t=OM(e,"string");return jn(t)=="symbol"?t:t+""}function OM(e,t){if(jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gm={curveBasisClosed:FO,curveBasisOpen:UO,curveBasis:BO,curveBumpX:PO,curveBumpY:TO,curveLinearClosed:WO,curveLinear:ma,curveMonotoneX:zO,curveMonotoneY:HO,curveNatural:GO,curveStep:KO,curveStepAfter:XO,curveStepBefore:VO},si=function(t){return t.x===+t.x&&t.y===+t.y},Vr=function(t){return t.x},Xr=function(t){return t.y},_M=function(t,r){if(Y(t))return t;var n="curve".concat(va(t));return(n==="curveMonotone"||n==="curveBump")&&r?gm["".concat(n).concat(r==="vertical"?"Y":"X")]:gm[n]||ma},SM=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=_M(n,u),l=c?a.filter(function(v){return si(v)}):a,h;if(Array.isArray(o)){var d=c?o.filter(function(v){return si(v)}):o,y=l.map(function(v,p){return mm(mm({},v),{},{base:d[p]})});return u==="vertical"?h=Qn().y(Xr).x1(Vr).x0(function(v){return v.base.x}):h=Qn().x(Vr).y1(Xr).y0(function(v){return v.base.y}),h.defined(si).curve(f),h(y)}return u==="vertical"&&q(o)?h=Qn().y(Xr).x1(Vr).x0(o):q(o)?h=Qn().x(Vr).y1(Xr).y0(o):h=ab().x(Vr).y(Xr),h.defined(si).curve(f),h(l)},an=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?SM(t):i;return N.createElement("path",Tl({},J(t,!1),pi(t),{className:ee("recharts-curve",r),d:o,ref:a}))},dc={exports:{}},vc,bm;function AM(){if(bm)return vc;bm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return vc=e,vc}var yc,xm;function PM(){if(xm)return yc;xm=1;var e=AM();function t(){}function r(){}return r.resetWarningCache=t,yc=function(){function n(o,u,s,c,f,l){if(l!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},yc}var wm;function TM(){return wm||(wm=1,dc.exports=PM()()),dc.exports}var EM=TM();const ne=ue(EM),{getOwnPropertyNames:jM,getOwnPropertySymbols:MM}=Object,{hasOwnProperty:CM}=Object.prototype;function mc(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function ci(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 $M(e){return e?.[Symbol.toStringTag]}function Om(e){return jM(e).concat(MM(e))}const IM=Object.hasOwn||((e,t)=>CM.call(e,t));function Qt(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const RM="__v",kM="__o",DM="_owner",{getOwnPropertyDescriptor:_m,keys:Sm}=Object;function NM(e,t){return e.byteLength===t.byteLength&&Wi(new Uint8Array(e),new Uint8Array(t))}function qM(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 LM(e,t){return e.byteLength===t.byteLength&&Wi(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function BM(e,t){return Qt(e.getTime(),t.getTime())}function FM(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function UM(e,t){return e===t}function Am(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,u,s=0;for(;(o=a.next())&&!o.done;){const c=t.entries();let f=!1,l=0;for(;(u=c.next())&&!u.done;){if(i[l]){l++;continue}const h=o.value,d=u.value;if(r.equals(h[0],d[0],s,l,e,t,r)&&r.equals(h[1],d[1],h[0],d[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;s++}return!0}const WM=Qt;function zM(e,t,r){const n=Sm(e);let i=n.length;if(Sm(t).length!==i)return!1;for(;i-- >0;)if(!ix(e,t,r,n[i]))return!1;return!0}function Yr(e,t,r){const n=Om(e);let i=n.length;if(Om(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!ix(e,t,r,a)||(o=_m(e,a),u=_m(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function HM(e,t){return Qt(e.valueOf(),t.valueOf())}function GM(e,t){return e.source===t.source&&e.flags===t.flags}function Pm(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 Wi(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 KM(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 ix(e,t,r,n){return(n===DM||n===kM||n===RM)&&(e.$$typeof||t.$$typeof)?!0:IM(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const VM="[object ArrayBuffer]",XM="[object Arguments]",YM="[object Boolean]",ZM="[object DataView]",JM="[object Date]",QM="[object Error]",eC="[object Map]",tC="[object Number]",rC="[object Object]",nC="[object RegExp]",iC="[object Set]",aC="[object String]",oC={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},uC="[object URL]",sC=Object.prototype.toString;function cC({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:s,arePrimitiveWrappersEqual:c,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:h,areUrlsEqual:d,unknownTagComparators:y}){return function(p,b,x){if(p===b)return!0;if(p==null||b==null)return!1;const w=typeof p;if(w!==typeof b)return!1;if(w!=="object")return w==="number"?u(p,b,x):w==="function"?a(p,b,x):!1;const O=p.constructor;if(O!==b.constructor)return!1;if(O===Object)return s(p,b,x);if(Array.isArray(p))return t(p,b,x);if(O===Date)return n(p,b,x);if(O===RegExp)return f(p,b,x);if(O===Map)return o(p,b,x);if(O===Set)return l(p,b,x);const m=sC.call(p);if(m===JM)return n(p,b,x);if(m===nC)return f(p,b,x);if(m===eC)return o(p,b,x);if(m===iC)return l(p,b,x);if(m===rC)return typeof p.then!="function"&&typeof b.then!="function"&&s(p,b,x);if(m===uC)return d(p,b,x);if(m===QM)return i(p,b,x);if(m===XM)return s(p,b,x);if(oC[m])return h(p,b,x);if(m===VM)return e(p,b,x);if(m===ZM)return r(p,b,x);if(m===YM||m===tC||m===aC)return c(p,b,x);if(y){let g=y[m];if(!g){const _=$M(p);_&&(g=y[_])}if(g)return g(p,b,x)}return!1}}function lC({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:NM,areArraysEqual:r?Yr:qM,areDataViewsEqual:LM,areDatesEqual:BM,areErrorsEqual:FM,areFunctionsEqual:UM,areMapsEqual:r?mc(Am,Yr):Am,areNumbersEqual:WM,areObjectsEqual:r?Yr:zM,arePrimitiveWrappersEqual:HM,areRegExpsEqual:GM,areSetsEqual:r?mc(Pm,Yr):Pm,areTypedArraysEqual:r?mc(Wi,Yr):Wi,areUrlsEqual:KM,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=ci(n.areArraysEqual),a=ci(n.areMapsEqual),o=ci(n.areObjectsEqual),u=ci(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function fC(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function hC({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 pC=$t();$t({strict:!0});$t({circular:!0});$t({circular:!0,strict:!0});$t({createInternalComparator:()=>Qt});$t({strict:!0,createInternalComparator:()=>Qt});$t({circular:!0,createInternalComparator:()=>Qt});$t({circular:!0,createInternalComparator:()=>Qt,strict:!0});function $t(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=lC(e),o=cC(a),u=r?r(o):fC(o);return hC({circular:t,comparator:o,createState:n,equals:u,strict:i})}function dC(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Tm(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):dC(i)};requestAnimationFrame(n)}function El(e){"@babel/helpers - typeof";return El=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},El(e)}function vC(e){return bC(e)||gC(e)||mC(e)||yC()}function yC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
40
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mC(e,t){if(e){if(typeof e=="string")return Em(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 Em(e,t)}}function Em(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 gC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bC(e){if(Array.isArray(e))return e}function xC(){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=vC(o),s=u[0],c=u.slice(1);if(typeof s=="number"){Tm(i.bind(null,c),s);return}i(s),Tm(i.bind(null,c));return}El(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 Mn(e){"@babel/helpers - typeof";return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(e)}function jm(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 Mm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jm(Object(r),!0).forEach(function(n){ax(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ax(e,t,r){return t=wC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wC(e){var t=OC(e,"string");return Mn(t)==="symbol"?t:String(t)}function OC(e,t){if(Mn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _C=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},SC=function(t){return t},AC=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},on=function(t,r){return Object.keys(r).reduce(function(n,i){return Mm(Mm({},n),{},ax({},i,t(i,r[i])))},{})},Cm=function(t,r,n){return t.map(function(i){return"".concat(AC(i)," ").concat(r,"ms ").concat(n)}).join(",")};function PC(e,t){return jC(e)||EC(e,t)||ox(e,t)||TC()}function TC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
41
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EC(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 jC(e){if(Array.isArray(e))return e}function MC(e){return IC(e)||$C(e)||ox(e)||CC()}function CC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
42
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ox(e,t){if(e){if(typeof e=="string")return jl(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 jl(e,t)}}function $C(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function IC(e){if(Array.isArray(e))return jl(e)}function jl(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 zi=1e-4,ux=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},sx=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},$m=function(t,r){return function(n){var i=ux(t,r);return sx(i,n)}},RC=function(t,r){return function(n){var i=ux(t,r),a=[].concat(MC(i.map(function(o,u){return o*u}).slice(1)),[0]);return sx(a,n)}},Im=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(p){return parseFloat(p)}),f=PC(c,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=$m(i,o),h=$m(a,u),d=RC(i,o),y=function(b){return b>1?1:b<0?0:b},v=function(b){for(var x=b>1?1:b,w=x,O=0;O<8;++O){var m=l(w)-x,g=d(w);if(Math.abs(m-x)<zi||g<zi)return h(w);w=y(w-m/g)}return h(w)};return v.isStepper=!1,v},kC=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,s=function(f,l,h){var d=-(f-l)*n,y=h*a,v=h+(d-y)*u/1e3,p=h*u/1e3+f;return Math.abs(p-l)<zi&&Math.abs(v)<zi?[l,0]:[p,v]};return s.isStepper=!0,s.dt=u,s},DC=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 Im(i);case"spring":return kC();default:if(i.split("(")[0]==="cubic-bezier")return Im(i)}return typeof i=="function"?i:null};function Cn(e){"@babel/helpers - typeof";return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cn(e)}function Rm(e){return LC(e)||qC(e)||cx(e)||NC()}function NC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
43
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LC(e){if(Array.isArray(e))return Cl(e)}function km(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 Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?km(Object(r),!0).forEach(function(n){Ml(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):km(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ml(e,t,r){return t=BC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BC(e){var t=FC(e,"string");return Cn(t)==="symbol"?t:String(t)}function FC(e,t){if(Cn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UC(e,t){return HC(e)||zC(e,t)||cx(e,t)||WC()}function WC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
44
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cx(e,t){if(e){if(typeof e=="string")return Cl(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 Cl(e,t)}}function Cl(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 zC(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 HC(e){if(Array.isArray(e))return e}var Hi=function(t,r,n){return t+(r-t)*n},$l=function(t){var r=t.from,n=t.to;return r!==n},GC=function e(t,r,n){var i=on(function(a,o){if($l(o)){var u=t(o.from,o.to,o.velocity),s=UC(u,2),c=s[0],f=s[1];return Ae(Ae({},o),{},{from:c,velocity:f})}return o},r);return n<1?on(function(a,o){return $l(o)?Ae(Ae({},o),{},{velocity:Hi(o.velocity,i[a].velocity,n),from:Hi(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const KC=(function(e,t,r,n,i){var a=_C(e,t),o=a.reduce(function(p,b){return Ae(Ae({},p),{},Ml({},b,[e[b],t[b]]))},{}),u=a.reduce(function(p,b){return Ae(Ae({},p),{},Ml({},b,{from:e[b],velocity:0,to:t[b]}))},{}),s=-1,c,f,l=function(){return null},h=function(){return on(function(b,x){return x.from},u)},d=function(){return!Object.values(u).filter($l).length},y=function(b){c||(c=b);var x=b-c,w=x/r.dt;u=GC(r,u,w),i(Ae(Ae(Ae({},e),t),h())),c=b,d()||(s=requestAnimationFrame(l))},v=function(b){f||(f=b);var x=(b-f)/n,w=on(function(m,g){return Hi.apply(void 0,Rm(g).concat([r(x)]))},o);if(i(Ae(Ae(Ae({},e),t),w)),x<1)s=requestAnimationFrame(l);else{var O=on(function(m,g){return Hi.apply(void 0,Rm(g).concat([r(1)]))},o);i(Ae(Ae(Ae({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}});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)}var VC=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function XC(e,t){if(e==null)return{};var r=YC(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 YC(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 gc(e){return e$(e)||QC(e)||JC(e)||ZC()}function ZC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
45
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JC(e,t){if(e){if(typeof e=="string")return Il(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Il(e,t)}}function QC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function e$(e){if(Array.isArray(e))return Il(e)}function Il(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Dm(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 Ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dm(Object(r),!0).forEach(function(n){en(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function en(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 t$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r$(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 n$(e,t,r){return t&&r$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lx(e){var t=i$(e,"string");return wr(t)==="symbol"?t:String(t)}function i$(e,t){if(wr(e)!=="object"||e===null)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)}function a$(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&&Rl(e,t)}function Rl(e,t){return Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rl(e,t)}function o$(e){var t=u$();return function(){var n=Gi(e),i;if(t){var a=Gi(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return kl(this,i)}}function kl(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 Dl(e)}function Dl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u$(){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 Gi(e){return Gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gi(e)}var yt=(function(e){a$(r,e);var t=o$(r);function r(n,i){var a;t$(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,c=o.from,f=o.to,l=o.steps,h=o.children,d=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Dl(a)),a.changeStyle=a.changeStyle.bind(Dl(a)),!u||d<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),kl(a);if(l&&l.length)a.state={style:l[0].style};else if(c){if(typeof h=="function")return a.state={style:c},kl(a);a.state={style:s?en({},s,c):c}}else a.state={style:{}};return a}return n$(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,s=a.attributeName,c=a.shouldReAnimate,f=a.to,l=a.from,h=this.state.style;if(u){if(!o){var d={style:s?en({},s,f):f};this.state&&h&&(s&&h[s]!==f||!s&&h!==f)&&this.setState(d);return}if(!(pC(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||c?l:i.to;if(this.state&&h){var p={style:s?en({},s,v):v};(s&&h[s]!==v||!s&&h!==v)&&this.setState(p)}this.runAnimation(Ke(Ke({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,s=i.duration,c=i.easing,f=i.begin,l=i.onAnimationEnd,h=i.onAnimationStart,d=KC(o,u,DC(c),s,this.changeStyle),y=function(){a.stopJSAnimation=d()};this.manager.start([h,f,y,s,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,s=i.onAnimationStart,c=o[0],f=c.style,l=c.duration,h=l===void 0?0:l,d=function(v,p,b){if(b===0)return v;var x=p.duration,w=p.easing,O=w===void 0?"ease":w,m=p.style,g=p.properties,_=p.onAnimationEnd,S=b>0?o[b-1]:p,A=g||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(gc(v),[a.runJSAnimation.bind(a,{from:S.style,to:m,duration:x,easing:O}),x]);var M=Cm(A,x,O),E=Ke(Ke(Ke({},S.style),m),{},{transition:M});return[].concat(gc(v),[E,x,_]).filter(SC)};return this.manager.start([s].concat(gc(o.reduce(d,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=xC());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,c=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,h=i.steps,d=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof d=="function"||c==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=u?en({},u,s):s,p=Cm(Object.keys(v),o,c);y.start([f,a,Ke(Ke({},v),{},{transition:p}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=XC(i,VC),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(d){var y=d.props,v=y.style,p=v===void 0?{}:v,b=y.className,x=N.cloneElement(d,Ke(Ke({},s),{},{style:Ke(Ke({},p),f),className:b}));return x};return c===1?l(N.Children.only(a)):T.createElement("div",null,N.Children.map(a,function(h){return l(h)}))}}]),r})(N.PureComponent);yt.displayName="Animate";yt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};yt.propTypes={from:ne.oneOfType([ne.object,ne.string]),to:ne.oneOfType([ne.object,ne.string]),attributeName:ne.string,duration:ne.number,begin:ne.number,easing:ne.oneOfType([ne.string,ne.func]),steps:ne.arrayOf(ne.shape({duration:ne.number.isRequired,style:ne.object.isRequired,easing:ne.oneOfType([ne.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ne.func]),properties:ne.arrayOf("string"),onAnimationEnd:ne.func})),children:ne.oneOfType([ne.node,ne.func]),isActive:ne.bool,canBegin:ne.bool,onAnimationEnd:ne.func,shouldReAnimate:ne.bool,onAnimationStart:ne.func,onAnimationReStart:ne.func};function $n(e){"@babel/helpers - typeof";return $n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$n(e)}function Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ki.apply(this,arguments)}function s$(e,t){return h$(e)||f$(e,t)||l$(e,t)||c$()}function c$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
46
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l$(e,t){if(e){if(typeof e=="string")return Nm(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 Nm(e,t)}}function Nm(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 f$(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 h$(e){if(Array.isArray(e))return e}function qm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qm(Object(r),!0).forEach(function(n){p$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p$(e,t,r){return t=d$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d$(e){var t=v$(e,"string");return $n(t)=="symbol"?t:t+""}function v$(e,t){if($n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bm=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],h=0,d=4;h<d;h++)l[h]=a[h]>o?o:a[h];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(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},y$=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var c=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+s),h=Math.max(o,o+s);return n>=c&&n<=f&&i>=l&&i<=h}return!1},m$={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Qf=function(t){var r=Lm(Lm({},m$),t),n=N.useRef(),i=N.useState(-1),a=s$(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,h=r.radius,d=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,b=r.isAnimationActive,x=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var w=ee("recharts-rectangle",d);return x?T.createElement(yt,{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,g=O.height,_=O.x,S=O.y;return T.createElement(yt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,isActive:b,easing:y},T.createElement("path",Ki({},J(r,!0),{className:w,d:Bm(_,S,m,g,h),ref:n})))}):T.createElement("path",Ki({},J(r,!0),{className:w,d:Bm(s,c,f,l,h)}))};function Nl(){return Nl=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},Nl.apply(this,arguments)}var eh=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ee("recharts-dot",a);return r===+r&&n===+n&&i===+i?N.createElement("circle",Nl({},J(t,!1),pi(t),{className:o,cx:r,cy:n,r:i})):null};function In(e){"@babel/helpers - typeof";return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(e)}var g$=["x","y","top","left","width","height","className"];function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ql.apply(this,arguments)}function Fm(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 b$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fm(Object(r),!0).forEach(function(n){x$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x$(e,t,r){return t=w$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w$(e){var t=O$(e,"string");return In(t)=="symbol"?t:t+""}function O$(e,t){if(In(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(In(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _$(e,t){if(e==null)return{};var r=S$(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 S$(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 A$=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},P$=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,s=t.left,c=s===void 0?0:s,f=t.width,l=f===void 0?0:f,h=t.height,d=h===void 0?0:h,y=t.className,v=_$(t,g$),p=b$({x:n,y:a,top:u,left:c,width:l,height:d},v);return!q(n)||!q(a)||!q(l)||!q(d)||!q(u)||!q(c)?null:T.createElement("path",ql({},J(p,!0),{className:ee("recharts-cross",y),d:A$(n,a,l,d,u,c)}))},bc,Um;function T$(){if(Um)return bc;Um=1;var e=Eb(),t=e(Object.getPrototypeOf,Object);return bc=t,bc}var xc,Wm;function E$(){if(Wm)return xc;Wm=1;var e=mt(),t=T$(),r=gt(),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 h=u.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==s}return xc=c,xc}var j$=E$();const M$=ue(j$);var wc,zm;function C$(){if(zm)return wc;zm=1;var e=mt(),t=gt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return wc=n,wc}var $$=C$();const I$=ue($$);function Rn(e){"@babel/helpers - typeof";return Rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(e)}function Vi(){return Vi=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},Vi.apply(this,arguments)}function R$(e,t){return q$(e)||N$(e,t)||D$(e,t)||k$()}function k$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D$(e,t){if(e){if(typeof e=="string")return Hm(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 Hm(e,t)}}function Hm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function q$(e){if(Array.isArray(e))return e}function Gm(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 Km(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gm(Object(r),!0).forEach(function(n){L$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gm(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 Rn(t)=="symbol"?t:t+""}function F$(e,t){if(Rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vm=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},U$={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},W$=function(t){var r=Km(Km({},U$),t),n=N.useRef(),i=N.useState(-1),a=R$(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,h=r.height,d=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,b=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var x=ee("recharts-trapezoid",d);return b?T.createElement(yt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:h,x:s,y:c},duration:v,animationEasing:y,isActive:b},function(w){var O=w.upperWidth,m=w.lowerWidth,g=w.height,_=w.x,S=w.y;return T.createElement(yt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:y},T.createElement("path",Vi({},J(r,!0),{className:x,d:Vm(_,S,O,m,g),ref:n})))}):T.createElement("g",null,T.createElement("path",Vi({},J(r,!0),{className:x,d:Vm(s,c,f,l,h)})))},z$=["option","shapeType","propTransformer","activeClassName","isActive"];function kn(e){"@babel/helpers - typeof";return kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(e)}function H$(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}function Xm(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 Xi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xm(Object(r),!0).forEach(function(n){K$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K$(e,t,r){return t=V$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V$(e){var t=X$(e,"string");return kn(t)=="symbol"?t:t+""}function X$(e,t){if(kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Y$(e,t){return Xi(Xi({},t),e)}function Z$(e,t){return e==="symbols"}function Ym(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return T.createElement(Qf,r);case"trapezoid":return T.createElement(W$,r);case"sector":return T.createElement(nx,r);case"symbols":if(Z$(t))return T.createElement(gf,r);break;default:return null}}function J$(e){return N.isValidElement(e)?e.props:e}function Q$(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?Y$:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=H$(e,z$),c;if(N.isValidElement(t))c=N.cloneElement(t,Xi(Xi({},s),J$(t)));else if(Y(t))c=t(s);else if(M$(t)&&!I$(t)){var f=i(t,s);c=T.createElement(Ym,{shapeType:r,elementProps:f})}else{var l=s;c=T.createElement(Ym,{shapeType:r,elementProps:l})}return u?T.createElement(fe,{className:o},c):c}function $a(e,t){return t!=null&&"trapezoids"in e.props}function Ia(e,t){return t!=null&&"sectors"in e.props}function Dn(e,t){return t!=null&&"points"in e.props}function eI(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 tI(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function rI(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function nI(e,t){var r;return $a(e,t)?r=eI:Ia(e,t)?r=tI:Dn(e,t)&&(r=rI),r}function iI(e,t){var r;return $a(e,t)?r="trapezoids":Ia(e,t)?r="sectors":Dn(e,t)&&(r="points"),r}function aI(e,t){if($a(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(Ia(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 Dn(e,t)?t.payload:{}}function oI(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=iI(r,t),a=aI(r,t),o=n.filter(function(s,c){var f=bn(a,s),l=r.props[i].filter(function(y){var v=nI(r,t);return v(y,t)}),h=r.props[i].indexOf(l[l.length-1]),d=c===h;return f&&d}),u=n.indexOf(o[o.length-1]);return u}var Oc,Zm;function uI(){if(Zm)return Oc;Zm=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 Oc=r,Oc}var _c,Jm;function fx(){if(Jm)return _c;Jm=1;var e=zb(),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 _c=n,_c}var Sc,Qm;function sI(){if(Qm)return Sc;Qm=1;var e=uI(),t=wa(),r=fx();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 Sc=n,Sc}var Ac,eg;function cI(){if(eg)return Ac;eg=1;var e=sI(),t=e();return Ac=t,Ac}var lI=cI();const Yi=ue(lI);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 tg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tg(Object(r),!0).forEach(function(n){hx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hx(e,t,r){return t=fI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fI(e){var t=hI(e,"string");return Nn(t)=="symbol"?t:t+""}function hI(e,t){if(Nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pI=["Webkit","Moz","O","ms"],dI=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=pI.reduce(function(a,o){return rg(rg({},a),{},hx({},o+n,r))},{});return i[t]=r,i};function Or(e){"@babel/helpers - typeof";return Or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Or(e)}function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zi.apply(this,arguments)}function ng(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 Pc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ng(Object(r),!0).forEach(function(n){ke(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ng(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ig(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dx(n.key),n)}}function yI(e,t,r){return t&&ig(e.prototype,t),r&&ig(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mI(e,t,r){return t=Ji(t),gI(e,px()?Reflect.construct(t,r||[],Ji(e).constructor):t.apply(e,r))}function gI(e,t){if(t&&(Or(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bI(e)}function bI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function px(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(px=function(){return!!e})()}function Ji(e){return Ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ji(e)}function xI(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&&Ll(e,t)}function Ll(e,t){return Ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ll(e,t)}function ke(e,t,r){return t=dx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dx(e){var t=wI(e,"string");return Or(t)=="symbol"?t:t+""}function wI(e,t){if(Or(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Or(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var OI=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=rn().domain(Yi(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}},ag=function(t){return t.changedTouches&&!!t.changedTouches.length},_r=(function(e){function t(r){var n;return vI(this,t),n=mI(this,t,[r]),ke(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),ke(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),ke(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()}),ke(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),ke(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),ke(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),ke(n,"handleSlideDragStart",function(i){var a=ag(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return xI(t,e),yI(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,s=u.gap,c=u.data,f=c.length-1,l=Math.min(i,a),h=Math.max(i,a),d=t.getIndexInRange(o,l),y=t.getIndexInRange(o,h);return{startIndex:d-d%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=qe(a[n],u,n);return Y(o)?o(s,n):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,s=this.props,c=s.x,f=s.width,l=s.travellerWidth,h=s.startIndex,d=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 p=this.getIndex({startX:o+v,endX:u+v});(p.startIndex!==h||p.endIndex!==d)&&y&&y(p),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=ag(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,s=i.startX,c=this.state[o],f=this.props,l=f.x,h=f.width,d=f.travellerWidth,y=f.onChange,v=f.gap,p=f.data,b={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+h-d-c):x<0&&(x=Math.max(x,l-c)),b[o]=c+x;var w=this.getIndex(b),O=w.startIndex,m=w.endIndex,g=function(){var S=p.length-1;return o==="startX"&&(u>s?O%v===0:m%v===0)||u<s&&m===S||o==="endX"&&(u>s?m%v===0:O%v===0)||u>s&&m===S};this.setState(ke(ke({},o,c+x),"brushMoveStartX",n.pageX),function(){y&&g()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,c=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var h=l+n;if(!(h===-1||h>=u.length)){var d=u[h];i==="startX"&&d>=c||i==="endX"&&d<=s||this.setState(ke({},i,d),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.fill,c=n.stroke;return T.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?T.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,h=s.traveller,d=s.ariaLabel,y=s.data,v=s.startIndex,p=s.endIndex,b=Math.max(n,this.props.x),x=Pc(Pc({},J(this.props,!1)),{},{x:b,y:c,width:f,height:l}),w=d||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[p])===null||o===void 0?void 0:o.name);return T.createElement(fe,{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(h,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,0);return T.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,h=f.endX,d=5,y={pointerEvents:"none",fill:c};return T.createElement(fe,{className:"recharts-brush-texts"},T.createElement(Ai,Zi({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-d,y:o+u/2},y),this.getTextOfTick(i)),T.createElement(Ai,Zi({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+s+d,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,s=n.y,c=n.width,f=n.height,l=n.alwaysShowText,h=this.state,d=h.startX,y=h.endX,v=h.isTextActive,p=h.isSlideMoving,b=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!q(u)||!q(s)||!q(c)||!q(f)||c<=0||f<=0)return null;var w=ee("recharts-brush",a),O=T.Children.count(o)===1,m=dI("userSelect","none");return T.createElement(fe,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(d,y),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(y,"endX"),(v||p||b||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(a+u/2)-1;return T.createElement(T.Fragment,null,T.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),T.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),T.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 T.isValidElement(n)?a=T.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 Pc({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?OI({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var h=i.scale.domain().map(function(d){return i.scale(d)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(N.PureComponent);ke(_r,"displayName","Brush");ke(_r,"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 Tc,og;function _I(){if(og)return Tc;og=1;var e=Af();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Tc=t,Tc}var Ec,ug;function SI(){if(ug)return Ec;ug=1;var e=wb(),t=jt(),r=_I(),n=Ie(),i=wa();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 Ec=a,Ec}var AI=SI();const PI=ue(AI);var nt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},jc,sg;function TI(){if(sg)return jc;sg=1;var e=Lb();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return jc=t,jc}var Mc,cg;function EI(){if(cg)return Mc;cg=1;var e=TI(),t=Nb(),r=jt();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 Mc=n,Mc}var jI=EI();const MI=ue(jI);var Cc,lg;function CI(){if(lg)return Cc;lg=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 Cc=e,Cc}var $c,fg;function $I(){if(fg)return $c;fg=1;var e=Af();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return $c=t,$c}var Ic,hg;function II(){if(hg)return Ic;hg=1;var e=CI(),t=$I(),r=jt(),n=Ie(),i=wa();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 Ic=a,Ic}var RI=II();const vx=ue(RI);var kI=["x","y"];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 Bl(){return Bl=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},Bl.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 Zr(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){DI(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 DI(e,t,r){return t=NI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NI(e){var t=qI(e,"string");return qn(t)=="symbol"?t:t+""}function qI(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 LI(e,t){if(e==null)return{};var r=BI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function FI(e,t){var r=e.x,n=e.y,i=LI(e,kI),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),h=parseInt(l,10);return Zr(Zr(Zr(Zr(Zr({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function dg(e){return T.createElement(Q$,Bl({shapeType:"rectangle",propTransformer:FI,activeClassName:"recharts-active-bar"},e))}var UI=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=q(n)||Kw(n);return a?t(n,i):(a||Kt(!1),r)}},WI=["value","background"],yx;function Sr(e){"@babel/helpers - typeof";return Sr=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},Sr(e)}function zI(e,t){if(e==null)return{};var r=HI(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 HI(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 Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qi.apply(this,arguments)}function vg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vg(Object(r),!0).forEach(function(n){At(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yg(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,gx(n.key),n)}}function KI(e,t,r){return t&&yg(e.prototype,t),r&&yg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function VI(e,t,r){return t=ea(t),XI(e,mx()?Reflect.construct(t,r||[],ea(e).constructor):t.apply(e,r))}function XI(e,t){if(t&&(Sr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YI(e)}function YI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mx=function(){return!!e})()}function ea(e){return ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ea(e)}function ZI(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&&Fl(e,t)}function Fl(e,t){return Fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fl(e,t)}function At(e,t,r){return t=gx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gx(e){var t=JI(e,"string");return Sr(t)=="symbol"?t:t+""}function JI(e,t){if(Sr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yn=(function(e){function t(){var r;GI(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=VI(this,t,[].concat(i)),At(r,"state",{isAnimationFinished:!1}),At(r,"id",zn("recharts-bar-")),At(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),At(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return ZI(t,e),KI(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,c=a.activeBar,f=J(this.props,!1);return n&&n.map(function(l,h){var d=h===s,y=d?c:o,v=ve(ve(ve({},f),l),{},{isActive:d,option:y,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return T.createElement(fe,Qi({className:"recharts-bar-rectangle"},di(i.props,l,h),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(h)}),T.createElement(dg,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,f=i.animationEasing,l=i.animationId,h=this.state.prevData;return T.createElement(yt,{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(d){var y=d.t,v=a.map(function(p,b){var x=h&&h[b];if(x){var w=Ue(x.x,p.x),O=Ue(x.y,p.y),m=Ue(x.width,p.width),g=Ue(x.height,p.height);return ve(ve({},p),{},{x:w(y),y:O(y),width:m(y),height:g(y)})}if(o==="horizontal"){var _=Ue(0,p.height),S=_(y);return ve(ve({},p),{},{y:p.y+p.height-S,height:S})}var A=Ue(0,p.width),M=A(y);return ve(ve({},p),{},{width:M})});return T.createElement(fe,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||!bn(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=J(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,h=zI(c,WI);if(!l)return null;var d=ve(ve(ve(ve(ve({},h),{},{fill:"#eee"},l),s),di(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return T.createElement(dg,Qi({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},d))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,s=a.yAxis,c=a.layout,f=a.children,l=Je(f,Ca);if(!l)return null;var h=c==="vertical"?o[0].height/2:o[0].width/2,d=function(p,b){var x=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:x,errorVal:qe(p,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return T.createElement(fe,y,l.map(function(v){return T.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:h,dataPointFormatter:d})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,c=n.left,f=n.top,l=n.width,h=n.height,d=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,b=ee("recharts-bar",o),x=u&&u.allowDataOverflow,w=s&&s.allowDataOverflow,O=x||w,m=Z(v)?this.id:v;return T.createElement(fe,{className:b},x||w?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(m)},T.createElement("rect",{x:x?c:c-l/2,y:w?f:f-h/2,width:x?l:l*2,height:w?h:h*2}))):null,T.createElement(fe,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!d||p)&&Tt.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);yx=Yn;At(Yn,"displayName","Bar");At(Yn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Lr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});At(Yn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,s=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,d=cj(n,r);if(!d)return null;var y=t.layout,v=r.type.defaultProps,p=v!==void 0?ve(ve({},v),r.props):r.props,b=p.dataKey,x=p.children,w=p.minPointSize,O=y==="horizontal"?o:a,m=c?O.scale.domain():null,g=yj({numericAxis:O}),_=Je(x,Gb),S=l.map(function(A,M){var E,P,j,$,C,R;c?E=lj(c[f+M],m):(E=qe(A,b),Array.isArray(E)||(E=[g,E]));var D=UI(w,yx.defaultProps.minPointSize)(E[1],M);if(y==="horizontal"){var L,B=[o.scale(E[0]),o.scale(E[1])],z=B[0],G=B[1];P=rm({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:A,index:M}),j=(L=G??z)!==null&&L!==void 0?L:void 0,$=d.size;var U=z-G;if(C=Number.isNaN(U)?0:U,R={x:P,y:o.y,width:$,height:o.height},Math.abs(D)>0&&Math.abs(C)<Math.abs(D)){var K=Ye(C||D)*(Math.abs(D)-Math.abs(C));j-=K,C+=K}}else{var se=[a.scale(E[0]),a.scale(E[1])],de=se[0],Re=se[1];if(P=de,j=rm({axis:o,ticks:s,bandSize:i,offset:d.offset,entry:A,index:M}),$=Re-de,C=d.size,R={x:a.x,y:j,width:a.width,height:C},Math.abs(D)>0&&Math.abs($)<Math.abs(D)){var It=Ye($||D)*(Math.abs(D)-Math.abs($));$+=It}}return ve(ve(ve({},A),{},{x:P,y:j,width:$,height:C,value:c?E:E[1],payload:A,background:R},_&&_[M]&&_[M].props),{},{tooltipPayload:[Q0(r,A)],tooltipPosition:{x:P+$/2,y:j+C/2}})});return ve({data:S,layout:y},h)});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 QI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mg(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,bx(n.key),n)}}function eR(e,t,r){return t&&mg(e.prototype,t),r&&mg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function gg(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 Ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gg(Object(r),!0).forEach(function(n){Ra(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ra(e,t,r){return t=bx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bx(e){var t=tR(e,"string");return Ln(t)=="symbol"?t:t+""}function tR(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)}var rR=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},h=!!De(c,Yn);return f.reduce(function(d,y){var v=r[y],p=v.orientation,b=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,m=v.reversed,g="".concat(p).concat(O?"Mirror":""),_,S,A,M,E;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var P=b[1]-b[0],j=1/0,$=v.categoricalDomain.sort(Yw);if($.forEach(function(se,de){de>0&&(j=Math.min((se||0)-($[de-1]||0),j))}),Number.isFinite(j)){var C=j/P,R=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=C*R/2),v.padding==="no-gap"){var D=Ze(t.barCategoryGap,C*R),L=C*R/2;_=L-D-(L-D)/R*D}}}i==="xAxis"?S=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?S=s==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:S=v.range,m&&(S=[S[1],S[0]]);var B=X0(v,a,h),z=B.scale,G=B.realScaleType;z.domain(b).range(S),Y0(z);var U=Z0(z,Ve(Ve({},v),{},{realScaleType:G}));i==="xAxis"?(E=p==="top"&&!O||p==="bottom"&&O,A=n.left,M=l[g]-E*v.height):i==="yAxis"&&(E=p==="left"&&!O||p==="right"&&O,A=l[g]-E*v.width,M=n.top);var K=Ve(Ve(Ve({},v),U),{},{realScaleType:G,x:A,y:M,scale:z,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return K.bandSize=Bi(K,U),!v.hide&&i==="xAxis"?l[g]+=(E?-1:1)*K.height:v.hide||(l[g]+=(E?-1:1)*K.width),Ve(Ve({},d),{},Ra({},y,K))},{})},xx=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)}},nR=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return xx({x:r,y:n},{x:i,y:a})},wx=(function(){function e(t){QI(this,e),this.scale=t}return eR(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)}}])})();Ra(wx,"EPS",1e-4);var th=function(t){var r=Object.keys(t).reduce(function(n,i){return Ve(Ve({},n),{},Ra({},i,wx.create(t[i])))},{});return Ve(Ve({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return MI(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return vx(i,function(a,o){return r[o].isInRange(a)})}})};function iR(e){return(e%180+180)%180}var aR=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=iR(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)},Rc,bg;function oR(){if(bg)return Rc;bg=1;var e=jt(),t=Hn(),r=ba();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 Rc=n,Rc}var kc,xg;function uR(){if(xg)return kc;xg=1;var e=fx();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return kc=t,kc}var Dc,wg;function sR(){if(wg)return Dc;wg=1;var e=$b(),t=jt(),r=uR(),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 Dc=i,Dc}var Nc,Og;function cR(){if(Og)return Nc;Og=1;var e=oR(),t=sR(),r=e(t);return Nc=r,Nc}var lR=cR();const fR=ue(lR);var hR=Vg();const pR=ue(hR);var dR=pR(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),Ox=N.createContext(void 0),_x=N.createContext({}),Sx=N.createContext(void 0),Ax=N.createContext(0),Px=N.createContext(0),_g=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=dR(a);return T.createElement(rh.Provider,{value:n},T.createElement(nh.Provider,{value:i},T.createElement(_x.Provider,{value:a},T.createElement(Ox.Provider,{value:f},T.createElement(Sx.Provider,{value:o},T.createElement(Ax.Provider,{value:c},T.createElement(Px.Provider,{value:s},u)))))))},vR=function(){return N.useContext(Sx)},Tx=function(t){var r=N.useContext(rh);r==null&&Kt(!1);var n=r[t];return n==null&&Kt(!1),n},ZD=function(){var t=N.useContext(rh);return _t(t)},JD=function(){var t=N.useContext(nh),r=fR(t,function(n){return vx(n.domain,Number.isFinite)});return r||_t(t)},Ex=function(t){var r=N.useContext(nh);r==null&&Kt(!1);var n=r[t];return n==null&&Kt(!1),n},yR=function(){var t=N.useContext(Ox);return t},QD=function(){return N.useContext(_x)},jx=function(){return N.useContext(Px)},Mx=function(){return N.useContext(Ax)};function Ar(e){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ar(e)}function mR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gR(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,$x(n.key),n)}}function bR(e,t,r){return t&&gR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xR(e,t,r){return t=ta(t),wR(e,Cx()?Reflect.construct(t,r||[],ta(e).constructor):t.apply(e,r))}function wR(e,t){if(t&&(Ar(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return 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 Cx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cx=function(){return!!e})()}function ta(e){return ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ta(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&&Ul(e,t)}function Ul(e,t){return Ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ul(e,t)}function Sg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ag(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sg(Object(r),!0).forEach(function(n){ih(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ih(e,t,r){return t=$x(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $x(e){var t=SR(e,"string");return Ar(t)=="symbol"?t:t+""}function SR(e,t){if(Ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function AR(e,t){return jR(e)||ER(e,t)||TR(e,t)||PR()}function PR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TR(e,t){if(e){if(typeof e=="string")return Pg(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 Pg(e,t)}}function Pg(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 ER(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 jR(e){if(Array.isArray(e))return e}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)}var MR=function(t,r){var n;return T.isValidElement(t)?n=T.cloneElement(t,r):Y(t)?n=t(r):n=T.createElement("line",Wl({},r,{className:"recharts-reference-line-line"})),n},CR=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,h=a.width,d=a.height;if(n){var y=c.y,v=t.y.apply(y,{position:o});if(nt(c,"discard")&&!t.y.isInRange(v))return null;var p=[{x:f+h,y:v},{x:f,y:v}];return s==="left"?p.reverse():p}if(r){var b=c.x,x=t.x.apply(b,{position:o});if(nt(c,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+d},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=c.segment,m=O.map(function(g){return t.apply(g,{position:o})});return nt(c,"discard")&&PI(m,function(g){return!t.isInRange(g)})?null:m}return null};function $R(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=vR(),f=Tx(i),l=Ex(a),h=yR();if(!c||!h)return null;zt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=th({x:f.scale,y:l.scale}),y=we(t),v=we(r),p=n&&n.length===2,b=CR(d,y,v,p,h,e.position,f.orientation,l.orientation,e);if(!b)return null;var x=AR(b,2),w=x[0],O=w.x,m=w.y,g=x[1],_=g.x,S=g.y,A=nt(e,"hidden")?"url(#".concat(c,")"):void 0,M=Ag(Ag({clipPath:A},J(e,!0)),{},{x1:O,y1:m,x2:_,y2:S});return T.createElement(fe,{className:ee("recharts-reference-line",u)},MR(o,M),Ee.renderCallByParent(e,nR({x1:O,y1:m,x2:_,y2:S})))}var ah=(function(e){function t(){return mR(this,t),xR(this,t,arguments)}return _R(t,e),bR(t,[{key:"render",value:function(){return T.createElement($R,this.props)}}])})(T.Component);ih(ah,"displayName","ReferenceLine");ih(ah,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function zl(){return zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zl.apply(this,arguments)}function Pr(e){"@babel/helpers - typeof";return Pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pr(e)}function Tg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Eg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tg(Object(r),!0).forEach(function(n){ka(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RR(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 kR(e,t,r){return t&&RR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function DR(e,t,r){return t=ra(t),NR(e,Ix()?Reflect.construct(t,r||[],ra(e).constructor):t.apply(e,r))}function NR(e,t){if(t&&(Pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qR(e)}function qR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ix(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ix=function(){return!!e})()}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ra(e)}function LR(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&&Hl(e,t)}function Hl(e,t){return Hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hl(e,t)}function ka(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=BR(e,"string");return Pr(t)=="symbol"?t:t+""}function BR(e,t){if(Pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var FR=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 nt(t,"discard")&&!o.isInRange(u)?null:u},Da=(function(e){function t(){return IR(this,t),DR(this,t,arguments)}return LR(t,e),kR(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=we(i),f=we(a);if(zt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=FR(this.props);if(!l)return null;var h=l.x,d=l.y,y=this.props,v=y.shape,p=y.className,b=nt(this.props,"hidden")?"url(#".concat(s,")"):void 0,x=Eg(Eg({clipPath:b},J(this.props,!0)),{},{cx:h,cy:d});return T.createElement(fe,{className:ee("recharts-reference-dot",p)},t.renderDot(v,x),Ee.renderCallByParent(this.props,{x:h-o,y:d-o,width:2*o,height:2*o}))}}])})(T.Component);ka(Da,"displayName","ReferenceDot");ka(Da,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ka(Da,"renderDot",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):Y(e)?r=e(t):r=T.createElement(eh,zl({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Gl(){return Gl=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},Gl.apply(this,arguments)}function Tr(e){"@babel/helpers - typeof";return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(e)}function 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 Mg(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){Na(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 UR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dx(n.key),n)}}function zR(e,t,r){return t&&WR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HR(e,t,r){return t=na(t),GR(e,kx()?Reflect.construct(t,r||[],na(e).constructor):t.apply(e,r))}function GR(e,t){if(t&&(Tr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KR(e)}function KR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kx=function(){return!!e})()}function na(e){return na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},na(e)}function VR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kl(e,t)}function Kl(e,t){return Kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Kl(e,t)}function Na(e,t,r){return t=Dx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dx(e){var t=XR(e,"string");return Tr(t)=="symbol"?t:t+""}function XR(e,t){if(Tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var YR=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var h=th({x:f.scale,y:l.scale}),d={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(s,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(u,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(c,{position:"end"}):h.y.rangeMax};return nt(a,"discard")&&(!h.isInRange(d)||!h.isInRange(y))?null:xx(d,y)},qa=(function(e){function t(){return UR(this,t),HR(this,t,arguments)}return VR(t,e),zR(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;zt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=we(i),h=we(a),d=we(o),y=we(u),v=this.props.shape;if(!l&&!h&&!d&&!y&&!v)return null;var p=YR(l,h,d,y,this.props);if(!p&&!v)return null;var b=nt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return T.createElement(fe,{className:ee("recharts-reference-area",s)},t.renderRect(v,Mg(Mg({clipPath:b},J(this.props,!0)),p)),Ee.renderCallByParent(this.props,p))}}])})(T.Component);Na(qa,"displayName","ReferenceArea");Na(qa,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Na(qa,"renderRect",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):Y(e)?r=e(t):r=T.createElement(Qf,Gl({},t,{className:"recharts-reference-area-rect"})),r});function Nx(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 ZR(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return aR(n,r)}function JR(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 ia(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 QR(e,t){return Nx(e,t+1)}function ek(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:Nx(n,c)};var v=s,p,b=function(){return p===void 0&&(p=r(y,v)),p},x=y.coordinate,w=s===0||ia(e,x,b,f,u);w||(s=0,f=o,c+=1),w&&(f=x+e*(b()/2+i),s+=c)},h;c<=a.length;)if(h=l(),h)return h.v;return[]}function 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 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 Te(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){tk(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 tk(e,t,r){return t=rk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rk(e){var t=nk(e,"string");return Bn(t)=="symbol"?t:t+""}function nk(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)}function ik(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=function(h){var d=a[h],y,v=function(){return y===void 0&&(y=r(d,h)),y};if(h===o-1){var p=e*(d.coordinate+e*v()/2-s);a[h]=d=Te(Te({},d),{},{tickCoord:p>0?d.coordinate-p*e:d.coordinate})}else a[h]=d=Te(Te({},d),{},{tickCoord:d.coordinate});var b=ia(e,d.tickCoord,v,u,s);b&&(s=d.tickCoord-e*(v()/2+i),a[h]=Te(Te({},d),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function ak(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var f=n[u-1],l=r(f,u-1),h=e*(f.coordinate+e*l/2-c);o[u-1]=f=Te(Te({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var d=ia(e,f.tickCoord,function(){return l},s,c);d&&(c=f.tickCoord-e*(l/2+i),o[u-1]=Te(Te({},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 g=e*(w.coordinate-e*m()/2-s);o[x]=w=Te(Te({},w),{},{tickCoord:g<0?w.coordinate-g*e:w.coordinate})}else o[x]=w=Te(Te({},w),{},{tickCoord:w.coordinate});var _=ia(e,w.tickCoord,m,s,c);_&&(s=w.tickCoord+e*(m()/2+i),o[x]=Te(Te({},w),{},{isShow:!0}))},p=0;p<y;p++)v(p);return o}function ok(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(q(s)||Lr.isSsr)return QR(i,typeof s=="number"&&q(s)?s:0);var h=[],d=u==="top"||u==="bottom"?"width":"height",y=f&&d==="width"?tn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var m=Y(c)?c(w.value,O):w.value;return d==="width"?ZR(tn(m,{fontSize:t,letterSpacing:r}),y,l):tn(m,{fontSize:t,letterSpacing:r})[d]},p=i.length>=2?Ye(i[1].coordinate-i[0].coordinate):1,b=JR(a,p,d);return s==="equidistantPreserveStart"?ek(p,b,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?h=ak(p,b,v,i,o,s==="preserveStartEnd"):h=ik(p,b,v,i,o),h.filter(function(x){return x.isShow}))}var uk=["viewBox"],sk=["viewBox"],ck=["ticks"];function Er(e){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(e)}function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},or.apply(this,arguments)}function $g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$g(Object(r),!0).forEach(function(n){oh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qc(e,t){if(e==null)return{};var r=lk(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 lk(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 fk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ig(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 hk(e,t,r){return t&&Ig(e.prototype,t),r&&Ig(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pk(e,t,r){return t=aa(t),dk(e,qx()?Reflect.construct(t,r||[],aa(e).constructor):t.apply(e,r))}function dk(e,t){if(t&&(Er(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vk(e)}function vk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qx=function(){return!!e})()}function aa(e){return aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},aa(e)}function yk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vl(e,t)}function Vl(e,t){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vl(e,t)}function oh(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=mk(e,"string");return Er(t)=="symbol"?t:t+""}function mk(e,t){if(Er(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var La=(function(e){function t(r){var n;return fk(this,t),n=pk(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return yk(t,e),hk(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=qc(n,uk),u=this.props,s=u.viewBox,c=qc(u,sk);return!sr(a,s)||!sr(o,c)||!sr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,s=i.height,c=i.orientation,f=i.tickSize,l=i.mirror,h=i.tickMargin,d,y,v,p,b,x,w=l?-1:1,O=n.tickSize||f,m=q(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":d=y=n.coordinate,p=o+ +!l*s,v=p-w*O,x=v-w*h,b=m;break;case"left":v=p=n.coordinate,y=a+ +!l*u,d=y-w*O,b=d-w*h,x=m;break;case"right":v=p=n.coordinate,y=a+ +l*u,d=y+w*O,b=d+w*h,x=m;break;default:d=y=n.coordinate,p=o+ +l*s,v=p+w*O,x=v+w*h,b=m;break}return{line:{x1:d,y1:v,x2:y,y2:p},tick:{x:b,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.orientation,c=n.mirror,f=n.axisLine,l=be(be(be({},J(this.props,!1)),J(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var h=+(s==="top"&&!c||s==="bottom"&&c);l=be(be({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var d=+(s==="left"&&!c||s==="right"&&c);l=be(be({},l),{},{x1:i+d*o,y1:a,x2:i+d*o,y2:a+u})}return T.createElement("line",or({},l,{className:ee("recharts-cartesian-axis-line",ze(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,f=u.tick,l=u.tickFormatter,h=u.unit,d=ok(be(be({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),p=J(this.props,!1),b=J(f,!1),x=be(be({},p),{},{fill:"none"},J(s,!1)),w=d.map(function(O,m){var g=o.getTickLineCoord(O),_=g.line,S=g.tick,A=be(be(be(be({textAnchor:y,verticalAnchor:v},p),{},{stroke:"none",fill:c},b),S),{},{index:m,payload:O,visibleTicksCount:d.length,tickFormatter:l});return T.createElement(fe,or({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},di(o.props,O,m)),s&&T.createElement("line",or({},x,_,{className:ee("recharts-cartesian-axis-tick-line",ze(s,"className"))})),f&&t.renderTickItem(f,A,"".concat(Y(l)?l(O.value,m):O.value).concat(h||"")))});return T.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,s=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var l=this.props,h=l.ticks,d=qc(l,ck),y=h;return Y(s)&&(y=h&&h.length>0?s(this.props):s(d)),o<=0||u<=0||!y||!y.length?null:T.createElement(fe,{className:ee("recharts-cartesian-axis",c),ref:function(p){n.layerReference=p}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ee.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=ee(i.className,"recharts-cartesian-axis-tick-value");return T.isValidElement(n)?o=T.cloneElement(n,be(be({},i),{},{className:u})):Y(n)?o=n(be(be({},i),{},{className:u})):o=T.createElement(Ai,or({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(N.Component);oh(La,"displayName","CartesianAxis");oh(La,"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 gk=["layout","type","stroke","connectNulls","isRange","ref"],bk=["key"],Bx;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 Fx(e,t){if(e==null)return{};var r=xk(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 xk(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 Wt(){return Wt=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},Wt.apply(this,arguments)}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 wt(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){tt(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 wk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kg(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,Wx(n.key),n)}}function Ok(e,t,r){return t&&kg(e.prototype,t),r&&kg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _k(e,t,r){return t=oa(t),Sk(e,Ux()?Reflect.construct(t,r||[],oa(e).constructor):t.apply(e,r))}function Sk(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 Ak(e)}function Ak(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 oa(e){return oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oa(e)}function Pk(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&&Xl(e,t)}function Xl(e,t){return Xl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xl(e,t)}function tt(e,t,r){return t=Wx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wx(e){var t=Tk(e,"string");return jr(t)=="symbol"?t:t+""}function Tk(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 er=(function(e){function t(){var r;wk(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=_k(this,t,[].concat(i)),tt(r,"state",{isAnimationFinished:!0}),tt(r,"id",zn("recharts-area-")),tt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Y(o)&&o()}),tt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Y(o)&&o()}),r}return Pk(t,e),Ok(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var s=this.props,c=s.dot,f=s.points,l=s.dataKey,h=J(this.props,!1),d=J(c,!0),y=f.map(function(p,b){var x=wt(wt(wt({key:"dot-".concat(b),r:3},h),d),{},{index:b,cx:p.x,cy:p.y,dataKey:l,value:p.value,payload:p.payload,points:f});return t.renderDotItem(c,x)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return T.createElement(fe,Wt({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].x,c=o[o.length-1].x,f=n*Math.abs(s-c),l=St(o.map(function(h){return h.y||0}));return q(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(St(a.map(function(h){return h.y||0})),l)),q(l)?T.createElement("rect",{x:s<c?s:s-f,y:0,width:f,height:Math.floor(l+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].y,c=o[o.length-1].y,f=n*Math.abs(s-c),l=St(o.map(function(h){return h.x||0}));return q(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(St(a.map(function(h){return h.x||0})),l)),q(l)?T.createElement("rect",{x:0,y:s<c?s:s-f,width:l+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,s=u.layout,c=u.type,f=u.stroke,l=u.connectNulls,h=u.isRange;u.ref;var d=Fx(u,gk);return T.createElement(fe,{clipPath:a?"url(#clipPath-".concat(o,")"):null},T.createElement(an,Wt({},J(d,!0),{points:n,connectNulls:l,type:c,baseLine:i,layout:s,stroke:"none",className:"recharts-area-area"})),f!=="none"&&T.createElement(an,Wt({},J(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:n})),f!=="none"&&h&&T.createElement(an,Wt({},J(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.baseLine,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,h=o.animationEasing,d=o.animationId,y=this.state,v=y.prevPoints,p=y.prevBaseLine;return T.createElement(yt,{begin:f,duration:l,isActive:c,easing:h,from:{t:0},to:{t:1},key:"area-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var x=b.t;if(v){var w=v.length/u.length,O=u.map(function(S,A){var M=Math.floor(A*w);if(v[M]){var E=v[M],P=Ue(E.x,S.x),j=Ue(E.y,S.y);return wt(wt({},S),{},{x:P(x),y:j(x)})}return S}),m;if(q(s)&&typeof s=="number"){var g=Ue(p,s);m=g(x)}else if(Z(s)||Nr(s)){var _=Ue(p,0);m=_(x)}else m=s.map(function(S,A){var M=Math.floor(A*w);if(p[M]){var E=p[M],P=Ue(E.x,S.x),j=Ue(E.y,S.y);return wt(wt({},S),{},{x:P(x),y:j(x)})}return S});return a.renderAreaStatically(O,m,n,i)}return T.createElement(fe,null,T.createElement("defs",null,T.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),T.createElement(fe,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,s,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,s=a.isAnimationActive,c=this.state,f=c.prevPoints,l=c.prevBaseLine,h=c.totalLength;return s&&o&&o.length&&(!f&&h>0||!bn(f,o)||!bn(l,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.top,f=i.left,l=i.xAxis,h=i.yAxis,d=i.width,y=i.height,v=i.isAnimationActive,p=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,x=u.length===1,w=ee("recharts-area",s),O=l&&l.allowDataOverflow,m=h&&h.allowDataOverflow,g=O||m,_=Z(p)?this.id:p,S=(n=J(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=S.r,M=A===void 0?3:A,E=S.strokeWidth,P=E===void 0?2:E,j=aO(o)?o:{},$=j.clipDot,C=$===void 0?!0:$,R=M*2+P;return T.createElement(fe,{className:w},O||m?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(_)},T.createElement("rect",{x:O?f:f-d/2,y:m?c:c-y/2,width:O?d:d*2,height:m?y:y*2})),!C&&T.createElement("clipPath",{id:"clipPath-dots-".concat(_)},T.createElement("rect",{x:f-R/2,y:c-R/2,width:d+R,height:y+R}))):null,x?null:this.renderArea(g,_),(o||x)&&this.renderDots(g,C,_),(!v||b)&&Tt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(N.PureComponent);Bx=er;tt(er,"displayName","Area");tt(er,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Lr.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});tt(er,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(q(u)&&typeof u=="number")return u;var s=i==="horizontal"?n:r,c=s.scale.domain();if(s.type==="number"){var f=Math.max(c[0],c[1]),l=Math.min(c[0],c[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return u==="dataMin"?c[0]:u==="dataMax"?c[1]:c[0]});tt(er,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,s=e.dataKey,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,d=t.layout,y=c&&c.length,v=Bx.getBaseValue(t,r,n,i),p=d==="horizontal",b=!1,x=l.map(function(O,m){var g;y?g=c[f+m]:(g=qe(O,s),Array.isArray(g)?b=!0:g=[v,g]);var _=g[1]==null||y&&qe(O,s)==null;return p?{x:tm({axis:n,ticks:a,bandSize:u,entry:O,index:m}),y:_?null:i.scale(g[1]),value:g,payload:O}:{x:_?null:n.scale(g[1]),y:tm({axis:i,ticks:o,bandSize:u,entry:O,index:m}),value:g,payload:O}}),w;return y||b?w=x.map(function(O){var m=Array.isArray(O.value)?O.value[0]:null;return p?{x:O.x,y:m!=null&&O.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:O.y}}):w=p?i.scale(v):n.scale(v),wt({points:x,baseLine:w,layout:d,isRange:b},h)});tt(er,"renderDotItem",function(e,t){var r;if(T.isValidElement(e))r=T.cloneElement(e,t);else if(Y(e))r=e(t);else{var n=ee("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=Fx(t,bk);r=T.createElement(eh,Wt({},a,{key:i,className:n}))}return r});function Mr(e){"@babel/helpers - typeof";return Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mr(e)}function Ek(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jk(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,Gx(n.key),n)}}function Mk(e,t,r){return t&&jk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ck(e,t,r){return t=ua(t),$k(e,zx()?Reflect.construct(t,r||[],ua(e).constructor):t.apply(e,r))}function $k(e,t){if(t&&(Mr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ik(e)}function Ik(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zx=function(){return!!e})()}function ua(e){return ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ua(e)}function Rk(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 Hx(e,t,r){return t=Gx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gx(e){var t=kk(e,"string");return Mr(t)=="symbol"?t:t+""}function kk(e,t){if(Mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zl.apply(this,arguments)}function Dk(e){var t=e.xAxisId,r=jx(),n=Mx(),i=Tx(t);return i==null?null:N.createElement(La,Zl({},i,{className:ee("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Ut(o,!0)}}))}var uh=(function(e){function t(){return Ek(this,t),Ck(this,t,arguments)}return Rk(t,e),Mk(t,[{key:"render",value:function(){return N.createElement(Dk,this.props)}}])})(N.Component);Hx(uh,"displayName","XAxis");Hx(uh,"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 Cr(e){"@babel/helpers - typeof";return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cr(e)}function Nk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qk(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,Xx(n.key),n)}}function Lk(e,t,r){return t&&qk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bk(e,t,r){return t=sa(t),Fk(e,Kx()?Reflect.construct(t,r||[],sa(e).constructor):t.apply(e,r))}function Fk(e,t){if(t&&(Cr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uk(e)}function Uk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kx=function(){return!!e})()}function sa(e){return sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sa(e)}function Wk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jl(e,t)}function Jl(e,t){return Jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jl(e,t)}function Vx(e,t,r){return t=Xx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xx(e){var t=zk(e,"string");return Cr(t)=="symbol"?t:t+""}function zk(e,t){if(Cr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ql.apply(this,arguments)}var Hk=function(t){var r=t.yAxisId,n=jx(),i=Mx(),a=Ex(r);return a==null?null:N.createElement(La,Ql({},a,{className:ee("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return Ut(u,!0)}}))},sh=(function(e){function t(){return Nk(this,t),Bk(this,t,arguments)}return Wk(t,e),Lk(t,[{key:"render",value:function(){return N.createElement(Hk,this.props)}}])})(N.Component);Vx(sh,"displayName","YAxis");Vx(sh,"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 Dg(e){return Xk(e)||Vk(e)||Kk(e)||Gk()}function Gk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
59
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kk(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 Vk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xk(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}var tf=function(t,r,n,i,a){var o=Je(t,ah),u=Je(t,Da),s=[].concat(Dg(o),Dg(u)),c=Je(t,qa),f="".concat(i,"Id"),l=i[0],h=r;if(s.length&&(h=s.reduce(function(v,p){if(p.props[f]===n&&nt(p.props,"extendDomain")&&q(p.props[l])){var b=p.props[l];return[Math.min(v[0],b),Math.max(v[1],b)]}return v},h)),c.length){var d="".concat(l,"1"),y="".concat(l,"2");h=c.reduce(function(v,p){if(p.props[f]===n&&nt(p.props,"extendDomain")&&q(p.props[d])&&q(p.props[y])){var b=p.props[d],x=p.props[y];return[Math.min(v[0],b,x),Math.max(v[1],b,x)]}return v},h)}return a&&a.length&&(h=a.reduce(function(v,p){return q(p)?[Math.min(v[0],p),Math.max(v[1],p)]:v},h)),h},Lc={exports:{}},Ng;function Yk(){return Ng||(Ng=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function a(s,c,f,l,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var d=new i(f,l||s,h),y=r?r+c:c;return s._events[y]?s._events[y].fn?s._events[y]=[s._events[y],d]:s._events[y].push(d):(s._events[y]=d,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],f,l;if(this._eventsCount===0)return c;for(l in f=this._events)t.call(f,l)&&c.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},u.prototype.listeners=function(c){var f=r?r+c:c,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var h=0,d=l.length,y=new Array(d);h<d;h++)y[h]=l[h].fn;return y},u.prototype.listenerCount=function(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(c,f,l,h,d,y){var v=r?r+c:c;if(!this._events[v])return!1;var p=this._events[v],b=arguments.length,x,w;if(p.fn){switch(p.once&&this.removeListener(c,p.fn,void 0,!0),b){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,f),!0;case 3:return p.fn.call(p.context,f,l),!0;case 4:return p.fn.call(p.context,f,l,h),!0;case 5:return p.fn.call(p.context,f,l,h,d),!0;case 6:return p.fn.call(p.context,f,l,h,d,y),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];p.fn.apply(p.context,x)}else{var O=p.length,m;for(w=0;w<O;w++)switch(p[w].once&&this.removeListener(c,p[w].fn,void 0,!0),b){case 1:p[w].fn.call(p[w].context);break;case 2:p[w].fn.call(p[w].context,f);break;case 3:p[w].fn.call(p[w].context,f,l);break;case 4:p[w].fn.call(p[w].context,f,l,h);break;default:if(!x)for(m=1,x=new Array(b-1);m<b;m++)x[m-1]=arguments[m];p[w].fn.apply(p[w].context,x)}}return!0},u.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,h){var d=r?r+c:c;if(!this._events[d])return this;if(!f)return o(this,d),this;var y=this._events[d];if(y.fn)y.fn===f&&(!h||y.once)&&(!l||y.context===l)&&o(this,d);else{for(var v=0,p=[],b=y.length;v<b;v++)(y[v].fn!==f||h&&!y[v].once||l&&y[v].context!==l)&&p.push(y[v]);p.length?this._events[d]=p.length===1?p[0]:p:o(this,d)}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})(Lc)),Lc.exports}var Zk=Yk();const Jk=ue(Zk);var Bc=new Jk,Fc="recharts.syncMouseEvents";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 Qk(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,Yx(n.key),n)}}function tD(e,t,r){return t&&eD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uc(e,t,r){return t=Yx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yx(e){var t=rD(e,"string");return Fn(t)=="symbol"?t:t+""}function rD(e,t){if(Fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nD=(function(){function e(){Qk(this,e),Uc(this,"activeIndex",0),Uc(this,"coordinateList",[]),Uc(this,"layout","horizontal")}return tD(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,s=r.layout,c=s===void 0?null:s,f=r.offset,l=f===void 0?null:f,h=r.mouseHandlerCallback,d=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=d??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,s=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+s+c,h=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:h})}}}])})();function iD(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&q(n)&&q(i))return!0}return!1}function aD(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 Zx(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Pe(t,r,n,i),u=Pe(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function oD(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,s=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,h=Pe(u,s,c,l),d=Pe(u,s,f,l);n=h.x,i=h.y,a=d.x,o=d.y}else return Zx(t);return[{x:n,y:i},{x:a,y:o}]}function Un(e){"@babel/helpers - typeof";return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Un(e)}function 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 li(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){uD(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 uD(e,t,r){return t=sD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sD(e){var t=cD(e,"string");return Un(t)=="symbol"?t:t+""}function cD(e,t){if(Un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lD(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,h=e.chartName,d=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!d||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,v=an;if(h==="ScatterChart")y=o,v=P$;else if(h==="BarChart")y=aD(l,o,s,f),v=Qf;else if(l==="radial"){var p=Zx(o),b=p.cx,x=p.cy,w=p.radius,O=p.startAngle,m=p.endAngle;y={cx:b,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=nx}else y={points:oD(l,o,s)},v=an;var g=li(li(li(li({stroke:"#ccc",pointerEvents:"none"},s),y),J(d,!1)),{},{payload:u,payloadIndex:c,className:ee("recharts-tooltip-cursor",d.className)});return N.isValidElement(d)?N.cloneElement(d,g):N.createElement(v,g)}var fD=["item"],hD=["children","className","width","height","style","compact","title","desc"];function $r(e){"@babel/helpers - typeof";return $r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$r(e)}function ur(){return ur=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},ur.apply(this,arguments)}function Lg(e,t){return vD(e)||dD(e,t)||Qx(e,t)||pD()}function pD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
60
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dD(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 vD(e){if(Array.isArray(e))return e}function Bg(e,t){if(e==null)return{};var r=yD(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 yD(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 gD(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,ew(n.key),n)}}function bD(e,t,r){return t&&gD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xD(e,t,r){return t=ca(t),wD(e,Jx()?Reflect.construct(t,r||[],ca(e).constructor):t.apply(e,r))}function wD(e,t){if(t&&($r(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OD(e)}function OD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jx=function(){return!!e})()}function ca(e){return ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ca(e)}function _D(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&&rf(e,t)}function rf(e,t){return rf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rf(e,t)}function Ir(e){return PD(e)||AD(e)||Qx(e)||SD()}function SD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
61
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qx(e,t){if(e){if(typeof e=="string")return nf(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 nf(e,t)}}function AD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PD(e){if(Array.isArray(e))return nf(e)}function nf(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 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 I(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){H(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 H(e,t,r){return t=ew(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ew(e){var t=TD(e,"string");return $r(t)=="symbol"?t:t+""}function TD(e,t){if($r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ED={xAxis:["bottom","top"],yAxis:["left","right"]},jD={width:"100%",height:"100%"},tw={x:0,y:0};function fi(e){return e}var MD=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},CD=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 I(I(I({},i),Pe(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return I(I(I({},i),Pe(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return tw},Ba=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(Ir(u),Ir(c)):u},[]);return o.length>0?o:t&&t.length&&q(i)&&q(a)?t.slice(i,a+1):[]};function rw(e){return e==="number"?[0,"auto"]:void 0}var af=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Ba(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var f,l=(f=c.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var d=l===void 0?u:l;h=hi(d,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Ir(s),[Q0(c,h)]):s},[])},Ug=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=MD(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=nj(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,h=af(t,r,f,l),d=CD(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:d}}return null},$D=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,d=V0(f,a);return n.reduce(function(y,v){var p,b=v.type.defaultProps!==void 0?I(I({},v.type.defaultProps),v.props):v.props,x=b.type,w=b.dataKey,O=b.allowDataOverflow,m=b.allowDuplicatedCategory,g=b.scale,_=b.ticks,S=b.includeHidden,A=b[o];if(y[A])return y;var M=Ba(t.data,{graphicalItems:i.filter(function(U){var K,se=o in U.props?U.props[o]:(K=U.type.defaultProps)===null||K===void 0?void 0:K[o];return se===A}),dataStartIndex:s,dataEndIndex:c}),E=M.length,P,j,$;iD(b.domain,O,x)&&(P=_l(b.domain,null,O),d&&(x==="number"||g!=="auto")&&($=nn(M,w,"category")));var C=rw(x);if(!P||P.length===0){var R,D=(R=b.domain)!==null&&R!==void 0?R:C;if(w){if(P=nn(M,w,x),x==="category"&&d){var L=Xw(P);m&&L?(j=P,P=Yi(0,E)):m||(P=am(D,P,v).reduce(function(U,K){return U.indexOf(K)>=0?U:[].concat(Ir(U),[K])},[]))}else if(x==="category")m?P=P.filter(function(U){return U!==""&&!Z(U)}):P=am(D,P,v).reduce(function(U,K){return U.indexOf(K)>=0||K===""||Z(K)?U:[].concat(Ir(U),[K])},[]);else if(x==="number"){var B=sj(M,i.filter(function(U){var K,se,de=o in U.props?U.props[o]:(K=U.type.defaultProps)===null||K===void 0?void 0:K[o],Re="hide"in U.props?U.props.hide:(se=U.type.defaultProps)===null||se===void 0?void 0:se.hide;return de===A&&(S||!Re)}),w,a,f);B&&(P=B)}d&&(x==="number"||g!=="auto")&&($=nn(M,w,"category"))}else d?P=Yi(0,E):u&&u[A]&&u[A].hasStack&&x==="number"?P=h==="expand"?[0,1]:J0(u[A].stackGroups,s,c):P=K0(M,i.filter(function(U){var K=o in U.props?U.props[o]:U.type.defaultProps[o],se="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return K===A&&(S||!se)}),x,f,!0);if(x==="number")P=tf(l,P,A,a,_),D&&(P=_l(D,P,O));else if(x==="category"&&D){var z=D,G=P.every(function(U){return z.indexOf(U)>=0});G&&(P=z)}}return I(I({},y),{},H({},A,I(I({},b),{},{axisType:a,domain:P,categoricalDomain:$,duplicateDomain:j,originalDomain:(p=b.domain)!==null&&p!==void 0?p:C,isCategorical:d,layout:f})))},{})},ID=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,h=Ba(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),d=h.length,y=V0(f,a),v=-1;return n.reduce(function(p,b){var x=b.type.defaultProps!==void 0?I(I({},b.type.defaultProps),b.props):b.props,w=x[o],O=rw("number");if(!p[w]){v++;var m;return y?m=Yi(0,d):u&&u[w]&&u[w].hasStack?(m=J0(u[w].stackGroups,s,c),m=tf(l,m,w,a)):(m=_l(O,K0(h,n.filter(function(g){var _,S,A=o in g.props?g.props[o]:(_=g.type.defaultProps)===null||_===void 0?void 0:_[o],M="hide"in g.props?g.props.hide:(S=g.type.defaultProps)===null||S===void 0?void 0:S.hide;return A===w&&!M}),"number",f),i.defaultProps.allowDataOverflow),m=tf(l,m,w,a)),I(I({},p),{},H({},w,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:ze(ED,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return p},{})},RD=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=Je(f,a),d={};return h&&h.length?d=$D(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(d=ID(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),d},kD=function(t){var r=_t(t),n=Ut(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Pf(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Bi(r,n)}},Wg=function(t){var r=t.children,n=t.defaultShowTooltip,i=De(r,_r),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}},DD=function(t){return!t||!t.length?!1:t.some(function(r){var n=ft(r&&r.type);return n&&n.indexOf("Bar")>=0})},zg=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"}},ND=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,f=n.height,l=n.children,h=n.margin||{},d=De(l,_r),y=De(l,cr),v=Object.keys(s).reduce(function(m,g){var _=s[g],S=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},H({},S,m[S]+_.width)):m},{left:h.left||0,right:h.right||0}),p=Object.keys(o).reduce(function(m,g){var _=o[g],S=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},H({},S,ze(m,"".concat(S))+_.height)):m},{top:h.top||0,bottom:h.bottom||0}),b=I(I({},p),v),x=b.bottom;d&&(b.bottom+=d.props.height||_r.defaultProps.height),y&&r&&(b=oj(b,i,n,r));var w=c-b.left-b.right,O=f-b.top-b.bottom;return I(I({brushBottom:x},b),{},{width:Math.max(w,0),height:Math.max(O,0)})},qD=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},LD=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,s=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,h=function(b,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,g=x.updateId,_=x.dataStartIndex,S=x.dataEndIndex,A=b.barSize,M=b.layout,E=b.barGap,P=b.barCategoryGap,j=b.maxBarSize,$=zg(M),C=$.numericAxisName,R=$.cateAxisName,D=DD(w),L=[];return w.forEach(function(B,z){var G=Ba(b.data,{graphicalItems:[B],dataStartIndex:_,dataEndIndex:S}),U=B.type.defaultProps!==void 0?I(I({},B.type.defaultProps),B.props):B.props,K=U.dataKey,se=U.maxBarSize,de=U["".concat(C,"Id")],Re=U["".concat(R,"Id")],It={},Me=s.reduce(function(Rt,kt){var Fa=x["".concat(kt.axisType,"Map")],ch=U["".concat(kt.axisType,"Id")];Fa&&Fa[ch]||kt.axisType==="zAxis"||Kt(!1);var lh=Fa[ch];return I(I({},Rt),{},H(H({},kt.axisType,lh),"".concat(kt.axisType,"Ticks"),Ut(lh)))},It),F=Me[R],V=Me["".concat(R,"Ticks")],X=O&&O[de]&&O[de].hasStack&&mj(B,O[de].stackGroups),k=ft(B.type).indexOf("Bar")>=0,he=Bi(F,V),Q=[],me=D&&ij({barSize:A,stackGroups:O,totalSize:qD(Me,R)});if(k){var ge,Ce,xt=Z(se)?j:se,tr=(ge=(Ce=Bi(F,V,!0))!==null&&Ce!==void 0?Ce:xt)!==null&&ge!==void 0?ge:0;Q=aj({barGap:E,barCategoryGap:P,bandSize:tr!==he?tr:he,sizeList:me[Re],maxBarSize:xt}),tr!==he&&(Q=Q.map(function(Rt){return I(I({},Rt),{},{position:I(I({},Rt.position),{},{offset:Rt.position.offset-tr/2})})}))}var Zn=B&&B.type&&B.type.getComposedData;Zn&&L.push({props:I(I({},Zn(I(I({},Me),{},{displayedData:G,props:b,dataKey:K,item:B,bandSize:he,barPosition:Q,offset:m,stackedData:X,layout:M,dataStartIndex:_,dataEndIndex:S}))),{},H(H(H({key:B.key||"item-".concat(z)},C,Me[C]),R,Me[R]),"animationId",g)),childIndex:sO(B,b.children),item:B})}),L},d=function(b,x){var w=b.props,O=b.dataStartIndex,m=b.dataEndIndex,g=b.updateId;if(!bp({props:w}))return null;var _=w.children,S=w.layout,A=w.stackOffset,M=w.data,E=w.reverseStackOrder,P=zg(S),j=P.numericAxisName,$=P.cateAxisName,C=Je(_,n),R=vj(M,C,"".concat(j,"Id"),"".concat($,"Id"),A,E),D=s.reduce(function(U,K){var se="".concat(K.axisType,"Map");return I(I({},U),{},H({},se,RD(w,I(I({},K),{},{graphicalItems:C,stackGroups:K.axisType===j&&R,dataStartIndex:O,dataEndIndex:m}))))},{}),L=ND(I(I({},D),{},{props:w,graphicalItems:C}),x?.legendBBox);Object.keys(D).forEach(function(U){D[U]=f(w,D[U],L,U.replace("Map",""),r)});var B=D["".concat($,"Map")],z=kD(B),G=h(w,I(I({},D),{},{dataStartIndex:O,dataEndIndex:m,updateId:g,graphicalItems:C,stackGroups:R,offset:L}));return I(I({formattedGraphicalItems:G,graphicalItems:C,offset:L,stackGroups:R},z),D)},y=(function(p){function b(x){var w,O,m;return mD(this,b),m=xD(this,b,[x]),H(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),H(m,"accessibilityManager",new nD),H(m,"handleLegendBBoxUpdate",function(g){if(g){var _=m.state,S=_.dataStartIndex,A=_.dataEndIndex,M=_.updateId;m.setState(I({legendBBox:g},d({props:m.props,dataStartIndex:S,dataEndIndex:A,updateId:M},I(I({},m.state),{},{legendBBox:g}))))}}),H(m,"handleReceiveSyncEvent",function(g,_,S){if(m.props.syncId===g){if(S===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),H(m,"handleBrushChange",function(g){var _=g.startIndex,S=g.endIndex;if(_!==m.state.dataStartIndex||S!==m.state.dataEndIndex){var A=m.state.updateId;m.setState(function(){return I({dataStartIndex:_,dataEndIndex:S},d({props:m.props,dataStartIndex:_,dataEndIndex:S,updateId:A},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:S})}}),H(m,"handleMouseEnter",function(g){var _=m.getMouseInfo(g);if(_){var S=I(I({},_),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var A=m.props.onMouseEnter;Y(A)&&A(S,g)}}),H(m,"triggeredAfterMouseMove",function(g){var _=m.getMouseInfo(g),S=_?I(I({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var A=m.props.onMouseMove;Y(A)&&A(S,g)}),H(m,"handleItemMouseEnter",function(g){m.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),H(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),H(m,"handleMouseMove",function(g){g.persist(),m.throttleTriggeredAfterMouseMove(g)}),H(m,"handleMouseLeave",function(g){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var S=m.props.onMouseLeave;Y(S)&&S(_,g)}),H(m,"handleOuterEvent",function(g){var _=uO(g),S=ze(m.props,"".concat(_));if(_&&Y(S)){var A,M;/.*touch.*/i.test(_)?M=m.getMouseInfo(g.changedTouches[0]):M=m.getMouseInfo(g),S((A=M)!==null&&A!==void 0?A:{},g)}}),H(m,"handleClick",function(g){var _=m.getMouseInfo(g);if(_){var S=I(I({},_),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var A=m.props.onClick;Y(A)&&A(S,g)}}),H(m,"handleMouseDown",function(g){var _=m.props.onMouseDown;if(Y(_)){var S=m.getMouseInfo(g);_(S,g)}}),H(m,"handleMouseUp",function(g){var _=m.props.onMouseUp;if(Y(_)){var S=m.getMouseInfo(g);_(S,g)}}),H(m,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),H(m,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseDown(g.changedTouches[0])}),H(m,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseUp(g.changedTouches[0])}),H(m,"handleDoubleClick",function(g){var _=m.props.onDoubleClick;if(Y(_)){var S=m.getMouseInfo(g);_(S,g)}}),H(m,"handleContextMenu",function(g){var _=m.props.onContextMenu;if(Y(_)){var S=m.getMouseInfo(g);_(S,g)}}),H(m,"triggerSyncEvent",function(g){m.props.syncId!==void 0&&Bc.emit(Fc,m.props.syncId,g,m.eventEmitterSymbol)}),H(m,"applySyncEvent",function(g){var _=m.props,S=_.layout,A=_.syncMethod,M=m.state.updateId,E=g.dataStartIndex,P=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)m.setState(I({dataStartIndex:E,dataEndIndex:P},d({props:m.props,dataStartIndex:E,dataEndIndex:P,updateId:M},m.state)));else if(g.activeTooltipIndex!==void 0){var j=g.chartX,$=g.chartY,C=g.activeTooltipIndex,R=m.state,D=R.offset,L=R.tooltipTicks;if(!D)return;if(typeof A=="function")C=A(L,g);else if(A==="value"){C=-1;for(var B=0;B<L.length;B++)if(L[B].value===g.activeLabel){C=B;break}}var z=I(I({},D),{},{x:D.left,y:D.top}),G=Math.min(j,z.x+z.width),U=Math.min($,z.y+z.height),K=L[C]&&L[C].value,se=af(m.state,m.props.data,C),de=L[C]?{x:S==="horizontal"?L[C].coordinate:G,y:S==="horizontal"?U:L[C].coordinate}:tw;m.setState(I(I({},g),{},{activeLabel:K,activeCoordinate:de,activePayload:se,activeTooltipIndex:C}))}else m.setState(g)}),H(m,"renderCursor",function(g){var _,S=m.state,A=S.isTooltipActive,M=S.activeCoordinate,E=S.activePayload,P=S.offset,j=S.activeTooltipIndex,$=S.tooltipAxisBandSize,C=m.getTooltipEventType(),R=(_=g.props.active)!==null&&_!==void 0?_:A,D=m.props.layout,L=g.key||"_recharts-cursor";return T.createElement(lD,{key:L,activeCoordinate:M,activePayload:E,activeTooltipIndex:j,chartName:r,element:g,isActive:R,layout:D,offset:P,tooltipAxisBandSize:$,tooltipEventType:C})}),H(m,"renderPolarAxis",function(g,_,S){var A=ze(g,"type.axisType"),M=ze(m.state,"".concat(A,"Map")),E=g.type.defaultProps,P=E!==void 0?I(I({},E),g.props):g.props,j=M&&M[P["".concat(A,"Id")]];return N.cloneElement(g,I(I({},j),{},{className:ee(A,j.className),key:g.key||"".concat(_,"-").concat(S),ticks:Ut(j,!0)}))}),H(m,"renderPolarGrid",function(g){var _=g.props,S=_.radialLines,A=_.polarAngles,M=_.polarRadius,E=m.state,P=E.radiusAxisMap,j=E.angleAxisMap,$=_t(P),C=_t(j),R=C.cx,D=C.cy,L=C.innerRadius,B=C.outerRadius;return N.cloneElement(g,{polarAngles:Array.isArray(A)?A:Ut(C,!0).map(function(z){return z.coordinate}),polarRadius:Array.isArray(M)?M:Ut($,!0).map(function(z){return z.coordinate}),cx:R,cy:D,innerRadius:L,outerRadius:B,key:g.key||"polar-grid",radialLines:S})}),H(m,"renderLegend",function(){var g=m.state.formattedGraphicalItems,_=m.props,S=_.children,A=_.width,M=_.height,E=m.props.margin||{},P=A-(E.left||0)-(E.right||0),j=H0({children:S,formattedGraphicalItems:g,legendWidth:P,legendContent:c});if(!j)return null;var $=j.item,C=Bg(j,fD);return N.cloneElement($,I(I({},C),{},{chartWidth:A,chartHeight:M,margin:E,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),H(m,"renderTooltip",function(){var g,_=m.props,S=_.children,A=_.accessibilityLayer,M=De(S,ut);if(!M)return null;var E=m.state,P=E.isTooltipActive,j=E.activeCoordinate,$=E.activePayload,C=E.activeLabel,R=E.offset,D=(g=M.props.active)!==null&&g!==void 0?g:P;return N.cloneElement(M,{viewBox:I(I({},R),{},{x:R.left,y:R.top}),active:D,label:C,payload:D?$:[],coordinate:j,accessibilityLayer:A})}),H(m,"renderBrush",function(g){var _=m.props,S=_.margin,A=_.data,M=m.state,E=M.offset,P=M.dataStartIndex,j=M.dataEndIndex,$=M.updateId;return N.cloneElement(g,{key:g.key||"_recharts-brush",onChange:oi(m.handleBrushChange,g.props.onChange),data:A,x:q(g.props.x)?g.props.x:E.left,y:q(g.props.y)?g.props.y:E.top+E.height+E.brushBottom-(S.bottom||0),width:q(g.props.width)?g.props.width:E.width,startIndex:P,endIndex:j,updateId:"brush-".concat($)})}),H(m,"renderReferenceElement",function(g,_,S){if(!g)return null;var A=m,M=A.clipPathId,E=m.state,P=E.xAxisMap,j=E.yAxisMap,$=E.offset,C=g.type.defaultProps||{},R=g.props,D=R.xAxisId,L=D===void 0?C.xAxisId:D,B=R.yAxisId,z=B===void 0?C.yAxisId:B;return N.cloneElement(g,{key:g.key||"".concat(_,"-").concat(S),xAxis:P[L],yAxis:j[z],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:M})}),H(m,"renderActivePoints",function(g){var _=g.item,S=g.activePoint,A=g.basePoint,M=g.childIndex,E=g.isRange,P=[],j=_.props.key,$=_.item.type.defaultProps!==void 0?I(I({},_.item.type.defaultProps),_.item.props):_.item.props,C=$.activeDot,R=$.dataKey,D=I(I({index:M,dataKey:R,cx:S.x,cy:S.y,r:4,fill:Jf(_.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},J(C,!1)),pi(C));return P.push(b.renderActiveDot(C,D,"".concat(j,"-activePoint-").concat(M))),A?P.push(b.renderActiveDot(C,I(I({},D),{},{cx:A.x,cy:A.y}),"".concat(j,"-basePoint-").concat(M))):E&&P.push(null),P}),H(m,"renderGraphicChild",function(g,_,S){var A=m.filterFormatItem(g,_,S);if(!A)return null;var M=m.getTooltipEventType(),E=m.state,P=E.isTooltipActive,j=E.tooltipAxis,$=E.activeTooltipIndex,C=E.activeLabel,R=m.props.children,D=De(R,ut),L=A.props,B=L.points,z=L.isRange,G=L.baseLine,U=A.item.type.defaultProps!==void 0?I(I({},A.item.type.defaultProps),A.item.props):A.item.props,K=U.activeDot,se=U.hide,de=U.activeBar,Re=U.activeShape,It=!!(!se&&P&&D&&(K||de||Re)),Me={};M!=="axis"&&D&&D.props.trigger==="click"?Me={onClick:oi(m.handleItemMouseEnter,g.props.onClick)}:M!=="axis"&&(Me={onMouseLeave:oi(m.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:oi(m.handleItemMouseEnter,g.props.onMouseEnter)});var F=N.cloneElement(g,I(I({},A.props),Me));function V(kt){return typeof j.dataKey=="function"?j.dataKey(kt.payload):null}if(It)if($>=0){var X,k;if(j.dataKey&&!j.allowDuplicatedCategory){var he=typeof j.dataKey=="function"?V:"payload.".concat(j.dataKey.toString());X=hi(B,he,C),k=z&&G&&hi(G,he,C)}else X=B?.[$],k=z&&G&&G[$];if(Re||de){var Q=g.props.activeIndex!==void 0?g.props.activeIndex:$;return[N.cloneElement(g,I(I(I({},A.props),Me),{},{activeIndex:Q})),null,null]}if(!Z(X))return[F].concat(Ir(m.renderActivePoints({item:A,activePoint:X,basePoint:k,childIndex:$,isRange:z})))}else{var me,ge=(me=m.getItemByXY(m.state.activeCoordinate))!==null&&me!==void 0?me:{graphicalItem:F},Ce=ge.graphicalItem,xt=Ce.item,tr=xt===void 0?g:xt,Zn=Ce.childIndex,Rt=I(I(I({},A.props),Me),{},{activeIndex:Zn});return[N.cloneElement(tr,Rt),null,null]}return z?[F,null,null]:[F,null]}),H(m,"renderCustomized",function(g,_,S){return N.cloneElement(g,I(I({key:"recharts-customized-".concat(S)},m.props),m.state))}),H(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:zn("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=Hb(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return _D(b,p),bD(b,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,m=w.data,g=w.height,_=w.layout,S=De(O,ut);if(S){var A=S.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,E=af(this.state,m,A,M),P=this.state.tooltipTicks[A].coordinate,j=(this.state.offset.top+g)/2,$=_==="horizontal",C=$?{x:P,y:j}:{y:P,x:j},R=this.state.formattedGraphicalItems.find(function(L){var B=L.item;return B.type.name==="Scatter"});R&&(C=I(I({},C),R.props.points[A].tooltipPosition),E=R.props.points[A].tooltipPayload);var D={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:M,activePayload:E,activeCoordinate:C};this.setState(D),this.renderCursor(S),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var m,g;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0}})}return null}},{key:"componentDidUpdate",value:function(w){Hc([De(w.children,ut)],[De(this.props.children,ut)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=De(this.props.children,ut);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(),g=VS(m),_={chartX:Math.round(w.pageX-g.left),chartY:Math.round(w.pageY-g.top)},S=m.width/O.offsetWidth||1,A=this.inRange(_.chartX,_.chartY,S);if(!A)return null;var M=this.state,E=M.xAxisMap,P=M.yAxisMap,j=this.getTooltipEventType(),$=Ug(this.state,this.props.data,this.props.layout,A);if(j!=="axis"&&E&&P){var C=_t(E).scale,R=_t(P).scale,D=C&&C.invert?C.invert(_.chartX):null,L=R&&R.invert?R.invert(_.chartY):null;return I(I({},_),{},{xValue:D,yValue:L},$)}return $?I(I({},_),$):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,_=w/m,S=O/m;if(g==="horizontal"||g==="vertical"){var A=this.state.offset,M=_>=A.left&&_<=A.left+A.width&&S>=A.top&&S<=A.top+A.height;return M?{x:_,y:S}:null}var E=this.state,P=E.angleAxisMap,j=E.radiusAxisMap;if(P&&j){var $=_t(P);return sm({x:_,y:S},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=De(w,ut),g={};m&&O==="axis"&&(m.props.trigger==="click"?g={onClick:this.handleClick}:g={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var _=pi(this.props,this.handleOuterEvent);return I(I({},_),g)}},{key:"addListener",value:function(){Bc.on(Fc,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Bc.removeListener(Fc,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var g=this.state.formattedGraphicalItems,_=0,S=g.length;_<S;_++){var A=g[_];if(A.item===w||A.props.key===w.key||O===ft(A.item.type)&&m===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,g=O.top,_=O.height,S=O.width;return T.createElement("defs",null,T.createElement("clipPath",{id:w},T.createElement("rect",{x:m,y:g,height:_,width:S})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var g=Lg(m,2),_=g[0],S=g[1];return I(I({},O),{},H({},_,S.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var g=Lg(m,2),_=g[0],S=g[1];return I(I({},O),{},H({},_,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,m=O.formattedGraphicalItems,g=O.activeItem;if(m&&m.length)for(var _=0,S=m.length;_<S;_++){var A=m[_],M=A.props,E=A.item,P=E.type.defaultProps!==void 0?I(I({},E.type.defaultProps),E.props):E.props,j=ft(E.type);if(j==="Bar"){var $=(M.data||[]).find(function(L){return y$(w,L)});if($)return{graphicalItem:A,payload:$}}else if(j==="RadialBar"){var C=(M.data||[]).find(function(L){return sm(w,L)});if(C)return{graphicalItem:A,payload:C}}else if($a(A,g)||Ia(A,g)||Dn(A,g)){var R=oI({graphicalItem:A,activeTooltipItem:g,itemData:P.data}),D=P.activeIndex===void 0?R:P.activeIndex;return{graphicalItem:I(I({},A),{},{childIndex:D}),payload:Dn(A,g)?P.data[R]:A.props.data[R]}}}return null}},{key:"render",value:function(){var w=this;if(!bp(this))return null;var O=this.props,m=O.children,g=O.className,_=O.width,S=O.height,A=O.style,M=O.compact,E=O.title,P=O.desc,j=Bg(O,hD),$=J(j,!1);if(M)return T.createElement(_g,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement(Kc,ur({},$,{width:_,height:S,title:E,desc:P}),this.renderClipPath(),wp(m,this.renderMap)));if(this.props.accessibilityLayer){var C,R;$.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,$.role=(R=this.props.role)!==null&&R!==void 0?R:"application",$.onKeyDown=function(L){w.accessibilityManager.keyboardEvent(L)},$.onFocus=function(){w.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return T.createElement(_g,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement("div",ur({className:ee("recharts-wrapper",g),style:I({position:"relative",cursor:"default",width:_,height:S},A)},D,{ref:function(B){w.container=B}}),T.createElement(Kc,ur({},$,{width:_,height:S,title:E,desc:P,style:jD}),this.renderClipPath(),wp(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(N.Component);H(y,"displayName",r),H(y,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),H(y,"getDerivedStateFromProps",function(p,b){var x=p.dataKey,w=p.data,O=p.children,m=p.width,g=p.height,_=p.layout,S=p.stackOffset,A=p.margin,M=b.dataStartIndex,E=b.dataEndIndex;if(b.updateId===void 0){var P=Wg(p);return I(I(I({},P),{},{updateId:0},d(I(I({props:p},P),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:g,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(x!==b.prevDataKey||w!==b.prevData||m!==b.prevWidth||g!==b.prevHeight||_!==b.prevLayout||S!==b.prevStackOffset||!sr(A,b.prevMargin)){var j=Wg(p),$={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},C=I(I({},Ug(b,w,_)),{},{updateId:b.updateId+1}),R=I(I(I({},j),$),C);return I(I(I({},R),d(I({props:p},R),b)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:g,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(!Hc(O,b.prevChildren)){var D,L,B,z,G=De(O,_r),U=G&&(D=(L=G.props)===null||L===void 0?void 0:L.startIndex)!==null&&D!==void 0?D:M,K=G&&(B=(z=G.props)===null||z===void 0?void 0:z.endIndex)!==null&&B!==void 0?B:E,se=U!==M||K!==E,de=!Z(w),Re=de&&!se?b.updateId:b.updateId+1;return I(I({updateId:Re},d(I(I({props:p},b),{},{updateId:Re,dataStartIndex:U,dataEndIndex:K}),b)),{},{prevChildren:O,dataStartIndex:U,dataEndIndex:K})}return null}),H(y,"renderActiveDot",function(p,b,x){var w;return N.isValidElement(p)?w=N.cloneElement(p,b):Y(p)?w=p(b):w=T.createElement(eh,b),T.createElement(fe,{className:"recharts-active-dot",key:x},w)});var v=N.forwardRef(function(b,x){return T.createElement(y,ur({},b,{ref:x}))});return v.displayName=y.displayName,v},eN=LD({chartName:"AreaChart",GraphicalChild:er,axisComponents:[{axisType:"xAxis",AxisComp:uh},{axisType:"yAxis",AxisComp:sh}],formatAxisMap:rR});function BD(e){return e.includes(",")||e.includes('"')||e.includes(`
62
- `)?`"${e.replace(/"/g,'""')}"`:e}function Rr(e){return e.map(t=>BD(String(t))).join(",")}function tN(e){const t=Rr(["date","messageCount","sessionCount","toolCallCount"]),r=e.dailyActivity.map(n=>Rr([n.date,n.messageCount,n.sessionCount,n.toolCallCount]));return[t,...r].join(`
63
- `)}function rN(e){const t=Rr(["date","model","tokens"]),r=[];for(const n of e.dailyModelTokens)for(const[i,a]of Object.entries(n.tokensByModel))r.push(Rr([n.date,i,a]));return[t,...r].join(`
64
- `)}function nN(e){const t=Rr(["model","inputTokens","outputTokens","cacheReadInputTokens","cacheCreationInputTokens"]),r=Object.entries(e.modelUsage).map(([n,i])=>Rr([n,i.inputTokens,i.outputTokens,i.cacheReadInputTokens,i.cacheCreationInputTokens]));return[t,...r].join(`
65
- `)}function iN(e){return JSON.stringify(e,null,2)}function aN(e){return JSON.stringify(e,null,2)}function oN(e,t,r){const n=new Blob([e],{type:r}),i=URL.createObjectURL(n),a=document.createElement("a");a.href=i,a.download=t;try{document.body.appendChild(a),a.click()}finally{document.body.removeChild(a),setTimeout(()=>URL.revokeObjectURL(i),100)}}function uN({options:e}){const[t,r]=N.useState(!1),n=N.useRef(null);return N.useEffect(()=>{function i(a){n.current&&!n.current.contains(a.target)&&r(!1)}return t&&document.addEventListener("mousedown",i),()=>{document.removeEventListener("mousedown",i)}},[t]),rr.jsxs("div",{ref:n,className:"relative",children:[rr.jsxs("button",{type:"button",onClick:()=>r(i=>!i),onKeyDown:i=>{i.key==="Escape"&&r(!1)},"aria-expanded":t,"aria-haspopup":"menu",className:"flex items-center gap-1.5 rounded-lg border border-gray-700 bg-gray-800 px-3 py-1.5 text-sm text-gray-300 hover:bg-gray-700",children:["Export",rr.jsx("svg",{className:`h-3 w-3 transition-transform ${t?"rotate-180":""}`,viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"2",children:rr.jsx("path",{d:"M3 4.5L6 7.5L9 4.5"})})]}),t&&rr.jsx("div",{role:"menu",className:"absolute right-0 z-10 mt-1 min-w-[200px] rounded-lg border border-gray-700 bg-gray-800 py-1 shadow-lg",children:e.map(i=>rr.jsx("button",{type:"button",role:"menuitem",onClick:()=>{i.onClick(),r(!1)},className:"block w-full cursor-pointer px-3 py-2 text-left text-sm text-gray-300 hover:bg-gray-700",children:i.label},i.label))})]})}function FD(e){const t={};for(const r of iw){const n=e.pricingOverrides[r.modelId];t[r.modelId]=n?{...r,...n}:{...r}}return t}const UD="claude-sonnet-4";function WD(e,t){const r={},n={input:0,output:0,cacheRead:0,cacheWrite:0};for(const[a,o]of Object.entries(e)){const u=aw(a),s=t[u]??t[UD];if(!s)continue;const c=o.inputTokens/1e6*s.inputPerMTok,f=o.outputTokens/1e6*s.outputPerMTok,l=o.cacheReadInputTokens/1e6*s.cacheReadPerMTok,h=o.cacheCreationInputTokens/1e6*s.cacheWritePerMTok,d=c+f+l+h,y=r[u];y?(y.inputCost+=c,y.outputCost+=f,y.cacheReadCost+=l,y.cacheWriteCost+=h,y.totalCost+=d,y.tokens.inputTokens+=o.inputTokens,y.tokens.outputTokens+=o.outputTokens,y.tokens.cacheReadInputTokens+=o.cacheReadInputTokens,y.tokens.cacheCreationInputTokens+=o.cacheCreationInputTokens):r[u]={modelId:u,displayName:s.displayName,inputCost:c,outputCost:f,cacheReadCost:l,cacheWriteCost:h,totalCost:d,tokens:{...o}},n.input+=c,n.output+=f,n.cacheRead+=l,n.cacheWrite+=h}return{totalUSD:n.input+n.output+n.cacheRead+n.cacheWrite,byModel:r,byCategory:n}}function sN(e){const{data:t,isLoading:r}=nw(ow);return{cost:N.useMemo(()=>{if(!t||Object.keys(e).length===0)return null;const i=FD(t);return WD(e,i)},[t,e]),isLoading:r}}export{uN as $,yt as A,Mx as B,an as C,eh as D,QD as E,ZD as F,Lr as G,JD as H,VD as I,ok as J,Ut as K,fe as L,La as M,LD as N,Yn as O,rR as P,XD as Q,KD as R,Q$ as S,Ai as T,ut as U,eN as V,er as W,uh as X,sh as Y,cr as Z,sN as _,GT as a,oN as a0,tN as a1,rN as a2,nN as a3,iN as a4,ah as a5,FD as a6,WD as a7,aN as a8,jt as b,ee as c,XT as d,di as e,J as f,YD as g,Ee as h,Y as i,Z as j,qe as k,ze as l,Ue as m,bn as n,q as o,Pe as p,Tt as q,j0 as r,Ye as s,Je as t,zn as u,Gb as v,Tj as w,Ze as x,zt as y,jx as z};