@opencx/widget 5.0.0-beta.2 → 5.0.0-beta.4
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.
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import{c as Ai,g as ce,r as B,a as ee,m as S,P as ne,j as be,u as _m}from"./widget.js";var Pm=Array.isArray,ze=Pm,$m=typeof Ai=="object"&&Ai&&Ai.Object===Object&&Ai,Wh=$m,Tm=Wh,Em=typeof self=="object"&&self&&self.Object===Object&&self,jm=Tm||Em||Function("return this")(),ht=jm,Mm=ht,Cm=Mm.Symbol,pi=Cm,Ks=pi,Kh=Object.prototype,Im=Kh.hasOwnProperty,km=Kh.toString,vn=Ks?Ks.toStringTag:void 0;function Nm(e){var t=Im.call(e,vn),r=e[vn];try{e[vn]=void 0;var n=!0}catch{}var i=km.call(e);return n&&(t?e[vn]=r:delete e[vn]),i}var Dm=Nm,Rm=Object.prototype,Lm=Rm.toString;function Bm(e){return Lm.call(e)}var Fm=Bm,Gs=pi,zm=Dm,Um=Fm,Wm="[object Null]",Km="[object Undefined]",Hs=Gs?Gs.toStringTag:void 0;function Gm(e){return e==null?e===void 0?Km:Wm:Hs&&Hs in Object(e)?zm(e):Um(e)}var $t=Gm;function Hm(e){return e!=null&&typeof e=="object"}var Tt=Hm,qm=$t,Vm=Tt,Xm="[object Symbol]";function Ym(e){return typeof e=="symbol"||Vm(e)&&qm(e)==Xm}var tn=Ym,Zm=ze,Jm=tn,Qm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eg=/^\w*$/;function tg(e,t){if(Zm(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Jm(e)?!0:eg.test(e)||!Qm.test(e)||t!=null&&e in Object(t)}var Rc=tg;function rg(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Lt=rg;const rn=ce(Lt);var ng=$t,ig=Lt,ag="[object AsyncFunction]",og="[object Function]",ug="[object GeneratorFunction]",cg="[object Proxy]";function sg(e){if(!ig(e))return!1;var t=ng(e);return t==og||t==ug||t==ag||t==cg}var Lc=sg;const Y=ce(Lc);var lg=ht,fg=lg["__core-js_shared__"],pg=fg,jo=pg,qs=function(){var e=/[^.]+$/.exec(jo&&jo.keys&&jo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function hg(e){return!!qs&&qs in e}var dg=hg,vg=Function.prototype,yg=vg.toString;function mg(e){if(e!=null){try{return yg.call(e)}catch{}try{return e+""}catch{}}return""}var Gh=mg,gg=Lc,bg=dg,xg=Lt,wg=Gh,Og=/[\\^$.*+?()[\]{}|]/g,Ag=/^\[object .+?Constructor\]$/,Sg=Function.prototype,_g=Object.prototype,Pg=Sg.toString,$g=_g.hasOwnProperty,Tg=RegExp("^"+Pg.call($g).replace(Og,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Eg(e){if(!xg(e)||bg(e))return!1;var t=gg(e)?Tg:Ag;return t.test(wg(e))}var jg=Eg;function Mg(e,t){return e==null?void 0:e[t]}var Cg=Mg,Ig=jg,kg=Cg;function Ng(e,t){var r=kg(e,t);return Ig(r)?r:void 0}var cr=Ng,Dg=cr,Rg=Dg(Object,"create"),Wa=Rg,Vs=Wa;function Lg(){this.__data__=Vs?Vs(null):{},this.size=0}var Bg=Lg;function Fg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var zg=Fg,Ug=Wa,Wg="__lodash_hash_undefined__",Kg=Object.prototype,Gg=Kg.hasOwnProperty;function Hg(e){var t=this.__data__;if(Ug){var r=t[e];return r===Wg?void 0:r}return Gg.call(t,e)?t[e]:void 0}var qg=Hg,Vg=Wa,Xg=Object.prototype,Yg=Xg.hasOwnProperty;function Zg(e){var t=this.__data__;return Vg?t[e]!==void 0:Yg.call(t,e)}var Jg=Zg,Qg=Wa,eb="__lodash_hash_undefined__";function tb(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Qg&&t===void 0?eb:t,this}var rb=tb,nb=Bg,ib=zg,ab=qg,ob=Jg,ub=rb;function nn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}nn.prototype.clear=nb;nn.prototype.delete=ib;nn.prototype.get=ab;nn.prototype.has=ob;nn.prototype.set=ub;var cb=nn;function sb(){this.__data__=[],this.size=0}var lb=sb;function fb(e,t){return e===t||e!==e&&t!==t}var Bc=fb,pb=Bc;function hb(e,t){for(var r=e.length;r--;)if(pb(e[r][0],t))return r;return-1}var Ka=hb,db=Ka,vb=Array.prototype,yb=vb.splice;function mb(e){var t=this.__data__,r=db(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():yb.call(t,r,1),--this.size,!0}var gb=mb,bb=Ka;function xb(e){var t=this.__data__,r=bb(t,e);return r<0?void 0:t[r][1]}var wb=xb,Ob=Ka;function Ab(e){return Ob(this.__data__,e)>-1}var Sb=Ab,_b=Ka;function Pb(e,t){var r=this.__data__,n=_b(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var $b=Pb,Tb=lb,Eb=gb,jb=wb,Mb=Sb,Cb=$b;function an(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}an.prototype.clear=Tb;an.prototype.delete=Eb;an.prototype.get=jb;an.prototype.has=Mb;an.prototype.set=Cb;var Ga=an,Ib=cr,kb=ht,Nb=Ib(kb,"Map"),Fc=Nb,Xs=cb,Db=Ga,Rb=Fc;function Lb(){this.size=0,this.__data__={hash:new Xs,map:new(Rb||Db),string:new Xs}}var Bb=Lb;function Fb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var zb=Fb,Ub=zb;function Wb(e,t){var r=e.__data__;return Ub(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ha=Wb,Kb=Ha;function Gb(e){var t=Kb(this,e).delete(e);return this.size-=t?1:0,t}var Hb=Gb,qb=Ha;function Vb(e){return qb(this,e).get(e)}var Xb=Vb,Yb=Ha;function Zb(e){return Yb(this,e).has(e)}var Jb=Zb,Qb=Ha;function e0(e,t){var r=Qb(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var t0=e0,r0=Bb,n0=Hb,i0=Xb,a0=Jb,o0=t0;function on(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}on.prototype.clear=r0;on.prototype.delete=n0;on.prototype.get=i0;on.prototype.has=a0;on.prototype.set=o0;var zc=on,Hh=zc,u0="Expected a function";function Uc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(u0);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(Uc.Cache||Hh),r}Uc.Cache=Hh;var qh=Uc;const c0=ce(qh);var s0=qh,l0=500;function f0(e){var t=s0(e,function(n){return r.size===l0&&r.clear(),n}),r=t.cache;return t}var p0=f0,h0=p0,d0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v0=/\\(\\)?/g,y0=h0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(d0,function(r,n,i,a){t.push(i?a.replace(v0,"$1"):n||r)}),t}),m0=y0;function g0(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Wc=g0,Ys=pi,b0=Wc,x0=ze,w0=tn,Zs=Ys?Ys.prototype:void 0,Js=Zs?Zs.toString:void 0;function Vh(e){if(typeof e=="string")return e;if(x0(e))return b0(e,Vh)+"";if(w0(e))return Js?Js.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var O0=Vh,A0=O0;function S0(e){return e==null?"":A0(e)}var Xh=S0,_0=ze,P0=Rc,$0=m0,T0=Xh;function E0(e,t){return _0(e)?e:P0(e,t)?[e]:$0(T0(e))}var Yh=E0,j0=tn;function M0(e){if(typeof e=="string"||j0(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var qa=M0,C0=Yh,I0=qa;function k0(e,t){t=C0(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[I0(t[r++])];return r&&r==n?e:void 0}var Kc=k0,N0=Kc;function D0(e,t,r){var n=e==null?void 0:N0(e,t);return n===void 0?r:n}var Zh=D0;const qe=ce(Zh);function R0(e){return e==null}var L0=R0;const Z=ce(L0);var B0=$t,F0=ze,z0=Tt,U0="[object String]";function W0(e){return typeof e=="string"||!F0(e)&&z0(e)&&B0(e)==U0}var K0=W0;const rr=ce(K0);var Jh={exports:{}},ie={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-is.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/(function(){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"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),y=!1,v=!1,d=!1,b=!1,x=!1,w;w=Symbol.for("react.module.reference");function O(L){return!!(typeof L=="string"||typeof L=="function"||L===r||L===i||x||L===n||L===s||L===f||b||L===h||y||v||d||typeof L=="object"&&L!==null&&(L.$$typeof===p||L.$$typeof===l||L.$$typeof===a||L.$$typeof===o||L.$$typeof===c||L.$$typeof===w||L.getModuleId!==void 0))}function m(L){if(typeof L=="object"&&L!==null){var me=L.$$typeof;switch(me){case e:var ve=L.type;switch(ve){case r:case i:case n:case s:case f:return ve;default:var Me=ve&&ve.$$typeof;switch(Me){case u:case o:case c:case p:case l:case a:return Me;default:return me}}case t:return me}}}var g=o,A=a,_=e,P=c,E=r,T=p,$=l,I=t,M=i,C=n,N=s,D=f,F=!1,z=!1;function G(L){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function V(L){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(L){return m(L)===o}function X(L){return m(L)===a}function oe(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function ge(L){return m(L)===c}function De(L){return m(L)===r}function vt(L){return m(L)===p}function Ie(L){return m(L)===l}function U(L){return m(L)===t}function J(L){return m(L)===i}function Q(L){return m(L)===n}function k(L){return m(L)===s}function de(L){return m(L)===f}ie.ContextConsumer=g,ie.ContextProvider=A,ie.Element=_,ie.ForwardRef=P,ie.Fragment=E,ie.Lazy=T,ie.Memo=$,ie.Portal=I,ie.Profiler=M,ie.StrictMode=C,ie.Suspense=N,ie.SuspenseList=D,ie.isAsyncMode=G,ie.isConcurrentMode=V,ie.isContextConsumer=W,ie.isContextProvider=X,ie.isElement=oe,ie.isForwardRef=ge,ie.isFragment=De,ie.isLazy=vt,ie.isMemo=Ie,ie.isPortal=U,ie.isProfiler=J,ie.isStrictMode=Q,ie.isSuspense=k,ie.isSuspenseList=de,ie.isValidElementType=O,ie.typeOf=m})();Jh.exports=ie;var G0=Jh.exports,H0=$t,q0=Tt,V0="[object Number]";function X0(e){return typeof e=="number"||q0(e)&&H0(e)==V0}var Qh=X0;const Y0=ce(Qh);var Z0=Qh;function J0(e){return Z0(e)&&e!=+e}var Q0=J0;const hi=ce(Q0);var Re=function(t){return t===0?0:t>0?1:-1},uu=function(t){return rr(t)&&t.indexOf("%")===t.length-1},R=function(t){return Y0(t)&&!hi(t)},ex=function(t){return Z(t)},$e=function(t){return R(t)||rr(t)},tx=0,un=function(t){var r=++tx;return"".concat(t||"").concat(r)},Le=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(!R(t)&&!rr(t))return n;var a;if(uu(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return hi(a)&&(a=n),i&&a>r&&(a=r),a},It=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},rx=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},Ge=function(t,r){return R(t)&&R(r)?function(n){return t+n*(r-t)}:function(){return r}};function Li(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):qe(n,t))===r})}var nx=function(t,r){return R(t)&&R(r)?t-r:rr(t)&&rr(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 cu(e){"@babel/helpers - typeof";return cu=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},cu(e)}var ix=["viewBox","children"],ax=["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"],Qs=["points","pathLength"],Mo={svg:ix,polygon:Qs,polyline:Qs},Gc=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Bi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(B.isValidElement(t)&&(n=t.props),!rn(n))return null;var i={};return Object.keys(n).forEach(function(a){Gc.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},ox=function(t,r,n){return function(i){return t(r,n,i),null}},nr=function(t,r,n){if(!rn(t)||cu(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Gc.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=ox(o,r,n))}),i},ux=["children"],cx=["children"];function el(e,t){if(e==null)return{};var r=sx(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 sx(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 su(e){"@babel/helpers - typeof";return su=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},su(e)}var tl={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"},Nt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},rl=null,Co=null,Hc=function e(t){if(t===rl&&Array.isArray(Co))return Co;var r=[];return B.Children.forEach(t,function(n){Z(n)||(G0.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Co=r,rl=t,r};function Ve(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Nt(i)}):n=[Nt(t)],Hc(e).forEach(function(i){var a=qe(i,"type.displayName")||qe(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ke(e,t){var r=Ve(e,t);return r&&r[0]}var nl=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!R(n)||n<=0||!R(i)||i<=0)},lx=["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"],fx=function(t){return t&&t.type&&rr(t.type)&&lx.indexOf(t.type)>=0},px=function(t){return t&&su(t)==="object"&&"clipDot"in t},hx=function(t,r,n,i){var a,o=(a=Mo==null?void 0:Mo[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Y(t)&&(i&&o.includes(r)||ax.includes(r))||n&&Gc.includes(r)},H=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(B.isValidElement(t)&&(i=t.props),!rn(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;hx((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},lu=function e(t,r){if(t===r)return!0;var n=B.Children.count(t);if(n!==B.Children.count(r))return!1;if(n===0)return!0;if(n===1)return il(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(!il(a,o))return!1}return!0},il=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=el(n,ux),o=r.props||{},u=o.children,c=el(o,cx);return i&&u?Sr(a,c)&&lu(i,u):!i&&!u?Sr(a,c):!1}return!1},al=function(t,r){var n=[],i={};return Hc(t).forEach(function(a,o){if(fx(a))n.push(a);else if(a){var u=Nt(a.type),c=r[u]||{},s=c.handler,f=c.once;if(s&&(!f||!i[u])){var l=s(a,u,o);n.push(l),i[u]=!0}}}),n},dx=function(t){var r=t&&t.type;return r&&tl[r]?tl[r]:null},vx=function(t,r){return Hc(r).indexOf(t)},yx=["children","width","height","viewBox","className","style","title","desc"];function fu(){return fu=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},fu.apply(this,arguments)}function mx(e,t){if(e==null)return{};var r=gx(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gx(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function pu(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,c=e.desc,s=mx(e,yx),f=i||{width:r,height:n,x:0,y:0},l=ee("recharts-surface",a);return S.createElement("svg",fu({},H(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),S.createElement("title",null,u),S.createElement("desc",null,c),t)}var bx=["children","className"];function hu(){return hu=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},hu.apply(this,arguments)}function xx(e,t){if(e==null)return{};var r=wx(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 wx(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 te=S.forwardRef(function(e,t){var r=e.children,n=e.className,i=xx(e,bx),a=ee("recharts-layer",n);return S.createElement("g",hu({className:a},H(i,!0),{ref:t}),r)}),Rt=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];if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}};function Ox(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var Ax=Ox,Sx=Ax;function _x(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Sx(e,t,r)}var Px=_x,$x="\\ud800-\\udfff",Tx="\\u0300-\\u036f",Ex="\\ufe20-\\ufe2f",jx="\\u20d0-\\u20ff",Mx=Tx+Ex+jx,Cx="\\ufe0e\\ufe0f",Ix="\\u200d",kx=RegExp("["+Ix+$x+Mx+Cx+"]");function Nx(e){return kx.test(e)}var ed=Nx;function Dx(e){return e.split("")}var Rx=Dx,td="\\ud800-\\udfff",Lx="\\u0300-\\u036f",Bx="\\ufe20-\\ufe2f",Fx="\\u20d0-\\u20ff",zx=Lx+Bx+Fx,Ux="\\ufe0e\\ufe0f",Wx="["+td+"]",du="["+zx+"]",vu="\\ud83c[\\udffb-\\udfff]",Kx="(?:"+du+"|"+vu+")",rd="[^"+td+"]",nd="(?:\\ud83c[\\udde6-\\uddff]){2}",id="[\\ud800-\\udbff][\\udc00-\\udfff]",Gx="\\u200d",ad=Kx+"?",od="["+Ux+"]?",Hx="(?:"+Gx+"(?:"+[rd,nd,id].join("|")+")"+od+ad+")*",qx=od+ad+Hx,Vx="(?:"+[rd+du+"?",du,nd,id,Wx].join("|")+")",Xx=RegExp(vu+"(?="+vu+")|"+Vx+qx,"g");function Yx(e){return e.match(Xx)||[]}var Zx=Yx,Jx=Rx,Qx=ed,ew=Zx;function tw(e){return Qx(e)?ew(e):Jx(e)}var rw=tw,nw=Px,iw=ed,aw=rw,ow=Xh;function uw(e){return function(t){t=ow(t);var r=iw(t)?aw(t):void 0,n=r?r[0]:t.charAt(0),i=r?nw(r,1).join(""):t.slice(1);return n[e]()+i}}var cw=uw,sw=cw,lw=sw("toUpperCase"),fw=lw;const Va=ce(fw);function le(e){return function(){return e}}const ud=Math.cos,Fi=Math.sin,ut=Math.sqrt,zi=Math.PI,Xa=2*zi,yu=Math.PI,mu=2*yu,Ht=1e-6,pw=mu-Ht;function cd(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function hw(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return cd;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 dw{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?cd:hw(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,c=n-t,s=i-r,f=o-t,l=u-r,p=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>Ht)if(!(Math.abs(l*c-s*f)>Ht)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,y=i-u,v=c*c+s*s,d=h*h+y*y,b=Math.sqrt(v),x=Math.sqrt(p),w=a*Math.tan((yu-Math.acos((v+p-d)/(2*b*x)))/2),O=w/x,m=w/b;Math.abs(O-1)>Ht&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*h>f*y)},${this._x1=t+m*c},${this._y1=r+m*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),s=t+u,f=r+c,l=1^o,p=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Ht||Math.abs(this._y1-f)>Ht)&&this._append`L${s},${f}`,n&&(p<0&&(p=p%mu+mu),p>pw?this._append`A${n},${n},0,1,${l},${t-u},${r-c}A${n},${n},0,1,${l},${this._x1=s},${this._y1=f}`:p>Ht&&this._append`A${n},${n},0,${+(p>=yu)},${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 qc(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 dw(t)}function Vc(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function sd(e){this._context=e}sd.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 Ya(e){return new sd(e)}function ld(e){return e[0]}function fd(e){return e[1]}function pd(e,t){var r=le(!0),n=null,i=Ya,a=null,o=qc(u);e=typeof e=="function"?e:e===void 0?ld:le(e),t=typeof t=="function"?t:t===void 0?fd:le(t);function u(c){var s,f=(c=Vc(c)).length,l,p=!1,h;for(n==null&&(a=i(h=o())),s=0;s<=f;++s)!(s<f&&r(l=c[s],s,c))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(l,s,c),+t(l,s,c));if(h)return a=null,h+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:le(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:le(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:le(!!c),u):r},u.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),u):i},u.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),u):n},u}function Si(e,t,r){var n=null,i=le(!0),a=null,o=Ya,u=null,c=qc(s);e=typeof e=="function"?e:e===void 0?ld:le(+e),t=typeof t=="function"?t:le(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?fd:le(+r);function s(l){var p,h,y,v=(l=Vc(l)).length,d,b=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=c())),p=0;p<=v;++p){if(!(p<v&&i(d=l[p],p,l))===b)if(b=!b)h=p,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=p-1;y>=h;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}b&&(w[p]=+e(d,p,l),O[p]=+t(d,p,l),u.point(n?+n(d,p,l):w[p],r?+r(d,p,l):O[p]))}if(x)return u=null,x+""||null}function f(){return pd().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:le(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:le(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:le(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:le(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:le(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:le(+l),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(l){return arguments.length?(i=typeof l=="function"?l:le(!!l),s):i},s.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),s):o},s.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),s):a},s}class hd{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 vw(e){return new hd(e,!0)}function yw(e){return new hd(e,!1)}const Xc={draw(e,t){const r=ut(t/zi);e.moveTo(r,0),e.arc(0,0,r,0,Xa)}},mw={draw(e,t){const r=ut(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()}},dd=ut(1/3),gw=dd*2,bw={draw(e,t){const r=ut(t/gw),n=r*dd;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},xw={draw(e,t){const r=ut(t),n=-r/2;e.rect(n,n,r,r)}},ww=.8908130915292852,vd=Fi(zi/10)/Fi(7*zi/10),Ow=Fi(Xa/10)*vd,Aw=-ud(Xa/10)*vd,Sw={draw(e,t){const r=ut(t*ww),n=Ow*r,i=Aw*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Xa*a/5,u=ud(o),c=Fi(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},Io=ut(3),_w={draw(e,t){const r=-ut(t/(Io*3));e.moveTo(0,r*2),e.lineTo(-Io*r,-r),e.lineTo(Io*r,-r),e.closePath()}},Xe=-.5,Ye=ut(3)/2,gu=1/ut(12),Pw=(gu/2+1)*3,$w={draw(e,t){const r=ut(t/Pw),n=r/2,i=r*gu,a=n,o=r*gu+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Xe*n-Ye*i,Ye*n+Xe*i),e.lineTo(Xe*a-Ye*o,Ye*a+Xe*o),e.lineTo(Xe*u-Ye*c,Ye*u+Xe*c),e.lineTo(Xe*n+Ye*i,Xe*i-Ye*n),e.lineTo(Xe*a+Ye*o,Xe*o-Ye*a),e.lineTo(Xe*u+Ye*c,Xe*c-Ye*u),e.closePath()}};function Tw(e,t){let r=null,n=qc(i);e=typeof e=="function"?e:le(e||Xc),t=typeof t=="function"?t:le(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:le(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:le(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ui(){}function Wi(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 yd(e){this._context=e}yd.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:Wi(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:Wi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ew(e){return new yd(e)}function md(e){this._context=e}md.prototype={areaStart:Ui,areaEnd:Ui,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:Wi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jw(e){return new md(e)}function gd(e){this._context=e}gd.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:Wi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Mw(e){return new gd(e)}function bd(e){this._context=e}bd.prototype={areaStart:Ui,areaEnd:Ui,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 Cw(e){return new bd(e)}function ol(e){return e<0?-1:1}function ul(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(ol(a)+ol(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function cl(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ko(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 Ki(e){this._context=e}Ki.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:ko(this,this._t0,cl(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,ko(this,cl(this,r=ul(this,e,t)),r);break;default:ko(this,this._t0,r=ul(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function xd(e){this._context=new wd(e)}(xd.prototype=Object.create(Ki.prototype)).point=function(e,t){Ki.prototype.point.call(this,t,e)};function wd(e){this._context=e}wd.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 Iw(e){return new Ki(e)}function kw(e){return new xd(e)}function Od(e){this._context=e}Od.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=sl(e),i=sl(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 sl(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 Nw(e){return new Od(e)}function Za(e,t){this._context=e,this._t=t}Za.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 Dw(e){return new Za(e,.5)}function Rw(e){return new Za(e,0)}function Lw(e){return new Za(e,1)}function $r(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 bu(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Bw(e,t){return e[t]}function Fw(e){const t=[];return t.key=e,t}function zw(){var e=le([]),t=bu,r=$r,n=Bw;function i(a){var o=Array.from(e.apply(this,arguments),Fw),u,c=o.length,s=-1,f;for(const l of a)for(u=0,++s;u<c;++u)(o[u][s]=[0,+n(l,o[u].key,s,a)]).data=l;for(u=0,f=Vc(t(o));u<c;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:le(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:le(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?bu:typeof a=="function"?a:le(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??$r,i):r},i}function Uw(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}$r(e,t)}}function Ww(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}$r(e,t)}}function Kw(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,c=0,s=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,p=f[n-1][1]||0,h=(l-p)/2,y=0;y<u;++y){var v=e[t[y]],d=v[n][1]||0,b=v[n-1][1]||0;h+=d-b}c+=l,s+=h*l}i[n-1][1]+=i[n-1][0]=r,c&&(r-=s/c)}i[n-1][1]+=i[n-1][0]=r,$r(e,t)}}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 Gw=["type","size","sizeType"];function xu(){return xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xu.apply(this,arguments)}function ll(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 fl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ll(Object(r),!0).forEach(function(n){Hw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ll(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hw(e,t,r){return t=qw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qw(e){var t=Vw(e,"string");return In(t)=="symbol"?t:t+""}function Vw(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 Xw(e,t){if(e==null)return{};var r=Yw(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 Yw(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 Ad={symbolCircle:Xc,symbolCross:mw,symbolDiamond:bw,symbolSquare:xw,symbolStar:Sw,symbolTriangle:_w,symbolWye:$w},Zw=Math.PI/180,Jw=function(t){var r="symbol".concat(Va(t));return Ad[r]||Xc},Qw=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*Zw;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}},eO=function(t,r){Ad["symbol".concat(Va(t))]=r},Yc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,c=Xw(t,Gw),s=fl(fl({},c),{},{type:n,size:a,sizeType:u}),f=function(){var d=Jw(n),b=Tw().type(d).size(Qw(a,u,n));return b()},l=s.className,p=s.cx,h=s.cy,y=H(s,!0);return p===+p&&h===+h&&a===+a?S.createElement("path",xu({},y,{className:ee("recharts-symbols",l),transform:"translate(".concat(p,", ").concat(h,")"),d:f()})):null};Yc.registerSymbol=eO;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 wu(){return wu=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},wu.apply(this,arguments)}function pl(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 tO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pl(Object(r),!0).forEach(function(n){kn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nO(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,_d(n.key),n)}}function iO(e,t,r){return t&&nO(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aO(e,t,r){return t=Gi(t),oO(e,Sd()?Reflect.construct(t,r||[],Gi(e).constructor):t.apply(e,r))}function oO(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 uO(e)}function uO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sd=function(){return!!e})()}function Gi(e){return Gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gi(e)}function cO(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&&Ou(e,t)}function Ou(e,t){return Ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ou(e,t)}function kn(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=sO(e,"string");return Tr(t)=="symbol"?t:t+""}function sO(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 Ze=32,Zc=function(e){function t(){return rO(this,t),aO(this,t,arguments)}return cO(t,e),iO(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Ze/2,o=Ze/6,u=Ze/3,c=n.inactive?i:n.color;if(n.type==="plainline")return S.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Ze,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return S.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,`
|
|
10
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
|
|
11
|
+
H`).concat(Ze,"M").concat(2*u,",").concat(a,`
|
|
12
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return S.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Ze/8,"h").concat(Ze,"v").concat(Ze*3/4,"h").concat(-Ze,"z"),className:"recharts-legend-icon"});if(S.isValidElement(n.legendIcon)){var s=tO({},n);return delete s.legendIcon,S.cloneElement(n.legendIcon,s)}return S.createElement(Yc,{fill:c,cx:a,cy:a,size:Ze,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,c=i.formatter,s=i.inactiveColor,f={x:0,y:0,width:Ze,height:Ze},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,y){var v=h.formatter||c,d=ee(kn(kn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",h.inactive));if(h.type==="none")return null;var b=Y(h.value)?null:h.value;Rt(!Y(h.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=h.inactive?s:h.color;return S.createElement("li",wu({className:d,style:l,key:"legend-item-".concat(y)},nr(n.props,h,y)),S.createElement(pu,{width:o,height:o,viewBox:f,style:p},n.renderIcon(h)),S.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(b,h,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 S.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])}(B.PureComponent);kn(Zc,"displayName","Legend");kn(Zc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var lO=Ga;function fO(){this.__data__=new lO,this.size=0}var pO=fO;function hO(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var dO=hO;function vO(e){return this.__data__.get(e)}var yO=vO;function mO(e){return this.__data__.has(e)}var gO=mO,bO=Ga,xO=Fc,wO=zc,OO=200;function AO(e,t){var r=this.__data__;if(r instanceof bO){var n=r.__data__;if(!xO||n.length<OO-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new wO(n)}return r.set(e,t),this.size=r.size,this}var SO=AO,_O=Ga,PO=pO,$O=dO,TO=yO,EO=gO,jO=SO;function cn(e){var t=this.__data__=new _O(e);this.size=t.size}cn.prototype.clear=PO;cn.prototype.delete=$O;cn.prototype.get=TO;cn.prototype.has=EO;cn.prototype.set=jO;var Pd=cn,MO="__lodash_hash_undefined__";function CO(e){return this.__data__.set(e,MO),this}var IO=CO;function kO(e){return this.__data__.has(e)}var NO=kO,DO=zc,RO=IO,LO=NO;function Hi(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new DO;++t<r;)this.add(e[t])}Hi.prototype.add=Hi.prototype.push=RO;Hi.prototype.has=LO;var $d=Hi;function BO(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Td=BO;function FO(e,t){return e.has(t)}var Ed=FO,zO=$d,UO=Td,WO=Ed,KO=1,GO=2;function HO(e,t,r,n,i,a){var o=r&KO,u=e.length,c=t.length;if(u!=c&&!(o&&c>u))return!1;var s=a.get(e),f=a.get(t);if(s&&f)return s==t&&f==e;var l=-1,p=!0,h=r&GO?new zO:void 0;for(a.set(e,t),a.set(t,e);++l<u;){var y=e[l],v=t[l];if(n)var d=o?n(v,y,l,t,e,a):n(y,v,l,e,t,a);if(d!==void 0){if(d)continue;p=!1;break}if(h){if(!UO(t,function(b,x){if(!WO(h,x)&&(y===b||i(y,b,r,n,a)))return h.push(x)})){p=!1;break}}else if(!(y===v||i(y,v,r,n,a))){p=!1;break}}return a.delete(e),a.delete(t),p}var jd=HO,qO=ht,VO=qO.Uint8Array,XO=VO;function YO(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var ZO=YO;function JO(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Jc=JO,hl=pi,dl=XO,QO=Bc,e1=jd,t1=ZO,r1=Jc,n1=1,i1=2,a1="[object Boolean]",o1="[object Date]",u1="[object Error]",c1="[object Map]",s1="[object Number]",l1="[object RegExp]",f1="[object Set]",p1="[object String]",h1="[object Symbol]",d1="[object ArrayBuffer]",v1="[object DataView]",vl=hl?hl.prototype:void 0,No=vl?vl.valueOf:void 0;function y1(e,t,r,n,i,a,o){switch(r){case v1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case d1:return!(e.byteLength!=t.byteLength||!a(new dl(e),new dl(t)));case a1:case o1:case s1:return QO(+e,+t);case u1:return e.name==t.name&&e.message==t.message;case l1:case p1:return e==t+"";case c1:var u=t1;case f1:var c=n&n1;if(u||(u=r1),e.size!=t.size&&!c)return!1;var s=o.get(e);if(s)return s==t;n|=i1,o.set(e,t);var f=e1(u(e),u(t),n,i,a,o);return o.delete(e),f;case h1:if(No)return No.call(e)==No.call(t)}return!1}var m1=y1;function g1(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Md=g1,b1=Md,x1=ze;function w1(e,t,r){var n=t(e);return x1(e)?n:b1(n,r(e))}var O1=w1;function A1(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var S1=A1;function _1(){return[]}var P1=_1,$1=S1,T1=P1,E1=Object.prototype,j1=E1.propertyIsEnumerable,yl=Object.getOwnPropertySymbols,M1=yl?function(e){return e==null?[]:(e=Object(e),$1(yl(e),function(t){return j1.call(e,t)}))}:T1,C1=M1;function I1(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var k1=I1,N1=$t,D1=Tt,R1="[object Arguments]";function L1(e){return D1(e)&&N1(e)==R1}var B1=L1,ml=B1,F1=Tt,Cd=Object.prototype,z1=Cd.hasOwnProperty,U1=Cd.propertyIsEnumerable,W1=ml(function(){return arguments}())?ml:function(e){return F1(e)&&z1.call(e,"callee")&&!U1.call(e,"callee")},Qc=W1,qi={exports:{}};function K1(){return!1}var G1=K1;qi.exports;(function(e,t){var r=ht,n=G1,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,c=u?u.isBuffer:void 0,s=c||n;e.exports=s})(qi,qi.exports);var Id=qi.exports,H1=9007199254740991,q1=/^(?:0|[1-9]\d*)$/;function V1(e,t){var r=typeof e;return t=t??H1,!!t&&(r=="number"||r!="symbol"&&q1.test(e))&&e>-1&&e%1==0&&e<t}var es=V1,X1=9007199254740991;function Y1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=X1}var ts=Y1,Z1=$t,J1=ts,Q1=Tt,eA="[object Arguments]",tA="[object Array]",rA="[object Boolean]",nA="[object Date]",iA="[object Error]",aA="[object Function]",oA="[object Map]",uA="[object Number]",cA="[object Object]",sA="[object RegExp]",lA="[object Set]",fA="[object String]",pA="[object WeakMap]",hA="[object ArrayBuffer]",dA="[object DataView]",vA="[object Float32Array]",yA="[object Float64Array]",mA="[object Int8Array]",gA="[object Int16Array]",bA="[object Int32Array]",xA="[object Uint8Array]",wA="[object Uint8ClampedArray]",OA="[object Uint16Array]",AA="[object Uint32Array]",pe={};pe[vA]=pe[yA]=pe[mA]=pe[gA]=pe[bA]=pe[xA]=pe[wA]=pe[OA]=pe[AA]=!0;pe[eA]=pe[tA]=pe[hA]=pe[rA]=pe[dA]=pe[nA]=pe[iA]=pe[aA]=pe[oA]=pe[uA]=pe[cA]=pe[sA]=pe[lA]=pe[fA]=pe[pA]=!1;function SA(e){return Q1(e)&&J1(e.length)&&!!pe[Z1(e)]}var _A=SA;function PA(e){return function(t){return e(t)}}var kd=PA,Vi={exports:{}};Vi.exports;(function(e,t){var r=Wh,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u})(Vi,Vi.exports);var $A=Vi.exports,TA=_A,EA=kd,gl=$A,bl=gl&&gl.isTypedArray,jA=bl?EA(bl):TA,Nd=jA,MA=k1,CA=Qc,IA=ze,kA=Id,NA=es,DA=Nd,RA=Object.prototype,LA=RA.hasOwnProperty;function BA(e,t){var r=IA(e),n=!r&&CA(e),i=!r&&!n&&kA(e),a=!r&&!n&&!i&&DA(e),o=r||n||i||a,u=o?MA(e.length,String):[],c=u.length;for(var s in e)(t||LA.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||NA(s,c)))&&u.push(s);return u}var FA=BA,zA=Object.prototype;function UA(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||zA;return e===r}var WA=UA;function KA(e,t){return function(r){return e(t(r))}}var Dd=KA,GA=Dd,HA=GA(Object.keys,Object),qA=HA,VA=WA,XA=qA,YA=Object.prototype,ZA=YA.hasOwnProperty;function JA(e){if(!VA(e))return XA(e);var t=[];for(var r in Object(e))ZA.call(e,r)&&r!="constructor"&&t.push(r);return t}var QA=JA,eS=Lc,tS=ts;function rS(e){return e!=null&&tS(e.length)&&!eS(e)}var di=rS,nS=FA,iS=QA,aS=di;function oS(e){return aS(e)?nS(e):iS(e)}var Ja=oS,uS=O1,cS=C1,sS=Ja;function lS(e){return uS(e,sS,cS)}var fS=lS,xl=fS,pS=1,hS=Object.prototype,dS=hS.hasOwnProperty;function vS(e,t,r,n,i,a){var o=r&pS,u=xl(e),c=u.length,s=xl(t),f=s.length;if(c!=f&&!o)return!1;for(var l=c;l--;){var p=u[l];if(!(o?p in t:dS.call(t,p)))return!1}var h=a.get(e),y=a.get(t);if(h&&y)return h==t&&y==e;var v=!0;a.set(e,t),a.set(t,e);for(var d=o;++l<c;){p=u[l];var b=e[p],x=t[p];if(n)var w=o?n(x,b,p,t,e,a):n(b,x,p,e,t,a);if(!(w===void 0?b===x||i(b,x,r,n,a):w)){v=!1;break}d||(d=p=="constructor")}if(v&&!d){var O=e.constructor,m=t.constructor;O!=m&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof m=="function"&&m instanceof m)&&(v=!1)}return a.delete(e),a.delete(t),v}var yS=vS,mS=cr,gS=ht,bS=mS(gS,"DataView"),xS=bS,wS=cr,OS=ht,AS=wS(OS,"Promise"),SS=AS,_S=cr,PS=ht,$S=_S(PS,"Set"),Rd=$S,TS=cr,ES=ht,jS=TS(ES,"WeakMap"),MS=jS,Au=xS,Su=Fc,_u=SS,Pu=Rd,$u=MS,Ld=$t,sn=Gh,wl="[object Map]",CS="[object Object]",Ol="[object Promise]",Al="[object Set]",Sl="[object WeakMap]",_l="[object DataView]",IS=sn(Au),kS=sn(Su),NS=sn(_u),DS=sn(Pu),RS=sn($u),qt=Ld;(Au&&qt(new Au(new ArrayBuffer(1)))!=_l||Su&&qt(new Su)!=wl||_u&&qt(_u.resolve())!=Ol||Pu&&qt(new Pu)!=Al||$u&&qt(new $u)!=Sl)&&(qt=function(e){var t=Ld(e),r=t==CS?e.constructor:void 0,n=r?sn(r):"";if(n)switch(n){case IS:return _l;case kS:return wl;case NS:return Ol;case DS:return Al;case RS:return Sl}return t});var LS=qt,Do=Pd,BS=jd,FS=m1,zS=yS,Pl=LS,$l=ze,Tl=Id,US=Nd,WS=1,El="[object Arguments]",jl="[object Array]",_i="[object Object]",KS=Object.prototype,Ml=KS.hasOwnProperty;function GS(e,t,r,n,i,a){var o=$l(e),u=$l(t),c=o?jl:Pl(e),s=u?jl:Pl(t);c=c==El?_i:c,s=s==El?_i:s;var f=c==_i,l=s==_i,p=c==s;if(p&&Tl(e)){if(!Tl(t))return!1;o=!0,f=!1}if(p&&!f)return a||(a=new Do),o||US(e)?BS(e,t,r,n,i,a):FS(e,t,c,r,n,i,a);if(!(r&WS)){var h=f&&Ml.call(e,"__wrapped__"),y=l&&Ml.call(t,"__wrapped__");if(h||y){var v=h?e.value():e,d=y?t.value():t;return a||(a=new Do),i(v,d,r,n,a)}}return p?(a||(a=new Do),zS(e,t,r,n,i,a)):!1}var HS=GS,qS=HS,Cl=Tt;function Bd(e,t,r,n,i){return e===t?!0:e==null||t==null||!Cl(e)&&!Cl(t)?e!==e&&t!==t:qS(e,t,r,n,Bd,i)}var rs=Bd,VS=Pd,XS=rs,YS=1,ZS=2;function JS(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var u=r[i];if(o&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){u=r[i];var c=u[0],s=e[c],f=u[1];if(o&&u[2]){if(s===void 0&&!(c in e))return!1}else{var l=new VS;if(n)var p=n(s,f,c,e,t,l);if(!(p===void 0?XS(f,s,YS|ZS,n,l):p))return!1}}return!0}var QS=JS,e_=Lt;function t_(e){return e===e&&!e_(e)}var Fd=t_,r_=Fd,n_=Ja;function i_(e){for(var t=n_(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,r_(i)]}return t}var a_=i_;function o_(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var zd=o_,u_=QS,c_=a_,s_=zd;function l_(e){var t=c_(e);return t.length==1&&t[0][2]?s_(t[0][0],t[0][1]):function(r){return r===e||u_(r,e,t)}}var f_=l_;function p_(e,t){return e!=null&&t in Object(e)}var h_=p_,d_=Yh,v_=Qc,y_=ze,m_=es,g_=ts,b_=qa;function x_(e,t,r){t=d_(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=b_(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&g_(i)&&m_(o,i)&&(y_(e)||v_(e)))}var w_=x_,O_=h_,A_=w_;function S_(e,t){return e!=null&&A_(e,t,O_)}var __=S_,P_=rs,$_=Zh,T_=__,E_=Rc,j_=Fd,M_=zd,C_=qa,I_=1,k_=2;function N_(e,t){return E_(e)&&j_(t)?M_(C_(e),t):function(r){var n=$_(r,e);return n===void 0&&n===t?T_(r,e):P_(t,n,I_|k_)}}var D_=N_;function R_(e){return e}var ln=R_;function L_(e){return function(t){return t==null?void 0:t[e]}}var B_=L_,F_=Kc;function z_(e){return function(t){return F_(t,e)}}var U_=z_,W_=B_,K_=U_,G_=Rc,H_=qa;function q_(e){return G_(e)?W_(H_(e)):K_(e)}var V_=q_,X_=f_,Y_=D_,Z_=ln,J_=ze,Q_=V_;function eP(e){return typeof e=="function"?e:e==null?Z_:typeof e=="object"?J_(e)?Y_(e[0],e[1]):X_(e):Q_(e)}var dt=eP;function tP(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var Ud=tP;function rP(e){return e!==e}var nP=rP;function iP(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var aP=iP,oP=Ud,uP=nP,cP=aP;function sP(e,t,r){return t===t?cP(e,t,r):oP(e,uP,r)}var lP=sP,fP=lP;function pP(e,t){var r=e==null?0:e.length;return!!r&&fP(e,t,0)>-1}var hP=pP;function dP(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var vP=dP;function yP(){}var mP=yP,Ro=Rd,gP=mP,bP=Jc,xP=1/0,wP=Ro&&1/bP(new Ro([,-0]))[1]==xP?function(e){return new Ro(e)}:gP,OP=wP,AP=$d,SP=hP,_P=vP,PP=Ed,$P=OP,TP=Jc,EP=200;function jP(e,t,r){var n=-1,i=SP,a=e.length,o=!0,u=[],c=u;if(r)o=!1,i=_P;else if(a>=EP){var s=t?null:$P(e);if(s)return TP(s);o=!1,i=PP,c=new AP}else c=t?[]:u;e:for(;++n<a;){var f=e[n],l=t?t(f):f;if(f=r||f!==0?f:0,o&&l===l){for(var p=c.length;p--;)if(c[p]===l)continue e;t&&c.push(l),u.push(f)}else i(c,l,r)||(c!==u&&c.push(l),u.push(f))}return u}var MP=jP,CP=dt,IP=MP;function kP(e,t){return e&&e.length?IP(e,CP(t)):[]}var NP=kP;const Il=ce(NP);function Wd(e,t,r){return t===!0?Il(e,r):Y(t)?Il(e,t):e}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)}var DP=["ref"];function kl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kl(Object(r),!0).forEach(function(n){Qa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nl(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,Gd(n.key),n)}}function LP(e,t,r){return t&&Nl(e.prototype,t),r&&Nl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function BP(e,t,r){return t=Xi(t),FP(e,Kd()?Reflect.construct(t,r||[],Xi(e).constructor):t.apply(e,r))}function FP(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 zP(e)}function zP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kd=function(){return!!e})()}function Xi(e){return Xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xi(e)}function UP(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&&Tu(e,t)}function Tu(e,t){return Tu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tu(e,t)}function Qa(e,t,r){return t=Gd(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gd(e){var t=WP(e,"string");return Er(t)=="symbol"?t:t+""}function WP(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)}function KP(e,t){if(e==null)return{};var r=GP(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 GP(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 HP(e){return e.value}function qP(e,t){if(S.isValidElement(e))return S.cloneElement(e,t);if(typeof e=="function")return S.createElement(e,t);t.ref;var r=KP(t,DP);return S.createElement(Zc,r)}var Dl=1,Qt=function(e){function t(){var r;RP(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=BP(this,t,[].concat(i)),Qa(r,"lastBoundingBox",{width:-1,height:-1}),r}return UP(t,e),LP(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)>Dl||Math.abs(i.height-this.lastBoundingBox.height)>Dl)&&(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?mt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,c=i.margin,s=i.chartWidth,f=i.chartHeight,l,p;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();l={left:((s||0)-h.width)/2}}else l=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();p={top:((f||0)-y.height)/2}}else p=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return mt(mt({},l),p)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,c=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,l=mt(mt({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return S.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(h){n.wrapperNode=h}},qP(a,mt(mt({},this.props),{},{payload:Wd(f,s,HP)})))}}],[{key:"getWithHeight",value:function(n,i){var a=mt(mt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&R(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(B.PureComponent);Qa(Qt,"displayName","Legend");Qa(Qt,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Rl=pi,VP=Qc,XP=ze,Ll=Rl?Rl.isConcatSpreadable:void 0;function YP(e){return XP(e)||VP(e)||!!(Ll&&e&&e[Ll])}var ZP=YP,JP=Md,QP=ZP;function Hd(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=QP),i||(i=[]);++a<o;){var u=e[a];t>0&&r(u)?t>1?Hd(u,t-1,r,n,i):JP(i,u):n||(i[i.length]=u)}return i}var qd=Hd;function e$(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),u=o.length;u--;){var c=o[e?u:++i];if(r(a[c],c,a)===!1)break}return t}}var t$=e$,r$=t$,n$=r$(),i$=n$,a$=i$,o$=Ja;function u$(e,t){return e&&a$(e,t,o$)}var Vd=u$,c$=di;function s$(e,t){return function(r,n){if(r==null)return r;if(!c$(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var l$=s$,f$=Vd,p$=l$,h$=p$(f$),ns=h$,d$=ns,v$=di;function y$(e,t){var r=-1,n=v$(e)?Array(e.length):[];return d$(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var Xd=y$;function m$(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var g$=m$,Bl=tn;function b$(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=Bl(e),o=t!==void 0,u=t===null,c=t===t,s=Bl(t);if(!u&&!s&&!a&&e>t||a&&o&&c&&!u&&!s||n&&o&&c||!r&&c||!i)return 1;if(!n&&!a&&!s&&e<t||s&&r&&i&&!n&&!a||u&&r&&i||!o&&i||!c)return-1}return 0}var x$=b$,w$=x$;function O$(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,u=r.length;++n<o;){var c=w$(i[n],a[n]);if(c){if(n>=u)return c;var s=r[n];return c*(s=="desc"?-1:1)}}return e.index-t.index}var A$=O$,Lo=Wc,S$=Kc,_$=dt,P$=Xd,$$=g$,T$=kd,E$=A$,j$=ln,M$=ze;function C$(e,t,r){t.length?t=Lo(t,function(a){return M$(a)?function(o){return S$(o,a.length===1?a[0]:a)}:a}):t=[j$];var n=-1;t=Lo(t,T$(_$));var i=P$(e,function(a,o,u){var c=Lo(t,function(s){return s(a)});return{criteria:c,index:++n,value:a}});return $$(i,function(a,o){return E$(a,o,r)})}var I$=C$;function k$(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var N$=k$,D$=N$,Fl=Math.max;function R$(e,t,r){return t=Fl(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Fl(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=r(o),D$(e,this,u)}}var L$=R$;function B$(e){return function(){return e}}var F$=B$,z$=cr,U$=function(){try{var e=z$(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Yd=U$,W$=F$,zl=Yd,K$=ln,G$=zl?function(e,t){return zl(e,"toString",{configurable:!0,enumerable:!1,value:W$(t),writable:!0})}:K$,H$=G$,q$=800,V$=16,X$=Date.now;function Y$(e){var t=0,r=0;return function(){var n=X$(),i=V$-(n-r);if(r=n,i>0){if(++t>=q$)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Z$=Y$,J$=H$,Q$=Z$,eT=Q$(J$),tT=eT,rT=ln,nT=L$,iT=tT;function aT(e,t){return iT(nT(e,t,rT),e+"")}var oT=aT,uT=Bc,cT=di,sT=es,lT=Lt;function fT(e,t,r){if(!lT(r))return!1;var n=typeof t;return(n=="number"?cT(r)&&sT(t,r.length):n=="string"&&t in r)?uT(r[t],e):!1}var eo=fT,pT=qd,hT=I$,dT=oT,Ul=eo,vT=dT(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Ul(e,t[0],t[1])?t=[]:r>2&&Ul(t[0],t[1],t[2])&&(t=[t[0]]),hT(e,pT(t,1),[])}),yT=vT;const is=ce(yT);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 Eu(){return Eu=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},Eu.apply(this,arguments)}function mT(e,t){return wT(e)||xT(e,t)||bT(e,t)||gT()}function gT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bT(e,t){if(e){if(typeof e=="string")return Wl(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 Wl(e,t)}}function Wl(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 xT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function wT(e){if(Array.isArray(e))return e}function Kl(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 Bo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kl(Object(r),!0).forEach(function(n){OT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OT(e,t,r){return t=AT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AT(e){var t=ST(e,"string");return Nn(t)=="symbol"?t:t+""}function ST(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)}function _T(e){return Array.isArray(e)&&$e(e[0])&&$e(e[1])?e.join(" ~ "):e}var PT=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,c=t.labelStyle,s=c===void 0?{}:c,f=t.payload,l=t.formatter,p=t.itemSorter,h=t.wrapperClassName,y=t.labelClassName,v=t.label,d=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,w=function(){if(f&&f.length){var $={padding:0,margin:0},I=(p?is(f,p):f).map(function(M,C){if(M.type==="none")return null;var N=Bo({display:"block",paddingTop:4,paddingBottom:4,color:M.color||"#000"},u),D=M.formatter||l||_T,F=M.value,z=M.name,G=F,V=z;if(D&&G!=null&&V!=null){var W=D(F,z,M,C,f);if(Array.isArray(W)){var X=mT(W,2);G=X[0],V=X[1]}else G=W}return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:N},$e(V)?S.createElement("span",{className:"recharts-tooltip-item-name"},V):null,$e(V)?S.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,S.createElement("span",{className:"recharts-tooltip-item-value"},G),S.createElement("span",{className:"recharts-tooltip-item-unit"},M.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:$},I)}return null},O=Bo({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=Bo({margin:0},s),g=!Z(v),A=g?v:"",_=ee("recharts-default-tooltip",h),P=ee("recharts-tooltip-label",y);g&&d&&f!==void 0&&f!==null&&(A=d(v,f));var E=x?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",Eu({className:_,style:O},E),S.createElement("p",{className:P,style:m},S.isValidElement(A)?A:"".concat(A)),w())};function Dn(e){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(e)}function Pi(e,t,r){return t=$T(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $T(e){var t=TT(e,"string");return Dn(t)=="symbol"?t:t+""}function TT(e,t){if(Dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yn="recharts-tooltip-wrapper",ET={visibility:"hidden"};function jT(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ee(yn,Pi(Pi(Pi(Pi({},"".concat(yn,"-right"),R(r)&&t&&R(t.x)&&r>=t.x),"".concat(yn,"-left"),R(r)&&t&&R(t.x)&&r<t.x),"".concat(yn,"-bottom"),R(n)&&t&&R(t.y)&&n>=t.y),"".concat(yn,"-top"),R(n)&&t&&R(t.y)&&n<t.y))}function Gl(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,c=e.viewBox,s=e.viewBoxDimension;if(a&&R(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 p=f,h=c[n];return p<h?Math.max(l,c[n]):Math.max(f,c[n])}var y=l+u,v=c[n]+s;return y>v?Math.max(f,c[n]):Math.max(l,c[n])}function MT(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 CT(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,c=e.viewBox,s,f,l;return o.height>0&&o.width>0&&r?(f=Gl({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=Gl({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=MT({translateX:f,translateY:l,useTranslate3d:u})):s=ET,{cssProperties:s,cssClasses:jT({translateX:f,translateY:l,coordinate:r})}}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 Hl(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 ql(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hl(Object(r),!0).forEach(function(n){Mu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kT(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,Jd(n.key),n)}}function NT(e,t,r){return t&&kT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function DT(e,t,r){return t=Yi(t),RT(e,Zd()?Reflect.construct(t,r||[],Yi(e).constructor):t.apply(e,r))}function RT(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 LT(e)}function LT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zd=function(){return!!e})()}function Yi(e){return Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yi(e)}function BT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ju(e,t)}function ju(e,t){return ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ju(e,t)}function Mu(e,t,r){return t=Jd(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jd(e){var t=FT(e,"string");return jr(t)=="symbol"?t:t+""}function FT(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 Vl=1,zT=function(e){function t(){var r;IT(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=DT(this,t,[].concat(i)),Mu(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Mu(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,c,s,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&u!==void 0?u:0,y:(s=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&s!==void 0?s:0}})}}),r}return BT(t,e),NT(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Vl||Math.abs(n.height-this.state.lastBoundingBox.height)>Vl)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.children,f=i.coordinate,l=i.hasPayload,p=i.isAnimationActive,h=i.offset,y=i.position,v=i.reverseDirection,d=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,w=CT({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:h,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:b}),O=w.cssClasses,m=w.cssProperties,g=ql(ql({transition:p&&a?"transform ".concat(u,"ms ").concat(c):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return S.createElement("div",{tabIndex:-1,className:O,style:g,ref:function(_){n.wrapperNode=_}},s)}}])}(B.PureComponent),UT=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},sr={isSsr:UT()};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 Xl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xl(Object(r),!0).forEach(function(n){as(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KT(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,ev(n.key),n)}}function GT(e,t,r){return t&&KT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HT(e,t,r){return t=Zi(t),qT(e,Qd()?Reflect.construct(t,r||[],Zi(e).constructor):t.apply(e,r))}function qT(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 VT(e)}function VT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qd=function(){return!!e})()}function Zi(e){return Zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zi(e)}function XT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cu(e,t)}function Cu(e,t){return Cu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cu(e,t)}function as(e,t,r){return t=ev(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ev(e){var t=YT(e,"string");return Mr(t)=="symbol"?t:t+""}function YT(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 ZT(e){return e.dataKey}function JT(e,t){return S.isValidElement(e)?S.cloneElement(e,t):typeof e=="function"?S.createElement(e,t):S.createElement(PT,t)}var Je=function(e){function t(){return WT(this,t),HT(this,t,arguments)}return XT(t,e),GT(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.content,f=i.coordinate,l=i.filterNull,p=i.isAnimationActive,h=i.offset,y=i.payload,v=i.payloadUniqBy,d=i.position,b=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=Wd(y.filter(function(A){return A.value!=null&&(A.hide!==!0||n.props.includeHidden)}),v,ZT));var g=m.length>0;return S.createElement(zT,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:p,active:a,coordinate:f,hasPayload:g,offset:h,position:d,reverseDirection:b,useTranslate3d:x,viewBox:w,wrapperStyle:O},JT(s,Yl(Yl({},this.props),{},{payload:m})))}}])}(B.PureComponent);as(Je,"displayName","Tooltip");as(Je,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!sr.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 QT=ht,eE=function(){return QT.Date.now()},tE=eE,rE=/\s/;function nE(e){for(var t=e.length;t--&&rE.test(e.charAt(t)););return t}var iE=nE,aE=iE,oE=/^\s+/;function uE(e){return e&&e.slice(0,aE(e)+1).replace(oE,"")}var cE=uE,sE=cE,Zl=Lt,lE=tn,Jl=NaN,fE=/^[-+]0x[0-9a-f]+$/i,pE=/^0b[01]+$/i,hE=/^0o[0-7]+$/i,dE=parseInt;function vE(e){if(typeof e=="number")return e;if(lE(e))return Jl;if(Zl(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Zl(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=sE(e);var r=pE.test(e);return r||hE.test(e)?dE(e.slice(2),r?2:8):fE.test(e)?Jl:+e}var tv=vE,yE=Lt,Fo=tE,Ql=tv,mE="Expected a function",gE=Math.max,bE=Math.min;function xE(e,t,r){var n,i,a,o,u,c,s=0,f=!1,l=!1,p=!0;if(typeof e!="function")throw new TypeError(mE);t=Ql(t)||0,yE(r)&&(f=!!r.leading,l="maxWait"in r,a=l?gE(Ql(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p);function h(g){var A=n,_=i;return n=i=void 0,s=g,o=e.apply(_,A),o}function y(g){return s=g,u=setTimeout(b,t),f?h(g):o}function v(g){var A=g-c,_=g-s,P=t-A;return l?bE(P,a-_):P}function d(g){var A=g-c,_=g-s;return c===void 0||A>=t||A<0||l&&_>=a}function b(){var g=Fo();if(d(g))return x(g);u=setTimeout(b,v(g))}function x(g){return u=void 0,p&&n?h(g):(n=i=void 0,o)}function w(){u!==void 0&&clearTimeout(u),s=0,n=c=i=u=void 0}function O(){return u===void 0?o:x(Fo())}function m(){var g=Fo(),A=d(g);if(n=arguments,i=this,c=g,A){if(u===void 0)return y(c);if(l)return clearTimeout(u),u=setTimeout(b,t),h(c)}return u===void 0&&(u=setTimeout(b,t)),o}return m.cancel=w,m.flush=O,m}var wE=xE,OE=wE,AE=Lt,SE="Expected a function";function _E(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(SE);return AE(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),OE(e,t,{leading:n,maxWait:t,trailing:i})}var PE=_E;const $E=ce(PE);var to=function(t){return null};to.displayName="Cell";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 ef(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 Iu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ef(Object(r),!0).forEach(function(n){TE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ef(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TE(e,t,r){return t=EE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EE(e){var t=jE(e,"string");return Rn(t)=="symbol"?t:t+""}function jE(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 vr={widthCache:{},cacheCount:0},ME=2e3,CE={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},tf="recharts_measurement_span";function IE(e){var t=Iu({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Pn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||sr.isSsr)return{width:0,height:0};var n=IE(r),i=JSON.stringify({text:t,copyStyle:n});if(vr.widthCache[i])return vr.widthCache[i];try{var a=document.getElementById(tf);a||(a=document.createElement("span"),a.setAttribute("id",tf),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Iu(Iu({},CE),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return vr.widthCache[i]=c,++vr.cacheCount>ME&&(vr.cacheCount=0,vr.widthCache={}),c}catch{return{width:0,height:0}}},kE=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Ji(e,t){return LE(e)||RE(e,t)||DE(e,t)||NE()}function NE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DE(e,t){if(e){if(typeof e=="string")return rf(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 rf(e,t)}}function rf(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 RE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function LE(e){if(Array.isArray(e))return e}function BE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nf(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,zE(n.key),n)}}function FE(e,t,r){return t&&nf(e.prototype,t),r&&nf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zE(e){var t=UE(e,"string");return Ln(t)=="symbol"?t:t+""}function UE(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 String(e)}var af=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,of=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,WE=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,KE=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,rv={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},GE=Object.keys(rv),br="NaN";function HE(e,t){return e*rv[t]}var $i=function(){function e(t,r){BE(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!WE.test(r)&&(this.num=NaN,this.unit=""),GE.includes(r)&&(this.num=HE(t,r),this.unit="px")}return FE(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=KE.exec(r))!==null&&n!==void 0?n:[],a=Ji(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])}();function nv(e){if(e.includes(br))return br;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=af.exec(t))!==null&&r!==void 0?r:[],i=Ji(n,4),a=i[1],o=i[2],u=i[3],c=$i.parse(a??""),s=$i.parse(u??""),f=o==="*"?c.multiply(s):c.divide(s);if(f.isNaN())return br;t=t.replace(af,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,p=(l=of.exec(t))!==null&&l!==void 0?l:[],h=Ji(p,4),y=h[1],v=h[2],d=h[3],b=$i.parse(y??""),x=$i.parse(d??""),w=v==="+"?b.add(x):b.subtract(x);if(w.isNaN())return br;t=t.replace(of,w.toString())}return t}var uf=/\(([^()]*)\)/;function qE(e){for(var t=e;t.includes("(");){var r=uf.exec(t),n=Ji(r,2),i=n[1];t=t.replace(uf,nv(i))}return t}function VE(e){var t=e.replace(/\s+/g,"");return t=qE(t),t=nv(t),t}function XE(e){try{return VE(e)}catch{return br}}function zo(e){var t=XE(e.slice(5,-1));return t===br?"":t}var YE=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],ZE=["dx","dy","angle","className","breakAll"];function ku(){return ku=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},ku.apply(this,arguments)}function cf(e,t){if(e==null)return{};var r=JE(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 JE(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 sf(e,t){return rj(e)||tj(e,t)||ej(e,t)||QE()}function QE(){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 ej(e,t){if(e){if(typeof e=="string")return lf(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 lf(e,t)}}function lf(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 tj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function rj(e){if(Array.isArray(e))return e}var iv=/[ \f\n\r\t\v\u2028\u2029]+/,av=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(iv));var o=a.map(function(c){return{word:c,width:Pn(c,i).width}}),u=n?0:Pn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},nj=function(t,r,n,i,a){var o=t.maxLines,u=t.children,c=t.style,s=t.breakAll,f=R(o),l=u,p=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce(function(N,D){var F=D.word,z=D.width,G=N[N.length-1];if(G&&(i==null||a||G.width+z+n<Number(i)))G.words.push(F),G.width+=z+n;else{var V={words:[F],width:z};N.push(V)}return N},[])},h=p(r),y=function(C){return C.reduce(function(N,D){return N.width>D.width?N:D})};if(!f)return h;for(var v="…",d=function(C){var N=l.slice(0,C),D=av({breakAll:s,style:c,children:N+v}).wordsWithComputedWidth,F=p(D),z=F.length>o||y(F).width>Number(i);return[z,F]},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,A=d(g),_=sf(A,2),P=_[0],E=_[1],T=d(m),$=sf(T,1),I=$[0];if(!P&&!I&&(b=m+1),P&&I&&(x=m-1),!P&&I){O=E;break}w++}return O||h},ff=function(t){var r=Z(t)?[]:t.toString().split(iv);return[{words:r}]},ij=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!sr.isSsr){var c,s,f=av({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,p=f.spaceWidth;c=l,s=p}else return ff(i);return nj({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return ff(i)},pf="#808080",ir=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,c=t.capHeight,s=c===void 0?"0.71em":c,f=t.scaleToFit,l=f===void 0?!1:f,p=t.textAnchor,h=p===void 0?"start":p,y=t.verticalAnchor,v=y===void 0?"end":y,d=t.fill,b=d===void 0?pf:d,x=cf(t,YE),w=B.useMemo(function(){return ij({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,A=x.className,_=x.breakAll,P=cf(x,ZE);if(!$e(n)||!$e(a))return null;var E=n+(R(O)?O:0),T=a+(R(m)?m:0),$;switch(v){case"start":$=zo("calc(".concat(s,")"));break;case"middle":$=zo("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:$=zo("calc(".concat(w.length-1," * -").concat(u,")"));break}var I=[];if(l){var M=w[0].width,C=x.width;I.push("scale(".concat((R(C)?C/M:1)/M,")"))}return g&&I.push("rotate(".concat(g,", ").concat(E,", ").concat(T,")")),I.length&&(P.transform=I.join(" ")),S.createElement("text",ku({},H(P,!0),{x:E,y:T,className:ee("recharts-text",A),textAnchor:h,fill:b.includes("url")?pf:b}),w.map(function(N,D){var F=N.words.join(_?"":" ");return S.createElement("tspan",{x:E,dy:D===0?$:u,key:"".concat(F,"-").concat(D)},F)}))};function Dt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function aj(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function os(e){let t,r,n;e.length!==2?(t=Dt,r=(u,c)=>Dt(e(u),c),n=(u,c)=>e(u)-c):(t=e===Dt||e===aj?e:oj,r=e,n=e);function i(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<0?s=l+1:f=l}while(s<f)}return s}function a(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<=0?s=l+1:f=l}while(s<f)}return s}function o(u,c,s=0,f=u.length){const l=i(u,c,s,f-1);return l>s&&n(u[l-1],c)>-n(u[l],c)?l-1:l}return{left:i,center:o,right:a}}function oj(){return 0}function ov(e){return e===null?NaN:+e}function*uj(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const cj=os(Dt),vi=cj.right;os(ov).center;class hf extends Map{constructor(t,r=fj){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(df(this,t))}has(t){return super.has(df(this,t))}set(t,r){return super.set(sj(this,t),r)}delete(t){return super.delete(lj(this,t))}}function df({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function sj({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function lj({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function fj(e){return e!==null&&typeof e=="object"?e.valueOf():e}function pj(e=Dt){if(e===Dt)return uv;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 uv(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const hj=Math.sqrt(50),dj=Math.sqrt(10),vj=Math.sqrt(2);function Qi(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>=hj?10:a>=dj?5:a>=vj?2:1;let u,c,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),c=Math.round(t*s),u/s<e&&++u,c/s>t&&--c,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),c=Math.round(t/s),u*s<e&&++u,c*s>t&&--c),c<u&&.5<=r&&r<2?Qi(e,t,r*2):[u,c,s]}function Nu(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?Qi(t,e,r):Qi(e,t,r);if(!(a>=i))return[];const u=a-i+1,c=new Array(u);if(n)if(o<0)for(let s=0;s<u;++s)c[s]=(a-s)/-o;else for(let s=0;s<u;++s)c[s]=(a-s)*o;else if(o<0)for(let s=0;s<u;++s)c[s]=(i+s)/-o;else for(let s=0;s<u;++s)c[s]=(i+s)*o;return c}function Du(e,t,r){return t=+t,e=+e,r=+r,Qi(e,t,r)[2]}function Ru(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Du(t,e,r):Du(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function vf(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function yf(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function cv(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?uv:pj(i);n>r;){if(n-r>600){const c=n-r+1,s=t-r+1,f=Math.log(c),l=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*l*(c-l)/c)*(s-c/2<0?-1:1),h=Math.max(r,Math.floor(t-s*l/c+p)),y=Math.min(n,Math.floor(t+(c-s)*l/c+p));cv(e,t,h,y,i)}const a=e[t];let o=r,u=n;for(mn(e,r,t),i(e[n],a)>0&&mn(e,r,n);o<u;){for(mn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?mn(e,r,u):(++u,mn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function mn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function yj(e,t,r){if(e=Float64Array.from(uj(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return yf(e);if(t>=1)return vf(e);var n,i=(n-1)*t,a=Math.floor(i),o=vf(cv(e,a).subarray(0,a+1)),u=yf(e.subarray(a+1));return o+(u-o)*(i-a)}}function mj(e,t,r=ov){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 gj(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function rt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Et(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 Lu=Symbol("implicit");function us(){var e=new hf,t=[],r=[],n=Lu;function i(a){let o=e.get(a);if(o===void 0){if(n!==Lu)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 hf;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 us(t,r).unknown(n)},rt.apply(i,arguments),i}function Bn(){var e=us().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,c=0,s=0,f=.5;delete e.unknown;function l(){var p=t().length,h=i<n,y=h?i:n,v=h?n:i;a=(v-y)/Math.max(1,p-c+s*2),u&&(a=Math.floor(a)),y+=(v-y-a*(p-c))*f,o=a*(1-c),u&&(y=Math.round(y),o=Math.round(o));var d=gj(p).map(function(b){return y+a*b});return r(h?d.reverse():d)}return e.domain=function(p){return arguments.length?(t(p),l()):t()},e.range=function(p){return arguments.length?([n,i]=p,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(p){return[n,i]=p,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(p){return arguments.length?(u=!!p,l()):u},e.padding=function(p){return arguments.length?(c=Math.min(1,s=+p),l()):c},e.paddingInner=function(p){return arguments.length?(c=Math.min(1,p),l()):c},e.paddingOuter=function(p){return arguments.length?(s=+p,l()):s},e.align=function(p){return arguments.length?(f=Math.max(0,Math.min(1,p)),l()):f},e.copy=function(){return Bn(t(),[n,i]).round(u).paddingInner(c).paddingOuter(s).align(f)},rt.apply(l(),arguments)}function sv(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return sv(t())},e}function $n(){return sv(Bn.apply(null,arguments).paddingInner(1))}function cs(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function lv(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function yi(){}var Fn=.7,ea=1/Fn,_r="\\s*([+-]?\\d+)\\s*",zn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",st="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bj=/^#([0-9a-f]{3,8})$/,xj=new RegExp(`^rgb\\(${_r},${_r},${_r}\\)$`),wj=new RegExp(`^rgb\\(${st},${st},${st}\\)$`),Oj=new RegExp(`^rgba\\(${_r},${_r},${_r},${zn}\\)$`),Aj=new RegExp(`^rgba\\(${st},${st},${st},${zn}\\)$`),Sj=new RegExp(`^hsl\\(${zn},${st},${st}\\)$`),_j=new RegExp(`^hsla\\(${zn},${st},${st},${zn}\\)$`),mf={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};cs(yi,Un,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:gf,formatHex:gf,formatHex8:Pj,formatHsl:$j,formatRgb:bf,toString:bf});function gf(){return this.rgb().formatHex()}function Pj(){return this.rgb().formatHex8()}function $j(){return fv(this).formatHsl()}function bf(){return this.rgb().formatRgb()}function Un(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=bj.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?xf(t):r===3?new Fe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ti(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ti(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=xj.exec(e))?new Fe(t[1],t[2],t[3],1):(t=wj.exec(e))?new Fe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Oj.exec(e))?Ti(t[1],t[2],t[3],t[4]):(t=Aj.exec(e))?Ti(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Sj.exec(e))?Af(t[1],t[2]/100,t[3]/100,1):(t=_j.exec(e))?Af(t[1],t[2]/100,t[3]/100,t[4]):mf.hasOwnProperty(e)?xf(mf[e]):e==="transparent"?new Fe(NaN,NaN,NaN,0):null}function xf(e){return new Fe(e>>16&255,e>>8&255,e&255,1)}function Ti(e,t,r,n){return n<=0&&(e=t=r=NaN),new Fe(e,t,r,n)}function Tj(e){return e instanceof yi||(e=Un(e)),e?(e=e.rgb(),new Fe(e.r,e.g,e.b,e.opacity)):new Fe}function Bu(e,t,r,n){return arguments.length===1?Tj(e):new Fe(e,t,r,n??1)}function Fe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}cs(Fe,Bu,lv(yi,{brighter(e){return e=e==null?ea:Math.pow(ea,e),new Fe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Fn:Math.pow(Fn,e),new Fe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Fe(er(this.r),er(this.g),er(this.b),ta(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:wf,formatHex:wf,formatHex8:Ej,formatRgb:Of,toString:Of}));function wf(){return`#${Yt(this.r)}${Yt(this.g)}${Yt(this.b)}`}function Ej(){return`#${Yt(this.r)}${Yt(this.g)}${Yt(this.b)}${Yt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Of(){const e=ta(this.opacity);return`${e===1?"rgb(":"rgba("}${er(this.r)}, ${er(this.g)}, ${er(this.b)}${e===1?")":`, ${e})`}`}function ta(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function er(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yt(e){return e=er(e),(e<16?"0":"")+e.toString(16)}function Af(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ot(e,t,r,n)}function fv(e){if(e instanceof ot)return new ot(e.h,e.s,e.l,e.opacity);if(e instanceof yi||(e=Un(e)),!e)return new ot;if(e instanceof ot)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,c=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=c<.5?a+i:2-a-i,o*=60):u=c>0&&c<1?0:o,new ot(o,u,c,e.opacity)}function jj(e,t,r,n){return arguments.length===1?fv(e):new ot(e,t,r,n??1)}function ot(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}cs(ot,jj,lv(yi,{brighter(e){return e=e==null?ea:Math.pow(ea,e),new ot(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Fn:Math.pow(Fn,e),new ot(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Fe(Uo(e>=240?e-240:e+120,i,n),Uo(e,i,n),Uo(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ot(Sf(this.h),Ei(this.s),Ei(this.l),ta(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=ta(this.opacity);return`${e===1?"hsl(":"hsla("}${Sf(this.h)}, ${Ei(this.s)*100}%, ${Ei(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Sf(e){return e=(e||0)%360,e<0?e+360:e}function Ei(e){return Math.max(0,Math.min(1,e||0))}function Uo(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 ss=e=>()=>e;function Mj(e,t){return function(r){return e+r*t}}function Cj(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 Ij(e){return(e=+e)==1?pv:function(t,r){return r-t?Cj(t,r,e):ss(isNaN(t)?r:t)}}function pv(e,t){var r=t-e;return r?Mj(e,r):ss(isNaN(e)?t:e)}const _f=function e(t){var r=Ij(t);function n(i,a){var o=r((i=Bu(i)).r,(a=Bu(a)).r),u=r(i.g,a.g),c=r(i.b,a.b),s=pv(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=c(f),i.opacity=s(f),i+""}}return n.gamma=e,n}(1);function kj(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 Nj(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Dj(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]=fn(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 Rj(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ra(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Lj(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]=fn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Fu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wo=new RegExp(Fu.source,"g");function Bj(e){return function(){return e}}function Fj(e){return function(t){return e(t)+""}}function zj(e,t){var r=Fu.lastIndex=Wo.lastIndex=0,n,i,a,o=-1,u=[],c=[];for(e=e+"",t=t+"";(n=Fu.exec(e))&&(i=Wo.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,c.push({i:o,x:ra(n,i)})),r=Wo.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?Fj(c[0].x):Bj(t):(t=c.length,function(s){for(var f=0,l;f<t;++f)u[(l=c[f]).i]=l.x(s);return u.join("")})}function fn(e,t){var r=typeof t,n;return t==null||r==="boolean"?ss(t):(r==="number"?ra:r==="string"?(n=Un(t))?(t=n,_f):zj:t instanceof Un?_f:t instanceof Date?Rj:Nj(t)?kj:Array.isArray(t)?Dj:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Lj:ra)(e,t)}function ls(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Uj(e,t){t===void 0&&(t=e,e=fn);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 Wj(e){return function(){return e}}function na(e){return+e}var Pf=[0,1];function Be(e){return e}function zu(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:Wj(isNaN(t)?NaN:.5)}function Kj(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Gj(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=zu(i,n),a=r(o,a)):(n=zu(n,i),a=r(a,o)),function(u){return a(n(u))}}function Hj(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]=zu(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var c=vi(e,u,1,n)-1;return a[c](i[c](u))}}function mi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ro(){var e=Pf,t=Pf,r=fn,n,i,a,o=Be,u,c,s;function f(){var p=Math.min(e.length,t.length);return o!==Be&&(o=Kj(e[0],e[p-1])),u=p>2?Hj:Gj,c=s=null,l}function l(p){return p==null||isNaN(p=+p)?a:(c||(c=u(e.map(n),t,r)))(n(o(p)))}return l.invert=function(p){return o(i((s||(s=u(t,e.map(n),ra)))(p)))},l.domain=function(p){return arguments.length?(e=Array.from(p,na),f()):e.slice()},l.range=function(p){return arguments.length?(t=Array.from(p),f()):t.slice()},l.rangeRound=function(p){return t=Array.from(p),r=ls,f()},l.clamp=function(p){return arguments.length?(o=p?!0:Be,f()):o!==Be},l.interpolate=function(p){return arguments.length?(r=p,f()):r},l.unknown=function(p){return arguments.length?(a=p,l):a},function(p,h){return n=p,i=h,f()}}function fs(){return ro()(Be,Be)}function qj(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ia(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 Cr(e){return e=ia(Math.abs(e)),e?e[1]:NaN}function Vj(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),a.push(r.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Xj(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Yj=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Wn(e){if(!(t=Yj.exec(e)))throw new Error("invalid format: "+e);var t;return new ps({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]})}Wn.prototype=ps.prototype;function ps(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+""}ps.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 Zj(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 aa;function Jj(e,t){var r=ia(e,t);if(!r)return aa=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(aa=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")+ia(e,Math.max(0,t+a-1))[0]}function $f(e,t){var r=ia(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 Tf={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:qj,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)=>$f(e*100,t),r:$f,s:Jj,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ef(e){return e}var jf=Array.prototype.map,Mf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Qj(e){var t=e.grouping===void 0||e.thousands===void 0?Ef:Vj(jf.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?Ef:Xj(jf.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function s(l,p){l=Wn(l);var h=l.fill,y=l.align,v=l.sign,d=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"):Tf[g]||(O===void 0&&(O=12),m=!0,g="g"),(b||h==="0"&&y==="=")&&(b=!0,h="0",y="=");var A=(p&&p.prefix!==void 0?p.prefix:"")+(d==="$"?r:d==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():""),_=(d==="$"?n:/[%p]/.test(g)?o:"")+(p&&p.suffix!==void 0?p.suffix:""),P=Tf[g],E=/[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 T($){var I=A,M=_,C,N,D;if(g==="c")M=P($)+M,$="";else{$=+$;var F=$<0||1/$<0;if($=isNaN($)?c:P(Math.abs($),O),m&&($=Zj($)),F&&+$==0&&v!=="+"&&(F=!1),I=(F?v==="("?v:u:v==="-"||v==="("?"":v)+I,M=(g==="s"&&!isNaN($)&&aa!==void 0?Mf[8+aa/3]:"")+M+(F&&v==="("?")":""),E){for(C=-1,N=$.length;++C<N;)if(D=$.charCodeAt(C),48>D||D>57){M=(D===46?i+$.slice(C+1):$.slice(C))+M,$=$.slice(0,C);break}}}w&&!b&&($=t($,1/0));var z=I.length+$.length+M.length,G=z<x?new Array(x-z+1).join(h):"";switch(w&&b&&($=t(G+$,G.length?x-M.length:1/0),G=""),y){case"<":$=I+$+M+G;break;case"=":$=I+G+$+M;break;case"^":$=G.slice(0,z=G.length>>1)+I+$+M+G.slice(z);break;default:$=G+I+$+M;break}return a($)}return T.toString=function(){return l+""},T}function f(l,p){var h=Math.max(-8,Math.min(8,Math.floor(Cr(p)/3)))*3,y=Math.pow(10,-h),v=s((l=Wn(l),l.type="f",l),{suffix:Mf[8+h/3]});return function(d){return v(y*d)}}return{format:s,formatPrefix:f}}var ji,hs,hv;eM({thousands:",",grouping:[3],currency:["$",""]});function eM(e){return ji=Qj(e),hs=ji.format,hv=ji.formatPrefix,ji}function tM(e){return Math.max(0,-Cr(Math.abs(e)))}function rM(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Cr(t)/3)))*3-Cr(Math.abs(e)))}function nM(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Cr(t)-Cr(e))+1}function dv(e,t,r,n){var i=Ru(e,t,r),a;switch(n=Wn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=rM(i,o))&&(n.precision=a),hv(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=nM(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=tM(i))&&(n.precision=a-(n.type==="%")*2);break}}return hs(n)}function Bt(e){var t=e.domain;return e.ticks=function(r){var n=t();return Nu(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return dv(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],c,s,f=10;for(u<o&&(s=o,o=u,u=s,s=i,i=a,a=s);f-- >0;){if(s=Du(o,u,r),s===c)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;c=s}return e},e}function oa(){var e=fs();return e.copy=function(){return mi(e,oa())},rt.apply(e,arguments),Bt(e)}function vv(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,na),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return vv(e).unknown(t)},e=arguments.length?Array.from(e,na):[0,1],Bt(r)}function yv(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 Cf(e){return Math.log(e)}function If(e){return Math.exp(e)}function iM(e){return-Math.log(-e)}function aM(e){return-Math.exp(-e)}function oM(e){return isFinite(e)?+("1e"+e):e<0?0:e}function uM(e){return e===10?oM:e===Math.E?Math.exp:t=>Math.pow(e,t)}function cM(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 kf(e){return(t,r)=>-e(-t,r)}function ds(e){const t=e(Cf,If),r=t.domain;let n=10,i,a;function o(){return i=cM(n),a=uM(n),r()[0]<0?(i=kf(i),a=kf(a),e(iM,aM)):e(Cf,If),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const c=r();let s=c[0],f=c[c.length-1];const l=f<s;l&&([s,f]=[f,s]);let p=i(s),h=i(f),y,v;const d=u==null?10:+u;let b=[];if(!(n%1)&&h-p<d){if(p=Math.floor(p),h=Math.ceil(h),s>0){for(;p<=h;++p)for(y=1;y<n;++y)if(v=p<0?y/a(-p):y*a(p),!(v<s)){if(v>f)break;b.push(v)}}else for(;p<=h;++p)for(y=n-1;y>=1;--y)if(v=p>0?y/a(-p):y*a(p),!(v<s)){if(v>f)break;b.push(v)}b.length*2<d&&(b=Nu(s,f,d))}else b=Nu(p,h,Math.min(h-p,d)).map(a);return l?b.reverse():b},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=Wn(c)).precision==null&&(c.trim=!0),c=hs(c)),u===1/0)return c;const s=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=s?c(f):""}},t.nice=()=>r(yv(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function mv(){const e=ds(ro()).domain([1,10]);return e.copy=()=>mi(e,mv()).base(e.base()),rt.apply(e,arguments),e}function Nf(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Df(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function vs(e){var t=1,r=e(Nf(t),Df(t));return r.constant=function(n){return arguments.length?e(Nf(t=+n),Df(t)):t},Bt(r)}function gv(){var e=vs(ro());return e.copy=function(){return mi(e,gv()).constant(e.constant())},rt.apply(e,arguments)}function Rf(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function sM(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function lM(e){return e<0?-e*e:e*e}function ys(e){var t=e(Be,Be),r=1;function n(){return r===1?e(Be,Be):r===.5?e(sM,lM):e(Rf(r),Rf(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Bt(t)}function ms(){var e=ys(ro());return e.copy=function(){return mi(e,ms()).exponent(e.exponent())},rt.apply(e,arguments),e}function fM(){return ms.apply(null,arguments).exponent(.5)}function Lf(e){return Math.sign(e)*e*e}function pM(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function bv(){var e=fs(),t=[0,1],r=!1,n;function i(a){var o=pM(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Lf(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,na)).map(Lf)),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 bv(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},rt.apply(i,arguments),Bt(i)}function xv(){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]=mj(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[vi(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(Dt),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 xv().domain(e).range(t).unknown(n)},rt.apply(a,arguments)}function wv(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[vi(n,c,0,r)]:a}function u(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,u()):[e,t]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,u()):i.slice()},o.invertExtent=function(c){var s=i.indexOf(c);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return wv().domain([e,t]).range(i).unknown(a)},rt.apply(Bt(o),arguments)}function Ov(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[vi(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 Ov().domain(e).range(t).unknown(r)},rt.apply(i,arguments)}const Ko=new Date,Go=new Date;function Te(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 c=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return c;let s;do c.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return c},i.filter=a=>Te(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)=>(Ko.setTime(+a),Go.setTime(+o),e(Ko),e(Go),Math.floor(r(Ko,Go))),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 ua=Te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ua.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Te(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ua);ua.range;const bt=1e3,et=bt*60,xt=et*60,St=xt*24,gs=St*7,Bf=St*30,Ho=St*365,Zt=Te(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*bt)},(e,t)=>(t-e)/bt,e=>e.getUTCSeconds());Zt.range;const bs=Te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bt)},(e,t)=>{e.setTime(+e+t*et)},(e,t)=>(t-e)/et,e=>e.getMinutes());bs.range;const xs=Te(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*et)},(e,t)=>(t-e)/et,e=>e.getUTCMinutes());xs.range;const ws=Te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bt-e.getMinutes()*et)},(e,t)=>{e.setTime(+e+t*xt)},(e,t)=>(t-e)/xt,e=>e.getHours());ws.range;const Os=Te(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*xt)},(e,t)=>(t-e)/xt,e=>e.getUTCHours());Os.range;const gi=Te(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*et)/St,e=>e.getDate()-1);gi.range;const no=Te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/St,e=>e.getUTCDate()-1);no.range;const Av=Te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/St,e=>Math.floor(e/St));Av.range;function lr(e){return Te(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*et)/gs)}const io=lr(0),ca=lr(1),hM=lr(2),dM=lr(3),Ir=lr(4),vM=lr(5),yM=lr(6);io.range;ca.range;hM.range;dM.range;Ir.range;vM.range;yM.range;function fr(e){return Te(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)/gs)}const ao=fr(0),sa=fr(1),mM=fr(2),gM=fr(3),kr=fr(4),bM=fr(5),xM=fr(6);ao.range;sa.range;mM.range;gM.range;kr.range;bM.range;xM.range;const As=Te(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());As.range;const Ss=Te(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());Ss.range;const _t=Te(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());_t.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Te(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)});_t.range;const Pt=Te(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Pt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Te(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Pt.range;function Sv(e,t,r,n,i,a){const o=[[Zt,1,bt],[Zt,5,5*bt],[Zt,15,15*bt],[Zt,30,30*bt],[a,1,et],[a,5,5*et],[a,15,15*et],[a,30,30*et],[i,1,xt],[i,3,3*xt],[i,6,6*xt],[i,12,12*xt],[n,1,St],[n,2,2*St],[r,1,gs],[t,1,Bf],[t,3,3*Bf],[e,1,Ho]];function u(s,f,l){const p=f<s;p&&([s,f]=[f,s]);const h=l&&typeof l.range=="function"?l:c(s,f,l),y=h?h.range(s,+f+1):[];return p?y.reverse():y}function c(s,f,l){const p=Math.abs(f-s)/l,h=os(([,,d])=>d).right(o,p);if(h===o.length)return e.every(Ru(s/Ho,f/Ho,l));if(h===0)return ua.every(Math.max(Ru(s,f,l),1));const[y,v]=o[p/o[h-1][2]<o[h][2]/p?h-1:h];return y.every(v)}return[u,c]}const[wM,OM]=Sv(Pt,Ss,ao,Av,Os,xs),[AM,SM]=Sv(_t,As,io,gi,ws,bs);function qo(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 Vo(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function gn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function _M(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,c=e.shortMonths,s=bn(i),f=xn(i),l=bn(a),p=xn(a),h=bn(o),y=xn(o),v=bn(u),d=xn(u),b=bn(c),x=xn(c),w={a:D,A:F,b:z,B:G,c:null,d:Gf,e:Gf,f:VM,g:iC,G:oC,H:GM,I:HM,j:qM,L:_v,m:XM,M:YM,p:V,q:W,Q:Vf,s:Xf,S:ZM,u:JM,U:QM,V:eC,w:tC,W:rC,x:null,X:null,y:nC,Y:aC,Z:uC,"%":qf},O={a:X,A:oe,b:ge,B:De,c:null,d:Hf,e:Hf,f:fC,g:wC,G:AC,H:cC,I:sC,j:lC,L:$v,m:pC,M:hC,p:vt,q:Ie,Q:Vf,s:Xf,S:dC,u:vC,U:yC,V:mC,w:gC,W:bC,x:null,X:null,y:xC,Y:OC,Z:SC,"%":qf},m={a:E,A:T,b:$,B:I,c:M,d:Wf,e:Wf,f:zM,g:Uf,G:zf,H:Kf,I:Kf,j:RM,L:FM,m:DM,M:LM,p:P,q:NM,Q:WM,s:KM,S:BM,u:jM,U:MM,V:CM,w:EM,W:IM,x:C,X:N,y:Uf,Y:zf,Z:kM,"%":UM};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(U,J){return function(Q){var k=[],de=-1,L=0,me=U.length,ve,Me,Mt;for(Q instanceof Date||(Q=new Date(+Q));++de<me;)U.charCodeAt(de)===37&&(k.push(U.slice(L,de)),(Me=Ff[ve=U.charAt(++de)])!=null?ve=U.charAt(++de):Me=ve==="e"?" ":"0",(Mt=J[ve])&&(ve=Mt(Q,Me)),k.push(ve),L=de+1);return k.push(U.slice(L,de)),k.join("")}}function A(U,J){return function(Q){var k=gn(1900,void 0,1),de=_(k,U,Q+="",0),L,me;if(de!=Q.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(J&&!("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?(L=Vo(gn(k.y,0,1)),me=L.getUTCDay(),L=me>4||me===0?sa.ceil(L):sa(L),L=no.offset(L,(k.V-1)*7),k.y=L.getUTCFullYear(),k.m=L.getUTCMonth(),k.d=L.getUTCDate()+(k.w+6)%7):(L=qo(gn(k.y,0,1)),me=L.getDay(),L=me>4||me===0?ca.ceil(L):ca(L),L=gi.offset(L,(k.V-1)*7),k.y=L.getFullYear(),k.m=L.getMonth(),k.d=L.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?Vo(gn(k.y,0,1)).getUTCDay():qo(gn(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,Vo(k)):qo(k)}}function _(U,J,Q,k){for(var de=0,L=J.length,me=Q.length,ve,Me;de<L;){if(k>=me)return-1;if(ve=J.charCodeAt(de++),ve===37){if(ve=J.charAt(de++),Me=m[ve in Ff?J.charAt(de++):ve],!Me||(k=Me(U,Q,k))<0)return-1}else if(ve!=Q.charCodeAt(k++))return-1}return k}function P(U,J,Q){var k=s.exec(J.slice(Q));return k?(U.p=f.get(k[0].toLowerCase()),Q+k[0].length):-1}function E(U,J,Q){var k=h.exec(J.slice(Q));return k?(U.w=y.get(k[0].toLowerCase()),Q+k[0].length):-1}function T(U,J,Q){var k=l.exec(J.slice(Q));return k?(U.w=p.get(k[0].toLowerCase()),Q+k[0].length):-1}function $(U,J,Q){var k=b.exec(J.slice(Q));return k?(U.m=x.get(k[0].toLowerCase()),Q+k[0].length):-1}function I(U,J,Q){var k=v.exec(J.slice(Q));return k?(U.m=d.get(k[0].toLowerCase()),Q+k[0].length):-1}function M(U,J,Q){return _(U,t,J,Q)}function C(U,J,Q){return _(U,r,J,Q)}function N(U,J,Q){return _(U,n,J,Q)}function D(U){return o[U.getDay()]}function F(U){return a[U.getDay()]}function z(U){return c[U.getMonth()]}function G(U){return u[U.getMonth()]}function V(U){return i[+(U.getHours()>=12)]}function W(U){return 1+~~(U.getMonth()/3)}function X(U){return o[U.getUTCDay()]}function oe(U){return a[U.getUTCDay()]}function ge(U){return c[U.getUTCMonth()]}function De(U){return u[U.getUTCMonth()]}function vt(U){return i[+(U.getUTCHours()>=12)]}function Ie(U){return 1+~~(U.getUTCMonth()/3)}return{format:function(U){var J=g(U+="",w);return J.toString=function(){return U},J},parse:function(U){var J=A(U+="",!1);return J.toString=function(){return U},J},utcFormat:function(U){var J=g(U+="",O);return J.toString=function(){return U},J},utcParse:function(U){var J=A(U+="",!0);return J.toString=function(){return U},J}}}var Ff={"-":"",_:" ",0:"0"},je=/^\s*\d+/,PM=/^%/,$M=/[\\^$*+?|[\]().{}]/g;function re(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function TM(e){return e.replace($M,"\\$&")}function bn(e){return new RegExp("^(?:"+e.map(TM).join("|")+")","i")}function xn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function EM(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function jM(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function MM(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function CM(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function IM(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function zf(e,t,r){var n=je.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Uf(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function kM(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 NM(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function DM(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Wf(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function RM(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Kf(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function LM(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function BM(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function FM(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function zM(e,t,r){var n=je.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function UM(e,t,r){var n=PM.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function WM(e,t,r){var n=je.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function KM(e,t,r){var n=je.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Gf(e,t){return re(e.getDate(),t,2)}function GM(e,t){return re(e.getHours(),t,2)}function HM(e,t){return re(e.getHours()%12||12,t,2)}function qM(e,t){return re(1+gi.count(_t(e),e),t,3)}function _v(e,t){return re(e.getMilliseconds(),t,3)}function VM(e,t){return _v(e,t)+"000"}function XM(e,t){return re(e.getMonth()+1,t,2)}function YM(e,t){return re(e.getMinutes(),t,2)}function ZM(e,t){return re(e.getSeconds(),t,2)}function JM(e){var t=e.getDay();return t===0?7:t}function QM(e,t){return re(io.count(_t(e)-1,e),t,2)}function Pv(e){var t=e.getDay();return t>=4||t===0?Ir(e):Ir.ceil(e)}function eC(e,t){return e=Pv(e),re(Ir.count(_t(e),e)+(_t(e).getDay()===4),t,2)}function tC(e){return e.getDay()}function rC(e,t){return re(ca.count(_t(e)-1,e),t,2)}function nC(e,t){return re(e.getFullYear()%100,t,2)}function iC(e,t){return e=Pv(e),re(e.getFullYear()%100,t,2)}function aC(e,t){return re(e.getFullYear()%1e4,t,4)}function oC(e,t){var r=e.getDay();return e=r>=4||r===0?Ir(e):Ir.ceil(e),re(e.getFullYear()%1e4,t,4)}function uC(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+re(t/60|0,"0",2)+re(t%60,"0",2)}function Hf(e,t){return re(e.getUTCDate(),t,2)}function cC(e,t){return re(e.getUTCHours(),t,2)}function sC(e,t){return re(e.getUTCHours()%12||12,t,2)}function lC(e,t){return re(1+no.count(Pt(e),e),t,3)}function $v(e,t){return re(e.getUTCMilliseconds(),t,3)}function fC(e,t){return $v(e,t)+"000"}function pC(e,t){return re(e.getUTCMonth()+1,t,2)}function hC(e,t){return re(e.getUTCMinutes(),t,2)}function dC(e,t){return re(e.getUTCSeconds(),t,2)}function vC(e){var t=e.getUTCDay();return t===0?7:t}function yC(e,t){return re(ao.count(Pt(e)-1,e),t,2)}function Tv(e){var t=e.getUTCDay();return t>=4||t===0?kr(e):kr.ceil(e)}function mC(e,t){return e=Tv(e),re(kr.count(Pt(e),e)+(Pt(e).getUTCDay()===4),t,2)}function gC(e){return e.getUTCDay()}function bC(e,t){return re(sa.count(Pt(e)-1,e),t,2)}function xC(e,t){return re(e.getUTCFullYear()%100,t,2)}function wC(e,t){return e=Tv(e),re(e.getUTCFullYear()%100,t,2)}function OC(e,t){return re(e.getUTCFullYear()%1e4,t,4)}function AC(e,t){var r=e.getUTCDay();return e=r>=4||r===0?kr(e):kr.ceil(e),re(e.getUTCFullYear()%1e4,t,4)}function SC(){return"+0000"}function qf(){return"%"}function Vf(e){return+e}function Xf(e){return Math.floor(+e/1e3)}var yr,Ev,jv;_C({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 _C(e){return yr=_M(e),Ev=yr.format,yr.parse,jv=yr.utcFormat,yr.utcParse,yr}function PC(e){return new Date(e)}function $C(e){return e instanceof Date?+e:+new Date(+e)}function _s(e,t,r,n,i,a,o,u,c,s){var f=fs(),l=f.invert,p=f.domain,h=s(".%L"),y=s(":%S"),v=s("%I:%M"),d=s("%I %p"),b=s("%a %d"),x=s("%b %d"),w=s("%B"),O=s("%Y");function m(g){return(c(g)<g?h:u(g)<g?y:o(g)<g?v:a(g)<g?d: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?p(Array.from(g,$C)):p().map(PC)},f.ticks=function(g){var A=p();return e(A[0],A[A.length-1],g??10)},f.tickFormat=function(g,A){return A==null?m:s(A)},f.nice=function(g){var A=p();return(!g||typeof g.range!="function")&&(g=t(A[0],A[A.length-1],g??10)),g?p(yv(A,g)):f},f.copy=function(){return mi(f,_s(e,t,r,n,i,a,o,u,c,s))},f}function TC(){return rt.apply(_s(AM,SM,_t,As,io,gi,ws,bs,Zt,Ev).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function EC(){return rt.apply(_s(wM,OM,Pt,Ss,ao,no,Os,xs,Zt,jv).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function oo(){var e=0,t=1,r,n,i,a,o=Be,u=!1,c;function s(l){return l==null||isNaN(l=+l)?c:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}s.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(l){return arguments.length?(u=!!l,s):u},s.interpolator=function(l){return arguments.length?(o=l,s):o};function f(l){return function(p){var h,y;return arguments.length?([h,y]=p,o=l(h,y),s):[o(0),o(1)]}}return s.range=f(fn),s.rangeRound=f(ls),s.unknown=function(l){return arguments.length?(c=l,s):c},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),s}}function Ft(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Mv(){var e=Bt(oo()(Be));return e.copy=function(){return Ft(e,Mv())},Et.apply(e,arguments)}function Cv(){var e=ds(oo()).domain([1,10]);return e.copy=function(){return Ft(e,Cv()).base(e.base())},Et.apply(e,arguments)}function Iv(){var e=vs(oo());return e.copy=function(){return Ft(e,Iv()).constant(e.constant())},Et.apply(e,arguments)}function Ps(){var e=ys(oo());return e.copy=function(){return Ft(e,Ps()).exponent(e.exponent())},Et.apply(e,arguments)}function jC(){return Ps.apply(null,arguments).exponent(.5)}function kv(){var e=[],t=Be;function r(n){if(n!=null&&!isNaN(n=+n))return t((vi(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(Dt),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)=>yj(e,a/n))},r.copy=function(){return kv(t).domain(e)},Et.apply(r,arguments)}function uo(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,s=Be,f,l=!1,p;function h(v){return isNaN(v=+v)?p:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:c),s(l?Math.max(0,Math.min(1,v)):v))}h.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),c=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(v){return arguments.length?(l=!!v,h):l},h.interpolator=function(v){return arguments.length?(s=v,h):s};function y(v){return function(d){var b,x,w;return arguments.length?([b,x,w]=d,s=Uj(v,[b,x,w]),h):[s(0),s(.5),s(1)]}}return h.range=y(fn),h.rangeRound=y(ls),h.unknown=function(v){return arguments.length?(p=v,h):p},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function Nv(){var e=Bt(uo()(Be));return e.copy=function(){return Ft(e,Nv())},Et.apply(e,arguments)}function Dv(){var e=ds(uo()).domain([.1,1,10]);return e.copy=function(){return Ft(e,Dv()).base(e.base())},Et.apply(e,arguments)}function Rv(){var e=vs(uo());return e.copy=function(){return Ft(e,Rv()).constant(e.constant())},Et.apply(e,arguments)}function $s(){var e=ys(uo());return e.copy=function(){return Ft(e,$s()).exponent(e.exponent())},Et.apply(e,arguments)}function MC(){return $s.apply(null,arguments).exponent(.5)}const Yf=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Bn,scaleDiverging:Nv,scaleDivergingLog:Dv,scaleDivergingPow:$s,scaleDivergingSqrt:MC,scaleDivergingSymlog:Rv,scaleIdentity:vv,scaleImplicit:Lu,scaleLinear:oa,scaleLog:mv,scaleOrdinal:us,scalePoint:$n,scalePow:ms,scaleQuantile:xv,scaleQuantize:wv,scaleRadial:bv,scaleSequential:Mv,scaleSequentialLog:Cv,scaleSequentialPow:Ps,scaleSequentialQuantile:kv,scaleSequentialSqrt:jC,scaleSequentialSymlog:Iv,scaleSqrt:fM,scaleSymlog:gv,scaleThreshold:Ov,scaleTime:TC,scaleUtc:EC,tickFormat:dv},Symbol.toStringTag,{value:"Module"}));var CC=tn;function IC(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(u===void 0?o===o&&!CC(o):r(o,u)))var u=o,c=a}return c}var co=IC;function kC(e,t){return e>t}var Lv=kC,NC=co,DC=Lv,RC=ln;function LC(e){return e&&e.length?NC(e,RC,DC):void 0}var BC=LC;const so=ce(BC);function FC(e,t){return e<t}var Bv=FC,zC=co,UC=Bv,WC=ln;function KC(e){return e&&e.length?zC(e,WC,UC):void 0}var GC=KC;const lo=ce(GC);var HC=Wc,qC=dt,VC=Xd,XC=ze;function YC(e,t){var r=XC(e)?HC:VC;return r(e,qC(t))}var ZC=YC,JC=qd,QC=ZC;function eI(e,t){return JC(QC(e,t),1)}var tI=eI;const rI=ce(tI);var nI=rs;function iI(e,t){return nI(e,t)}var aI=iI;const bi=ce(aI);var pn=1e9,oI={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Es,ye=!0,tt="[DecimalError] ",tr=tt+"Invalid argument: ",Ts=tt+"Exponent out of range: ",hn=Math.floor,Vt=Math.pow,uI=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,He,Ee=1e7,he=7,Fv=9007199254740991,la=hn(Fv/he),K={};K.absoluteValue=K.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};K.comparedTo=K.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};K.decimalPlaces=K.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*he;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};K.dividedBy=K.div=function(e){return Ot(this,new this.constructor(e))};K.dividedToIntegerBy=K.idiv=function(e){var t=this,r=t.constructor;return ue(Ot(t,new r(e),0,1),r.precision)};K.equals=K.eq=function(e){return!this.cmp(e)};K.exponent=function(){return Oe(this)};K.greaterThan=K.gt=function(e){return this.cmp(e)>0};K.greaterThanOrEqualTo=K.gte=function(e){return this.cmp(e)>=0};K.isInteger=K.isint=function(){return this.e>this.d.length-2};K.isNegative=K.isneg=function(){return this.s<0};K.isPositive=K.ispos=function(){return this.s>0};K.isZero=function(){return this.s===0};K.lessThan=K.lt=function(e){return this.cmp(e)<0};K.lessThanOrEqualTo=K.lte=function(e){return this.cmp(e)<1};K.logarithm=K.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(He))throw Error(tt+"NaN");if(r.s<1)throw Error(tt+(r.s?"NaN":"-Infinity"));return r.eq(He)?new n(0):(ye=!1,t=Ot(Kn(r,a),Kn(e,a),a),ye=!0,ue(t,i))};K.minus=K.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Wv(t,e):zv(t,(e.s=-e.s,e))};K.modulo=K.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(tt+"NaN");return r.s?(ye=!1,t=Ot(r,e,0,1).times(e),ye=!0,r.minus(t)):ue(new n(r),i)};K.naturalExponential=K.exp=function(){return Uv(this)};K.naturalLogarithm=K.ln=function(){return Kn(this)};K.negated=K.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};K.plus=K.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?zv(t,e):Wv(t,(e.s=-e.s,e))};K.precision=K.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(tr+e);if(t=Oe(i)+1,n=i.d.length-1,r=n*he+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};K.squareRoot=K.sqrt=function(){var e,t,r,n,i,a,o,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(tt+"NaN")}for(e=Oe(u),ye=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=ct(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=hn((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(Ot(u,a,o+2)).times(.5),ct(a.d).slice(0,o)===(t=ct(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ue(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return ye=!0,ue(n,r)};K.times=K.mul=function(e){var t,r,n,i,a,o,u,c,s,f=this,l=f.constructor,p=f.d,h=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,c=p.length,s=h.length,c<s&&(a=p,p=h,h=a,o=c,c=s,s=o),a=[],o=c+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=c+n;i>n;)u=a[i]+h[n]*p[i-n-1]+t,a[i--]=u%Ee|0,t=u/Ee|0;a[i]=(a[i]+t)%Ee|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ye?ue(e,l.precision):e};K.toDecimalPlaces=K.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ft(e,0,pn),t===void 0?t=n.rounding:ft(t,0,8),ue(r,e+Oe(r)+1,t))};K.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ar(n,!0):(ft(e,0,pn),t===void 0?t=i.rounding:ft(t,0,8),n=ue(new i(n),e+1,t),r=ar(n,!0,e+1)),r};K.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?ar(i):(ft(e,0,pn),t===void 0?t=a.rounding:ft(t,0,8),n=ue(new a(i),e+Oe(i)+1,t),r=ar(n.abs(),!1,e+Oe(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};K.toInteger=K.toint=function(){var e=this,t=e.constructor;return ue(new t(e),Oe(e)+1,t.rounding)};K.toNumber=function(){return+this};K.toPower=K.pow=function(e){var t,r,n,i,a,o,u=this,c=u.constructor,s=12,f=+(e=new c(e));if(!e.s)return new c(He);if(u=new c(u),!u.s){if(e.s<1)throw Error(tt+"Infinity");return u}if(u.eq(He))return u;if(n=c.precision,e.eq(He))return ue(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=Fv){for(i=new c(He),t=Math.ceil(n/he+4),ye=!1;r%2&&(i=i.times(u),Jf(i.d,t)),r=hn(r/2),r!==0;)u=u.times(u),Jf(u.d,t);return ye=!0,e.s<0?new c(He).div(i):ue(i,n)}}else if(a<0)throw Error(tt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,ye=!1,i=e.times(Kn(u,n+s)),ye=!0,i=Uv(i),i.s=a,i};K.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Oe(i),n=ar(i,r<=a.toExpNeg||r>=a.toExpPos)):(ft(e,1,pn),t===void 0?t=a.rounding:ft(t,0,8),i=ue(new a(i),e,t),r=Oe(i),n=ar(i,e<=r||r<=a.toExpNeg,e)),n};K.toSignificantDigits=K.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ft(e,1,pn),t===void 0?t=n.rounding:ft(t,0,8)),ue(new n(r),e,t)};K.toString=K.valueOf=K.val=K.toJSON=K[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Oe(e),r=e.constructor;return ar(e,t<=r.toExpNeg||t>=r.toExpPos)};function zv(e,t){var r,n,i,a,o,u,c,s,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),ye?ue(t,l):t;if(c=e.d,s=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,u=s.length):(n=s,i=o,u=c.length),o=Math.ceil(l/he),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=c.length,a=s.length,u-a<0&&(a=u,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/Ee|0,c[a]%=Ee;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,ye?ue(t,l):t}function ft(e,t,r){if(e!==~~e||e<t||e>r)throw Error(tr+e)}function ct(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=he-n.length,r&&(a+=Ct(r)),a+=n;o=e[t],n=o+"",r=he-n.length,r&&(a+=Ct(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Ot=function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%Ee|0,o=a/Ee|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,c;if(a!=o)c=a>o?1:-1;else for(u=c=0;u<a;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Ee+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,c,s,f,l,p,h,y,v,d,b,x,w,O,m,g,A,_,P=n.constructor,E=n.s==i.s?1:-1,T=n.d,$=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(tt+"Division by zero");for(c=n.e-i.e,A=$.length,m=T.length,h=new P(E),y=h.d=[],s=0;$[s]==(T[s]||0);)++s;if($[s]>(T[s]||0)&&--c,a==null?x=a=P.precision:o?x=a+(Oe(n)-Oe(i))+1:x=a,x<0)return new P(0);if(x=x/he+2|0,s=0,A==1)for(f=0,$=$[0],x++;(s<m||f)&&x--;s++)w=f*Ee+(T[s]||0),y[s]=w/$|0,f=w%$|0;else{for(f=Ee/($[0]+1)|0,f>1&&($=e($,f),T=e(T,f),A=$.length,m=T.length),O=A,v=T.slice(0,A),d=v.length;d<A;)v[d++]=0;_=$.slice(),_.unshift(0),g=$[0],$[1]>=Ee/2&&++g;do f=0,u=t($,v,A,d),u<0?(b=v[0],A!=d&&(b=b*Ee+(v[1]||0)),f=b/g|0,f>1?(f>=Ee&&(f=Ee-1),l=e($,f),p=l.length,d=v.length,u=t(l,v,p,d),u==1&&(f--,r(l,A<p?_:$,p))):(f==0&&(u=f=1),l=$.slice()),p=l.length,p<d&&l.unshift(0),r(v,l,d),u==-1&&(d=v.length,u=t($,v,A,d),u<1&&(f++,r(v,A<d?_:$,d))),d=v.length):u===0&&(f++,v=[0]),y[s++]=f,u&&v[0]?v[d++]=T[O]||0:(v=[T[O]],d=1);while((O++<m||v[0]!==void 0)&&x--)}return y[0]||y.shift(),h.e=c,ue(h,o?a+Oe(h)+1:a)}}();function Uv(e,t){var r,n,i,a,o,u,c=0,s=0,f=e.constructor,l=f.precision;if(Oe(e)>16)throw Error(Ts+Oe(e));if(!e.s)return new f(He);for(ye=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Vt(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(He),f.precision=u;;){if(i=ue(i.times(e),u),r=r.times(++c),o=a.plus(Ot(i,r,u)),ct(o.d).slice(0,u)===ct(a.d).slice(0,u)){for(;s--;)a=ue(a.times(a),u);return f.precision=l,t==null?(ye=!0,ue(a,l)):a}a=o}}function Oe(e){for(var t=e.e*he,r=e.d[0];r>=10;r/=10)t++;return t}function Xo(e,t,r){if(t>e.LN10.sd())throw ye=!0,r&&(e.precision=r),Error(tt+"LN10 precision limit exceeded");return ue(new e(e.LN10),t)}function Ct(e){for(var t="";e--;)t+="0";return t}function Kn(e,t){var r,n,i,a,o,u,c,s,f,l=1,p=10,h=e,y=h.d,v=h.constructor,d=v.precision;if(h.s<1)throw Error(tt+(h.s?"NaN":"-Infinity"));if(h.eq(He))return new v(0);if(t==null?(ye=!1,s=d):s=t,h.eq(10))return t==null&&(ye=!0),Xo(v,s);if(s+=p,v.precision=s,r=ct(y),n=r.charAt(0),a=Oe(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=ct(h.d),n=r.charAt(0),l++;a=Oe(h),n>1?(h=new v("0."+r),a++):h=new v(n+"."+r.slice(1))}else return c=Xo(v,s+2,d).times(a+""),h=Kn(new v(n+"."+r.slice(1)),s-p).plus(c),v.precision=d,t==null?(ye=!0,ue(h,d)):h;for(u=o=h=Ot(h.minus(He),h.plus(He),s),f=ue(h.times(h),s),i=3;;){if(o=ue(o.times(f),s),c=u.plus(Ot(o,new v(i),s)),ct(c.d).slice(0,s)===ct(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(Xo(v,s+2,d).times(a+""))),u=Ot(u,new v(l),s),v.precision=d,t==null?(ye=!0,ue(u,d)):u;u=c,i+=2}}function Zf(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=hn(r/he),e.d=[],n=(r+1)%he,r<0&&(n+=he),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=he;n<i;)e.d.push(+t.slice(n,n+=he));t=t.slice(n),n=he-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ye&&(e.e>la||e.e<-la))throw Error(Ts+r)}else e.s=0,e.e=0,e.d=[0];return e}function ue(e,t,r){var n,i,a,o,u,c,s,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=he,i=t,s=l[f=0];else{if(f=Math.ceil((n+1)/he),a=l.length,f>=a)return e;for(s=a=l[f],o=1;a>=10;a/=10)o++;n%=he,i=n-he+o}if(r!==void 0&&(a=Vt(10,o-i-1),u=s/a%10|0,c=t<0||l[f+1]!==void 0||s%a,c=r<4?(u||c)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?s/Vt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return c?(a=Oe(e),l.length=1,t=t-a-1,l[0]=Vt(10,(he-t%he)%he),e.e=hn(-t/he)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=Vt(10,he-n),l[f]=i>0?(s/Vt(10,o-i)%Vt(10,i)|0)*a:0),c)for(;;)if(f==0){(l[0]+=a)==Ee&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Ee)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(ye&&(e.e>la||e.e<-la))throw Error(Ts+Oe(e));return e}function Wv(e,t){var r,n,i,a,o,u,c,s,f,l,p=e.constructor,h=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),ye?ue(t,h):t;if(c=e.d,l=t.d,n=t.e,s=e.e,c=c.slice(),o=s-n,o){for(f=o<0,f?(r=c,o=-o,u=l.length):(r=l,n=s,u=c.length),i=Math.max(Math.ceil(h/he),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(c[i]!=l[i]){f=c[i]<l[i];break}o=0}for(f&&(r=c,c=l,l=r,t.s=-t.s),u=c.length,i=l.length-u;i>0;--i)c[u++]=0;for(i=l.length;i>o;){if(c[--i]<l[i]){for(a=i;a&&c[--a]===0;)c[a]=Ee-1;--c[a],c[i]+=Ee}c[i]-=l[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,ye?ue(t,h):t):new p(0)}function ar(e,t,r){var n,i=Oe(e),a=ct(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Ct(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Ct(-i-1)+a,r&&(n=r-o)>0&&(a+=Ct(n))):i>=o?(a+=Ct(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Ct(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Ct(n))),e.s<0?"-"+a:a}function Jf(e,t){if(e.length>t)return e.length=t,!0}function Kv(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(tr+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 Zf(o,a.toString())}else if(typeof a!="string")throw Error(tr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,uI.test(a))Zf(o,a);else throw Error(tr+a)}if(i.prototype=K,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Kv,i.config=i.set=cI,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 cI(e){if(!e||typeof e!="object")throw Error(tt+"Object expected");var t,r,n,i=["precision",1,pn,"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(hn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(tr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(tr+r+": "+n);return this}var Es=Kv(oI);He=new Es(1);const ae=Es;function sI(e){return hI(e)||pI(e)||fI(e)||lI()}function lI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fI(e,t){if(e){if(typeof e=="string")return Uu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uu(e,t)}}function pI(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function hI(e){if(Array.isArray(e))return Uu(e)}function Uu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var dI=function(t){return t},Gv={},Hv=function(t){return t===Gv},Qf=function(t){return function r(){return arguments.length===0||arguments.length===1&&Hv(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},vI=function e(t,r){return t===1?r:Qf(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!==Gv}).length;return o>=t?r.apply(void 0,i):e(t-o,Qf(function(){for(var u=arguments.length,c=new Array(u),s=0;s<u;s++)c[s]=arguments[s];var f=i.map(function(l){return Hv(l)?c.shift():l});return r.apply(void 0,sI(f).concat(c))}))})},fo=function(t){return vI(t.length,t)},Wu=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},yI=fo(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),mI=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return dI;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,c){return c(u)},a.apply(void 0,arguments))}},Ku=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},qv=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,c){return u===r[c]})||(r=a,n=t.apply(void 0,a)),n}};function gI(e){var t;return e===0?t=1:t=Math.floor(new ae(e).abs().log(10).toNumber())+1,t}function bI(e,t,r){for(var n=new ae(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var xI=fo(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),wI=fo(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),OI=fo(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const po={rangeStep:bI,getDigitCount:gI,interpolateNumber:xI,uninterpolateNumber:wI,uninterpolateTruncation:OI};function Gu(e){return _I(e)||SI(e)||Vv(e)||AI()}function AI(){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 SI(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _I(e){if(Array.isArray(e))return Hu(e)}function Gn(e,t){return TI(e)||$I(e,t)||Vv(e,t)||PI()}function PI(){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 Vv(e,t){if(e){if(typeof e=="string")return Hu(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 Hu(e,t)}}function Hu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $I(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function TI(e){if(Array.isArray(e))return e}function Xv(e){var t=Gn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Yv(e,t,r){if(e.lte(0))return new ae(0);var n=po.getDigitCount(e.toNumber()),i=new ae(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ae(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new ae(Math.ceil(c))}function EI(e,t,r){var n=1,i=new ae(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ae(10).pow(po.getDigitCount(e)-1),i=new ae(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ae(Math.floor(e)))}else e===0?i=new ae(Math.floor((t-1)/2)):r||(i=new ae(Math.floor(e)));var o=Math.floor((t-1)/2),u=mI(yI(function(c){return i.add(new ae(c-o).mul(n)).toNumber()}),Wu);return u(0,t)}function Zv(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ae(0),tickMin:new ae(0),tickMax:new ae(0)};var a=Yv(new ae(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ae(0):(o=new ae(e).add(t).div(2),o=o.sub(new ae(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ae(t).sub(o).div(a).toNumber()),s=u+c+1;return s>r?Zv(e,t,r,n,i+1):(s<r&&(c=t>0?c+(r-s):c,u=t>0?u:u+(r-s)),{step:a,tickMin:o.sub(new ae(u).mul(a)),tickMax:o.add(new ae(c).mul(a))})}function jI(e){var t=Gn(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=Xv([r,n]),c=Gn(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(Gu(Wu(0,i-1).map(function(){return 1/0}))):[].concat(Gu(Wu(0,i-1).map(function(){return-1/0})),[f]);return r>n?Ku(l):l}if(s===f)return EI(s,i,a);var p=Zv(s,f,o,a),h=p.step,y=p.tickMin,v=p.tickMax,d=po.rangeStep(y,v.add(new ae(.1).mul(h)),h);return r>n?Ku(d):d}function MI(e,t){var r=Gn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Xv([n,i]),u=Gn(o,2),c=u[0],s=u[1];if(c===-1/0||s===1/0)return[n,i];if(c===s)return[c];var f=Math.max(t,2),l=Yv(new ae(s).sub(c).div(f-1),a,0),p=[].concat(Gu(po.rangeStep(new ae(c),new ae(s).sub(new ae(.99).mul(l)),l)),[s]);return n>i?Ku(p):p}var CI=qv(jI),II=qv(MI),ep="Invariant failed";function or(e,t){var r=typeof t=="function"?t():t,n=r?"".concat(ep,": ").concat(r):ep;throw new Error(n)}var kI=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Nr(e){"@babel/helpers - typeof";return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nr(e)}function fa(){return fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fa.apply(this,arguments)}function NI(e,t){return BI(e)||LI(e,t)||RI(e,t)||DI()}function DI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RI(e,t){if(e){if(typeof e=="string")return tp(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 tp(e,t)}}function tp(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 LI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function BI(e){if(Array.isArray(e))return e}function FI(e,t){if(e==null)return{};var r=zI(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 zI(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 UI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ey(n.key),n)}}function KI(e,t,r){return t&&WI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GI(e,t,r){return t=pa(t),HI(e,Jv()?Reflect.construct(t,r||[],pa(e).constructor):t.apply(e,r))}function HI(e,t){if(t&&(Nr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qI(e)}function qI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jv=function(){return!!e})()}function pa(e){return pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pa(e)}function VI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qu(e,t)}function qu(e,t){return qu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qu(e,t)}function Qv(e,t,r){return t=ey(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ey(e){var t=XI(e,"string");return Nr(t)=="symbol"?t:t+""}function XI(e,t){if(Nr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xi=function(e){function t(){return UI(this,t),GI(this,t,arguments)}return VI(t,e),KI(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,c=n.data,s=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,p=FI(n,kI),h=H(p,!1);this.props.direction==="x"&&f.type!=="number"&&or(!1,'ErrorBar requires Axis type property to be "number".');var y=c.map(function(v){var d=s(v,u),b=d.x,x=d.y,w=d.value,O=d.errorVal;if(!O)return null;var m=[],g,A;if(Array.isArray(O)){var _=NI(O,2);g=_[0],A=_[1]}else g=A=O;if(a==="vertical"){var P=f.scale,E=x+i,T=E+o,$=E-o,I=P(w-g),M=P(w+A);m.push({x1:M,y1:T,x2:M,y2:$}),m.push({x1:I,y1:E,x2:M,y2:E}),m.push({x1:I,y1:T,x2:I,y2:$})}else if(a==="horizontal"){var C=l.scale,N=b+i,D=N-o,F=N+o,z=C(w-g),G=C(w+A);m.push({x1:D,y1:G,x2:F,y2:G}),m.push({x1:N,y1:z,x2:N,y2:G}),m.push({x1:D,y1:z,x2:F,y2:z})}return S.createElement(te,fa({className:"recharts-errorBar",key:"bar-".concat(m.map(function(V){return"".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))},h),m.map(function(V){return S.createElement("line",fa({},V,{key:"line-".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))}))});return S.createElement(te,{className:"recharts-errorBars"},y)}}])}(S.Component);Qv(xi,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Qv(xi,"displayName","ErrorBar");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 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 Wt(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){YI(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 YI(e,t,r){return t=ZI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZI(e){var t=JI(e,"string");return Hn(t)=="symbol"?t:t+""}function JI(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 ty=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ke(r,Qt);if(!o)return null;var u=Qt.defaultProps,c=u!==void 0?Wt(Wt({},u),o.props):{},s;return o.props&&o.props.payload?s=o.props&&o.props.payload:a==="children"?s=(n||[]).reduce(function(f,l){var p=l.item,h=l.props,y=h.sectors||h.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||p.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):s=(n||[]).map(function(f){var l=f.item,p=l.type.defaultProps,h=p!==void 0?Wt(Wt({},p),l.props):{},y=h.dataKey,v=h.name,d=h.legendType,b=h.hide;return{inactive:b,dataKey:y,type:c.iconType||d||"square",color:js(l),value:v||y,payload:h}}),Wt(Wt(Wt({},c),Qt.getWithHeight(o,i)),{},{payload:s,item:o})};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 np(e){return rk(e)||tk(e)||ek(e)||QI()}function QI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
20
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ek(e,t){if(e){if(typeof e=="string")return Vu(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 Vu(e,t)}}function tk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rk(e){if(Array.isArray(e))return Vu(e)}function Vu(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 ip(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ip(Object(r),!0).forEach(function(n){Pr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ip(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pr(e,t,r){return t=nk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nk(e){var t=ik(e,"string");return qn(t)=="symbol"?t:t+""}function ik(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 Pe(e,t,r){return Z(e)||Z(t)?r:$e(t)?qe(e,t,r):Y(t)?t(e):r}function Tn(e,t,r,n){var i=rI(e,function(u){return Pe(u,t)});if(r==="number"){var a=i.filter(function(u){return R(u)||parseFloat(u)});return a.length?[lo(a),so(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Z(u)}):i;return o.map(function(u){return $e(u)||u instanceof Date?u:""})}var ak=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,s=0;s<u;s++){var f=s>0?i[s-1].coordinate:i[u-1].coordinate,l=i[s].coordinate,p=s>=u-1?i[0].coordinate:i[s+1].coordinate,h=void 0;if(Re(l-f)!==Re(p-l)){var y=[];if(Re(p-l)===Re(c[1]-c[0])){h=p;var v=l+c[1]-c[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{h=f;var d=p+c[1]-c[0];y[0]=Math.min(l,(d+l)/2),y[1]=Math.max(l,(d+l)/2)}var b=[Math.min(l,(h+l)/2),Math.max(l,(h+l)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[s].index;break}}else{var x=Math.min(f,p),w=Math.max(f,p);if(t>(x+l)/2&&t<=(w+l)/2){o=i[s].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},js=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?xe(xe({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:u;break;default:c=u;break}return c},ok=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),c=0,s=u.length;c<s;c++)for(var f=a[u[c]].stackGroups,l=Object.keys(f),p=0,h=l.length;p<h;p++){var y=f[l[p]],v=y.items,d=y.cateAxisId,b=v.filter(function(A){return Nt(A.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?xe(xe({},x),b[0].props):b[0].props,O=w.barSize,m=w[d];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:Le(g,n,0)})}}return o},uk=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,c=o.length;if(c<1)return null;var s=Le(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var p=!1,h=i/c,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(c-1)*s,y>=i&&(y-=(c-1)*s,s=0),y>=i&&h>0&&(p=!0,h*=.9,y=c*h);var v=(i-y)/2>>0,d={offset:v-s,size:0};f=o.reduce(function(O,m){var g={item:m.item,position:{offset:d.offset+d.size+s,size:p?h:m.barSize}},A=[].concat(np(O),[g]);return d=A[A.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(_){A.push({item:_,position:d})}),A},l)}else{var b=Le(n,i,0,!0);i-2*b-(c-1)*s<=0&&(s=0);var x=(i-2*b-(c-1)*s)/c;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,g){var A=[].concat(np(O),[{item:m.item,position:{offset:b+(x+s)*g+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(_){A.push({item:_,position:A[A.length-1].position})}),A},l)}return f},ck=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=ty({children:a,legendWidth:c});if(s){var f=i||{},l=f.width,p=f.height,h=s.align,y=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&h!=="center"&&R(t[h]))return xe(xe({},t),{},Pr({},h,t[h]+(l||0)));if((v==="horizontal"||v==="vertical"&&h==="center")&&y!=="middle"&&R(t[y]))return xe(xe({},t),{},Pr({},y,t[y]+(p||0)))}return t},sk=function(t,r,n){return Z(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},ry=function(t,r,n,i,a){var o=r.props.children,u=Ve(o,xi).filter(function(s){return sk(i,a,s.props.direction)});if(u&&u.length){var c=u.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var l=Pe(f,n);if(Z(l))return s;var p=Array.isArray(l)?[lo(l),so(l)]:[l,l],h=c.reduce(function(y,v){var d=Pe(f,v,0),b=p[0]-Math.abs(Array.isArray(d)?d[0]:d),x=p[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(b,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(h[0],s[0]),Math.max(h[1],s[1])]},[1/0,-1/0])}return null},lk=function(t,r,n,i,a){var o=r.map(function(u){return ry(t,u,n,a,i)}).filter(function(u){return!Z(u)});return o&&o.length?o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},ny=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&ry(t,c,s,i)||Tn(t,s,n,a)});if(n==="number")return o.reduce(function(c,s){return[Math.min(c[0],s[0]),Math.max(c[1],s[1])]},[1/0,-1/0]);var u={};return o.reduce(function(c,s){for(var f=0,l=s.length;f<l;f++)u[s[f]]||(u[s[f]]=!0,c.push(s[f]));return c},[])},iy=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},ay=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var a,o,u=t.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||u.push(r),o||u.push(n),u},wt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,s=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(s=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?Re(u[0]-u[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var p=a?a.indexOf(l):l;return{coordinate:i(p)+s,value:l,offset:s}});return f.filter(function(l){return!hi(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,p){return{coordinate:i(l)+s,value:l,index:p,offset:s}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+s,value:l,offset:s}}):i.domain().map(function(l,p){return{coordinate:i(l)+s,value:a?a[l]:l,index:p,offset:s}})},Yo=new WeakMap,Mi=function(t,r){if(typeof r!="function")return t;Yo.has(t)||Yo.set(t,new WeakMap);var n=Yo.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},oy=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:Bn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:oa(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:$n(),realScaleType:"point"}:a==="category"?{scale:Bn(),realScaleType:"band"}:{scale:oa(),realScaleType:"linear"};if(rr(i)){var c="scale".concat(Va(i));return{scale:(Yf[c]||$n)(),realScaleType:Yf[c]?c:"point"}}return Y(i)?{scale:i}:{scale:$n(),realScaleType:"point"}},ap=1e-4,uy=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])-ap,o=Math.max(i[0],i[1])+ap,u=t(r[0]),c=t(r[n-1]);(u<a||u>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},fk=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},pk=function(t,r){if(!r||r.length!==2||!R(r[0])||!R(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(!R(t[0])||t[0]<n)&&(a[0]=n),(!R(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},hk=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var c=hi(t[u][n][1])?t[u][n][0]:t[u][n][1];c>=0?(t[u][n][0]=a,t[u][n][1]=a+c,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+c,o=t[u][n][1])}},dk=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=hi(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)}},vk={sign:hk,expand:Uw,none:$r,silhouette:Ww,wiggle:Kw,positive:dk},yk=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=vk[n],o=zw().keys(i).value(function(u,c){return+Pe(u,c,0)}).order(bu).offset(a);return o(t)},mk=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,c={},s=u.reduce(function(l,p){var h,y=(h=p.type)!==null&&h!==void 0&&h.defaultProps?xe(xe({},p.type.defaultProps),p.props):p.props,v=y.stackId,d=y.hide;if(d)return l;var b=y[n],x=l[b]||{hasStack:!1,stackGroups:{}};if($e(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(p),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[un("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[p]};return xe(xe({},l),{},Pr({},b,x))},c),f={};return Object.keys(s).reduce(function(l,p){var h=s[p];if(h.hasStack){var y={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(v,d){var b=h.stackGroups[d];return xe(xe({},v),{},Pr({},d,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:yk(t,b.items,a)}))},y)}return xe(xe({},l),{},Pr({},p,h))},f)},cy=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=CI(s,a,u);return t.domain([lo(f),so(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),p=II(l,a,u);return{niceTicks:p}}return null};function op(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=Li(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Pe(i,Z(o)?t.dataKey:o);return Z(c)?null:t.scale(c)}var up=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var c=Pe(o,r.dataKey,r.domain[u]);return Z(c)?null:r.scale(c)-a/2+i},gk=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]},bk=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?xe(xe({},t.type.defaultProps),t.props):t.props,a=i.stackId;if($e(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},xk=function(t){return t.reduce(function(r,n){return[lo(n.concat([r[0]]).filter(R)),so(n.concat([r[1]]).filter(R))]},[1/0,-1/0])},sy=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,c=u.reduce(function(s,f){var l=xk(f.slice(r,n+1));return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},cp=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sp=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Xu=function(t,r,n){if(Y(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(R(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(cp.test(t[0])){var a=+cp.exec(t[0])[1];i[0]=r[0]-a}else Y(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(R(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(sp.test(t[1])){var o=+sp.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},ha=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=is(r,function(l){return l.coordinate}),o=1/0,u=1,c=a.length;u<c;u++){var s=a[u],f=a[u-1];o=Math.min((s.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},lp=function(t,r,n){return!t||!t.length||bi(t,qe(n,"type.defaultProps.domain"))?r:t},ly=function(t,r){var n=t.type.defaultProps?xe(xe({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,c=n.tooltipType,s=n.chartType,f=n.hide;return xe(xe({},H(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:js(t),value:Pe(r,i),type:c,payload:r,chartType:s,hide:f})};function Vn(e){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(e)}function fp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fp(Object(r),!0).forEach(function(n){fy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fy(e,t,r){return t=wk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wk(e){var t=Ok(e,"string");return Vn(t)=="symbol"?t:t+""}function Ok(e,t){if(Vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ak(e,t){return $k(e)||Pk(e,t)||_k(e,t)||Sk()}function Sk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _k(e,t){if(e){if(typeof e=="string")return pp(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 pp(e,t)}}function pp(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 Pk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function $k(e){if(Array.isArray(e))return e}var da=Math.PI/180,Tk=function(t){return t*180/Math.PI},fe=function(t,r,n,i){return{x:t+Math.cos(-da*i)*n,y:r+Math.sin(-da*i)*n}},py=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},Ek=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.startAngle,s=t.endAngle,f=Le(t.cx,o,o/2),l=Le(t.cy,u,u/2),p=py(o,u,n),h=Le(t.innerRadius,p,0),y=Le(t.outerRadius,p,p*.8),v=Object.keys(r);return v.reduce(function(d,b){var x=r[b],w=x.domain,O=x.reversed,m;if(Z(x.range))i==="angleAxis"?m=[c,s]:i==="radiusAxis"&&(m=[h,y]),O&&(m=[m[1],m[0]]);else{m=x.range;var g=m,A=Ak(g,2);c=A[0],s=A[1]}var _=oy(x,a),P=_.realScaleType,E=_.scale;E.domain(w).range(m),uy(E);var T=cy(E,gt(gt({},x),{},{realScaleType:P})),$=gt(gt(gt({},x),T),{},{range:m,radius:y,realScaleType:P,scale:E,cx:f,cy:l,innerRadius:h,outerRadius:y,startAngle:c,endAngle:s});return gt(gt({},d),{},fy({},b,$))},{})},jk=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))},Mk=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=jk({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var c=(n-a)/u,s=Math.acos(c);return i>o&&(s=2*Math.PI-s),{radius:u,angle:Tk(s),angleInRadian:s}},Ck=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}},Ik=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},hp=function(t,r){var n=t.x,i=t.y,a=Mk({x:n,y:i},r),o=a.radius,u=a.angle,c=r.innerRadius,s=r.outerRadius;if(o<c||o>s)return!1;if(o===0)return!0;var f=Ck(r),l=f.startAngle,p=f.endAngle,h=u,y;if(l<=p){for(;h>p;)h-=360;for(;h<l;)h+=360;y=h>=l&&h<=p}else{for(;h>l;)h-=360;for(;h<p;)h+=360;y=h>=p&&h<=l}return y?gt(gt({},r),{},{radius:o,angle:Ik(h,r)}):null},hy=function(t){return!B.isValidElement(t)&&!Y(t)&&typeof t!="boolean"?t.className:""};function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}var kk=["offset"];function Nk(e){return Bk(e)||Lk(e)||Rk(e)||Dk()}function Dk(){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 Rk(e,t){if(e){if(typeof e=="string")return Yu(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 Yu(e,t)}}function Lk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bk(e){if(Array.isArray(e))return Yu(e)}function Yu(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 Fk(e,t){if(e==null)return{};var r=zk(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 zk(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 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 Se(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){Uk(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 Uk(e,t,r){return t=Wk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wk(e){var t=Kk(e,"string");return Xn(t)=="symbol"?t:t+""}function Kk(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yn(){return Yn=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},Yn.apply(this,arguments)}var Gk=function(t){var r=t.value,n=t.formatter,i=Z(t.children)?r:t.children;return Y(n)?n(i):i},Hk=function(t,r){var n=Re(r-t),i=Math.min(Math.abs(r-t),360);return n*i},qk=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,c=a,s=c.cx,f=c.cy,l=c.innerRadius,p=c.outerRadius,h=c.startAngle,y=c.endAngle,v=c.clockWise,d=(l+p)/2,b=Hk(h,y),x=b>=0?1:-1,w,O;i==="insideStart"?(w=h+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=fe(s,f,d,w),g=fe(s,f,d,w+(O?1:-1)*359),A="M".concat(m.x,",").concat(m.y,`
|
|
23
|
+
A`).concat(d,",").concat(d,",0,1,").concat(O?0:1,`,
|
|
24
|
+
`).concat(g.x,",").concat(g.y),_=Z(t.id)?un("recharts-radial-line-"):t.id;return S.createElement("text",Yn({},n,{dominantBaseline:"central",className:ee("recharts-radial-bar-label",u)}),S.createElement("defs",null,S.createElement("path",{id:_,d:A})),S.createElement("textPath",{xlinkHref:"#".concat(_)},r))},Vk=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,s=a.outerRadius,f=a.startAngle,l=a.endAngle,p=(f+l)/2;if(i==="outside"){var h=fe(o,u,s+n,p),y=h.x,v=h.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var d=(c+s)/2,b=fe(o,u,d,p),x=b.x,w=b.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Xk=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,c=o.y,s=o.width,f=o.height,l=f>=0?1:-1,p=l*i,h=l>0?"end":"start",y=l>0?"start":"end",v=s>=0?1:-1,d=v*i,b=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+s/2,y:c-l*i,textAnchor:"middle",verticalAnchor:h};return Se(Se({},w),n?{height:Math.max(c-n.y,0),width:s}:{})}if(a==="bottom"){var O={x:u+s/2,y:c+f+p,textAnchor:"middle",verticalAnchor:y};return Se(Se({},O),n?{height:Math.max(n.y+n.height-(c+f),0),width:s}:{})}if(a==="left"){var m={x:u-d,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return Se(Se({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var g={x:u+s+d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return Se(Se({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:f}:{})}var A=n?{width:s,height:f}:{};return a==="insideLeft"?Se({x:u+d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},A):a==="insideRight"?Se({x:u+s-d,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},A):a==="insideTop"?Se({x:u+s/2,y:c+p,textAnchor:"middle",verticalAnchor:y},A):a==="insideBottom"?Se({x:u+s/2,y:c+f-p,textAnchor:"middle",verticalAnchor:h},A):a==="insideTopLeft"?Se({x:u+d,y:c+p,textAnchor:x,verticalAnchor:y},A):a==="insideTopRight"?Se({x:u+s-d,y:c+p,textAnchor:b,verticalAnchor:y},A):a==="insideBottomLeft"?Se({x:u+d,y:c+f-p,textAnchor:x,verticalAnchor:h},A):a==="insideBottomRight"?Se({x:u+s-d,y:c+f-p,textAnchor:b,verticalAnchor:h},A):rn(a)&&(R(a.x)||uu(a.x))&&(R(a.y)||uu(a.y))?Se({x:u+Le(a.x,s),y:c+Le(a.y,f),textAnchor:"end",verticalAnchor:"end"},A):Se({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},A)},Yk=function(t){return"cx"in t&&R(t.cx)};function _e(e){var t=e.offset,r=t===void 0?5:t,n=Fk(e,kk),i=Se({offset:r},n),a=i.viewBox,o=i.position,u=i.value,c=i.children,s=i.content,f=i.className,l=f===void 0?"":f,p=i.textBreakAll;if(!a||Z(u)&&Z(c)&&!B.isValidElement(s)&&!Y(s))return null;if(B.isValidElement(s))return B.cloneElement(s,i);var h;if(Y(s)){if(h=B.createElement(s,i),B.isValidElement(h))return h}else h=Gk(i);var y=Yk(a),v=H(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return qk(i,h,v);var d=y?Vk(i):Xk(i);return S.createElement(ir,Yn({className:ee("recharts-label",l)},v,d,{breakAll:p}),h)}_e.displayName="Label";var dy=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,c=t.radius,s=t.innerRadius,f=t.outerRadius,l=t.x,p=t.y,h=t.top,y=t.left,v=t.width,d=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(R(v)&&R(d)){if(R(l)&&R(p))return{x:l,y:p,width:v,height:d};if(R(h)&&R(y))return{x:h,y,width:v,height:d}}return R(l)&&R(p)?{x:l,y:p,width:0,height:0}:R(r)&&R(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||c||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},Zk=function(t,r){return t?t===!0?S.createElement(_e,{key:"label-implicit",viewBox:r}):$e(t)?S.createElement(_e,{key:"label-implicit",viewBox:r,value:t}):B.isValidElement(t)?t.type===_e?B.cloneElement(t,{key:"label-implicit",viewBox:r}):S.createElement(_e,{key:"label-implicit",content:t,viewBox:r}):Y(t)?S.createElement(_e,{key:"label-implicit",content:t,viewBox:r}):rn(t)?S.createElement(_e,Yn({viewBox:r},t,{key:"label-implicit"})):null:null},Jk=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=dy(t),o=Ve(i,_e).map(function(c,s){return B.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=Zk(t.label,r||a);return[u].concat(Nk(o))};_e.parseViewBox=dy;_e.renderCallByParent=Jk;function Qk(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var e2=Qk;const t2=ce(e2);function Zn(e){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(e)}var r2=["valueAccessor"],n2=["data","dataKey","clockWise","id","textBreakAll"];function i2(e){return c2(e)||u2(e)||o2(e)||a2()}function a2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
25
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o2(e,t){if(e){if(typeof e=="string")return Zu(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 Zu(e,t)}}function u2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function c2(e){if(Array.isArray(e))return Zu(e)}function Zu(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(){return va=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},va.apply(this,arguments)}function vp(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 yp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vp(Object(r),!0).forEach(function(n){s2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s2(e,t,r){return t=l2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l2(e){var t=f2(e,"string");return Zn(t)=="symbol"?t:t+""}function f2(e,t){if(Zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mp(e,t){if(e==null)return{};var r=p2(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 p2(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 h2=function(t){return Array.isArray(t.value)?t2(t.value):t.value};function At(e){var t=e.valueAccessor,r=t===void 0?h2:t,n=mp(e,r2),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=mp(n,n2);return!i||!i.length?null:S.createElement(te,{className:"recharts-label-list"},i.map(function(f,l){var p=Z(a)?r(f,l):Pe(f&&f.payload,a),h=Z(u)?{}:{id:"".concat(u,"-").concat(l)};return S.createElement(_e,va({},H(f,!0),s,h,{parentViewBox:f.parentViewBox,value:p,textBreakAll:c,viewBox:_e.parseViewBox(Z(o)?f:yp(yp({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}At.displayName="LabelList";function d2(e,t){return e?e===!0?S.createElement(At,{key:"labelList-implicit",data:t}):S.isValidElement(e)||Y(e)?S.createElement(At,{key:"labelList-implicit",data:t,content:e}):rn(e)?S.createElement(At,va({data:t},e,{key:"labelList-implicit"})):null:null}function v2(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=Ve(n,At).map(function(o,u){return B.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=d2(e.label,t);return[a].concat(i2(i))}At.renderCallByParent=v2;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 Ju(){return Ju=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},Ju.apply(this,arguments)}function gp(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 bp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gp(Object(r),!0).forEach(function(n){y2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y2(e,t,r){return t=m2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m2(e){var t=g2(e,"string");return Jn(t)=="symbol"?t:t+""}function g2(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 b2=function(t,r){var n=Re(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Ci=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,c=t.cornerRadius,s=t.cornerIsExternal,f=c*(u?1:-1)+i,l=Math.asin(c/f)/da,p=s?a:a+o*l,h=fe(r,n,f,p),y=fe(r,n,i,p),v=s?a-o*l:a,d=fe(r,n,f*Math.cos(l*da),v);return{center:h,circleTangency:y,lineTangency:d,theta:l}},vy=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,c=b2(o,u),s=o+c,f=fe(r,n,a,o),l=fe(r,n,a,s),p="M ".concat(f.x,",").concat(f.y,`
|
|
26
|
+
A `).concat(a,",").concat(a,`,0,
|
|
27
|
+
`).concat(+(Math.abs(c)>180),",").concat(+(o>s),`,
|
|
28
|
+
`).concat(l.x,",").concat(l.y,`
|
|
29
|
+
`);if(i>0){var h=fe(r,n,i,o),y=fe(r,n,i,s);p+="L ".concat(y.x,",").concat(y.y,`
|
|
30
|
+
A `).concat(i,",").concat(i,`,0,
|
|
31
|
+
`).concat(+(Math.abs(c)>180),",").concat(+(o<=s),`,
|
|
32
|
+
`).concat(h.x,",").concat(h.y," Z")}else p+="L ".concat(r,",").concat(n," Z");return p},x2=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,c=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,l=Re(f-s),p=Ci({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),h=p.circleTangency,y=p.lineTangency,v=p.theta,d=Ci({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),b=d.circleTangency,x=d.lineTangency,w=d.theta,O=c?Math.abs(s-f):Math.abs(s-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,`
|
|
33
|
+
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
|
|
34
|
+
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
|
|
35
|
+
`):vy({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
|
|
36
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(h.x,",").concat(h.y,`
|
|
37
|
+
A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(b.x,",").concat(b.y,`
|
|
38
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
|
|
39
|
+
`);if(i>0){var g=Ci({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),A=g.circleTangency,_=g.lineTangency,P=g.theta,E=Ci({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),T=E.circleTangency,$=E.lineTangency,I=E.theta,M=c?Math.abs(s-f):Math.abs(s-f)-P-I;if(M<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat($.x,",").concat($.y,`
|
|
40
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(T.x,",").concat(T.y,`
|
|
41
|
+
A`).concat(i,",").concat(i,",0,").concat(+(M>180),",").concat(+(l>0),",").concat(A.x,",").concat(A.y,`
|
|
42
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(_.x,",").concat(_.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},w2={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},yy=function(t){var r=bp(bp({},w2),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,c=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,p=r.className;if(o<a||f===l)return null;var h=ee("recharts-sector",p),y=o-a,v=Le(u,y,0,!0),d;return v>0&&Math.abs(f-l)<360?d=x2({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):d=vy({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),S.createElement("path",Ju({},H(r,!0),{className:h,d,role:"img"}))};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 Qu(){return Qu=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},Qu.apply(this,arguments)}function xp(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 wp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xp(Object(r),!0).forEach(function(n){O2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O2(e,t,r){return t=A2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A2(e){var t=S2(e,"string");return Qn(t)=="symbol"?t:t+""}function S2(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Op={curveBasisClosed:jw,curveBasisOpen:Mw,curveBasis:Ew,curveBumpX:vw,curveBumpY:yw,curveLinearClosed:Cw,curveLinear:Ya,curveMonotoneX:Iw,curveMonotoneY:kw,curveNatural:Nw,curveStep:Dw,curveStepAfter:Lw,curveStepBefore:Rw},Ii=function(t){return t.x===+t.x&&t.y===+t.y},wn=function(t){return t.x},On=function(t){return t.y},_2=function(t,r){if(Y(t))return t;var n="curve".concat(Va(t));return(n==="curveMonotone"||n==="curveBump")&&r?Op["".concat(n).concat(r==="vertical"?"Y":"X")]:Op[n]||Ya},P2=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,c=t.connectNulls,s=c===void 0?!1:c,f=_2(n,u),l=s?a.filter(function(v){return Ii(v)}):a,p;if(Array.isArray(o)){var h=s?o.filter(function(v){return Ii(v)}):o,y=l.map(function(v,d){return wp(wp({},v),{},{base:h[d]})});return u==="vertical"?p=Si().y(On).x1(wn).x0(function(v){return v.base.x}):p=Si().x(wn).y1(On).y0(function(v){return v.base.y}),p.defined(Ii).curve(f),p(y)}return u==="vertical"&&R(o)?p=Si().y(On).x1(wn).x0(o):R(o)?p=Si().x(wn).y1(On).y0(o):p=pd().x(wn).y(On),p.defined(Ii).curve(f),p(l)},ya=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?P2(t):i;return B.createElement("path",Qu({},H(t,!1),Bi(t),{className:ee("recharts-curve",r),d:o,ref:a}))};const{getOwnPropertyNames:$2,getOwnPropertySymbols:T2}=Object,{hasOwnProperty:E2}=Object.prototype;function Zo(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function ki(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 c=e(r,n,i);return a.delete(r),a.delete(n),c}}function j2(e){return e!=null?e[Symbol.toStringTag]:void 0}function Ap(e){return $2(e).concat(T2(e))}const M2=Object.hasOwn||((e,t)=>E2.call(e,t));function pr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const C2="__v",I2="__o",k2="_owner",{getOwnPropertyDescriptor:Sp,keys:_p}=Object;function N2(e,t){return e.byteLength===t.byteLength&&ma(new Uint8Array(e),new Uint8Array(t))}function D2(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 R2(e,t){return e.byteLength===t.byteLength&&ma(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function L2(e,t){return pr(e.getTime(),t.getTime())}function B2(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function F2(e,t){return e===t}function Pp(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,c=0;for(;(o=a.next())&&!o.done;){const s=t.entries();let f=!1,l=0;for(;(u=s.next())&&!u.done;){if(i[l]){l++;continue}const p=o.value,h=u.value;if(r.equals(p[0],h[0],c,l,e,t,r)&&r.equals(p[1],h[1],p[0],h[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;c++}return!0}const z2=pr;function U2(e,t,r){const n=_p(e);let i=n.length;if(_p(t).length!==i)return!1;for(;i-- >0;)if(!my(e,t,r,n[i]))return!1;return!0}function An(e,t,r){const n=Ap(e);let i=n.length;if(Ap(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!my(e,t,r,a)||(o=Sp(e,a),u=Sp(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function W2(e,t){return pr(e.valueOf(),t.valueOf())}function K2(e,t){return e.source===t.source&&e.flags===t.flags}function $p(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 c=t.values();let s=!1,f=0;for(;(u=c.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function ma(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 G2(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 my(e,t,r,n){return(n===k2||n===I2||n===C2)&&(e.$$typeof||t.$$typeof)?!0:M2(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const H2="[object ArrayBuffer]",q2="[object Arguments]",V2="[object Boolean]",X2="[object DataView]",Y2="[object Date]",Z2="[object Error]",J2="[object Map]",Q2="[object Number]",eN="[object Object]",tN="[object RegExp]",rN="[object Set]",nN="[object String]",iN={"[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},aN="[object URL]",oN=Object.prototype.toString;function uN({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:c,arePrimitiveWrappersEqual:s,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:p,areUrlsEqual:h,unknownTagComparators:y}){return function(d,b,x){if(d===b)return!0;if(d==null||b==null)return!1;const w=typeof d;if(w!==typeof b)return!1;if(w!=="object")return w==="number"?u(d,b,x):w==="function"?a(d,b,x):!1;const O=d.constructor;if(O!==b.constructor)return!1;if(O===Object)return c(d,b,x);if(Array.isArray(d))return t(d,b,x);if(O===Date)return n(d,b,x);if(O===RegExp)return f(d,b,x);if(O===Map)return o(d,b,x);if(O===Set)return l(d,b,x);const m=oN.call(d);if(m===Y2)return n(d,b,x);if(m===tN)return f(d,b,x);if(m===J2)return o(d,b,x);if(m===rN)return l(d,b,x);if(m===eN)return typeof d.then!="function"&&typeof b.then!="function"&&c(d,b,x);if(m===aN)return h(d,b,x);if(m===Z2)return i(d,b,x);if(m===q2)return c(d,b,x);if(iN[m])return p(d,b,x);if(m===H2)return e(d,b,x);if(m===X2)return r(d,b,x);if(m===V2||m===Q2||m===nN)return s(d,b,x);if(y){let g=y[m];if(!g){const A=j2(d);A&&(g=y[A])}if(g)return g(d,b,x)}return!1}}function cN({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:N2,areArraysEqual:r?An:D2,areDataViewsEqual:R2,areDatesEqual:L2,areErrorsEqual:B2,areFunctionsEqual:F2,areMapsEqual:r?Zo(Pp,An):Pp,areNumbersEqual:z2,areObjectsEqual:r?An:U2,arePrimitiveWrappersEqual:W2,areRegExpsEqual:K2,areSetsEqual:r?Zo($p,An):$p,areTypedArraysEqual:r?Zo(ma,An):ma,areUrlsEqual:G2,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=ki(n.areArraysEqual),a=ki(n.areMapsEqual),o=ki(n.areObjectsEqual),u=ki(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function sN(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function lN({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,c){const{cache:s=e?new WeakMap:void 0,meta:f}=r();return t(u,c,{cache:s,equals:n,meta:f,strict:i})};if(e)return function(u,c){return t(u,c,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(u,c){return t(u,c,a)}}const fN=zt();zt({strict:!0});zt({circular:!0});zt({circular:!0,strict:!0});zt({createInternalComparator:()=>pr});zt({strict:!0,createInternalComparator:()=>pr});zt({circular:!0,createInternalComparator:()=>pr});zt({circular:!0,createInternalComparator:()=>pr,strict:!0});function zt(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=cN(e),o=uN(a),u=r?r(o):sN(o);return lN({circular:t,comparator:o,createState:n,equals:u,strict:i})}function pN(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Tp(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):pN(i)};requestAnimationFrame(n)}function ec(e){"@babel/helpers - typeof";return ec=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},ec(e)}function hN(e){return mN(e)||yN(e)||vN(e)||dN()}function dN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
43
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vN(e,t){if(e){if(typeof e=="string")return Ep(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 Ep(e,t)}}function Ep(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 yN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mN(e){if(Array.isArray(e))return e}function gN(){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=hN(o),c=u[0],s=u.slice(1);if(typeof c=="number"){Tp(i.bind(null,s),c);return}i(c),Tp(i.bind(null,s));return}ec(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 ei(e){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(e)}function jp(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 Mp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jp(Object(r),!0).forEach(function(n){gy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gy(e,t,r){return t=bN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bN(e){var t=xN(e,"string");return ei(t)==="symbol"?t:String(t)}function xN(e,t){if(ei(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wN=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},ON=function(t){return t},AN=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},En=function(t,r){return Object.keys(r).reduce(function(n,i){return Mp(Mp({},n),{},gy({},i,t(i,r[i])))},{})},Cp=function(t,r,n){return t.map(function(i){return"".concat(AN(i)," ").concat(r,"ms ").concat(n)}).join(",")},ga=function(t,r,n,i,a,o,u,c){if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,i,a,o,u,c],f=0;console.warn(r.replace(/%s/g,function(){return s[f++]}))}};function SN(e,t){return $N(e)||PN(e,t)||by(e,t)||_N()}function _N(){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 PN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function $N(e){if(Array.isArray(e))return e}function TN(e){return MN(e)||jN(e)||by(e)||EN()}function EN(){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 by(e,t){if(e){if(typeof e=="string")return tc(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 tc(e,t)}}function jN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MN(e){if(Array.isArray(e))return tc(e)}function tc(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 ba=1e-4,xy=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},wy=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Ip=function(t,r){return function(n){var i=xy(t,r);return wy(i,n)}},CN=function(t,r){return function(n){var i=xy(t,r),a=[].concat(TN(i.map(function(o,u){return o*u}).slice(1)),[0]);return wy(a,n)}},kp=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var s=c[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),f=SN(s,4);i=f[0],a=f[1],o=f[2],u=f[3]}else ga(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}ga([i,o,a,u].every(function(d){return typeof d=="number"&&d>=0&&d<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var l=Ip(i,o),p=Ip(a,u),h=CN(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=h(w);if(Math.abs(m-x)<ba||g<ba)return p(w);w=y(w-m/g)}return p(w)};return v.isStepper=!1,v},IN=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,c=function(f,l,p){var h=-(f-l)*n,y=p*a,v=p+(h-y)*u/1e3,d=p*u/1e3+f;return Math.abs(d-l)<ba&&Math.abs(v)<ba?[l,0]:[d,v]};return c.isStepper=!0,c.dt=u,c},kN=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 kp(i);case"spring":return IN();default:if(i.split("(")[0]==="cubic-bezier")return kp(i);ga(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(ga(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function ti(e){"@babel/helpers - typeof";return ti=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},ti(e)}function Np(e){return RN(e)||DN(e)||Oy(e)||NN()}function NN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
46
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RN(e){if(Array.isArray(e))return nc(e)}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 Ce(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){rc(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 rc(e,t,r){return t=LN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LN(e){var t=BN(e,"string");return ti(t)==="symbol"?t:String(t)}function BN(e,t){if(ti(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ti(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FN(e,t){return WN(e)||UN(e,t)||Oy(e,t)||zN()}function zN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
47
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oy(e,t){if(e){if(typeof e=="string")return nc(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 nc(e,t)}}function nc(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 UN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function WN(e){if(Array.isArray(e))return e}var xa=function(t,r,n){return t+(r-t)*n},ic=function(t){var r=t.from,n=t.to;return r!==n},KN=function e(t,r,n){var i=En(function(a,o){if(ic(o)){var u=t(o.from,o.to,o.velocity),c=FN(u,2),s=c[0],f=c[1];return Ce(Ce({},o),{},{from:s,velocity:f})}return o},r);return n<1?En(function(a,o){return ic(o)?Ce(Ce({},o),{},{velocity:xa(o.velocity,i[a].velocity,n),from:xa(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const GN=function(e,t,r,n,i){var a=wN(e,t),o=a.reduce(function(d,b){return Ce(Ce({},d),{},rc({},b,[e[b],t[b]]))},{}),u=a.reduce(function(d,b){return Ce(Ce({},d),{},rc({},b,{from:e[b],velocity:0,to:t[b]}))},{}),c=-1,s,f,l=function(){return null},p=function(){return En(function(b,x){return x.from},u)},h=function(){return!Object.values(u).filter(ic).length},y=function(b){s||(s=b);var x=b-s,w=x/r.dt;u=KN(r,u,w),i(Ce(Ce(Ce({},e),t),p())),s=b,h()||(c=requestAnimationFrame(l))},v=function(b){f||(f=b);var x=(b-f)/n,w=En(function(m,g){return xa.apply(void 0,Np(g).concat([r(x)]))},o);if(i(Ce(Ce(Ce({},e),t),w)),x<1)c=requestAnimationFrame(l);else{var O=En(function(m,g){return xa.apply(void 0,Np(g).concat([r(1)]))},o);i(Ce(Ce(Ce({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(c)}}};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 HN=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function qN(e,t){if(e==null)return{};var r=VN(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 VN(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 Jo(e){return JN(e)||ZN(e)||YN(e)||XN()}function XN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
48
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YN(e,t){if(e){if(typeof e=="string")return ac(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 ac(e,t)}}function ZN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JN(e){if(Array.isArray(e))return ac(e)}function ac(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 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 nt(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){_n(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 _n(e,t,r){return t=Ay(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ay(n.key),n)}}function tD(e,t,r){return t&&eD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ay(e){var t=rD(e,"string");return Dr(t)==="symbol"?t:String(t)}function rD(e,t){if(Dr(e)!=="object"||e===null)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(t==="string"?String:Number)(e)}function nD(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&&oc(e,t)}function oc(e,t){return oc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},oc(e,t)}function iD(e){var t=aD();return function(){var n=wa(e),i;if(t){var a=wa(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return uc(this,i)}}function uc(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 cc(e)}function cc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aD(){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 wa(e){return wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wa(e)}var pt=function(e){nD(r,e);var t=iD(r);function r(n,i){var a;QN(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,s=o.from,f=o.to,l=o.steps,p=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(cc(a)),a.changeStyle=a.changeStyle.bind(cc(a)),!u||h<=0)return a.state={style:{}},typeof p=="function"&&(a.state={style:f}),uc(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof p=="function")return a.state={style:s},uc(a);a.state={style:c?_n({},c,s):s}}else a.state={style:{}};return a}return tD(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,c=a.attributeName,s=a.shouldReAnimate,f=a.to,l=a.from,p=this.state.style;if(u){if(!o){var h={style:c?_n({},c,f):f};this.state&&p&&(c&&p[c]!==f||!c&&p!==f)&&this.setState(h);return}if(!(fN(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||s?l:i.to;if(this.state&&p){var d={style:c?_n({},c,v):v};(c&&p[c]!==v||!c&&p!==v)&&this.setState(d)}this.runAnimation(nt(nt({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,c=i.duration,s=i.easing,f=i.begin,l=i.onAnimationEnd,p=i.onAnimationStart,h=GN(o,u,kN(s),c,this.changeStyle),y=function(){a.stopJSAnimation=h()};this.manager.start([p,f,y,c,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,c=i.onAnimationStart,s=o[0],f=s.style,l=s.duration,p=l===void 0?0:l,h=function(v,d,b){if(b===0)return v;var x=d.duration,w=d.easing,O=w===void 0?"ease":w,m=d.style,g=d.properties,A=d.onAnimationEnd,_=b>0?o[b-1]:d,P=g||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(Jo(v),[a.runJSAnimation.bind(a,{from:_.style,to:m,duration:x,easing:O}),x]);var E=Cp(P,x,O),T=nt(nt(nt({},_.style),m),{},{transition:E});return[].concat(Jo(v),[T,x,A]).filter(ON)};return this.manager.start([c].concat(Jo(o.reduce(h,[f,Math.max(p,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=gN());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,s=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,p=i.steps,h=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof s=="function"||typeof h=="function"||s==="spring"){this.runJSAnimation(i);return}if(p.length>1){this.runStepAnimation(i);return}var v=u?_n({},u,c):c,d=Cp(Object.keys(v),o,s);y.start([f,a,nt(nt({},v),{},{transition:d}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=qN(i,HN),s=B.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||s===0||o<=0)return a;var l=function(h){var y=h.props,v=y.style,d=v===void 0?{}:v,b=y.className,x=B.cloneElement(h,nt(nt({},c),{},{style:nt(nt({},d),f),className:b}));return x};return s===1?l(B.Children.only(a)):S.createElement("div",null,B.Children.map(a,function(p){return l(p)}))}}]),r}(B.PureComponent);pt.displayName="Animate";pt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};pt.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 ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function Oa(){return Oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oa.apply(this,arguments)}function oD(e,t){return lD(e)||sD(e,t)||cD(e,t)||uD()}function uD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
49
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cD(e,t){if(e){if(typeof e=="string")return Lp(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 Lp(e,t)}}function Lp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function lD(e){if(Array.isArray(e))return e}function Bp(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 Fp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bp(Object(r),!0).forEach(function(n){fD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fD(e,t,r){return t=pD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pD(e){var t=hD(e,"string");return ri(t)=="symbol"?t:t+""}function hD(e,t){if(ri(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zp=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,c=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],p=0,h=4;p<h;p++)l[p]=a[p]>o?o:a[p];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(t+c*l[0],",").concat(r)),f+="L ".concat(t+n-c*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,`,
|
|
50
|
+
`).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,`,
|
|
51
|
+
`).concat(t+n-c*l[2],",").concat(r+i)),f+="L ".concat(t+c*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,`,
|
|
52
|
+
`).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,`
|
|
53
|
+
A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+c*y,",").concat(r,`
|
|
54
|
+
L `).concat(t+n-c*y,",").concat(r,`
|
|
55
|
+
A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n,",").concat(r+u*y,`
|
|
56
|
+
L `).concat(t+n,",").concat(r+i-u*y,`
|
|
57
|
+
A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n-c*y,",").concat(r+i,`
|
|
58
|
+
L `).concat(t+c*y,",").concat(r+i,`
|
|
59
|
+
A `).concat(y,",").concat(y,",0,0,").concat(s,",").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},dD=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,c=r.height;if(Math.abs(u)>0&&Math.abs(c)>0){var s=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+c),p=Math.max(o,o+c);return n>=s&&n<=f&&i>=l&&i<=p}return!1},vD={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ms=function(t){var r=Fp(Fp({},vD),t),n=B.useRef(),i=B.useState(-1),a=oD(i,2),o=a[0],u=a[1];B.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var c=r.x,s=r.y,f=r.width,l=r.height,p=r.radius,h=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,b=r.isAnimationActive,x=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||f===0||l===0)return null;var w=ee("recharts-rectangle",h);return x?S.createElement(pt,{canBegin:o>0,from:{width:f,height:l,x:c,y:s},to:{width:f,height:l,x:c,y:s},duration:v,animationEasing:y,isActive:x},function(O){var m=O.width,g=O.height,A=O.x,_=O.y;return S.createElement(pt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,isActive:b,easing:y},S.createElement("path",Oa({},H(r,!0),{className:w,d:zp(A,_,m,g,p),ref:n})))}):S.createElement("path",Oa({},H(r,!0),{className:w,d:zp(c,s,f,l,p)}))},yD=["points","className","baseLinePoints","connectNulls"];function xr(){return xr=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},xr.apply(this,arguments)}function mD(e,t){if(e==null)return{};var r=gD(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 gD(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 Up(e){return OD(e)||wD(e)||xD(e)||bD()}function bD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
60
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xD(e,t){if(e){if(typeof e=="string")return sc(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 sc(e,t)}}function wD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OD(e){if(Array.isArray(e))return sc(e)}function sc(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 Wp=function(t){return t&&t.x===+t.x&&t.y===+t.y},AD=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){Wp(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),Wp(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},jn=function(t,r){var n=AD(t);r&&(n=[n.reduce(function(a,o){return[].concat(Up(a),Up(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,c){return"".concat(o).concat(c===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},SD=function(t,r,n){var i=jn(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(jn(r.reverse(),n).slice(1))},_D=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=mD(t,yD);if(!r||!r.length)return null;var u=ee("recharts-polygon",n);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",s=SD(r,i,a);return S.createElement("g",{className:u},S.createElement("path",xr({},H(o,!0),{fill:s.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:s})),c?S.createElement("path",xr({},H(o,!0),{fill:"none",d:jn(r,a)})):null,c?S.createElement("path",xr({},H(o,!0),{fill:"none",d:jn(i,a)})):null)}var f=jn(r,a);return S.createElement("path",xr({},H(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function lc(){return lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lc.apply(this,arguments)}var ho=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?B.createElement("circle",lc({},H(t,!1),Bi(t),{className:o,cx:r,cy:n,r:i})):null};function ni(e){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ni(e)}var PD=["x","y","top","left","width","height","className"];function fc(){return fc=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},fc.apply(this,arguments)}function Kp(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 $D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kp(Object(r),!0).forEach(function(n){TD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TD(e,t,r){return t=ED(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ED(e){var t=jD(e,"string");return ni(t)=="symbol"?t:t+""}function jD(e,t){if(ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MD(e,t){if(e==null)return{};var r=CD(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 CD(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 ID=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},kD=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,c=t.left,s=c===void 0?0:c,f=t.width,l=f===void 0?0:f,p=t.height,h=p===void 0?0:p,y=t.className,v=MD(t,PD),d=$D({x:n,y:a,top:u,left:s,width:l,height:h},v);return!R(n)||!R(a)||!R(l)||!R(h)||!R(u)||!R(s)?null:S.createElement("path",fc({},H(d,!0),{className:ee("recharts-cross",y),d:ID(n,a,l,h,u,s)}))},ND=co,DD=Lv,RD=dt;function LD(e,t){return e&&e.length?ND(e,RD(t),DD):void 0}var BD=LD;const FD=ce(BD);var zD=co,UD=dt,WD=Bv;function KD(e,t){return e&&e.length?zD(e,UD(t),WD):void 0}var GD=KD;const HD=ce(GD);var qD=["cx","cy","angle","ticks","axisLine"],VD=["ticks","tick","angle","tickFormatter","stroke"];function Rr(e){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(e)}function Mn(){return Mn=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},Mn.apply(this,arguments)}function Gp(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 Kt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gp(Object(r),!0).forEach(function(n){vo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hp(e,t){if(e==null)return{};var r=XD(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 XD(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 YD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_y(n.key),n)}}function ZD(e,t,r){return t&&qp(e.prototype,t),r&&qp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function JD(e,t,r){return t=Aa(t),QD(e,Sy()?Reflect.construct(t,r||[],Aa(e).constructor):t.apply(e,r))}function QD(e,t){if(t&&(Rr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eR(e)}function eR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sy=function(){return!!e})()}function Aa(e){return Aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Aa(e)}function tR(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&&pc(e,t)}function pc(e,t){return pc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pc(e,t)}function vo(e,t,r){return t=_y(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _y(e){var t=rR(e,"string");return Rr(t)=="symbol"?t:t+""}function rR(e,t){if(Rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yo=function(e){function t(){return YD(this,t),JD(this,t,arguments)}return tR(t,e),ZD(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,c=a.cy;return fe(u,c,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,c=FD(u,function(f){return f.coordinate||0}),s=HD(u,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:s.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,c=n.axisLine,s=Hp(n,qD),f=u.reduce(function(y,v){return[Math.min(y[0],v.coordinate),Math.max(y[1],v.coordinate)]},[1/0,-1/0]),l=fe(i,a,f[0],o),p=fe(i,a,f[1],o),h=Kt(Kt(Kt({},H(s,!1)),{},{fill:"none"},H(c,!1)),{},{x1:l.x,y1:l.y,x2:p.x,y2:p.y});return S.createElement("line",Mn({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,c=i.tickFormatter,s=i.stroke,f=Hp(i,VD),l=this.getTickTextAnchor(),p=H(f,!1),h=H(o,!1),y=a.map(function(v,d){var b=n.getTickValueCoord(v),x=Kt(Kt(Kt(Kt({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(b.x,", ").concat(b.y,")")},p),{},{stroke:"none",fill:s},h),{},{index:d},b),{},{payload:v});return S.createElement(te,Mn({className:ee("recharts-polar-radius-axis-tick",hy(o)),key:"tick-".concat(v.coordinate)},nr(n.props,v,d)),t.renderTickItem(o,x,c?c(v.value,d):v.value))});return S.createElement(te,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:S.createElement(te,{className:ee("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),_e.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):Y(n)?o=n(i):o=S.createElement(ir,Mn({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(B.PureComponent);vo(yo,"displayName","PolarRadiusAxis");vo(yo,"axisType","radiusAxis");vo(yo,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Lr(e){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lr(e)}function Xt(){return Xt=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},Xt.apply(this,arguments)}function Vp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vp(Object(r),!0).forEach(function(n){mo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$y(n.key),n)}}function iR(e,t,r){return t&&Xp(e.prototype,t),r&&Xp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function aR(e,t,r){return t=Sa(t),oR(e,Py()?Reflect.construct(t,r||[],Sa(e).constructor):t.apply(e,r))}function oR(e,t){if(t&&(Lr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uR(e)}function uR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Py(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Py=function(){return!!e})()}function Sa(e){return Sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sa(e)}function cR(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&&hc(e,t)}function hc(e,t){return hc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hc(e,t)}function mo(e,t,r){return t=$y(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $y(e){var t=sR(e,"string");return Lr(t)=="symbol"?t:t+""}function sR(e,t){if(Lr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lR=Math.PI/180,Yp=1e-5,go=function(e){function t(){return nR(this,t),aR(this,t,arguments)}return cR(t,e),iR(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,c=i.orientation,s=i.tickSize,f=s||8,l=fe(a,o,u,n.coordinate),p=fe(a,o,u+(c==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:p.x,y2:p.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*lR),o;return a>Yp?o=i==="outer"?"start":"end":a<-Yp?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,u=n.axisLine,c=n.axisLineType,s=Gt(Gt({},H(this.props,!1)),{},{fill:"none"},H(u,!1));if(c==="circle")return S.createElement(ho,Xt({className:"recharts-polar-angle-axis-line"},s,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(p){return fe(i,a,o,p.coordinate)});return S.createElement(_D,Xt({className:"recharts-polar-angle-axis-line"},s,{points:l}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,c=i.tickFormatter,s=i.stroke,f=H(this.props,!1),l=H(o,!1),p=Gt(Gt({},f),{},{fill:"none"},H(u,!1)),h=a.map(function(y,v){var d=n.getTickLineCoord(y),b=n.getTickTextAnchor(y),x=Gt(Gt(Gt({textAnchor:b},f),{},{stroke:"none",fill:s},l),{},{index:v,payload:y,x:d.x2,y:d.y2});return S.createElement(te,Xt({className:ee("recharts-polar-angle-axis-tick",hy(o)),key:"tick-".concat(y.coordinate)},nr(n.props,y,v)),u&&S.createElement("line",Xt({className:"recharts-polar-angle-axis-tick-line"},p,d)),o&&t.renderTickItem(o,x,c?c(y.value,v):y.value))});return S.createElement(te,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:S.createElement(te,{className:ee("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):Y(n)?o=n(i):o=S.createElement(ir,Xt({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(B.PureComponent);mo(go,"displayName","PolarAngleAxis");mo(go,"axisType","angleAxis");mo(go,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var fR=Dd,pR=fR(Object.getPrototypeOf,Object),hR=pR,dR=$t,vR=hR,yR=Tt,mR="[object Object]",gR=Function.prototype,bR=Object.prototype,Ty=gR.toString,xR=bR.hasOwnProperty,wR=Ty.call(Object);function OR(e){if(!yR(e)||dR(e)!=mR)return!1;var t=vR(e);if(t===null)return!0;var r=xR.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ty.call(r)==wR}var AR=OR;const SR=ce(AR);var _R=$t,PR=Tt,$R="[object Boolean]";function TR(e){return e===!0||e===!1||PR(e)&&_R(e)==$R}var ER=TR;const jR=ce(ER);function ii(e){"@babel/helpers - typeof";return ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ii(e)}function _a(){return _a=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},_a.apply(this,arguments)}function MR(e,t){return NR(e)||kR(e,t)||IR(e,t)||CR()}function CR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
61
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IR(e,t){if(e){if(typeof e=="string")return Zp(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 Zp(e,t)}}function Zp(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 kR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function NR(e){if(Array.isArray(e))return e}function Jp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jp(Object(r),!0).forEach(function(n){DR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DR(e,t,r){return t=RR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RR(e){var t=LR(e,"string");return ii(t)=="symbol"?t:t+""}function LR(e,t){if(ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eh=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},BR={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},FR=function(t){var r=Qp(Qp({},BR),t),n=B.useRef(),i=B.useState(-1),a=MR(i,2),o=a[0],u=a[1];B.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var c=r.x,s=r.y,f=r.upperWidth,l=r.lowerWidth,p=r.height,h=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,b=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||p!==+p||f===0&&l===0||p===0)return null;var x=ee("recharts-trapezoid",h);return b?S.createElement(pt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:s},to:{upperWidth:f,lowerWidth:l,height:p,x:c,y:s},duration:v,animationEasing:y,isActive:b},function(w){var O=w.upperWidth,m=w.lowerWidth,g=w.height,A=w.x,_=w.y;return S.createElement(pt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,easing:y},S.createElement("path",_a({},H(r,!0),{className:x,d:eh(A,_,O,m,g),ref:n})))}):S.createElement("g",null,S.createElement("path",_a({},H(r,!0),{className:x,d:eh(c,s,f,l,p)})))},zR=["option","shapeType","propTransformer","activeClassName","isActive"];function ai(e){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ai(e)}function UR(e,t){if(e==null)return{};var r=WR(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 WR(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 th(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?th(Object(r),!0).forEach(function(n){KR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):th(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KR(e,t,r){return t=GR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GR(e){var t=HR(e,"string");return ai(t)=="symbol"?t:t+""}function HR(e,t){if(ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qR(e,t){return Pa(Pa({},t),e)}function VR(e,t){return e==="symbols"}function rh(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return S.createElement(Ms,r);case"trapezoid":return S.createElement(FR,r);case"sector":return S.createElement(yy,r);case"symbols":if(VR(t))return S.createElement(Yc,r);break;default:return null}}function XR(e){return B.isValidElement(e)?e.props:e}function Ey(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?qR:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,c=UR(e,zR),s;if(B.isValidElement(t))s=B.cloneElement(t,Pa(Pa({},c),XR(t)));else if(Y(t))s=t(c);else if(SR(t)&&!jR(t)){var f=i(t,c);s=S.createElement(rh,{shapeType:r,elementProps:f})}else{var l=c;s=S.createElement(rh,{shapeType:r,elementProps:l})}return u?S.createElement(te,{className:o},s):s}function bo(e,t){return t!=null&&"trapezoids"in e.props}function xo(e,t){return t!=null&&"sectors"in e.props}function oi(e,t){return t!=null&&"points"in e.props}function YR(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 ZR(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function JR(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function QR(e,t){var r;return bo(e,t)?r=YR:xo(e,t)?r=ZR:oi(e,t)&&(r=JR),r}function eL(e,t){var r;return bo(e,t)?r="trapezoids":xo(e,t)?r="sectors":oi(e,t)&&(r="points"),r}function tL(e,t){if(bo(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(xo(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 oi(e,t)?t.payload:{}}function rL(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=eL(r,t),a=tL(r,t),o=n.filter(function(c,s){var f=bi(a,c),l=r.props[i].filter(function(y){var v=QR(r,t);return v(y,t)}),p=r.props[i].indexOf(l[l.length-1]),h=s===p;return f&&h}),u=n.indexOf(o[o.length-1]);return u}var Ri;function Br(e){"@babel/helpers - typeof";return Br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Br(e)}function wr(){return wr=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},wr.apply(this,arguments)}function nh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nh(Object(r),!0).forEach(function(n){Qe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ih(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,My(n.key),n)}}function iL(e,t,r){return t&&ih(e.prototype,t),r&&ih(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function aL(e,t,r){return t=$a(t),oL(e,jy()?Reflect.construct(t,r||[],$a(e).constructor):t.apply(e,r))}function oL(e,t){if(t&&(Br(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uL(e)}function uL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jy=function(){return!!e})()}function $a(e){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$a(e)}function cL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dc(e,t)}function dc(e,t){return dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dc(e,t)}function Qe(e,t,r){return t=My(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function My(e){var t=sL(e,"string");return Br(t)=="symbol"?t:t+""}function sL(e,t){if(Br(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jt=function(e){function t(r){var n;return nL(this,t),n=aL(this,t,[r]),Qe(n,"pieRef",null),Qe(n,"sectorRefs",[]),Qe(n,"id",un("recharts-pie-")),Qe(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Y(i)&&i()}),Qe(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Y(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return cL(t,e),iL(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,u=a.labelLine,c=a.dataKey,s=a.valueKey,f=H(this.props,!1),l=H(o,!1),p=H(u,!1),h=o&&o.offsetRadius||20,y=n.map(function(v,d){var b=(v.startAngle+v.endAngle)/2,x=fe(v.cx,v.cy,v.outerRadius+h,b),w=se(se(se(se({},f),v),{},{stroke:"none"},l),{},{index:d,textAnchor:t.getTextAnchor(x.x,v.cx)},x),O=se(se(se(se({},f),v),{},{fill:"none",stroke:v.fill},p),{},{index:d,points:[fe(v.cx,v.cy,v.outerRadius,b),x]}),m=c;return Z(c)&&Z(s)?m="value":Z(c)&&(m=s),S.createElement(te,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(d)},u&&t.renderLabelLineItem(u,O,"line"),t.renderLabelItem(o,w,Pe(v,m)))});return S.createElement(te,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,c=a.inactiveShape;return n.map(function(s,f){if((s==null?void 0:s.startAngle)===0&&(s==null?void 0:s.endAngle)===0&&n.length!==1)return null;var l=i.isActiveIndex(f),p=c&&i.hasActiveIndex()?c:null,h=l?o:p,y=se(se({},s),{},{stroke:u?s.fill:s.stroke,tabIndex:-1});return S.createElement(te,wr({ref:function(d){d&&!i.sectorRefs.includes(d)&&i.sectorRefs.push(d)},tabIndex:-1,className:"recharts-pie-sector"},nr(i.props,s,f),{key:"sector-".concat(s==null?void 0:s.startAngle,"-").concat(s==null?void 0:s.endAngle,"-").concat(s.midAngle,"-").concat(f)}),S.createElement(Ey,wr({option:h,isActive:l,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,s=i.animationEasing,f=i.animationId,l=this.state,p=l.prevSectors,h=l.prevIsAnimationActive;return S.createElement(pt,{begin:u,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var v=y.t,d=[],b=a&&a[0],x=b.startAngle;return a.forEach(function(w,O){var m=p&&p[O],g=O>0?qe(w,"paddingAngle",0):0;if(m){var A=Ge(m.endAngle-m.startAngle,w.endAngle-w.startAngle),_=se(se({},w),{},{startAngle:x+g,endAngle:x+A(v)+g});d.push(_),x=_.endAngle}else{var P=w.endAngle,E=w.startAngle,T=Ge(0,P-E),$=T(v),I=se(se({},w),{},{startAngle:x+g,endAngle:x+$+g});d.push(I),x=I.endAngle}}),S.createElement(te,null,n.renderSectorsStatically(d))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!bi(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,u=i.className,c=i.label,s=i.cx,f=i.cy,l=i.innerRadius,p=i.outerRadius,h=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!R(s)||!R(f)||!R(l)||!R(p))return null;var v=ee("recharts-pie",u);return S.createElement(te,{tabIndex:this.props.rootTabIndex,className:v,ref:function(b){n.pieRef=b}},this.renderSectors(),c&&this.renderLabels(o),_e.renderCallByParent(this.props,null,!1),(!h||y)&&At.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);if(Y(n))return n(i);var o=ee("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return S.createElement(ya,wr({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);var o=a;if(Y(n)&&(o=n(i),S.isValidElement(o)))return o;var u=ee("recharts-pie-label-text",typeof n!="boolean"&&!Y(n)?n.className:"");return S.createElement(ir,wr({},i,{alignmentBaseline:"middle",className:u}),o)}}])}(B.PureComponent);Ri=jt;Qe(jt,"displayName","Pie");Qe(jt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!sr.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Qe(jt,"parseDeltaAngle",function(e,t){var r=Re(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Qe(jt,"getRealPieData",function(e){var t=e.data,r=e.children,n=H(e,!1),i=Ve(r,to);return t&&t.length?t.map(function(a,o){return se(se(se({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return se(se({},n),a.props)}):[]});Qe(jt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=py(i,a),u=n+Le(e.cx,i,i/2),c=r+Le(e.cy,a,a/2),s=Le(e.innerRadius,o,0),f=Le(e.outerRadius,o,o*.8),l=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:c,innerRadius:s,outerRadius:f,maxRadius:l}});Qe(jt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?se(se({},t.type.defaultProps),t.props):t.props,i=Ri.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,c=n.paddingAngle,s=n.dataKey,f=n.nameKey,l=n.valueKey,p=n.tooltipType,h=Math.abs(n.minAngle),y=Ri.parseCoordinateOfPie(n,r),v=Ri.parseDeltaAngle(o,u),d=Math.abs(v),b=s;Z(s)&&Z(l)?(Rt(!1,`Use "dataKey" to specify the value of pie,
|
|
62
|
+
the props "valueKey" will be deprecated in 1.1.0`),b="value"):Z(s)&&(Rt(!1,`Use "dataKey" to specify the value of pie,
|
|
63
|
+
the props "valueKey" will be deprecated in 1.1.0`),b=l);var x=i.filter(function(_){return Pe(_,b,0)!==0}).length,w=(d>=360?x:x-1)*c,O=d-x*h-w,m=i.reduce(function(_,P){var E=Pe(P,b,0);return _+(R(E)?E:0)},0),g;if(m>0){var A;g=i.map(function(_,P){var E=Pe(_,b,0),T=Pe(_,f,P),$=(R(E)?E:0)/m,I;P?I=A.endAngle+Re(v)*c*(E!==0?1:0):I=o;var M=I+Re(v)*((E!==0?h:0)+$*O),C=(I+M)/2,N=(y.innerRadius+y.outerRadius)/2,D=[{name:T,value:E,payload:_,dataKey:b,type:p}],F=fe(y.cx,y.cy,N,C);return A=se(se(se({percent:$,cornerRadius:a,name:T,tooltipPayload:D,midAngle:C,middleRadius:N,tooltipPosition:F},_),y),{},{value:Pe(_,b),startAngle:I,endAngle:M,payload:_,paddingAngle:Re(v)*c}),A})}return se(se({},y),{},{sectors:g,data:i})});var lL=Math.ceil,fL=Math.max;function pL(e,t,r,n){for(var i=-1,a=fL(lL((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var hL=pL,dL=tv,ah=1/0,vL=17976931348623157e292;function yL(e){if(!e)return e===0?e:0;if(e=dL(e),e===ah||e===-ah){var t=e<0?-1:1;return t*vL}return e===e?e:0}var Cy=yL,mL=hL,gL=eo,Qo=Cy;function bL(e){return function(t,r,n){return n&&typeof n!="number"&&gL(t,r,n)&&(r=n=void 0),t=Qo(t),r===void 0?(r=t,t=0):r=Qo(r),n=n===void 0?t<r?1:-1:Qo(n),mL(t,r,n,e)}}var xL=bL,wL=xL,OL=wL(),AL=OL;const Ta=ce(AL);function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(e)}function oh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oh(Object(r),!0).forEach(function(n){Iy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Iy(e,t,r){return t=SL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SL(e){var t=_L(e,"string");return ui(t)=="symbol"?t:t+""}function _L(e,t){if(ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PL=["Webkit","Moz","O","ms"],$L=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=PL.reduce(function(a,o){return uh(uh({},a),{},Iy({},o+n,r))},{});return i[t]=r,i};function Fr(e){"@babel/helpers - typeof";return Fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fr(e)}function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ea.apply(this,arguments)}function ch(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function eu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ch(Object(r),!0).forEach(function(n){We(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ch(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ny(n.key),n)}}function EL(e,t,r){return t&&sh(e.prototype,t),r&&sh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function jL(e,t,r){return t=ja(t),ML(e,ky()?Reflect.construct(t,r||[],ja(e).constructor):t.apply(e,r))}function ML(e,t){if(t&&(Fr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CL(e)}function CL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ky(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ky=function(){return!!e})()}function ja(e){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ja(e)}function IL(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&&vc(e,t)}function vc(e,t){return vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vc(e,t)}function We(e,t,r){return t=Ny(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ny(e){var t=kL(e,"string");return Fr(t)=="symbol"?t:t+""}function kL(e,t){if(Fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var NL=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,s=$n().domain(Ta(0,c)).range([a,a+o-u]),f=s.domain().map(function(l){return s(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(n),endX:s(i),scale:s,scaleValues:f}},lh=function(t){return t.changedTouches&&!!t.changedTouches.length},zr=function(e){function t(r){var n;return TL(this,t),n=jL(this,t,[r]),We(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),We(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),We(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),We(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),We(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),We(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),We(n,"handleSlideDragStart",function(i){var a=lh(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 IL(t,e),EL(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,c=u.gap,s=u.data,f=s.length-1,l=Math.min(i,a),p=Math.max(i,a),h=t.getIndexInRange(o,l),y=t.getIndexInRange(o,p);return{startIndex:h-h%c,endIndex:y===f?f:y-y%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=Pe(a[n],u,n);return Y(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,c=this.props,s=c.x,f=c.width,l=c.travellerWidth,p=c.startIndex,h=c.endIndex,y=c.onChange,v=n.pageX-a;v>0?v=Math.min(v,s+f-l-u,s+f-l-o):v<0&&(v=Math.max(v,s-o,s-u));var d=this.getIndex({startX:o+v,endX:u+v});(d.startIndex!==p||d.endIndex!==h)&&y&&y(d),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=lh(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,c=i.startX,s=this.state[o],f=this.props,l=f.x,p=f.width,h=f.travellerWidth,y=f.onChange,v=f.gap,d=f.data,b={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+p-h-s):x<0&&(x=Math.max(x,l-s)),b[o]=s+x;var w=this.getIndex(b),O=w.startIndex,m=w.endIndex,g=function(){var _=d.length-1;return o==="startX"&&(u>c?O%v===0:m%v===0)||u<c&&m===_||o==="endX"&&(u>c?m%v===0:O%v===0)||u>c&&m===_};this.setState(We(We({},o,s+x),"brushMoveStartX",n.pageX),function(){y&&g()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,s=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var p=l+n;if(!(p===-1||p>=u.length)){var h=u[p];i==="startX"&&h>=s||i==="endX"&&h<=c||this.setState(We({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.fill,s=n.stroke;return S.createElement("rect",{stroke:s,fill:c,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.data,s=n.children,f=n.padding,l=B.Children.only(s);return l?S.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,c=this.props,s=c.y,f=c.travellerWidth,l=c.height,p=c.traveller,h=c.ariaLabel,y=c.data,v=c.startIndex,d=c.endIndex,b=Math.max(n,this.props.x),x=eu(eu({},H(this.props,!1)),{},{x:b,y:s,width:f,height:l}),w=h||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[d])===null||o===void 0?void 0:o.name);return S.createElement(te,{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(p,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,c=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,l=Math.max(Math.abs(i-n)-s,0);return S.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,c=n.travellerWidth,s=n.stroke,f=this.state,l=f.startX,p=f.endX,h=5,y={pointerEvents:"none",fill:s};return S.createElement(te,{className:"recharts-brush-texts"},S.createElement(ir,Ea({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,p)-h,y:o+u/2},y),this.getTextOfTick(i)),S.createElement(ir,Ea({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,p)+c+h,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,c=n.y,s=n.width,f=n.height,l=n.alwaysShowText,p=this.state,h=p.startX,y=p.endX,v=p.isTextActive,d=p.isSlideMoving,b=p.isTravellerMoving,x=p.isTravellerFocused;if(!i||!i.length||!R(u)||!R(c)||!R(s)||!R(f)||s<=0||f<=0)return null;var w=ee("recharts-brush",a),O=S.Children.count(o)===1,m=$L("userSelect","none");return S.createElement(te,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(h,y),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(y,"endX"),(v||d||b||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,c=n.stroke,s=Math.floor(a+u/2)-1;return S.createElement(S.Fragment,null,S.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),S.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),S.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return S.isValidElement(n)?a=S.cloneElement(n,i):Y(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,s=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return eu({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?NL({data:a,width:o,x:u,travellerWidth:c,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var p=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}])}(B.PureComponent);We(zr,"displayName","Brush");We(zr,"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 DL=ns;function RL(e,t){var r;return DL(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var LL=RL,BL=Td,FL=dt,zL=LL,UL=ze,WL=eo;function KL(e,t,r){var n=UL(e)?BL:zL;return r&&WL(e,t,r)&&(t=void 0),n(e,FL(t))}var GL=KL;const HL=ce(GL);var lt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},fh=Yd;function qL(e,t,r){t=="__proto__"&&fh?fh(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var VL=qL,XL=VL,YL=Vd,ZL=dt;function JL(e,t){var r={};return t=ZL(t),YL(e,function(n,i,a){XL(r,i,t(n,i,a))}),r}var QL=JL;const eB=ce(QL);function tB(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var rB=tB,nB=ns;function iB(e,t){var r=!0;return nB(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var aB=iB,oB=rB,uB=aB,cB=dt,sB=ze,lB=eo;function fB(e,t,r){var n=sB(e)?oB:uB;return r&&lB(e,t,r)&&(t=void 0),n(e,cB(t))}var pB=fB;const Dy=ce(pB);var hB=["x","y"];function Ur(e){"@babel/helpers - typeof";return Ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ur(e)}function yc(){return yc=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},yc.apply(this,arguments)}function ph(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 Sn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ph(Object(r),!0).forEach(function(n){dB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ph(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dB(e,t,r){return t=vB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vB(e){var t=yB(e,"string");return Ur(t)=="symbol"?t:t+""}function yB(e,t){if(Ur(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mB(e,t){if(e==null)return{};var r=gB(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 gB(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 bB(e,t){var r=e.x,n=e.y,i=mB(e,hB),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),s="".concat(t.height||i.height),f=parseInt(s,10),l="".concat(t.width||i.width),p=parseInt(l,10);return Sn(Sn(Sn(Sn(Sn({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:p,name:t.name,radius:t.radius})}function hh(e){return S.createElement(Ey,yc({shapeType:"rectangle",propTransformer:bB,activeClassName:"recharts-active-bar"},e))}var xB=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=R(n)||ex(n);return a?t(n,i):(a||or(!1,"minPointSize callback function received a value with type of ".concat(Ur(n),". Currently only numbers or null/undefined are supported.")),r)}},wB=["value","background"],Ry;function Wr(e){"@babel/helpers - typeof";return Wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(e)}function OB(e,t){if(e==null)return{};var r=AB(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 AB(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 Ma(){return Ma=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},Ma.apply(this,arguments)}function dh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function we(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dh(Object(r),!0).forEach(function(n){kt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,By(n.key),n)}}function _B(e,t,r){return t&&vh(e.prototype,t),r&&vh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function PB(e,t,r){return t=Ca(t),$B(e,Ly()?Reflect.construct(t,r||[],Ca(e).constructor):t.apply(e,r))}function $B(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 TB(e)}function TB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ly(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ly=function(){return!!e})()}function Ca(e){return Ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ca(e)}function EB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mc(e,t)}function mc(e,t){return mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mc(e,t)}function kt(e,t,r){return t=By(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function By(e){var t=jB(e,"string");return Wr(t)=="symbol"?t:t+""}function jB(e,t){if(Wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hr=function(e){function t(){var r;SB(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=PB(this,t,[].concat(i)),kt(r,"state",{isAnimationFinished:!1}),kt(r,"id",un("recharts-bar-")),kt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),kt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return EB(t,e),_B(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,c=a.activeIndex,s=a.activeBar,f=H(this.props,!1);return n&&n.map(function(l,p){var h=p===c,y=h?s:o,v=we(we(we({},f),l),{},{isActive:h,option:y,index:p,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return S.createElement(te,Ma({className:"recharts-bar-rectangle"},nr(i.props,l,p),{key:"rectangle-".concat(l==null?void 0:l.x,"-").concat(l==null?void 0:l.y,"-").concat(l==null?void 0:l.value,"-").concat(p)}),S.createElement(hh,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,c=i.animationBegin,s=i.animationDuration,f=i.animationEasing,l=i.animationId,p=this.state.prevData;return S.createElement(pt,{begin:c,duration:s,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var y=h.t,v=a.map(function(d,b){var x=p&&p[b];if(x){var w=Ge(x.x,d.x),O=Ge(x.y,d.y),m=Ge(x.width,d.width),g=Ge(x.height,d.height);return we(we({},d),{},{x:w(y),y:O(y),width:m(y),height:g(y)})}if(o==="horizontal"){var A=Ge(0,d.height),_=A(y);return we(we({},d),{},{y:d.y+d.height-_,height:_})}var P=Ge(0,d.width),E=P(y);return we(we({},d),{},{width:E})});return S.createElement(te,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||!bi(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,c=H(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,p=OB(s,wB);if(!l)return null;var h=we(we(we(we(we({},p),{},{fill:"#eee"},l),c),nr(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return S.createElement(hh,Ma({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=Ve(f,xi);if(!l)return null;var p=s==="vertical"?o[0].height/2:o[0].width/2,h=function(d,b){var x=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:x,errorVal:Pe(d,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(te,y,l.map(function(v){return S.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,offset:p,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,c=n.yAxis,s=n.left,f=n.top,l=n.width,p=n.height,h=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,b=ee("recharts-bar",o),x=u&&u.allowDataOverflow,w=c&&c.allowDataOverflow,O=x||w,m=Z(v)?this.id:v;return S.createElement(te,{className:b},x||w?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(m)},S.createElement("rect",{x:x?s:s-l/2,y:w?f:f-p/2,width:x?l:l*2,height:w?p:p*2}))):null,S.createElement(te,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!h||d)&&At.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}}])}(B.PureComponent);Ry=hr;kt(hr,"displayName","Bar");kt(hr,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!sr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});kt(hr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,c=e.yAxisTicks,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,p=e.offset,h=fk(n,r);if(!h)return null;var y=t.layout,v=r.type.defaultProps,d=v!==void 0?we(we({},v),r.props):r.props,b=d.dataKey,x=d.children,w=d.minPointSize,O=y==="horizontal"?o:a,m=s?O.scale.domain():null,g=gk({numericAxis:O}),A=Ve(x,to),_=l.map(function(P,E){var T,$,I,M,C,N;s?T=pk(s[f+E],m):(T=Pe(P,b),Array.isArray(T)||(T=[g,T]));var D=xB(w,Ry.defaultProps.minPointSize)(T[1],E);if(y==="horizontal"){var F,z=[o.scale(T[0]),o.scale(T[1])],G=z[0],V=z[1];$=up({axis:a,ticks:u,bandSize:i,offset:h.offset,entry:P,index:E}),I=(F=V??G)!==null&&F!==void 0?F:void 0,M=h.size;var W=G-V;if(C=Number.isNaN(W)?0:W,N={x:$,y:o.y,width:M,height:o.height},Math.abs(D)>0&&Math.abs(C)<Math.abs(D)){var X=Re(C||D)*(Math.abs(D)-Math.abs(C));I-=X,C+=X}}else{var oe=[a.scale(T[0]),a.scale(T[1])],ge=oe[0],De=oe[1];if($=ge,I=up({axis:o,ticks:c,bandSize:i,offset:h.offset,entry:P,index:E}),M=De-ge,C=h.size,N={x:a.x,y:I,width:a.width,height:C},Math.abs(D)>0&&Math.abs(M)<Math.abs(D)){var vt=Re(M||D)*(Math.abs(D)-Math.abs(M));M+=vt}}return we(we(we({},P),{},{x:$,y:I,width:M,height:C,value:s?T:T[1],payload:P,background:N},A&&A[E]&&A[E].props),{},{tooltipPayload:[ly(r,P)],tooltipPosition:{x:$+M/2,y:I+C/2}})});return we({data:_,layout:y},p)});function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function MB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fy(n.key),n)}}function CB(e,t,r){return t&&yh(e.prototype,t),r&&yh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function it(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mh(Object(r),!0).forEach(function(n){wo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wo(e,t,r){return t=Fy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fy(e){var t=IB(e,"string");return ci(t)=="symbol"?t:t+""}function IB(e,t){if(ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zy=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.layout,s=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},p=!!Ke(s,hr);return f.reduce(function(h,y){var v=r[y],d=v.orientation,b=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,m=v.reversed,g="".concat(d).concat(O?"Mirror":""),A,_,P,E,T;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var $=b[1]-b[0],I=1/0,M=v.categoricalDomain.sort(nx);if(M.forEach(function(oe,ge){ge>0&&(I=Math.min((oe||0)-(M[ge-1]||0),I))}),Number.isFinite(I)){var C=I/$,N=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(A=C*N/2),v.padding==="no-gap"){var D=Le(t.barCategoryGap,C*N),F=C*N/2;A=F-D-(F-D)/N*D}}}i==="xAxis"?_=[n.left+(w.left||0)+(A||0),n.left+n.width-(w.right||0)-(A||0)]:i==="yAxis"?_=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(A||0),n.top+n.height-(w.bottom||0)-(A||0)]:_=v.range,m&&(_=[_[1],_[0]]);var z=oy(v,a,p),G=z.scale,V=z.realScaleType;G.domain(b).range(_),uy(G);var W=cy(G,it(it({},v),{},{realScaleType:V}));i==="xAxis"?(T=d==="top"&&!O||d==="bottom"&&O,P=n.left,E=l[g]-T*v.height):i==="yAxis"&&(T=d==="left"&&!O||d==="right"&&O,P=l[g]-T*v.width,E=n.top);var X=it(it(it({},v),W),{},{realScaleType:V,x:P,y:E,scale:G,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=ha(X,W),!v.hide&&i==="xAxis"?l[g]+=(T?-1:1)*X.height:v.hide||(l[g]+=(T?-1:1)*X.width),it(it({},h),{},wo({},y,X))},{})},Uy=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)}},kB=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Uy({x:r,y:n},{x:i,y:a})},Wy=function(){function e(t){MB(this,e),this.scale=t}return CB(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();wo(Wy,"EPS",1e-4);var Cs=function(t){var r=Object.keys(t).reduce(function(n,i){return it(it({},n),{},wo({},i,Wy.create(t[i])))},{});return it(it({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return eB(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return Dy(i,function(a,o){return r[o].isInRange(a)})}})};function NB(e){return(e%180+180)%180}var DB=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=NB(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},RB=dt,LB=di,BB=Ja;function FB(e){return function(t,r,n){var i=Object(t);if(!LB(t)){var a=RB(r);t=BB(t),r=function(u){return a(i[u],u,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var zB=FB,UB=Cy;function WB(e){var t=UB(e),r=t%1;return t===t?r?t-r:t:0}var KB=WB,GB=Ud,HB=dt,qB=KB,VB=Math.max;function XB(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:qB(r);return i<0&&(i=VB(n+i,0)),GB(e,HB(t),i)}var YB=XB,ZB=zB,JB=YB,QB=ZB(JB),eF=QB;const tF=ce(eF);var rF=c0(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("")});function Ia(e){"@babel/helpers - typeof";return Ia=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},Ia(e)}var Is=B.createContext(void 0),ks=B.createContext(void 0),Ky=B.createContext(void 0),Gy=B.createContext({}),Hy=B.createContext(void 0),qy=B.createContext(0),Vy=B.createContext(0),gh=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,c=t.width,s=t.height,f=rF(a);return S.createElement(Is.Provider,{value:n},S.createElement(ks.Provider,{value:i},S.createElement(Gy.Provider,{value:a},S.createElement(Ky.Provider,{value:f},S.createElement(Hy.Provider,{value:o},S.createElement(qy.Provider,{value:s},S.createElement(Vy.Provider,{value:c},u)))))))},nF=function(){return B.useContext(Hy)};function Xy(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var Yy=function(t){var r=B.useContext(Is);r==null&&or(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?");var n=r[t];return n==null&&or(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Ia(t),"]. ").concat(Xy(r))),n},iF=function(){var t=B.useContext(Is);return It(t)},aF=function(){var t=B.useContext(ks),r=tF(t,function(n){return Dy(n.domain,Number.isFinite)});return r||It(t)},Zy=function(t){var r=B.useContext(ks);r==null&&or(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?");var n=r[t];return n==null&&or(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Ia(t),"]. ").concat(Xy(r))),n},oF=function(){var t=B.useContext(Ky);return t},uF=function(){return B.useContext(Gy)},Ns=function(){return B.useContext(Vy)},Ds=function(){return B.useContext(qy)};function Kr(e){"@babel/helpers - typeof";return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kr(e)}function cF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sF(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,Qy(n.key),n)}}function lF(e,t,r){return t&&sF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fF(e,t,r){return t=ka(t),pF(e,Jy()?Reflect.construct(t,r||[],ka(e).constructor):t.apply(e,r))}function pF(e,t){if(t&&(Kr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hF(e)}function hF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jy=function(){return!!e})()}function ka(e){return ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ka(e)}function dF(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&&gc(e,t)}function gc(e,t){return gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gc(e,t)}function bh(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 xh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bh(Object(r),!0).forEach(function(n){Rs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rs(e,t,r){return t=Qy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qy(e){var t=vF(e,"string");return Kr(t)=="symbol"?t:t+""}function vF(e,t){if(Kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function yF(e,t){return xF(e)||bF(e,t)||gF(e,t)||mF()}function mF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
64
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gF(e,t){if(e){if(typeof e=="string")return wh(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 wh(e,t)}}function wh(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 bF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function xF(e){if(Array.isArray(e))return e}function bc(){return bc=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},bc.apply(this,arguments)}var wF=function(t,r){var n;return S.isValidElement(t)?n=S.cloneElement(t,r):Y(t)?n=t(r):n=S.createElement("line",bc({},r,{className:"recharts-reference-line-line"})),n},OF=function(t,r,n,i,a,o,u,c,s){var f=a.x,l=a.y,p=a.width,h=a.height;if(n){var y=s.y,v=t.y.apply(y,{position:o});if(lt(s,"discard")&&!t.y.isInRange(v))return null;var d=[{x:f+p,y:v},{x:f,y:v}];return c==="left"?d.reverse():d}if(r){var b=s.x,x=t.x.apply(b,{position:o});if(lt(s,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+h},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=s.segment,m=O.map(function(g){return t.apply(g,{position:o})});return lt(s,"discard")&&HL(m,function(g){return!t.isInRange(g)})?null:m}return null};function AF(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,c=e.alwaysShow,s=nF(),f=Yy(i),l=Zy(a),p=oF();if(!s||!p)return null;Rt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=Cs({x:f.scale,y:l.scale}),y=$e(t),v=$e(r),d=n&&n.length===2,b=OF(h,y,v,d,p,e.position,f.orientation,l.orientation,e);if(!b)return null;var x=yF(b,2),w=x[0],O=w.x,m=w.y,g=x[1],A=g.x,_=g.y,P=lt(e,"hidden")?"url(#".concat(s,")"):void 0,E=xh(xh({clipPath:P},H(e,!0)),{},{x1:O,y1:m,x2:A,y2:_});return S.createElement(te,{className:ee("recharts-reference-line",u)},wF(o,E),_e.renderCallByParent(e,kB({x1:O,y1:m,x2:A,y2:_})))}var Ls=function(e){function t(){return cF(this,t),fF(this,t,arguments)}return dF(t,e),lF(t,[{key:"render",value:function(){return S.createElement(AF,this.props)}}])}(S.Component);Rs(Ls,"displayName","ReferenceLine");Rs(Ls,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function xc(){return xc=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},xc.apply(this,arguments)}function Gr(e){"@babel/helpers - typeof";return Gr=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},Gr(e)}function Oh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ah(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Oh(Object(r),!0).forEach(function(n){Oo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _F(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,tm(n.key),n)}}function PF(e,t,r){return t&&_F(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $F(e,t,r){return t=Na(t),TF(e,em()?Reflect.construct(t,r||[],Na(e).constructor):t.apply(e,r))}function TF(e,t){if(t&&(Gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EF(e)}function EF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function em(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(em=function(){return!!e})()}function Na(e){return Na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Na(e)}function jF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wc(e,t)}function wc(e,t){return wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wc(e,t)}function Oo(e,t,r){return t=tm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tm(e){var t=MF(e,"string");return Gr(t)=="symbol"?t:t+""}function MF(e,t){if(Gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var CF=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Cs({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return lt(t,"discard")&&!o.isInRange(u)?null:u},Ao=function(e){function t(){return SF(this,t),$F(this,t,arguments)}return jF(t,e),PF(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,c=n.clipPathId,s=$e(i),f=$e(a);if(Rt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=CF(this.props);if(!l)return null;var p=l.x,h=l.y,y=this.props,v=y.shape,d=y.className,b=lt(this.props,"hidden")?"url(#".concat(c,")"):void 0,x=Ah(Ah({clipPath:b},H(this.props,!0)),{},{cx:p,cy:h});return S.createElement(te,{className:ee("recharts-reference-dot",d)},t.renderDot(v,x),_e.renderCallByParent(this.props,{x:p-o,y:h-o,width:2*o,height:2*o}))}}])}(S.Component);Oo(Ao,"displayName","ReferenceDot");Oo(Ao,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Oo(Ao,"renderDot",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):Y(e)?r=e(t):r=S.createElement(ho,xc({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Oc(){return Oc=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},Oc.apply(this,arguments)}function Hr(e){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hr(e)}function Sh(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 _h(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sh(Object(r),!0).forEach(function(n){So(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nm(n.key),n)}}function NF(e,t,r){return t&&kF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function DF(e,t,r){return t=Da(t),RF(e,rm()?Reflect.construct(t,r||[],Da(e).constructor):t.apply(e,r))}function RF(e,t){if(t&&(Hr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LF(e)}function LF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rm=function(){return!!e})()}function Da(e){return Da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Da(e)}function BF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ac(e,t)}function Ac(e,t){return Ac=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ac(e,t)}function So(e,t,r){return t=nm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nm(e){var t=FF(e,"string");return Hr(t)=="symbol"?t:t+""}function FF(e,t){if(Hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zF=function(t,r,n,i,a){var o=a.x1,u=a.x2,c=a.y1,s=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var p=Cs({x:f.scale,y:l.scale}),h={x:t?p.x.apply(o,{position:"start"}):p.x.rangeMin,y:n?p.y.apply(c,{position:"start"}):p.y.rangeMin},y={x:r?p.x.apply(u,{position:"end"}):p.x.rangeMax,y:i?p.y.apply(s,{position:"end"}):p.y.rangeMax};return lt(a,"discard")&&(!p.isInRange(h)||!p.isInRange(y))?null:Uy(h,y)},_o=function(e){function t(){return IF(this,t),DF(this,t,arguments)}return BF(t,e),NF(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,c=n.className,s=n.alwaysShow,f=n.clipPathId;Rt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=$e(i),p=$e(a),h=$e(o),y=$e(u),v=this.props.shape;if(!l&&!p&&!h&&!y&&!v)return null;var d=zF(l,p,h,y,this.props);if(!d&&!v)return null;var b=lt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return S.createElement(te,{className:ee("recharts-reference-area",c)},t.renderRect(v,_h(_h({clipPath:b},H(this.props,!0)),d)),_e.renderCallByParent(this.props,d))}}])}(S.Component);So(_o,"displayName","ReferenceArea");So(_o,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});So(_o,"renderRect",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):Y(e)?r=e(t):r=S.createElement(Ms,Oc({},t,{className:"recharts-reference-area-rect"})),r});function im(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 UF(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return DB(n,r)}function WF(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 Ra(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 KF(e,t){return im(e,t+1)}function GF(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,c=0,s=1,f=o,l=function(){var y=n==null?void 0:n[c];if(y===void 0)return{v:im(n,s)};var v=c,d,b=function(){return d===void 0&&(d=r(y,v)),d},x=y.coordinate,w=c===0||Ra(e,x,b,f,u);w||(c=0,f=o,s+=1),w&&(f=x+e*(b()/2+i),c+=s)},p;s<=a.length;)if(p=l(),p)return p.v;return[]}function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}function Ph(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?Ph(Object(r),!0).forEach(function(n){HF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ph(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HF(e,t,r){return t=qF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qF(e){var t=VF(e,"string");return si(t)=="symbol"?t:t+""}function VF(e,t){if(si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XF(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,c=t.end,s=function(p){var h=a[p],y,v=function(){return y===void 0&&(y=r(h,p)),y};if(p===o-1){var d=e*(h.coordinate+e*v()/2-c);a[p]=h=ke(ke({},h),{},{tickCoord:d>0?h.coordinate-d*e:h.coordinate})}else a[p]=h=ke(ke({},h),{},{tickCoord:h.coordinate});var b=Ra(e,h.tickCoord,v,u,c);b&&(c=h.tickCoord-e*(v()/2+i),a[p]=ke(ke({},h),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function YF(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=t.start,s=t.end;if(a){var f=n[u-1],l=r(f,u-1),p=e*(f.coordinate+e*l/2-s);o[u-1]=f=ke(ke({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate});var h=Ra(e,f.tickCoord,function(){return l},c,s);h&&(s=f.tickCoord-e*(l/2+i),o[u-1]=ke(ke({},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-c);o[x]=w=ke(ke({},w),{},{tickCoord:g<0?w.coordinate-g*e:w.coordinate})}else o[x]=w=ke(ke({},w),{},{tickCoord:w.coordinate});var A=Ra(e,w.tickCoord,m,c,s);A&&(c=w.tickCoord+e*(m()/2+i),o[x]=ke(ke({},w),{},{isShow:!0}))},d=0;d<y;d++)v(d);return o}function Bs(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,c=e.interval,s=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(R(c)||sr.isSsr)return KF(i,typeof c=="number"&&R(c)?c:0);var p=[],h=u==="top"||u==="bottom"?"width":"height",y=f&&h==="width"?Pn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var m=Y(s)?s(w.value,O):w.value;return h==="width"?UF(Pn(m,{fontSize:t,letterSpacing:r}),y,l):Pn(m,{fontSize:t,letterSpacing:r})[h]},d=i.length>=2?Re(i[1].coordinate-i[0].coordinate):1,b=WF(a,d,h);return c==="equidistantPreserveStart"?GF(d,b,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?p=YF(d,b,v,i,o,c==="preserveStartEnd"):p=XF(d,b,v,i,o),p.filter(function(x){return x.isShow}))}var ZF=["viewBox"],JF=["viewBox"],QF=["ticks"];function qr(e){"@babel/helpers - typeof";return qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qr(e)}function 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 $h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$h(Object(r),!0).forEach(function(n){Fs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$h(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tu(e,t){if(e==null)return{};var r=e3(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 e3(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 t3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Th(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,om(n.key),n)}}function r3(e,t,r){return t&&Th(e.prototype,t),r&&Th(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function n3(e,t,r){return t=La(t),i3(e,am()?Reflect.construct(t,r||[],La(e).constructor):t.apply(e,r))}function i3(e,t){if(t&&(qr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a3(e)}function a3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function am(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(am=function(){return!!e})()}function La(e){return La=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},La(e)}function o3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sc(e,t)}function Sc(e,t){return Sc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sc(e,t)}function Fs(e,t,r){return t=om(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function om(e){var t=u3(e,"string");return qr(t)=="symbol"?t:t+""}function u3(e,t){if(qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dn=function(e){function t(r){var n;return t3(this,t),n=n3(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return o3(t,e),r3(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=tu(n,ZF),u=this.props,c=u.viewBox,s=tu(u,JF);return!Sr(a,c)||!Sr(o,s)||!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,c=i.height,s=i.orientation,f=i.tickSize,l=i.mirror,p=i.tickMargin,h,y,v,d,b,x,w=l?-1:1,O=n.tickSize||f,m=R(n.tickCoord)?n.tickCoord:n.coordinate;switch(s){case"top":h=y=n.coordinate,d=o+ +!l*c,v=d-w*O,x=v-w*p,b=m;break;case"left":v=d=n.coordinate,y=a+ +!l*u,h=y-w*O,b=h-w*p,x=m;break;case"right":v=d=n.coordinate,y=a+ +l*u,h=y+w*O,b=h+w*p,x=m;break;default:h=y=n.coordinate,d=o+ +l*c,v=d+w*O,x=v+w*p,b=m;break}return{line:{x1:h,y1:v,x2:y,y2:d},tick:{x:b,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.orientation,s=n.mirror,f=n.axisLine,l=Ae(Ae(Ae({},H(this.props,!1)),H(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var p=+(c==="top"&&!s||c==="bottom"&&s);l=Ae(Ae({},l),{},{x1:i,y1:a+p*u,x2:i+o,y2:a+p*u})}else{var h=+(c==="left"&&!s||c==="right"&&s);l=Ae(Ae({},l),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+u})}return S.createElement("line",Or({},l,{className:ee("recharts-cartesian-axis-line",qe(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,c=u.tickLine,s=u.stroke,f=u.tick,l=u.tickFormatter,p=u.unit,h=Bs(Ae(Ae({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),d=H(this.props,!1),b=H(f,!1),x=Ae(Ae({},d),{},{fill:"none"},H(c,!1)),w=h.map(function(O,m){var g=o.getTickLineCoord(O),A=g.line,_=g.tick,P=Ae(Ae(Ae(Ae({textAnchor:y,verticalAnchor:v},d),{},{stroke:"none",fill:s},b),_),{},{index:m,payload:O,visibleTicksCount:h.length,tickFormatter:l});return S.createElement(te,Or({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},nr(o.props,O,m)),c&&S.createElement("line",Or({},x,A,{className:ee("recharts-cartesian-axis-tick-line",qe(c,"className"))})),f&&t.renderTickItem(f,P,"".concat(Y(l)?l(O.value,m):O.value).concat(p||"")))});return S.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,c=i.ticksGenerator,s=i.className,f=i.hide;if(f)return null;var l=this.props,p=l.ticks,h=tu(l,QF),y=p;return Y(c)&&(y=p&&p.length>0?c(this.props):c(h)),o<=0||u<=0||!y||!y.length?null:S.createElement(te,{className:ee("recharts-cartesian-axis",s),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),_e.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=ee(i.className,"recharts-cartesian-axis-tick-value");return S.isValidElement(n)?o=S.cloneElement(n,Ae(Ae({},i),{},{className:u})):Y(n)?o=n(Ae(Ae({},i),{},{className:u})):o=S.createElement(ir,Or({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(B.Component);Fs(dn,"displayName","CartesianAxis");Fs(dn,"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 c3=["x1","y1","x2","y2","key"],s3=["offset"];function ur(e){"@babel/helpers - typeof";return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ur(e)}function Eh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eh(Object(r),!0).forEach(function(n){l3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l3(e,t,r){return t=f3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f3(e){var t=p3(e,"string");return ur(t)=="symbol"?t:t+""}function p3(e,t){if(ur(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jt(){return Jt=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},Jt.apply(this,arguments)}function jh(e,t){if(e==null)return{};var r=h3(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 h3(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 d3=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,c=t.ry;return S.createElement("rect",{x:i,y:a,ry:c,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function um(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(Y(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,c=jh(t,c3),s=H(c,!1);s.offset;var f=jh(s,s3);r=S.createElement("line",Jt({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function v3(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=Ne(Ne({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return um(i,s)});return S.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function y3(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=Ne(Ne({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return um(i,s)});return S.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function m3(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,c=e.horizontal,s=c===void 0?!0:c;if(!s||!t||!t.length)return null;var f=u.map(function(p){return Math.round(p+i-i)}).sort(function(p,h){return p-h});i!==f[0]&&f.unshift(0);var l=f.map(function(p,h){var y=!f[h+1],v=y?i+o-p:f[h+1]-p;if(v<=0)return null;var d=h%t.length;return S.createElement("rect",{key:"react-".concat(h),y:p,x:n,height:v,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function g3(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,c=e.height,s=e.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(p){return Math.round(p+a-a)}).sort(function(p,h){return p-h});a!==f[0]&&f.unshift(0);var l=f.map(function(p,h){var y=!f[h+1],v=y?a+u-p:f[h+1]-p;if(v<=0)return null;var d=h%n.length;return S.createElement("rect",{key:"react-".concat(h),x:p,y:o,width:v,height:c,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var b3=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return ay(Bs(Ne(Ne(Ne({},dn.defaultProps),n),{},{ticks:wt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},x3=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return ay(Bs(Ne(Ne(Ne({},dn.defaultProps),n),{},{ticks:wt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},mr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function _c(e){var t,r,n,i,a,o,u=Ns(),c=Ds(),s=uF(),f=Ne(Ne({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:mr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:mr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:mr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:mr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:mr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:mr.verticalFill,x:R(e.x)?e.x:s.left,y:R(e.y)?e.y:s.top,width:R(e.width)?e.width:s.width,height:R(e.height)?e.height:s.height}),l=f.x,p=f.y,h=f.width,y=f.height,v=f.syncWithTicks,d=f.horizontalValues,b=f.verticalValues,x=iF(),w=aF();if(!R(h)||h<=0||!R(y)||y<=0||!R(l)||l!==+l||!R(p)||p!==+p)return null;var O=f.verticalCoordinatesGenerator||b3,m=f.horizontalCoordinatesGenerator||x3,g=f.horizontalPoints,A=f.verticalPoints;if((!g||!g.length)&&Y(m)){var _=d&&d.length,P=m({yAxis:w?Ne(Ne({},w),{},{ticks:_?d:w.ticks}):void 0,width:u,height:c,offset:s},_?!0:v);Rt(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ur(P),"]")),Array.isArray(P)&&(g=P)}if((!A||!A.length)&&Y(O)){var E=b&&b.length,T=O({xAxis:x?Ne(Ne({},x),{},{ticks:E?b:x.ticks}):void 0,width:u,height:c,offset:s},E?!0:v);Rt(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ur(T),"]")),Array.isArray(T)&&(A=T)}return S.createElement("g",{className:"recharts-cartesian-grid"},S.createElement(d3,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),S.createElement(v3,Jt({},f,{offset:s,horizontalPoints:g,xAxis:x,yAxis:w})),S.createElement(y3,Jt({},f,{offset:s,verticalPoints:A,xAxis:x,yAxis:w})),S.createElement(m3,Jt({},f,{horizontalPoints:g})),S.createElement(g3,Jt({},f,{verticalPoints:A})))}_c.displayName="CartesianGrid";var w3=["type","layout","connectNulls","ref"],O3=["key"];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 Mh(e,t){if(e==null)return{};var r=A3(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 A3(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 Cn(){return Cn=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},Cn.apply(this,arguments)}function Ch(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ch(Object(r),!0).forEach(function(n){at(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ch(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gr(e){return $3(e)||P3(e)||_3(e)||S3()}function S3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
65
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _3(e,t){if(e){if(typeof e=="string")return Pc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pc(e,t)}}function P3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $3(e){if(Array.isArray(e))return Pc(e)}function Pc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function T3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ih(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,sm(n.key),n)}}function E3(e,t,r){return t&&Ih(e.prototype,t),r&&Ih(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function j3(e,t,r){return t=Ba(t),M3(e,cm()?Reflect.construct(t,r||[],Ba(e).constructor):t.apply(e,r))}function M3(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 C3(e)}function C3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cm=function(){return!!e})()}function Ba(e){return Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ba(e)}function I3(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&&$c(e,t)}function $c(e,t){return $c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$c(e,t)}function at(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=k3(e,"string");return Vr(t)=="symbol"?t:t+""}function k3(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 wi=function(e){function t(){var r;T3(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=j3(this,t,[].concat(i)),at(r,"state",{isAnimationFinished:!0,totalLength:0}),at(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),at(r,"getStrokeDasharray",function(o,u,c){var s=c.reduce(function(b,x){return b+x});if(!s)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/s),l=o%s,p=u-o,h=[],y=0,v=0;y<c.length;v+=c[y],++y)if(v+c[y]>l){h=[].concat(gr(c.slice(0,y)),[l-v]);break}var d=h.length%2===0?[0,p]:[p];return[].concat(gr(t.repeat(c,f)),gr(h),d).map(function(b){return"".concat(b,"px")}).join(", ")}),at(r,"id",un("recharts-line-")),at(r,"pathRef",function(o){r.mainCurve=o}),at(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),at(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return I3(t,e),E3(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=Ve(f,xi);if(!l)return null;var p=function(v,d){return{x:v.x,y:v.y,value:v.value,errorVal:Pe(v.payload,d)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(te,h,l.map(function(y){return S.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,dataPointFormatter:p})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,c=u.dot,s=u.points,f=u.dataKey,l=H(this.props,!1),p=H(c,!0),h=s.map(function(v,d){var b=Ue(Ue(Ue({key:"dot-".concat(d),r:3},l),p),{},{index:d,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:s});return t.renderDotItem(c,b)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(te,Cn({className:"recharts-line-dots",key:"dots"},y),h)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,c=u.type,s=u.layout,f=u.connectNulls;u.ref;var l=Mh(u,w3),p=Ue(Ue(Ue({},H(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:c,layout:s,connectNulls:f});return S.createElement(ya,Cn({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.strokeDasharray,s=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,p=o.animationEasing,h=o.animationId,y=o.animateNewValues,v=o.width,d=o.height,b=this.state,x=b.prevPoints,w=b.totalLength;return S.createElement(pt,{begin:f,duration:l,isActive:s,easing:p,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var m=O.t;if(x){var g=x.length/u.length,A=u.map(function($,I){var M=Math.floor(I*g);if(x[M]){var C=x[M],N=Ge(C.x,$.x),D=Ge(C.y,$.y);return Ue(Ue({},$),{},{x:N(m),y:D(m)})}if(y){var F=Ge(v*2,$.x),z=Ge(d/2,$.y);return Ue(Ue({},$),{},{x:F(m),y:z(m)})}return Ue(Ue({},$),{},{x:$.x,y:$.y})});return a.renderCurveStatically(A,n,i)}var _=Ge(0,w),P=_(m),E;if(c){var T="".concat(c).split(/[,\s]+/gim).map(function($){return parseFloat($)});E=a.getStrokeDasharray(P,w,T)}else E=a.generateSimpleStrokeDasharray(w,P);return a.renderCurveStatically(u,n,i,{strokeDasharray:E})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,c=this.state,s=c.prevPoints,f=c.totalLength;return u&&o&&o.length&&(!s&&f>0||!bi(s,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,c=i.className,s=i.xAxis,f=i.yAxis,l=i.top,p=i.left,h=i.width,y=i.height,v=i.isAnimationActive,d=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,x=u.length===1,w=ee("recharts-line",c),O=s&&s.allowDataOverflow,m=f&&f.allowDataOverflow,g=O||m,A=Z(d)?this.id:d,_=(n=H(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=_.r,E=P===void 0?3:P,T=_.strokeWidth,$=T===void 0?2:T,I=px(o)?o:{},M=I.clipDot,C=M===void 0?!0:M,N=E*2+$;return S.createElement(te,{className:w},O||m?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(A)},S.createElement("rect",{x:O?p:p-h/2,y:m?l:l-y/2,width:O?h:h*2,height:m?y:y*2})),!C&&S.createElement("clipPath",{id:"clipPath-dots-".concat(A)},S.createElement("rect",{x:p-N/2,y:l-N/2,width:h+N,height:y+N}))):null,!x&&this.renderCurve(g,A),this.renderErrorBar(g,A),(x||o)&&this.renderDots(g,C,A),(!v||b)&&At.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(gr(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(gr(o),gr(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(S.isValidElement(n))a=S.cloneElement(n,i);else if(Y(n))a=n(i);else{var o=i.key,u=Mh(i,O3),c=ee("recharts-line-dot",typeof n!="boolean"?n.className:"");a=S.createElement(ho,Cn({key:o},u,{className:c}))}return a}}])}(B.PureComponent);at(wi,"displayName","Line");at(wi,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!sr.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});at(wi,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,u=e.bandSize,c=e.displayedData,s=e.offset,f=t.layout,l=c.map(function(p,h){var y=Pe(p,o);return f==="horizontal"?{x:op({axis:r,ticks:i,bandSize:u,entry:p,index:h}),y:Z(y)?null:n.scale(y),value:y,payload:p}:{x:Z(y)?null:r.scale(y),y:op({axis:n,ticks:a,bandSize:u,entry:p,index:h}),value:y,payload:p}});return Ue({points:l,layout:f},s)});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 N3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D3(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,pm(n.key),n)}}function R3(e,t,r){return t&&D3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function L3(e,t,r){return t=Fa(t),B3(e,lm()?Reflect.construct(t,r||[],Fa(e).constructor):t.apply(e,r))}function B3(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 F3(e)}function F3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lm=function(){return!!e})()}function Fa(e){return Fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fa(e)}function z3(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&&Tc(e,t)}function Tc(e,t){return Tc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tc(e,t)}function fm(e,t,r){return t=pm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pm(e){var t=U3(e,"string");return Xr(t)=="symbol"?t:t+""}function U3(e,t){if(Xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ec(){return Ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ec.apply(this,arguments)}function W3(e){var t=e.xAxisId,r=Ns(),n=Ds(),i=Yy(t);return i==null?null:B.createElement(dn,Ec({},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 wt(o,!0)}}))}var Yr=function(e){function t(){return N3(this,t),L3(this,t,arguments)}return z3(t,e),R3(t,[{key:"render",value:function(){return B.createElement(W3,this.props)}}])}(B.Component);fm(Yr,"displayName","XAxis");fm(Yr,"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 Zr(e){"@babel/helpers - typeof";return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zr(e)}function K3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G3(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,vm(n.key),n)}}function H3(e,t,r){return t&&G3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function q3(e,t,r){return t=za(t),V3(e,hm()?Reflect.construct(t,r||[],za(e).constructor):t.apply(e,r))}function V3(e,t){if(t&&(Zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X3(e)}function X3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hm=function(){return!!e})()}function za(e){return za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},za(e)}function Y3(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&&jc(e,t)}function jc(e,t){return jc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jc(e,t)}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=Z3(e,"string");return Zr(t)=="symbol"?t:t+""}function Z3(e,t){if(Zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Mc(){return Mc=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},Mc.apply(this,arguments)}var J3=function(t){var r=t.yAxisId,n=Ns(),i=Ds(),a=Zy(r);return a==null?null:B.createElement(dn,Mc({},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 wt(u,!0)}}))},Jr=function(e){function t(){return K3(this,t),q3(this,t,arguments)}return Y3(t,e),H3(t,[{key:"render",value:function(){return B.createElement(J3,this.props)}}])}(B.Component);dm(Jr,"displayName","YAxis");dm(Jr,"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 kh(e){return rz(e)||tz(e)||ez(e)||Q3()}function Q3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
66
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ez(e,t){if(e){if(typeof e=="string")return Cc(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 Cc(e,t)}}function tz(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rz(e){if(Array.isArray(e))return Cc(e)}function Cc(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 Ic=function(t,r,n,i,a){var o=Ve(t,Ls),u=Ve(t,Ao),c=[].concat(kh(o),kh(u)),s=Ve(t,_o),f="".concat(i,"Id"),l=i[0],p=r;if(c.length&&(p=c.reduce(function(v,d){if(d.props[f]===n&<(d.props,"extendDomain")&&R(d.props[l])){var b=d.props[l];return[Math.min(v[0],b),Math.max(v[1],b)]}return v},p)),s.length){var h="".concat(l,"1"),y="".concat(l,"2");p=s.reduce(function(v,d){if(d.props[f]===n&<(d.props,"extendDomain")&&R(d.props[h])&&R(d.props[y])){var b=d.props[h],x=d.props[y];return[Math.min(v[0],b,x),Math.max(v[1],b,x)]}return v},p)}return a&&a.length&&(p=a.reduce(function(v,d){return R(d)?[Math.min(v[0],d),Math.max(v[1],d)]:v},p)),p},ym={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,s,f){this.fn=c,this.context=s,this.once=f||!1}function a(c,s,f,l,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new i(f,l||c,p),y=r?r+s:s;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],h]:c._events[y].push(h):(c._events[y]=h,c._eventsCount++),c}function o(c,s){--c._eventsCount===0?c._events=new n:delete c._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],f,l;if(this._eventsCount===0)return s;for(l in f=this._events)t.call(f,l)&&s.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},u.prototype.listeners=function(s){var f=r?r+s:s,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var p=0,h=l.length,y=new Array(h);p<h;p++)y[p]=l[p].fn;return y},u.prototype.listenerCount=function(s){var f=r?r+s:s,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(s,f,l,p,h,y){var v=r?r+s:s;if(!this._events[v])return!1;var d=this._events[v],b=arguments.length,x,w;if(d.fn){switch(d.once&&this.removeListener(s,d.fn,void 0,!0),b){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,f),!0;case 3:return d.fn.call(d.context,f,l),!0;case 4:return d.fn.call(d.context,f,l,p),!0;case 5:return d.fn.call(d.context,f,l,p,h),!0;case 6:return d.fn.call(d.context,f,l,p,h,y),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];d.fn.apply(d.context,x)}else{var O=d.length,m;for(w=0;w<O;w++)switch(d[w].once&&this.removeListener(s,d[w].fn,void 0,!0),b){case 1:d[w].fn.call(d[w].context);break;case 2:d[w].fn.call(d[w].context,f);break;case 3:d[w].fn.call(d[w].context,f,l);break;case 4:d[w].fn.call(d[w].context,f,l,p);break;default:if(!x)for(m=1,x=new Array(b-1);m<b;m++)x[m-1]=arguments[m];d[w].fn.apply(d[w].context,x)}}return!0},u.prototype.on=function(s,f,l){return a(this,s,f,l,!1)},u.prototype.once=function(s,f,l){return a(this,s,f,l,!0)},u.prototype.removeListener=function(s,f,l,p){var h=r?r+s:s;if(!this._events[h])return this;if(!f)return o(this,h),this;var y=this._events[h];if(y.fn)y.fn===f&&(!p||y.once)&&(!l||y.context===l)&&o(this,h);else{for(var v=0,d=[],b=y.length;v<b;v++)(y[v].fn!==f||p&&!y[v].once||l&&y[v].context!==l)&&d.push(y[v]);d.length?this._events[h]=d.length===1?d[0]:d:o(this,h)}return this},u.prototype.removeAllListeners=function(s){var f;return s?(f=r?r+s:s,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(ym);var nz=ym.exports;const iz=ce(nz);var ru=new iz,nu="recharts.syncMouseEvents";function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function az(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oz(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,mm(n.key),n)}}function uz(e,t,r){return t&&oz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iu(e,t,r){return t=mm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mm(e){var t=cz(e,"string");return li(t)=="symbol"?t:t+""}function cz(e,t){if(li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sz=function(){function e(){az(this,e),iu(this,"activeIndex",0),iu(this,"coordinateList",[]),iu(this,"layout","horizontal")}return uz(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,c=r.layout,s=c===void 0?null:c,f=r.offset,l=f===void 0?null:f,p=r.mouseHandlerCallback,h=p===void 0?null:p;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=s??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,c=this.coordinateList[this.activeIndex].coordinate,s=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+c+s,p=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:p})}}}])}();function lz(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&R(n)&&R(i))return!0}return!1}function fz(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 gm(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=fe(t,r,n,i),u=fe(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function pz(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,c=t.cy,s=t.innerRadius,f=t.outerRadius,l=t.angle,p=fe(u,c,s,l),h=fe(u,c,f,l);n=p.x,i=p.y,a=h.x,o=h.y}else return gm(t);return[{x:n,y:i},{x:a,y:o}]}function fi(e){"@babel/helpers - typeof";return fi=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},fi(e)}function Nh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ni(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nh(Object(r),!0).forEach(function(n){hz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hz(e,t,r){return t=dz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dz(e){var t=vz(e,"string");return fi(t)=="symbol"?t:t+""}function vz(e,t){if(fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yz(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,c=e.offset,s=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,p=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||p!=="ScatterChart"&&i!=="axis")return null;var y,v=ya;if(p==="ScatterChart")y=o,v=kD;else if(p==="BarChart")y=fz(l,o,c,f),v=Ms;else if(l==="radial"){var d=gm(o),b=d.cx,x=d.cy,w=d.radius,O=d.startAngle,m=d.endAngle;y={cx:b,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=yy}else y={points:pz(l,o,c)},v=ya;var g=Ni(Ni(Ni(Ni({stroke:"#ccc",pointerEvents:"none"},c),y),H(h,!1)),{},{payload:u,payloadIndex:s,className:ee("recharts-tooltip-cursor",h.className)});return B.isValidElement(h)?B.cloneElement(h,g):B.createElement(v,g)}var mz=["item"],gz=["children","className","width","height","style","compact","title","desc"];function Qr(e){"@babel/helpers - typeof";return Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qr(e)}function Ar(){return Ar=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},Ar.apply(this,arguments)}function Dh(e,t){return wz(e)||xz(e,t)||xm(e,t)||bz()}function bz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
67
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xz(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function wz(e){if(Array.isArray(e))return e}function Rh(e,t){if(e==null)return{};var r=Oz(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 Oz(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 Az(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sz(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,wm(n.key),n)}}function _z(e,t,r){return t&&Sz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pz(e,t,r){return t=Ua(t),$z(e,bm()?Reflect.construct(t,r||[],Ua(e).constructor):t.apply(e,r))}function $z(e,t){if(t&&(Qr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tz(e)}function Tz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bm=function(){return!!e})()}function Ua(e){return Ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ua(e)}function Ez(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&&kc(e,t)}function kc(e,t){return kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kc(e,t)}function en(e){return Cz(e)||Mz(e)||xm(e)||jz()}function jz(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
68
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xm(e,t){if(e){if(typeof e=="string")return Nc(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 Nc(e,t)}}function Mz(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cz(e){if(Array.isArray(e))return Nc(e)}function Nc(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 Lh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lh(Object(r),!0).forEach(function(n){q(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q(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=Iz(e,"string");return Qr(t)=="symbol"?t:t+""}function Iz(e,t){if(Qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kz={xAxis:["bottom","top"],yAxis:["left","right"]},Nz={width:"100%",height:"100%"},Om={x:0,y:0};function Di(e){return e}var Dz=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},Rz=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 j(j(j({},i),fe(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return j(j(j({},i),fe(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return Om},Po=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,c){var s=c.props.data;return s&&s.length?[].concat(en(u),en(s)):u},[]);return o.length>0?o:t&&t.length&&R(i)&&R(a)?t.slice(i,a+1):[]};function Am(e){return e==="number"?[0,"auto"]:void 0}var Dc=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Po(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,s){var f,l=(f=s.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var p;if(o.dataKey&&!o.allowDuplicatedCategory){var h=l===void 0?u:l;p=Li(h,o.dataKey,i)}else p=l&&l[n]||u[n];return p?[].concat(en(c),[ly(s,p)]):c},[])},Bh=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=Dz(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=ak(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,p=Dc(t,r,f,l),h=Rz(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:p,activeCoordinate:h}}return null},Lz=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,p=t.stackOffset,h=iy(f,a);return n.reduce(function(y,v){var d,b=v.type.defaultProps!==void 0?j(j({},v.type.defaultProps),v.props):v.props,x=b.type,w=b.dataKey,O=b.allowDataOverflow,m=b.allowDuplicatedCategory,g=b.scale,A=b.ticks,_=b.includeHidden,P=b[o];if(y[P])return y;var E=Po(t.data,{graphicalItems:i.filter(function(W){var X,oe=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o];return oe===P}),dataStartIndex:c,dataEndIndex:s}),T=E.length,$,I,M;lz(b.domain,O,x)&&($=Xu(b.domain,null,O),h&&(x==="number"||g!=="auto")&&(M=Tn(E,w,"category")));var C=Am(x);if(!$||$.length===0){var N,D=(N=b.domain)!==null&&N!==void 0?N:C;if(w){if($=Tn(E,w,x),x==="category"&&h){var F=rx($);m&&F?(I=$,$=Ta(0,T)):m||($=lp(D,$,v).reduce(function(W,X){return W.indexOf(X)>=0?W:[].concat(en(W),[X])},[]))}else if(x==="category")m?$=$.filter(function(W){return W!==""&&!Z(W)}):$=lp(D,$,v).reduce(function(W,X){return W.indexOf(X)>=0||X===""||Z(X)?W:[].concat(en(W),[X])},[]);else if(x==="number"){var z=lk(E,i.filter(function(W){var X,oe,ge=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o],De="hide"in W.props?W.props.hide:(oe=W.type.defaultProps)===null||oe===void 0?void 0:oe.hide;return ge===P&&(_||!De)}),w,a,f);z&&($=z)}h&&(x==="number"||g!=="auto")&&(M=Tn(E,w,"category"))}else h?$=Ta(0,T):u&&u[P]&&u[P].hasStack&&x==="number"?$=p==="expand"?[0,1]:sy(u[P].stackGroups,c,s):$=ny(E,i.filter(function(W){var X=o in W.props?W.props[o]:W.type.defaultProps[o],oe="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return X===P&&(_||!oe)}),x,f,!0);if(x==="number")$=Ic(l,$,P,a,A),D&&($=Xu(D,$,O));else if(x==="category"&&D){var G=D,V=$.every(function(W){return G.indexOf(W)>=0});V&&($=G)}}return j(j({},y),{},q({},P,j(j({},b),{},{axisType:a,domain:$,categoricalDomain:M,duplicateDomain:I,originalDomain:(d=b.domain)!==null&&d!==void 0?d:C,isCategorical:h,layout:f})))},{})},Bz=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,p=Po(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),h=p.length,y=iy(f,a),v=-1;return n.reduce(function(d,b){var x=b.type.defaultProps!==void 0?j(j({},b.type.defaultProps),b.props):b.props,w=x[o],O=Am("number");if(!d[w]){v++;var m;return y?m=Ta(0,h):u&&u[w]&&u[w].hasStack?(m=sy(u[w].stackGroups,c,s),m=Ic(l,m,w,a)):(m=Xu(O,ny(p,n.filter(function(g){var A,_,P=o in g.props?g.props[o]:(A=g.type.defaultProps)===null||A===void 0?void 0:A[o],E="hide"in g.props?g.props.hide:(_=g.type.defaultProps)===null||_===void 0?void 0:_.hide;return P===w&&!E}),"number",f),i.defaultProps.allowDataOverflow),m=Ic(l,m,w,a)),j(j({},d),{},q({},w,j(j({axisType:a},i.defaultProps),{},{hide:!0,orientation:qe(kz,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return d},{})},Fz=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),p=Ve(f,a),h={};return p&&p.length?h=Lz(t,{axes:p,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(h=Bz(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),h},zz=function(t){var r=It(t),n=wt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:is(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ha(r,n)}},Fh=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ke(r,zr),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}},Uz=function(t){return!t||!t.length?!1:t.some(function(r){var n=Nt(r&&r.type);return n&&n.indexOf("Bar")>=0})},zh=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"}},Wz=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,c=u===void 0?{}:u,s=n.width,f=n.height,l=n.children,p=n.margin||{},h=Ke(l,zr),y=Ke(l,Qt),v=Object.keys(c).reduce(function(m,g){var A=c[g],_=A.orientation;return!A.mirror&&!A.hide?j(j({},m),{},q({},_,m[_]+A.width)):m},{left:p.left||0,right:p.right||0}),d=Object.keys(o).reduce(function(m,g){var A=o[g],_=A.orientation;return!A.mirror&&!A.hide?j(j({},m),{},q({},_,qe(m,"".concat(_))+A.height)):m},{top:p.top||0,bottom:p.bottom||0}),b=j(j({},d),v),x=b.bottom;h&&(b.bottom+=h.props.height||zr.defaultProps.height),y&&r&&(b=ck(b,i,n,r));var w=s-b.left-b.right,O=f-b.top-b.bottom;return j(j({brushBottom:x},b),{},{width:Math.max(w,0),height:Math.max(O,0)})},Kz=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},zs=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,c=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,p=function(b,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,g=x.updateId,A=x.dataStartIndex,_=x.dataEndIndex,P=b.barSize,E=b.layout,T=b.barGap,$=b.barCategoryGap,I=b.maxBarSize,M=zh(E),C=M.numericAxisName,N=M.cateAxisName,D=Uz(w),F=[];return w.forEach(function(z,G){var V=Po(b.data,{graphicalItems:[z],dataStartIndex:A,dataEndIndex:_}),W=z.type.defaultProps!==void 0?j(j({},z.type.defaultProps),z.props):z.props,X=W.dataKey,oe=W.maxBarSize,ge=W["".concat(C,"Id")],De=W["".concat(N,"Id")],vt={},Ie=c.reduce(function(Ut,yt){var $o,To,Eo=x["".concat(yt.axisType,"Map")],Us=W["".concat(yt.axisType,"Id")];Eo&&Eo[Us]||yt.axisType==="zAxis"||or(!1,"Specifying a(n) ".concat(yt.axisType,"Id requires a corresponding ").concat(yt.axisType,"Id on the targeted graphical component ").concat(($o=z==null||(To=z.type)===null||To===void 0?void 0:To.displayName)!==null&&$o!==void 0?$o:""));var Ws=Eo[Us];return j(j({},Ut),{},q(q({},yt.axisType,Ws),"".concat(yt.axisType,"Ticks"),wt(Ws)))},vt),U=Ie[N],J=Ie["".concat(N,"Ticks")],Q=O&&O[ge]&&O[ge].hasStack&&bk(z,O[ge].stackGroups),k=Nt(z.type).indexOf("Bar")>=0,de=ha(U,J),L=[],me=D&&ok({barSize:P,stackGroups:O,totalSize:Kz(Ie,N)});if(k){var ve,Me,Mt=Z(oe)?I:oe,dr=(ve=(Me=ha(U,J,!0))!==null&&Me!==void 0?Me:Mt)!==null&&ve!==void 0?ve:0;L=uk({barGap:T,barCategoryGap:$,bandSize:dr!==de?dr:de,sizeList:me[De],maxBarSize:Mt}),dr!==de&&(L=L.map(function(Ut){return j(j({},Ut),{},{position:j(j({},Ut.position),{},{offset:Ut.position.offset-dr/2})})}))}var Oi=z&&z.type&&z.type.getComposedData;Oi&&F.push({props:j(j({},Oi(j(j({},Ie),{},{displayedData:V,props:b,dataKey:X,item:z,bandSize:de,barPosition:L,offset:m,stackedData:Q,layout:E,dataStartIndex:A,dataEndIndex:_}))),{},q(q(q({key:z.key||"item-".concat(G)},C,Ie[C]),N,Ie[N]),"animationId",g)),childIndex:vx(z,b.children),item:z})}),F},h=function(b,x){var w=b.props,O=b.dataStartIndex,m=b.dataEndIndex,g=b.updateId;if(!nl({props:w}))return null;var A=w.children,_=w.layout,P=w.stackOffset,E=w.data,T=w.reverseStackOrder,$=zh(_),I=$.numericAxisName,M=$.cateAxisName,C=Ve(A,n),N=mk(E,C,"".concat(I,"Id"),"".concat(M,"Id"),P,T),D=c.reduce(function(W,X){var oe="".concat(X.axisType,"Map");return j(j({},W),{},q({},oe,Fz(w,j(j({},X),{},{graphicalItems:C,stackGroups:X.axisType===I&&N,dataStartIndex:O,dataEndIndex:m}))))},{}),F=Wz(j(j({},D),{},{props:w,graphicalItems:C}),x==null?void 0:x.legendBBox);Object.keys(D).forEach(function(W){D[W]=f(w,D[W],F,W.replace("Map",""),r)});var z=D["".concat(M,"Map")],G=zz(z),V=p(w,j(j({},D),{},{dataStartIndex:O,dataEndIndex:m,updateId:g,graphicalItems:C,stackGroups:N,offset:F}));return j(j({formattedGraphicalItems:V,graphicalItems:C,offset:F,stackGroups:N},G),D)},y=function(d){function b(x){var w,O,m;return Az(this,b),m=Pz(this,b,[x]),q(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),q(m,"accessibilityManager",new sz),q(m,"handleLegendBBoxUpdate",function(g){if(g){var A=m.state,_=A.dataStartIndex,P=A.dataEndIndex,E=A.updateId;m.setState(j({legendBBox:g},h({props:m.props,dataStartIndex:_,dataEndIndex:P,updateId:E},j(j({},m.state),{},{legendBBox:g}))))}}),q(m,"handleReceiveSyncEvent",function(g,A,_){if(m.props.syncId===g){if(_===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(A)}}),q(m,"handleBrushChange",function(g){var A=g.startIndex,_=g.endIndex;if(A!==m.state.dataStartIndex||_!==m.state.dataEndIndex){var P=m.state.updateId;m.setState(function(){return j({dataStartIndex:A,dataEndIndex:_},h({props:m.props,dataStartIndex:A,dataEndIndex:_,updateId:P},m.state))}),m.triggerSyncEvent({dataStartIndex:A,dataEndIndex:_})}}),q(m,"handleMouseEnter",function(g){var A=m.getMouseInfo(g);if(A){var _=j(j({},A),{},{isTooltipActive:!0});m.setState(_),m.triggerSyncEvent(_);var P=m.props.onMouseEnter;Y(P)&&P(_,g)}}),q(m,"triggeredAfterMouseMove",function(g){var A=m.getMouseInfo(g),_=A?j(j({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var P=m.props.onMouseMove;Y(P)&&P(_,g)}),q(m,"handleItemMouseEnter",function(g){m.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),q(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),q(m,"handleMouseMove",function(g){g.persist(),m.throttleTriggeredAfterMouseMove(g)}),q(m,"handleMouseLeave",function(g){m.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var _=m.props.onMouseLeave;Y(_)&&_(A,g)}),q(m,"handleOuterEvent",function(g){var A=dx(g),_=qe(m.props,"".concat(A));if(A&&Y(_)){var P,E;/.*touch.*/i.test(A)?E=m.getMouseInfo(g.changedTouches[0]):E=m.getMouseInfo(g),_((P=E)!==null&&P!==void 0?P:{},g)}}),q(m,"handleClick",function(g){var A=m.getMouseInfo(g);if(A){var _=j(j({},A),{},{isTooltipActive:!0});m.setState(_),m.triggerSyncEvent(_);var P=m.props.onClick;Y(P)&&P(_,g)}}),q(m,"handleMouseDown",function(g){var A=m.props.onMouseDown;if(Y(A)){var _=m.getMouseInfo(g);A(_,g)}}),q(m,"handleMouseUp",function(g){var A=m.props.onMouseUp;if(Y(A)){var _=m.getMouseInfo(g);A(_,g)}}),q(m,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),q(m,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseDown(g.changedTouches[0])}),q(m,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseUp(g.changedTouches[0])}),q(m,"handleDoubleClick",function(g){var A=m.props.onDoubleClick;if(Y(A)){var _=m.getMouseInfo(g);A(_,g)}}),q(m,"handleContextMenu",function(g){var A=m.props.onContextMenu;if(Y(A)){var _=m.getMouseInfo(g);A(_,g)}}),q(m,"triggerSyncEvent",function(g){m.props.syncId!==void 0&&ru.emit(nu,m.props.syncId,g,m.eventEmitterSymbol)}),q(m,"applySyncEvent",function(g){var A=m.props,_=A.layout,P=A.syncMethod,E=m.state.updateId,T=g.dataStartIndex,$=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)m.setState(j({dataStartIndex:T,dataEndIndex:$},h({props:m.props,dataStartIndex:T,dataEndIndex:$,updateId:E},m.state)));else if(g.activeTooltipIndex!==void 0){var I=g.chartX,M=g.chartY,C=g.activeTooltipIndex,N=m.state,D=N.offset,F=N.tooltipTicks;if(!D)return;if(typeof P=="function")C=P(F,g);else if(P==="value"){C=-1;for(var z=0;z<F.length;z++)if(F[z].value===g.activeLabel){C=z;break}}var G=j(j({},D),{},{x:D.left,y:D.top}),V=Math.min(I,G.x+G.width),W=Math.min(M,G.y+G.height),X=F[C]&&F[C].value,oe=Dc(m.state,m.props.data,C),ge=F[C]?{x:_==="horizontal"?F[C].coordinate:V,y:_==="horizontal"?W:F[C].coordinate}:Om;m.setState(j(j({},g),{},{activeLabel:X,activeCoordinate:ge,activePayload:oe,activeTooltipIndex:C}))}else m.setState(g)}),q(m,"renderCursor",function(g){var A,_=m.state,P=_.isTooltipActive,E=_.activeCoordinate,T=_.activePayload,$=_.offset,I=_.activeTooltipIndex,M=_.tooltipAxisBandSize,C=m.getTooltipEventType(),N=(A=g.props.active)!==null&&A!==void 0?A:P,D=m.props.layout,F=g.key||"_recharts-cursor";return S.createElement(yz,{key:F,activeCoordinate:E,activePayload:T,activeTooltipIndex:I,chartName:r,element:g,isActive:N,layout:D,offset:$,tooltipAxisBandSize:M,tooltipEventType:C})}),q(m,"renderPolarAxis",function(g,A,_){var P=qe(g,"type.axisType"),E=qe(m.state,"".concat(P,"Map")),T=g.type.defaultProps,$=T!==void 0?j(j({},T),g.props):g.props,I=E&&E[$["".concat(P,"Id")]];return B.cloneElement(g,j(j({},I),{},{className:ee(P,I.className),key:g.key||"".concat(A,"-").concat(_),ticks:wt(I,!0)}))}),q(m,"renderPolarGrid",function(g){var A=g.props,_=A.radialLines,P=A.polarAngles,E=A.polarRadius,T=m.state,$=T.radiusAxisMap,I=T.angleAxisMap,M=It($),C=It(I),N=C.cx,D=C.cy,F=C.innerRadius,z=C.outerRadius;return B.cloneElement(g,{polarAngles:Array.isArray(P)?P:wt(C,!0).map(function(G){return G.coordinate}),polarRadius:Array.isArray(E)?E:wt(M,!0).map(function(G){return G.coordinate}),cx:N,cy:D,innerRadius:F,outerRadius:z,key:g.key||"polar-grid",radialLines:_})}),q(m,"renderLegend",function(){var g=m.state.formattedGraphicalItems,A=m.props,_=A.children,P=A.width,E=A.height,T=m.props.margin||{},$=P-(T.left||0)-(T.right||0),I=ty({children:_,formattedGraphicalItems:g,legendWidth:$,legendContent:s});if(!I)return null;var M=I.item,C=Rh(I,mz);return B.cloneElement(M,j(j({},C),{},{chartWidth:P,chartHeight:E,margin:T,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),q(m,"renderTooltip",function(){var g,A=m.props,_=A.children,P=A.accessibilityLayer,E=Ke(_,Je);if(!E)return null;var T=m.state,$=T.isTooltipActive,I=T.activeCoordinate,M=T.activePayload,C=T.activeLabel,N=T.offset,D=(g=E.props.active)!==null&&g!==void 0?g:$;return B.cloneElement(E,{viewBox:j(j({},N),{},{x:N.left,y:N.top}),active:D,label:C,payload:D?M:[],coordinate:I,accessibilityLayer:P})}),q(m,"renderBrush",function(g){var A=m.props,_=A.margin,P=A.data,E=m.state,T=E.offset,$=E.dataStartIndex,I=E.dataEndIndex,M=E.updateId;return B.cloneElement(g,{key:g.key||"_recharts-brush",onChange:Mi(m.handleBrushChange,g.props.onChange),data:P,x:R(g.props.x)?g.props.x:T.left,y:R(g.props.y)?g.props.y:T.top+T.height+T.brushBottom-(_.bottom||0),width:R(g.props.width)?g.props.width:T.width,startIndex:$,endIndex:I,updateId:"brush-".concat(M)})}),q(m,"renderReferenceElement",function(g,A,_){if(!g)return null;var P=m,E=P.clipPathId,T=m.state,$=T.xAxisMap,I=T.yAxisMap,M=T.offset,C=g.type.defaultProps||{},N=g.props,D=N.xAxisId,F=D===void 0?C.xAxisId:D,z=N.yAxisId,G=z===void 0?C.yAxisId:z;return B.cloneElement(g,{key:g.key||"".concat(A,"-").concat(_),xAxis:$[F],yAxis:I[G],viewBox:{x:M.left,y:M.top,width:M.width,height:M.height},clipPathId:E})}),q(m,"renderActivePoints",function(g){var A=g.item,_=g.activePoint,P=g.basePoint,E=g.childIndex,T=g.isRange,$=[],I=A.props.key,M=A.item.type.defaultProps!==void 0?j(j({},A.item.type.defaultProps),A.item.props):A.item.props,C=M.activeDot,N=M.dataKey,D=j(j({index:E,dataKey:N,cx:_.x,cy:_.y,r:4,fill:js(A.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},H(C,!1)),Bi(C));return $.push(b.renderActiveDot(C,D,"".concat(I,"-activePoint-").concat(E))),P?$.push(b.renderActiveDot(C,j(j({},D),{},{cx:P.x,cy:P.y}),"".concat(I,"-basePoint-").concat(E))):T&&$.push(null),$}),q(m,"renderGraphicChild",function(g,A,_){var P=m.filterFormatItem(g,A,_);if(!P)return null;var E=m.getTooltipEventType(),T=m.state,$=T.isTooltipActive,I=T.tooltipAxis,M=T.activeTooltipIndex,C=T.activeLabel,N=m.props.children,D=Ke(N,Je),F=P.props,z=F.points,G=F.isRange,V=F.baseLine,W=P.item.type.defaultProps!==void 0?j(j({},P.item.type.defaultProps),P.item.props):P.item.props,X=W.activeDot,oe=W.hide,ge=W.activeBar,De=W.activeShape,vt=!!(!oe&&$&&D&&(X||ge||De)),Ie={};E!=="axis"&&D&&D.props.trigger==="click"?Ie={onClick:Mi(m.handleItemMouseEnter,g.props.onClick)}:E!=="axis"&&(Ie={onMouseLeave:Mi(m.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:Mi(m.handleItemMouseEnter,g.props.onMouseEnter)});var U=B.cloneElement(g,j(j({},P.props),Ie));function J(yt){return typeof I.dataKey=="function"?I.dataKey(yt.payload):null}if(vt)if(M>=0){var Q,k;if(I.dataKey&&!I.allowDuplicatedCategory){var de=typeof I.dataKey=="function"?J:"payload.".concat(I.dataKey.toString());Q=Li(z,de,C),k=G&&V&&Li(V,de,C)}else Q=z==null?void 0:z[M],k=G&&V&&V[M];if(De||ge){var L=g.props.activeIndex!==void 0?g.props.activeIndex:M;return[B.cloneElement(g,j(j(j({},P.props),Ie),{},{activeIndex:L})),null,null]}if(!Z(Q))return[U].concat(en(m.renderActivePoints({item:P,activePoint:Q,basePoint:k,childIndex:M,isRange:G})))}else{var me,ve=(me=m.getItemByXY(m.state.activeCoordinate))!==null&&me!==void 0?me:{graphicalItem:U},Me=ve.graphicalItem,Mt=Me.item,dr=Mt===void 0?g:Mt,Oi=Me.childIndex,Ut=j(j(j({},P.props),Ie),{},{activeIndex:Oi});return[B.cloneElement(dr,Ut),null,null]}return G?[U,null,null]:[U,null]}),q(m,"renderCustomized",function(g,A,_){return B.cloneElement(g,j(j({key:"recharts-customized-".concat(_)},m.props),m.state))}),q(m,"renderMap",{CartesianGrid:{handler:Di,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:Di},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:Di},YAxis:{handler:Di},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:un("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=$E(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return Ez(b,d),_z(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,A=w.layout,_=Ke(O,Je);if(_){var P=_.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var E=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,T=Dc(this.state,m,P,E),$=this.state.tooltipTicks[P].coordinate,I=(this.state.offset.top+g)/2,M=A==="horizontal",C=M?{x:$,y:I}:{y:$,x:I},N=this.state.formattedGraphicalItems.find(function(F){var z=F.item;return z.type.name==="Scatter"});N&&(C=j(j({},C),N.props.points[P].tooltipPosition),T=N.props.points[P].tooltipPayload);var D={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:E,activePayload:T,activeCoordinate:C};this.setState(D),this.renderCursor(_),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var m,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){lu([Ke(w.children,Je)],[Ke(this.props.children,Je)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Ke(this.props.children,Je);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),g=kE(m),A={chartX:Math.round(w.pageX-g.left),chartY:Math.round(w.pageY-g.top)},_=m.width/O.offsetWidth||1,P=this.inRange(A.chartX,A.chartY,_);if(!P)return null;var E=this.state,T=E.xAxisMap,$=E.yAxisMap,I=this.getTooltipEventType(),M=Bh(this.state,this.props.data,this.props.layout,P);if(I!=="axis"&&T&&$){var C=It(T).scale,N=It($).scale,D=C&&C.invert?C.invert(A.chartX):null,F=N&&N.invert?N.invert(A.chartY):null;return j(j({},A),{},{xValue:D,yValue:F},M)}return M?j(j({},A),M):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,A=w/m,_=O/m;if(g==="horizontal"||g==="vertical"){var P=this.state.offset,E=A>=P.left&&A<=P.left+P.width&&_>=P.top&&_<=P.top+P.height;return E?{x:A,y:_}:null}var T=this.state,$=T.angleAxisMap,I=T.radiusAxisMap;if($&&I){var M=It($);return hp({x:A,y:_},M)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=Ke(w,Je),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 A=Bi(this.props,this.handleOuterEvent);return j(j({},A),g)}},{key:"addListener",value:function(){ru.on(nu,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ru.removeListener(nu,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var g=this.state.formattedGraphicalItems,A=0,_=g.length;A<_;A++){var P=g[A];if(P.item===w||P.props.key===w.key||O===Nt(P.item.type)&&m===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,g=O.top,A=O.height,_=O.width;return S.createElement("defs",null,S.createElement("clipPath",{id:w},S.createElement("rect",{x:m,y:g,height:A,width:_})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var g=Dh(m,2),A=g[0],_=g[1];return j(j({},O),{},q({},A,_.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var g=Dh(m,2),A=g[0],_=g[1];return j(j({},O),{},q({},A,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,m=O.formattedGraphicalItems,g=O.activeItem;if(m&&m.length)for(var A=0,_=m.length;A<_;A++){var P=m[A],E=P.props,T=P.item,$=T.type.defaultProps!==void 0?j(j({},T.type.defaultProps),T.props):T.props,I=Nt(T.type);if(I==="Bar"){var M=(E.data||[]).find(function(F){return dD(w,F)});if(M)return{graphicalItem:P,payload:M}}else if(I==="RadialBar"){var C=(E.data||[]).find(function(F){return hp(w,F)});if(C)return{graphicalItem:P,payload:C}}else if(bo(P,g)||xo(P,g)||oi(P,g)){var N=rL({graphicalItem:P,activeTooltipItem:g,itemData:$.data}),D=$.activeIndex===void 0?N:$.activeIndex;return{graphicalItem:j(j({},P),{},{childIndex:D}),payload:oi(P,g)?$.data[N]:P.props.data[N]}}}return null}},{key:"render",value:function(){var w=this;if(!nl(this))return null;var O=this.props,m=O.children,g=O.className,A=O.width,_=O.height,P=O.style,E=O.compact,T=O.title,$=O.desc,I=Rh(O,gz),M=H(I,!1);if(E)return S.createElement(gh,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement(pu,Ar({},M,{width:A,height:_,title:T,desc:$}),this.renderClipPath(),al(m,this.renderMap)));if(this.props.accessibilityLayer){var C,N;M.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,M.role=(N=this.props.role)!==null&&N!==void 0?N:"application",M.onKeyDown=function(F){w.accessibilityManager.keyboardEvent(F)},M.onFocus=function(){w.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return S.createElement(gh,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement("div",Ar({className:ee("recharts-wrapper",g),style:j({position:"relative",cursor:"default",width:A,height:_},P)},D,{ref:function(z){w.container=z}}),S.createElement(pu,Ar({},M,{width:A,height:_,title:T,desc:$,style:Nz}),this.renderClipPath(),al(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(B.Component);q(y,"displayName",r),q(y,"defaultProps",j({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),q(y,"getDerivedStateFromProps",function(d,b){var x=d.dataKey,w=d.data,O=d.children,m=d.width,g=d.height,A=d.layout,_=d.stackOffset,P=d.margin,E=b.dataStartIndex,T=b.dataEndIndex;if(b.updateId===void 0){var $=Fh(d);return j(j(j({},$),{},{updateId:0},h(j(j({props:d},$),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:g,prevLayout:A,prevStackOffset:_,prevMargin:P,prevChildren:O})}if(x!==b.prevDataKey||w!==b.prevData||m!==b.prevWidth||g!==b.prevHeight||A!==b.prevLayout||_!==b.prevStackOffset||!Sr(P,b.prevMargin)){var I=Fh(d),M={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},C=j(j({},Bh(b,w,A)),{},{updateId:b.updateId+1}),N=j(j(j({},I),M),C);return j(j(j({},N),h(j({props:d},N),b)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:g,prevLayout:A,prevStackOffset:_,prevMargin:P,prevChildren:O})}if(!lu(O,b.prevChildren)){var D,F,z,G,V=Ke(O,zr),W=V&&(D=(F=V.props)===null||F===void 0?void 0:F.startIndex)!==null&&D!==void 0?D:E,X=V&&(z=(G=V.props)===null||G===void 0?void 0:G.endIndex)!==null&&z!==void 0?z:T,oe=W!==E||X!==T,ge=!Z(w),De=ge&&!oe?b.updateId:b.updateId+1;return j(j({updateId:De},h(j(j({props:d},b),{},{updateId:De,dataStartIndex:W,dataEndIndex:X}),b)),{},{prevChildren:O,dataStartIndex:W,dataEndIndex:X})}return null}),q(y,"renderActiveDot",function(d,b,x){var w;return B.isValidElement(d)?w=B.cloneElement(d,b):Y(d)?w=d(b):w=S.createElement(ho,b),S.createElement(te,{className:"recharts-active-dot",key:x},w)});var v=B.forwardRef(function(b,x){return S.createElement(y,Ar({},b,{ref:x}))});return v.displayName=y.displayName,v},Gz=zs({chartName:"LineChart",GraphicalChild:wi,axisComponents:[{axisType:"xAxis",AxisComp:Yr},{axisType:"yAxis",AxisComp:Jr}],formatAxisMap:zy}),Hz=zs({chartName:"BarChart",GraphicalChild:hr,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Yr},{axisType:"yAxis",AxisComp:Jr}],formatAxisMap:zy}),qz=zs({chartName:"PieChart",GraphicalChild:jt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:go},{axisType:"radiusAxis",AxisComp:yo}],formatAxisMap:Ek,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Vz(){const e=S.useRef(null),[t,r]=S.useState(0);return S.useLayoutEffect(()=>{const n=e.current;if(!n)return;const i=()=>r(n.clientWidth);i();const a=new ResizeObserver(i);return a.observe(n),()=>a.disconnect()},[]),{ref:e,width:t}}const Sm="hsl(var(--opencx-foreground, 240 10% 20%))",Uh=[90,70,50,30].map(e=>`color-mix(in oklch, ${Sm} ${e}%, transparent)`),au=e=>Uh[e%Uh.length]??Sm,ou={borderRadius:8,border:"1px solid color-mix(in oklch, currentColor 15%, transparent)",fontSize:12};function Zz({type:e,data:t,height:r,centerLabel:n}){const i=r??220,{ref:a,width:o}=Vz();return t.length===0?be.jsxDEV(Xz,{height:i},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:82,columnNumber:12},this):be.jsxDEV("div",{ref:a,className:"w-full text-foreground",style:{height:i},children:o>0&&(e==="pie"?be.jsxDEV(qz,{width:o,height:i,children:[be.jsxDEV(Je,{contentStyle:ou},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:90,columnNumber:13},this),be.jsxDEV(Qt,{verticalAlign:"bottom",iconType:"circle",iconSize:8,wrapperStyle:{fontSize:12}},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:91,columnNumber:13},this),be.jsxDEV(jt,{data:t,dataKey:"value",nameKey:"label",outerRadius:"85%",innerRadius:"60%",children:[t.map((u,c)=>be.jsxDEV(to,{fill:au(c)},c,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:105,columnNumber:17},this)),n&&be.jsxDEV(_e,{position:"center",content:({viewBox:u})=>{if(u&&"cx"in u&&"cy"in u)return be.jsxDEV("text",{x:u.cx,y:u.cy,textAnchor:"middle",dominantBaseline:"middle",className:"fill-foreground text-2xl font-medium",children:n},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:113,columnNumber:25},this)}},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:108,columnNumber:17},this)]},void 0,!0,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:97,columnNumber:13},this)]},void 0,!0,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:89,columnNumber:11},this):e==="line"?be.jsxDEV(Gz,{width:o,height:i,data:t,margin:{top:8,right:8,bottom:0,left:-16},children:[be.jsxDEV(_c,{strokeOpacity:.15,vertical:!1},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:136,columnNumber:13},this),be.jsxDEV(Yr,{dataKey:"label",tickLine:!1,axisLine:!1,tickMargin:10,fontSize:11},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:137,columnNumber:13},this),be.jsxDEV(Jr,{tickLine:!1,axisLine:!1,fontSize:11,width:32},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:144,columnNumber:13},this),be.jsxDEV(Je,{contentStyle:ou},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:145,columnNumber:13},this),be.jsxDEV(wi,{type:"monotone",dataKey:"value",stroke:au(0),strokeWidth:2,dot:!1},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:146,columnNumber:13},this)]},void 0,!0,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:130,columnNumber:11},this):be.jsxDEV(Hz,{width:o,height:i,data:t,margin:{top:8,right:8,bottom:0,left:-16},children:[be.jsxDEV(_c,{strokeOpacity:.15,vertical:!1},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:161,columnNumber:13},this),be.jsxDEV(Yr,{dataKey:"label",tickLine:!1,axisLine:!1,tickMargin:10,fontSize:11},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:162,columnNumber:13},this),be.jsxDEV(Jr,{tickLine:!1,axisLine:!1,fontSize:11,width:32},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:169,columnNumber:13},this),be.jsxDEV(Je,{contentStyle:ou,cursor:{fillOpacity:.06}},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:170,columnNumber:13},this),be.jsxDEV(hr,{dataKey:"value",fill:au(0),radius:[4,4,0,0]},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:174,columnNumber:13},this)]},void 0,!0,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:155,columnNumber:11},this))},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:86,columnNumber:5},this)}function Xz({height:e}){const{t}=_m();return be.jsxDEV("div",{className:"flex w-full items-center justify-center rounded-lg border border-muted-foreground/15 text-xs text-muted-foreground",style:{height:e},children:t("json_no_chart_data")},void 0,!1,{fileName:"/private/tmp/widget-followup-stream-20260909/packages/react/src/json-render/Chart.impl.tsx",lineNumber:184,columnNumber:5},this)}export{Zz as default};
|