67 lines
421 KiB
JavaScript
67 lines
421 KiB
JavaScript
import{c as Z}from"./ui-vendor-C4xvlrdo.js";import{c as Si,g as oe,r as N,R as S}from"./react-vendor-Dvs2KPqW.js";var Ao,rp;function Le(){if(rp)return Ao;rp=1;var e=Array.isArray;return Ao=e,Ao}var So,np;function Jb(){if(np)return So;np=1;var e=typeof Si=="object"&&Si&&Si.Object===Object&&Si;return So=e,So}var Po,ip;function pt(){if(ip)return Po;ip=1;var e=Jb(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Po=r,Po}var To,ap;function di(){if(ap)return To;ap=1;var e=pt(),t=e.Symbol;return To=t,To}var Eo,op;function OO(){if(op)return Eo;op=1;var e=di(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),c=o[i];try{o[i]=void 0;var s=!0}catch{}var f=n.call(o);return s&&(u?o[i]=c:delete o[i]),f}return Eo=a,Eo}var jo,up;function _O(){if(up)return jo;up=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return jo=r,jo}var $o,cp;function Pt(){if(cp)return $o;cp=1;var e=di(),t=OO(),r=_O(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return $o=o,$o}var Mo,sp;function Tt(){if(sp)return Mo;sp=1;function e(t){return t!=null&&typeof t=="object"}return Mo=e,Mo}var Io,lp;function an(){if(lp)return Io;lp=1;var e=Pt(),t=Tt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Io=n,Io}var Co,fp;function Xf(){if(fp)return Co;fp=1;var e=Le(),t=an(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return Co=i,Co}var ko,hp;function Dt(){if(hp)return ko;hp=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return ko=e,ko}var Ro,pp;function Yf(){if(pp)return Ro;pp=1;var e=Pt(),t=Dt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var c=e(u);return c==n||c==i||c==r||c==a}return Ro=o,Ro}var Do,dp;function AO(){if(dp)return Do;dp=1;var e=pt(),t=e["__core-js_shared__"];return Do=t,Do}var No,vp;function SO(){if(vp)return No;vp=1;var e=AO(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return No=r,No}var qo,yp;function Qb(){if(yp)return qo;yp=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return qo=r,qo}var Lo,mp;function PO(){if(mp)return Lo;mp=1;var e=Yf(),t=SO(),r=Dt(),n=Qb(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,c=o.toString,s=u.hasOwnProperty,f=RegExp("^"+c.call(s).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!r(h)||t(h))return!1;var d=e(h)?f:a;return d.test(n(h))}return Lo=l,Lo}var Bo,gp;function TO(){if(gp)return Bo;gp=1;function e(t,r){return t?.[r]}return Bo=e,Bo}var Fo,bp;function hr(){if(bp)return Fo;bp=1;var e=PO(),t=TO();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Fo=r,Fo}var Wo,xp;function Ba(){if(xp)return Wo;xp=1;var e=hr(),t=e(Object,"create");return Wo=t,Wo}var zo,wp;function EO(){if(wp)return zo;wp=1;var e=Ba();function t(){this.__data__=e?e(null):{},this.size=0}return zo=t,zo}var Uo,Op;function jO(){if(Op)return Uo;Op=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Uo=e,Uo}var Ho,_p;function $O(){if(_p)return Ho;_p=1;var e=Ba(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return Ho=i,Ho}var Ko,Ap;function MO(){if(Ap)return Ko;Ap=1;var e=Ba(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Ko=n,Ko}var Go,Sp;function IO(){if(Sp)return Go;Sp=1;var e=Ba(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return Go=r,Go}var Vo,Pp;function CO(){if(Pp)return Vo;Pp=1;var e=EO(),t=jO(),r=$O(),n=MO(),i=IO();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Vo=a,Vo}var Xo,Tp;function kO(){if(Tp)return Xo;Tp=1;function e(){this.__data__=[],this.size=0}return Xo=e,Xo}var Yo,Ep;function Zf(){if(Ep)return Yo;Ep=1;function e(t,r){return t===r||t!==t&&r!==r}return Yo=e,Yo}var Zo,jp;function Fa(){if(jp)return Zo;jp=1;var e=Zf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Zo=t,Zo}var Jo,$p;function RO(){if($p)return Jo;$p=1;var e=Fa(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return Jo=n,Jo}var Qo,Mp;function DO(){if(Mp)return Qo;Mp=1;var e=Fa();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Qo=t,Qo}var eu,Ip;function NO(){if(Ip)return eu;Ip=1;var e=Fa();function t(r){return e(this.__data__,r)>-1}return eu=t,eu}var tu,Cp;function qO(){if(Cp)return tu;Cp=1;var e=Fa();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return tu=t,tu}var ru,kp;function Wa(){if(kp)return ru;kp=1;var e=kO(),t=RO(),r=DO(),n=NO(),i=qO();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,ru=a,ru}var nu,Rp;function Jf(){if(Rp)return nu;Rp=1;var e=hr(),t=pt(),r=e(t,"Map");return nu=r,nu}var iu,Dp;function LO(){if(Dp)return iu;Dp=1;var e=CO(),t=Wa(),r=Jf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return iu=n,iu}var au,Np;function BO(){if(Np)return au;Np=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return au=e,au}var ou,qp;function za(){if(qp)return ou;qp=1;var e=BO();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return ou=t,ou}var uu,Lp;function FO(){if(Lp)return uu;Lp=1;var e=za();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return uu=t,uu}var cu,Bp;function WO(){if(Bp)return cu;Bp=1;var e=za();function t(r){return e(this,r).get(r)}return cu=t,cu}var su,Fp;function zO(){if(Fp)return su;Fp=1;var e=za();function t(r){return e(this,r).has(r)}return su=t,su}var lu,Wp;function UO(){if(Wp)return lu;Wp=1;var e=za();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return lu=t,lu}var fu,zp;function Qf(){if(zp)return fu;zp=1;var e=LO(),t=FO(),r=WO(),n=zO(),i=UO();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,fu=a,fu}var hu,Up;function e0(){if(Up)return hu;Up=1;var e=Qf(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],c=a.cache;if(c.has(u))return c.get(u);var s=n.apply(this,o);return a.cache=c.set(u,s)||c,s};return a.cache=new(r.Cache||e),a}return r.Cache=e,hu=r,hu}var pu,Hp;function HO(){if(Hp)return pu;Hp=1;var e=e0(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return pu=r,pu}var du,Kp;function KO(){if(Kp)return du;Kp=1;var e=HO(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,c,s){a.push(c?s.replace(r,"$1"):u||o)}),a});return du=n,du}var vu,Gp;function eh(){if(Gp)return vu;Gp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return vu=e,vu}var yu,Vp;function GO(){if(Vp)return yu;Vp=1;var e=di(),t=eh(),r=Le(),n=an(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return yu=o,yu}var mu,Xp;function t0(){if(Xp)return mu;Xp=1;var e=GO();function t(r){return r==null?"":e(r)}return mu=t,mu}var gu,Yp;function r0(){if(Yp)return gu;Yp=1;var e=Le(),t=Xf(),r=KO(),n=t0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return gu=i,gu}var bu,Zp;function Ua(){if(Zp)return bu;Zp=1;var e=an();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return bu=t,bu}var xu,Jp;function th(){if(Jp)return xu;Jp=1;var e=r0(),t=Ua();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return xu=r,xu}var wu,Qp;function n0(){if(Qp)return wu;Qp=1;var e=th();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return wu=t,wu}var VO=n0();const He=oe(VO);var Ou,ed;function XO(){if(ed)return Ou;ed=1;function e(t){return t==null}return Ou=e,Ou}var YO=XO();const Y=oe(YO);var _u,td;function ZO(){if(td)return _u;td=1;var e=Pt(),t=Le(),r=Tt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return _u=i,_u}var JO=ZO();const ar=oe(JO);var QO=Yf();const G=oe(QO);var e_=Dt();const on=oe(e_);var Au={exports:{}},ne={};var rd;function t_(){if(rd)return ne;rd=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case e:switch(p=p.type,p){case r:case i:case n:case s:case f:return p;default:switch(p=p&&p.$$typeof,p){case u:case o:case c:case h:case l:case a:return p;default:return g}}case t:return g}}}return ne.ContextConsumer=o,ne.ContextProvider=a,ne.Element=e,ne.ForwardRef=c,ne.Fragment=r,ne.Lazy=h,ne.Memo=l,ne.Portal=t,ne.Profiler=i,ne.StrictMode=n,ne.Suspense=s,ne.SuspenseList=f,ne.isAsyncMode=function(){return!1},ne.isConcurrentMode=function(){return!1},ne.isContextConsumer=function(p){return v(p)===o},ne.isContextProvider=function(p){return v(p)===a},ne.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ne.isForwardRef=function(p){return v(p)===c},ne.isFragment=function(p){return v(p)===r},ne.isLazy=function(p){return v(p)===h},ne.isMemo=function(p){return v(p)===l},ne.isPortal=function(p){return v(p)===t},ne.isProfiler=function(p){return v(p)===i},ne.isStrictMode=function(p){return v(p)===n},ne.isSuspense=function(p){return v(p)===s},ne.isSuspenseList=function(p){return v(p)===f},ne.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===s||p===f||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===l||p.$$typeof===a||p.$$typeof===o||p.$$typeof===c||p.$$typeof===y||p.getModuleId!==void 0)},ne.typeOf=v,ne}var nd;function r_(){return nd||(nd=1,Au.exports=t_()),Au.exports}var n_=r_(),Su,id;function i0(){if(id)return Su;id=1;var e=Pt(),t=Tt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Su=n,Su}var Pu,ad;function i_(){if(ad)return Pu;ad=1;var e=i0();function t(r){return e(r)&&r!=+r}return Pu=t,Pu}var a_=i_();const un=oe(a_);var o_=i0();const u_=oe(o_);var Ce=function(t){return t===0?0:t>0?1:-1},Zt=function(t){return ar(t)&&t.indexOf("%")===t.length-1},q=function(t){return u_(t)&&!un(t)},c_=function(t){return Y(t)},Se=function(t){return q(t)||ar(t)},s_=0,pr=function(t){var r=++s_;return"".concat(t||"").concat(r)},ke=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&!ar(t))return n;var a;if(Zt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return un(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},l_=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},Ae=function(t,r){return q(t)&&q(r)?function(n){return t+n*(r-t)}:function(){return r}};function Bi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):He(n,t))===r})}var f_=function(t,r){return q(t)&&q(r)?t-r:ar(t)&&ar(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Er(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 Pl(e){"@babel/helpers - typeof";return Pl=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},Pl(e)}var h_=["viewBox","children"],p_=["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"],od=["points","pathLength"],Tu={svg:h_,polygon:od,polyline:od},rh=["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"],Fi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(N.isValidElement(t)&&(n=t.props),!on(n))return null;var i={};return Object.keys(n).forEach(function(a){rh.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},d_=function(t,r,n){return function(i){return t(r,n,i),null}},or=function(t,r,n){if(!on(t)||Pl(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];rh.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=d_(o,r,n))}),i},v_=["children"],y_=["children"];function ud(e,t){if(e==null)return{};var r=m_(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function m_(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Tl(e){"@babel/helpers - typeof";return Tl=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},Tl(e)}var cd={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"},wt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},sd=null,Eu=null,nh=function e(t){if(t===sd&&Array.isArray(Eu))return Eu;var r=[];return N.Children.forEach(t,function(n){Y(n)||(n_.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Eu=r,sd=t,r};function Ke(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return wt(i)}):n=[wt(t)],nh(e).forEach(function(i){var a=He(i,"type.displayName")||He(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function ze(e,t){var r=Ke(e,t);return r&&r[0]}var ld=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!q(n)||n<=0||!q(i)||i<=0)},g_=["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"],b_=function(t){return t&&t.type&&ar(t.type)&&g_.indexOf(t.type)>=0},a0=function(t){return t&&Tl(t)==="object"&&"clipDot"in t},x_=function(t,r,n,i){var a,o=(a=Tu?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!G(t)&&(i&&o.includes(r)||p_.includes(r))||n&&rh.includes(r)},U=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(N.isValidElement(t)&&(i=t.props),!on(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;x_((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},El=function e(t,r){if(t===r)return!0;var n=N.Children.count(t);if(n!==N.Children.count(r))return!1;if(n===0)return!0;if(n===1)return fd(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(!fd(a,o))return!1}return!0},fd=function(t,r){if(Y(t)&&Y(r))return!0;if(!Y(t)&&!Y(r)){var n=t.props||{},i=n.children,a=ud(n,v_),o=r.props||{},u=o.children,c=ud(o,y_);return i&&u?Er(a,c)&&El(i,u):!i&&!u?Er(a,c):!1}return!1},hd=function(t,r){var n=[],i={};return nh(t).forEach(function(a,o){if(b_(a))n.push(a);else if(a){var u=wt(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},w_=function(t){var r=t&&t.type;return r&&cd[r]?cd[r]:null},O_=function(t,r){return nh(r).indexOf(t)},__=["children","width","height","viewBox","className","style","title","desc"];function jl(){return jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jl.apply(this,arguments)}function A_(e,t){if(e==null)return{};var r=S_(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function S_(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $l(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=A_(e,__),f=i||{width:r,height:n,x:0,y:0},l=Z("recharts-surface",a);return S.createElement("svg",jl({},U(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 P_=["children","className"];function Ml(){return Ml=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},Ml.apply(this,arguments)}function T_(e,t){if(e==null)return{};var r=E_(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 E_(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 ee=S.forwardRef(function(e,t){var r=e.children,n=e.className,i=T_(e,P_),a=Z("recharts-layer",n);return S.createElement("g",Ml({className:a},U(i,!0),{ref:t}),r)}),it=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]},ju,pd;function j_(){if(pd)return ju;pd=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return ju=e,ju}var $u,dd;function $_(){if(dd)return $u;dd=1;var e=j_();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return $u=t,$u}var Mu,vd;function o0(){if(vd)return Mu;vd=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function c(s){return u.test(s)}return Mu=c,Mu}var Iu,yd;function M_(){if(yd)return Iu;yd=1;function e(t){return t.split("")}return Iu=e,Iu}var Cu,md;function I_(){if(md)return Cu;md=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",s="(?:"+u+"|"+c+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",y=s+"?",v="["+a+"]?",p="(?:"+d+"(?:"+[f,l,h].join("|")+")"+v+y+")*",g=v+y+p,b="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(c+"(?="+c+")|"+b+g,"g");function O(m){return m.match(w)||[]}return Cu=O,Cu}var ku,gd;function C_(){if(gd)return ku;gd=1;var e=M_(),t=o0(),r=I_();function n(i){return t(i)?r(i):e(i)}return ku=n,ku}var Ru,bd;function k_(){if(bd)return Ru;bd=1;var e=$_(),t=o0(),r=C_(),n=t0();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,c=u?u[0]:o.charAt(0),s=u?e(u,1).join(""):o.slice(1);return c[a]()+s}}return Ru=i,Ru}var Du,xd;function R_(){if(xd)return Du;xd=1;var e=k_(),t=e("toUpperCase");return Du=t,Du}var D_=R_();const Ha=oe(D_);function se(e){return function(){return e}}const u0=Math.cos,Wi=Math.sin,ot=Math.sqrt,zi=Math.PI,Ka=2*zi,Il=Math.PI,Cl=2*Il,Vt=1e-6,N_=Cl-Vt;function c0(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function q_(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return c0;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 L_{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?c0:q_(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,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Vt)if(!(Math.abs(l*c-s*f)>Vt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=n-o,y=i-u,v=c*c+s*s,p=d*d+y*y,g=Math.sqrt(v),b=Math.sqrt(h),w=a*Math.tan((Il-Math.acos((v+h-p)/(2*g*b)))/2),O=w/b,m=w/g;Math.abs(O-1)>Vt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*d>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,h=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Vt||Math.abs(this._y1-f)>Vt)&&this._append`L${s},${f}`,n&&(h<0&&(h=h%Cl+Cl),h>N_?this._append`A${n},${n},0,1,${l},${t-u},${r-c}A${n},${n},0,1,${l},${this._x1=s},${this._y1=f}`:h>Vt&&this._append`A${n},${n},0,${+(h>=Il)},${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 ih(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 L_(t)}function ah(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function s0(e){this._context=e}s0.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 Ga(e){return new s0(e)}function l0(e){return e[0]}function f0(e){return e[1]}function h0(e,t){var r=se(!0),n=null,i=Ga,a=null,o=ih(u);e=typeof e=="function"?e:e===void 0?l0:se(e),t=typeof t=="function"?t:t===void 0?f0:se(t);function u(c){var s,f=(c=ah(c)).length,l,h=!1,d;for(n==null&&(a=i(d=o())),s=0;s<=f;++s)!(s<f&&r(l=c[s],s,c))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,s,c),+t(l,s,c));if(d)return a=null,d+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:se(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:se(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:se(!!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 Pi(e,t,r){var n=null,i=se(!0),a=null,o=Ga,u=null,c=ih(s);e=typeof e=="function"?e:e===void 0?l0:se(+e),t=typeof t=="function"?t:se(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?f0:se(+r);function s(l){var h,d,y,v=(l=ah(l)).length,p,g=!1,b,w=new Array(v),O=new Array(v);for(a==null&&(u=o(b=c())),h=0;h<=v;++h){if(!(h<v&&i(p=l[h],h,l))===g)if(g=!g)d=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=h-1;y>=d;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}g&&(w[h]=+e(p,h,l),O[h]=+t(p,h,l),u.point(n?+n(p,h,l):w[h],r?+r(p,h,l):O[h]))}if(b)return u=null,b+""||null}function f(){return h0().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:se(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:se(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:se(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:se(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:se(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:se(+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:se(!!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 p0{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 B_(e){return new p0(e,!0)}function F_(e){return new p0(e,!1)}const oh={draw(e,t){const r=ot(t/zi);e.moveTo(r,0),e.arc(0,0,r,0,Ka)}},W_={draw(e,t){const r=ot(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()}},d0=ot(1/3),z_=d0*2,U_={draw(e,t){const r=ot(t/z_),n=r*d0;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},H_={draw(e,t){const r=ot(t),n=-r/2;e.rect(n,n,r,r)}},K_=.8908130915292852,v0=Wi(zi/10)/Wi(7*zi/10),G_=Wi(Ka/10)*v0,V_=-u0(Ka/10)*v0,X_={draw(e,t){const r=ot(t*K_),n=G_*r,i=V_*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ka*a/5,u=u0(o),c=Wi(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},Nu=ot(3),Y_={draw(e,t){const r=-ot(t/(Nu*3));e.moveTo(0,r*2),e.lineTo(-Nu*r,-r),e.lineTo(Nu*r,-r),e.closePath()}},Ge=-.5,Ve=ot(3)/2,kl=1/ot(12),Z_=(kl/2+1)*3,J_={draw(e,t){const r=ot(t/Z_),n=r/2,i=r*kl,a=n,o=r*kl+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Ge*n-Ve*i,Ve*n+Ge*i),e.lineTo(Ge*a-Ve*o,Ve*a+Ge*o),e.lineTo(Ge*u-Ve*c,Ve*u+Ge*c),e.lineTo(Ge*n+Ve*i,Ge*i-Ve*n),e.lineTo(Ge*a+Ve*o,Ge*o-Ve*a),e.lineTo(Ge*u+Ve*c,Ge*c-Ve*u),e.closePath()}};function Q_(e,t){let r=null,n=ih(i);e=typeof e=="function"?e:se(e||oh),t=typeof t=="function"?t:se(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:se(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:se(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ui(){}function Hi(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 y0(e){this._context=e}y0.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:Hi(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:Hi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function eA(e){return new y0(e)}function m0(e){this._context=e}m0.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:Hi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tA(e){return new m0(e)}function g0(e){this._context=e}g0.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:Hi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rA(e){return new g0(e)}function b0(e){this._context=e}b0.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 nA(e){return new b0(e)}function wd(e){return e<0?-1:1}function Od(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(wd(a)+wd(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function _d(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function qu(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:qu(this,this._t0,_d(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,qu(this,_d(this,r=Od(this,e,t)),r);break;default:qu(this,this._t0,r=Od(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function x0(e){this._context=new w0(e)}(x0.prototype=Object.create(Ki.prototype)).point=function(e,t){Ki.prototype.point.call(this,t,e)};function w0(e){this._context=e}w0.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 iA(e){return new Ki(e)}function aA(e){return new x0(e)}function O0(e){this._context=e}O0.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=Ad(e),i=Ad(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 Ad(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 oA(e){return new O0(e)}function Va(e,t){this._context=e,this._t=t}Va.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 uA(e){return new Va(e,.5)}function cA(e){return new Va(e,0)}function sA(e){return new Va(e,1)}function Ir(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Rl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function lA(e,t){return e[t]}function fA(e){const t=[];return t.key=e,t}function hA(){var e=se([]),t=Rl,r=Ir,n=lA;function i(a){var o=Array.from(e.apply(this,arguments),fA),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=ah(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:se(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:se(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Rl:typeof a=="function"?a:se(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Ir,i):r},i}function pA(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Ir(e,t)}}function dA(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}Ir(e,t)}}function vA(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,c=0,s=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,h=f[n-1][1]||0,d=(l-h)/2,y=0;y<u;++y){var v=e[t[y]],p=v[n][1]||0,g=v[n-1][1]||0;d+=p-g}c+=l,s+=d*l}i[n-1][1]+=i[n-1][0]=r,c&&(r-=s/c)}i[n-1][1]+=i[n-1][0]=r,Ir(e,t)}}function Cn(e){"@babel/helpers - typeof";return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cn(e)}var yA=["type","size","sizeType"];function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dl.apply(this,arguments)}function Sd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sd(Object(r),!0).forEach(function(n){mA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mA(e,t,r){return t=gA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gA(e){var t=bA(e,"string");return Cn(t)=="symbol"?t:t+""}function bA(e,t){if(Cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xA(e,t){if(e==null)return{};var r=wA(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 wA(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 _0={symbolCircle:oh,symbolCross:W_,symbolDiamond:U_,symbolSquare:H_,symbolStar:X_,symbolTriangle:Y_,symbolWye:J_},OA=Math.PI/180,_A=function(t){var r="symbol".concat(Ha(t));return _0[r]||oh},AA=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*OA;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}},SA=function(t,r){_0["symbol".concat(Ha(t))]=r},uh=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=xA(t,yA),s=Pd(Pd({},c),{},{type:n,size:a,sizeType:u}),f=function(){var p=_A(n),g=Q_().type(p).size(AA(a,u,n));return g()},l=s.className,h=s.cx,d=s.cy,y=U(s,!0);return h===+h&&d===+d&&a===+a?S.createElement("path",Dl({},y,{className:Z("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(d,")"),d:f()})):null};uh.registerSymbol=SA;function Cr(e){"@babel/helpers - typeof";return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cr(e)}function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nl.apply(this,arguments)}function Td(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?Td(Object(r),!0).forEach(function(n){kn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Td(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EA(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,S0(n.key),n)}}function jA(e,t,r){return t&&EA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $A(e,t,r){return t=Gi(t),MA(e,A0()?Reflect.construct(t,r||[],Gi(e).constructor):t.apply(e,r))}function MA(e,t){if(t&&(Cr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IA(e)}function IA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A0=function(){return!!e})()}function Gi(e){return Gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gi(e)}function CA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ql(e,t)}function ql(e,t){return ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ql(e,t)}function kn(e,t,r){return t=S0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S0(e){var t=kA(e,"string");return Cr(t)=="symbol"?t:t+""}function kA(e,t){if(Cr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xe=32,ch=(function(e){function t(){return TA(this,t),$A(this,t,arguments)}return CA(t,e),jA(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Xe/2,o=Xe/6,u=Xe/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:Xe,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,`
|
||
A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
|
||
H`).concat(Xe,"M").concat(2*u,",").concat(a,`
|
||
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(Xe/8,"h").concat(Xe,"v").concat(Xe*3/4,"h").concat(-Xe,"z"),className:"recharts-legend-icon"});if(S.isValidElement(n.legendIcon)){var s=PA({},n);return delete s.legendIcon,S.cloneElement(n.legendIcon,s)}return S.createElement(uh,{fill:c,cx:a,cy:a,size:Xe,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:Xe,height:Xe},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(d,y){var v=d.formatter||c,p=Z(kn(kn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",d.inactive));if(d.type==="none")return null;var g=G(d.value)?null:d.value;it(!G(d.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var b=d.inactive?s:d.color;return S.createElement("li",Nl({className:p,style:l,key:"legend-item-".concat(y)},or(n.props,d,y)),S.createElement($l,{width:o,height:o,viewBox:f,style:h},n.renderIcon(d)),S.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},v?v(g,d,y):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return S.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(N.PureComponent);kn(ch,"displayName","Legend");kn(ch,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Lu,Ed;function RA(){if(Ed)return Lu;Ed=1;var e=Wa();function t(){this.__data__=new e,this.size=0}return Lu=t,Lu}var Bu,jd;function DA(){if(jd)return Bu;jd=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Bu=e,Bu}var Fu,$d;function NA(){if($d)return Fu;$d=1;function e(t){return this.__data__.get(t)}return Fu=e,Fu}var Wu,Md;function qA(){if(Md)return Wu;Md=1;function e(t){return this.__data__.has(t)}return Wu=e,Wu}var zu,Id;function LA(){if(Id)return zu;Id=1;var e=Wa(),t=Jf(),r=Qf(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var c=u.__data__;if(!t||c.length<n-1)return c.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(c)}return u.set(a,o),this.size=u.size,this}return zu=i,zu}var Uu,Cd;function P0(){if(Cd)return Uu;Cd=1;var e=Wa(),t=RA(),r=DA(),n=NA(),i=qA(),a=LA();function o(u){var c=this.__data__=new e(u);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,Uu=o,Uu}var Hu,kd;function BA(){if(kd)return Hu;kd=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Hu=t,Hu}var Ku,Rd;function FA(){if(Rd)return Ku;Rd=1;function e(t){return this.__data__.has(t)}return Ku=e,Ku}var Gu,Dd;function T0(){if(Dd)return Gu;Dd=1;var e=Qf(),t=BA(),r=FA();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,Gu=n,Gu}var Vu,Nd;function E0(){if(Nd)return Vu;Nd=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return Vu=e,Vu}var Xu,qd;function j0(){if(qd)return Xu;qd=1;function e(t,r){return t.has(r)}return Xu=e,Xu}var Yu,Ld;function $0(){if(Ld)return Yu;Ld=1;var e=T0(),t=E0(),r=j0(),n=1,i=2;function a(o,u,c,s,f,l){var h=c&n,d=o.length,y=u.length;if(d!=y&&!(h&&y>d))return!1;var v=l.get(o),p=l.get(u);if(v&&p)return v==u&&p==o;var g=-1,b=!0,w=c&i?new e:void 0;for(l.set(o,u),l.set(u,o);++g<d;){var O=o[g],m=u[g];if(s)var x=h?s(m,O,g,u,o,l):s(O,m,g,o,u,l);if(x!==void 0){if(x)continue;b=!1;break}if(w){if(!t(u,function(_,A){if(!r(w,A)&&(O===_||f(O,_,c,s,l)))return w.push(A)})){b=!1;break}}else if(!(O===m||f(O,m,c,s,l))){b=!1;break}}return l.delete(o),l.delete(u),b}return Yu=a,Yu}var Zu,Bd;function WA(){if(Bd)return Zu;Bd=1;var e=pt(),t=e.Uint8Array;return Zu=t,Zu}var Ju,Fd;function zA(){if(Fd)return Ju;Fd=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Ju=e,Ju}var Qu,Wd;function sh(){if(Wd)return Qu;Wd=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Qu=e,Qu}var ec,zd;function UA(){if(zd)return ec;zd=1;var e=di(),t=WA(),r=Zf(),n=$0(),i=zA(),a=sh(),o=1,u=2,c="[object Boolean]",s="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",d="[object RegExp]",y="[object Set]",v="[object String]",p="[object Symbol]",g="[object ArrayBuffer]",b="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function m(x,_,A,T,$,P,E){switch(A){case b:if(x.byteLength!=_.byteLength||x.byteOffset!=_.byteOffset)return!1;x=x.buffer,_=_.buffer;case g:return!(x.byteLength!=_.byteLength||!P(new t(x),new t(_)));case c:case s:case h:return r(+x,+_);case f:return x.name==_.name&&x.message==_.message;case d:case v:return x==_+"";case l:var j=i;case y:var I=T&o;if(j||(j=a),x.size!=_.size&&!I)return!1;var M=E.get(x);if(M)return M==_;T|=u,E.set(x,_);var k=n(j(x),j(_),T,$,P,E);return E.delete(x),k;case p:if(O)return O.call(x)==O.call(_)}return!1}return ec=m,ec}var tc,Ud;function M0(){if(Ud)return tc;Ud=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return tc=e,tc}var rc,Hd;function HA(){if(Hd)return rc;Hd=1;var e=M0(),t=Le();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return rc=r,rc}var nc,Kd;function KA(){if(Kd)return nc;Kd=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return nc=e,nc}var ic,Gd;function GA(){if(Gd)return ic;Gd=1;function e(){return[]}return ic=e,ic}var ac,Vd;function VA(){if(Vd)return ac;Vd=1;var e=KA(),t=GA(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return ac=a,ac}var oc,Xd;function XA(){if(Xd)return oc;Xd=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return oc=e,oc}var uc,Yd;function YA(){if(Yd)return uc;Yd=1;var e=Pt(),t=Tt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return uc=n,uc}var cc,Zd;function lh(){if(Zd)return cc;Zd=1;var e=YA(),t=Tt(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return cc=a,cc}var _n={exports:{}},sc,Jd;function ZA(){if(Jd)return sc;Jd=1;function e(){return!1}return sc=e,sc}_n.exports;var Qd;function I0(){return Qd||(Qd=1,(function(e,t){var r=pt(),n=ZA(),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})(_n,_n.exports)),_n.exports}var lc,ev;function fh(){if(ev)return lc;ev=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return lc=r,lc}var fc,tv;function hh(){if(tv)return fc;tv=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return fc=t,fc}var hc,rv;function JA(){if(rv)return hc;rv=1;var e=Pt(),t=hh(),r=Tt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",c="[object Function]",s="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",d="[object Set]",y="[object String]",v="[object WeakMap]",p="[object ArrayBuffer]",g="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",x="[object Int32Array]",_="[object Uint8Array]",A="[object Uint8ClampedArray]",T="[object Uint16Array]",$="[object Uint32Array]",P={};P[b]=P[w]=P[O]=P[m]=P[x]=P[_]=P[A]=P[T]=P[$]=!0,P[n]=P[i]=P[p]=P[a]=P[g]=P[o]=P[u]=P[c]=P[s]=P[f]=P[l]=P[h]=P[d]=P[y]=P[v]=!1;function E(j){return r(j)&&t(j.length)&&!!P[e(j)]}return hc=E,hc}var pc,nv;function C0(){if(nv)return pc;nv=1;function e(t){return function(r){return t(r)}}return pc=e,pc}var An={exports:{}};An.exports;var iv;function QA(){return iv||(iv=1,(function(e,t){var r=Jb(),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})(An,An.exports)),An.exports}var dc,av;function k0(){if(av)return dc;av=1;var e=JA(),t=C0(),r=QA(),n=r&&r.isTypedArray,i=n?t(n):e;return dc=i,dc}var vc,ov;function e1(){if(ov)return vc;ov=1;var e=XA(),t=lh(),r=Le(),n=I0(),i=fh(),a=k0(),o=Object.prototype,u=o.hasOwnProperty;function c(s,f){var l=r(s),h=!l&&t(s),d=!l&&!h&&n(s),y=!l&&!h&&!d&&a(s),v=l||h||d||y,p=v?e(s.length,String):[],g=p.length;for(var b in s)(f||u.call(s,b))&&!(v&&(b=="length"||d&&(b=="offset"||b=="parent")||y&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,g)))&&p.push(b);return p}return vc=c,vc}var yc,uv;function t1(){if(uv)return yc;uv=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return yc=t,yc}var mc,cv;function R0(){if(cv)return mc;cv=1;function e(t,r){return function(n){return t(r(n))}}return mc=e,mc}var gc,sv;function r1(){if(sv)return gc;sv=1;var e=R0(),t=e(Object.keys,Object);return gc=t,gc}var bc,lv;function n1(){if(lv)return bc;lv=1;var e=t1(),t=r1(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return bc=i,bc}var xc,fv;function vi(){if(fv)return xc;fv=1;var e=Yf(),t=hh();function r(n){return n!=null&&t(n.length)&&!e(n)}return xc=r,xc}var wc,hv;function Xa(){if(hv)return wc;hv=1;var e=e1(),t=n1(),r=vi();function n(i){return r(i)?e(i):t(i)}return wc=n,wc}var Oc,pv;function i1(){if(pv)return Oc;pv=1;var e=HA(),t=VA(),r=Xa();function n(i){return e(i,r,t)}return Oc=n,Oc}var _c,dv;function a1(){if(dv)return _c;dv=1;var e=i1(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,c,s,f){var l=u&t,h=e(a),d=h.length,y=e(o),v=y.length;if(d!=v&&!l)return!1;for(var p=d;p--;){var g=h[p];if(!(l?g in o:n.call(o,g)))return!1}var b=f.get(a),w=f.get(o);if(b&&w)return b==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var m=l;++p<d;){g=h[p];var x=a[g],_=o[g];if(c)var A=l?c(_,x,g,o,a,f):c(x,_,g,a,o,f);if(!(A===void 0?x===_||s(x,_,u,c,f):A)){O=!1;break}m||(m=g=="constructor")}if(O&&!m){var T=a.constructor,$=o.constructor;T!=$&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof $=="function"&&$ instanceof $)&&(O=!1)}return f.delete(a),f.delete(o),O}return _c=i,_c}var Ac,vv;function o1(){if(vv)return Ac;vv=1;var e=hr(),t=pt(),r=e(t,"DataView");return Ac=r,Ac}var Sc,yv;function u1(){if(yv)return Sc;yv=1;var e=hr(),t=pt(),r=e(t,"Promise");return Sc=r,Sc}var Pc,mv;function D0(){if(mv)return Pc;mv=1;var e=hr(),t=pt(),r=e(t,"Set");return Pc=r,Pc}var Tc,gv;function c1(){if(gv)return Tc;gv=1;var e=hr(),t=pt(),r=e(t,"WeakMap");return Tc=r,Tc}var Ec,bv;function s1(){if(bv)return Ec;bv=1;var e=o1(),t=Jf(),r=u1(),n=D0(),i=c1(),a=Pt(),o=Qb(),u="[object Map]",c="[object Object]",s="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",d=o(e),y=o(t),v=o(r),p=o(n),g=o(i),b=a;return(e&&b(new e(new ArrayBuffer(1)))!=h||t&&b(new t)!=u||r&&b(r.resolve())!=s||n&&b(new n)!=f||i&&b(new i)!=l)&&(b=function(w){var O=a(w),m=O==c?w.constructor:void 0,x=m?o(m):"";if(x)switch(x){case d:return h;case y:return u;case v:return s;case p:return f;case g:return l}return O}),Ec=b,Ec}var jc,xv;function l1(){if(xv)return jc;xv=1;var e=P0(),t=$0(),r=UA(),n=a1(),i=s1(),a=Le(),o=I0(),u=k0(),c=1,s="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function y(v,p,g,b,w,O){var m=a(v),x=a(p),_=m?f:i(v),A=x?f:i(p);_=_==s?l:_,A=A==s?l:A;var T=_==l,$=A==l,P=_==A;if(P&&o(v)){if(!o(p))return!1;m=!0,T=!1}if(P&&!T)return O||(O=new e),m||u(v)?t(v,p,g,b,w,O):r(v,p,_,g,b,w,O);if(!(g&c)){var E=T&&d.call(v,"__wrapped__"),j=$&&d.call(p,"__wrapped__");if(E||j){var I=E?v.value():v,M=j?p.value():p;return O||(O=new e),w(I,M,g,b,O)}}return P?(O||(O=new e),n(v,p,g,b,w,O)):!1}return jc=y,jc}var $c,wv;function ph(){if(wv)return $c;wv=1;var e=l1(),t=Tt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return $c=r,$c}var Mc,Ov;function f1(){if(Ov)return Mc;Ov=1;var e=P0(),t=ph(),r=1,n=2;function i(a,o,u,c){var s=u.length,f=s,l=!c;if(a==null)return!f;for(a=Object(a);s--;){var h=u[s];if(l&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++s<f;){h=u[s];var d=h[0],y=a[d],v=h[1];if(l&&h[2]){if(y===void 0&&!(d in a))return!1}else{var p=new e;if(c)var g=c(y,v,d,a,o,p);if(!(g===void 0?t(v,y,r|n,c,p):g))return!1}}return!0}return Mc=i,Mc}var Ic,_v;function N0(){if(_v)return Ic;_v=1;var e=Dt();function t(r){return r===r&&!e(r)}return Ic=t,Ic}var Cc,Av;function h1(){if(Av)return Cc;Av=1;var e=N0(),t=Xa();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return Cc=r,Cc}var kc,Sv;function q0(){if(Sv)return kc;Sv=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return kc=e,kc}var Rc,Pv;function p1(){if(Pv)return Rc;Pv=1;var e=f1(),t=h1(),r=q0();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return Rc=n,Rc}var Dc,Tv;function d1(){if(Tv)return Dc;Tv=1;function e(t,r){return t!=null&&r in Object(t)}return Dc=e,Dc}var Nc,Ev;function v1(){if(Ev)return Nc;Ev=1;var e=r0(),t=lh(),r=Le(),n=fh(),i=hh(),a=Ua();function o(u,c,s){c=e(c,u);for(var f=-1,l=c.length,h=!1;++f<l;){var d=a(c[f]);if(!(h=u!=null&&s(u,d)))break;u=u[d]}return h||++f!=l?h:(l=u==null?0:u.length,!!l&&i(l)&&n(d,l)&&(r(u)||t(u)))}return Nc=o,Nc}var qc,jv;function y1(){if(jv)return qc;jv=1;var e=d1(),t=v1();function r(n,i){return n!=null&&t(n,i,e)}return qc=r,qc}var Lc,$v;function m1(){if($v)return Lc;$v=1;var e=ph(),t=n0(),r=y1(),n=Xf(),i=N0(),a=q0(),o=Ua(),u=1,c=2;function s(f,l){return n(f)&&i(l)?a(o(f),l):function(h){var d=t(h,f);return d===void 0&&d===l?r(h,f):e(l,d,u|c)}}return Lc=s,Lc}var Bc,Mv;function cn(){if(Mv)return Bc;Mv=1;function e(t){return t}return Bc=e,Bc}var Fc,Iv;function g1(){if(Iv)return Fc;Iv=1;function e(t){return function(r){return r?.[t]}}return Fc=e,Fc}var Wc,Cv;function b1(){if(Cv)return Wc;Cv=1;var e=th();function t(r){return function(n){return e(n,r)}}return Wc=t,Wc}var zc,kv;function x1(){if(kv)return zc;kv=1;var e=g1(),t=b1(),r=Xf(),n=Ua();function i(a){return r(a)?e(n(a)):t(a)}return zc=i,zc}var Uc,Rv;function dt(){if(Rv)return Uc;Rv=1;var e=p1(),t=m1(),r=cn(),n=Le(),i=x1();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return Uc=a,Uc}var Hc,Dv;function L0(){if(Dv)return Hc;Dv=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return Hc=e,Hc}var Kc,Nv;function w1(){if(Nv)return Kc;Nv=1;function e(t){return t!==t}return Kc=e,Kc}var Gc,qv;function O1(){if(qv)return Gc;qv=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return Gc=e,Gc}var Vc,Lv;function _1(){if(Lv)return Vc;Lv=1;var e=L0(),t=w1(),r=O1();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return Vc=n,Vc}var Xc,Bv;function A1(){if(Bv)return Xc;Bv=1;var e=_1();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Xc=t,Xc}var Yc,Fv;function S1(){if(Fv)return Yc;Fv=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return Yc=e,Yc}var Zc,Wv;function P1(){if(Wv)return Zc;Wv=1;function e(){}return Zc=e,Zc}var Jc,zv;function T1(){if(zv)return Jc;zv=1;var e=D0(),t=P1(),r=sh(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Jc=i,Jc}var Qc,Uv;function E1(){if(Uv)return Qc;Uv=1;var e=T0(),t=A1(),r=S1(),n=j0(),i=T1(),a=sh(),o=200;function u(c,s,f){var l=-1,h=t,d=c.length,y=!0,v=[],p=v;if(f)y=!1,h=r;else if(d>=o){var g=s?null:i(c);if(g)return a(g);y=!1,h=n,p=new e}else p=s?[]:v;e:for(;++l<d;){var b=c[l],w=s?s(b):b;if(b=f||b!==0?b:0,y&&w===w){for(var O=p.length;O--;)if(p[O]===w)continue e;s&&p.push(w),v.push(b)}else h(p,w,f)||(p!==v&&p.push(w),v.push(b))}return v}return Qc=u,Qc}var es,Hv;function j1(){if(Hv)return es;Hv=1;var e=dt(),t=E1();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return es=r,es}var $1=j1();const Kv=oe($1);function B0(e,t,r){return t===!0?Kv(e,r):G(t)?Kv(e,t):e}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)}var M1=["ref"];function Gv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gv(Object(r),!0).forEach(function(n){Ya(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vv(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,W0(n.key),n)}}function C1(e,t,r){return t&&Vv(e.prototype,t),r&&Vv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function k1(e,t,r){return t=Vi(t),R1(e,F0()?Reflect.construct(t,r||[],Vi(e).constructor):t.apply(e,r))}function R1(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 D1(e)}function D1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F0=function(){return!!e})()}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(e)}function N1(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ll(e,t)}function Ll(e,t){return Ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ll(e,t)}function Ya(e,t,r){return t=W0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W0(e){var t=q1(e,"string");return kr(t)=="symbol"?t:t+""}function q1(e,t){if(kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function L1(e,t){if(e==null)return{};var r=B1(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function B1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function F1(e){return e.value}function W1(e,t){if(S.isValidElement(e))return S.cloneElement(e,t);if(typeof e=="function")return S.createElement(e,t);t.ref;var r=L1(t,M1);return S.createElement(ch,r)}var Xv=1,jr=(function(e){function t(){var r;I1(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=k1(this,t,[].concat(i)),Ya(r,"lastBoundingBox",{width:-1,height:-1}),r}return N1(t,e),C1(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)>Xv||Math.abs(i.height-this.lastBoundingBox.height)>Xv)&&(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?vt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,c=i.margin,s=i.chartWidth,f=i.chartHeight,l,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var d=this.getBBoxSnapshot();l={left:((s||0)-d.width)/2}}else l=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();h={top:((f||0)-y.height)/2}}else h=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return vt(vt({},l),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,c=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,l=vt(vt({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return S.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(d){n.wrapperNode=d}},W1(a,vt(vt({},this.props),{},{payload:B0(f,s,F1)})))}}],[{key:"getWithHeight",value:function(n,i){var a=vt(vt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&q(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(N.PureComponent);Ya(jr,"displayName","Legend");Ya(jr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var ts,Yv;function z1(){if(Yv)return ts;Yv=1;var e=di(),t=lh(),r=Le(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return ts=i,ts}var rs,Zv;function z0(){if(Zv)return rs;Zv=1;var e=M0(),t=z1();function r(n,i,a,o,u){var c=-1,s=n.length;for(a||(a=t),u||(u=[]);++c<s;){var f=n[c];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return rs=r,rs}var ns,Jv;function U1(){if(Jv)return ns;Jv=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),c=u.length;c--;){var s=u[t?c:++a];if(n(o[s],s,o)===!1)break}return r}}return ns=e,ns}var is,Qv;function H1(){if(Qv)return is;Qv=1;var e=U1(),t=e();return is=t,is}var as,ey;function U0(){if(ey)return as;ey=1;var e=H1(),t=Xa();function r(n,i){return n&&e(n,i,t)}return as=r,as}var os,ty;function K1(){if(ty)return os;ty=1;var e=vi();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,c=Object(i);(n?u--:++u<o)&&a(c[u],u,c)!==!1;);return i}}return os=t,os}var us,ry;function dh(){if(ry)return us;ry=1;var e=U0(),t=K1(),r=t(e);return us=r,us}var cs,ny;function H0(){if(ny)return cs;ny=1;var e=dh(),t=vi();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,c,s){o[++a]=i(u,c,s)}),o}return cs=r,cs}var ss,iy;function G1(){if(iy)return ss;iy=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return ss=e,ss}var ls,ay;function V1(){if(ay)return ls;ay=1;var e=an();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),c=n!==void 0,s=n===null,f=n===n,l=e(n);if(!s&&!l&&!u&&r>n||u&&c&&f&&!s&&!l||a&&c&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||s&&i&&o||!c&&o||!f)return-1}return 0}return ls=t,ls}var fs,oy;function X1(){if(oy)return fs;oy=1;var e=V1();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,c=o.length,s=i.length;++a<c;){var f=e(o[a],u[a]);if(f){if(a>=s)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return fs=t,fs}var hs,uy;function Y1(){if(uy)return hs;uy=1;var e=eh(),t=th(),r=dt(),n=H0(),i=G1(),a=C0(),o=X1(),u=cn(),c=Le();function s(f,l,h){l.length?l=e(l,function(v){return c(v)?function(p){return t(p,v.length===1?v[0]:v)}:v}):l=[u];var d=-1;l=e(l,a(r));var y=n(f,function(v,p,g){var b=e(l,function(w){return w(v)});return{criteria:b,index:++d,value:v}});return i(y,function(v,p){return o(v,p,h)})}return hs=s,hs}var ps,cy;function Z1(){if(cy)return ps;cy=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return ps=e,ps}var ds,sy;function J1(){if(sy)return ds;sy=1;var e=Z1(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,c=t(o.length-i,0),s=Array(c);++u<c;)s[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(s),e(n,this,f)}}return ds=r,ds}var vs,ly;function Q1(){if(ly)return vs;ly=1;function e(t){return function(){return t}}return vs=e,vs}var ys,fy;function K0(){if(fy)return ys;fy=1;var e=hr(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return ys=t,ys}var ms,hy;function eS(){if(hy)return ms;hy=1;var e=Q1(),t=K0(),r=cn(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return ms=n,ms}var gs,py;function tS(){if(py)return gs;py=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),c=t-(u-o);if(o=u,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return gs=n,gs}var bs,dy;function rS(){if(dy)return bs;dy=1;var e=eS(),t=tS(),r=t(e);return bs=r,bs}var xs,vy;function nS(){if(vy)return xs;vy=1;var e=cn(),t=J1(),r=rS();function n(i,a){return r(t(i,a,e),i+"")}return xs=n,xs}var ws,yy;function Za(){if(yy)return ws;yy=1;var e=Zf(),t=vi(),r=fh(),n=Dt();function i(a,o,u){if(!n(u))return!1;var c=typeof o;return(c=="number"?t(u)&&r(o,u.length):c=="string"&&o in u)?e(u[o],a):!1}return ws=i,ws}var Os,my;function iS(){if(my)return Os;my=1;var e=z0(),t=Y1(),r=nS(),n=Za(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Os=i,Os}var aS=iS();const vh=oe(aS);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 Bl(){return Bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bl.apply(this,arguments)}function oS(e,t){return lS(e)||sS(e,t)||cS(e,t)||uS()}function uS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cS(e,t){if(e){if(typeof e=="string")return gy(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 gy(e,t)}}function gy(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 sS(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 lS(e){if(Array.isArray(e))return e}function by(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 _s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?by(Object(r),!0).forEach(function(n){fS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):by(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fS(e,t,r){return t=hS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hS(e){var t=pS(e,"string");return Rn(t)=="symbol"?t:t+""}function pS(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)}function dS(e){return Array.isArray(e)&&Se(e[0])&&Se(e[1])?e.join(" ~ "):e}var vS=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,c=t.labelStyle,s=c===void 0?{}:c,f=t.payload,l=t.formatter,h=t.itemSorter,d=t.wrapperClassName,y=t.labelClassName,v=t.label,p=t.labelFormatter,g=t.accessibilityLayer,b=g===void 0?!1:g,w=function(){if(f&&f.length){var E={padding:0,margin:0},j=(h?vh(f,h):f).map(function(I,M){if(I.type==="none")return null;var k=_s({display:"block",paddingTop:4,paddingBottom:4,color:I.color||"#000"},u),R=I.formatter||l||dS,L=I.value,B=I.name,H=L,V=B;if(R&&H!=null&&V!=null){var W=R(L,B,I,M,f);if(Array.isArray(W)){var X=oS(W,2);H=X[0],V=X[1]}else H=W}return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(M),style:k},Se(V)?S.createElement("span",{className:"recharts-tooltip-item-name"},V):null,Se(V)?S.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,S.createElement("span",{className:"recharts-tooltip-item-value"},H),S.createElement("span",{className:"recharts-tooltip-item-unit"},I.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:E},j)}return null},O=_s({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=_s({margin:0},s),x=!Y(v),_=x?v:"",A=Z("recharts-default-tooltip",d),T=Z("recharts-tooltip-label",y);x&&p&&f!==void 0&&f!==null&&(_=p(v,f));var $=b?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",Bl({className:A,style:O},$),S.createElement("p",{className:T,style:m},S.isValidElement(_)?_:"".concat(_)),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 Ti(e,t,r){return t=yS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yS(e){var t=mS(e,"string");return Dn(t)=="symbol"?t:t+""}function mS(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 dn="recharts-tooltip-wrapper",gS={visibility:"hidden"};function bS(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Z(dn,Ti(Ti(Ti(Ti({},"".concat(dn,"-right"),q(r)&&t&&q(t.x)&&r>=t.x),"".concat(dn,"-left"),q(r)&&t&&q(t.x)&&r<t.x),"".concat(dn,"-bottom"),q(n)&&t&&q(t.y)&&n>=t.y),"".concat(dn,"-top"),q(n)&&t&&q(t.y)&&n<t.y))}function xy(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&&q(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var h=f,d=c[n];return h<d?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 xS(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 wS(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=xy({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=xy({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=xS({translateX:f,translateY:l,useTranslate3d:u})):s=gS,{cssProperties:s,cssClasses:bS({translateX:f,translateY:l,coordinate:r})}}function Rr(e){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(e)}function wy(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 Oy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wy(Object(r),!0).forEach(function(n){Wl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,V0(n.key),n)}}function AS(e,t,r){return t&&_S(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SS(e,t,r){return t=Xi(t),PS(e,G0()?Reflect.construct(t,r||[],Xi(e).constructor):t.apply(e,r))}function PS(e,t){if(t&&(Rr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TS(e)}function TS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G0=function(){return!!e})()}function Xi(e){return Xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xi(e)}function ES(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fl(e,t)}function Fl(e,t){return Fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fl(e,t)}function Wl(e,t,r){return t=V0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V0(e){var t=jS(e,"string");return Rr(t)=="symbol"?t:t+""}function jS(e,t){if(Rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _y=1,$S=(function(e){function t(){var r;OS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=SS(this,t,[].concat(i)),Wl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Wl(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 ES(t,e),AS(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>_y||Math.abs(n.height-this.state.lastBoundingBox.height)>_y)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.children,f=i.coordinate,l=i.hasPayload,h=i.isAnimationActive,d=i.offset,y=i.position,v=i.reverseDirection,p=i.useTranslate3d,g=i.viewBox,b=i.wrapperStyle,w=wS({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:d,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:g}),O=w.cssClasses,m=w.cssProperties,x=Oy(Oy({transition:h&&a?"transform ".concat(u,"ms ").concat(c):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},b);return S.createElement("div",{tabIndex:-1,className:O,style:x,ref:function(A){n.wrapperNode=A}},s)}}])})(N.PureComponent),MS=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Nt={isSsr:MS()};function Dr(e){"@babel/helpers - typeof";return Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(e)}function Ay(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ay(Object(r),!0).forEach(function(n){yh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ay(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y0(n.key),n)}}function kS(e,t,r){return t&&CS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function RS(e,t,r){return t=Yi(t),DS(e,X0()?Reflect.construct(t,r||[],Yi(e).constructor):t.apply(e,r))}function DS(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 NS(e)}function NS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X0=function(){return!!e})()}function Yi(e){return Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yi(e)}function qS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zl(e,t)}function zl(e,t){return zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zl(e,t)}function yh(e,t,r){return t=Y0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y0(e){var t=LS(e,"string");return Dr(t)=="symbol"?t:t+""}function LS(e,t){if(Dr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function BS(e){return e.dataKey}function FS(e,t){return S.isValidElement(e)?S.cloneElement(e,t):typeof e=="function"?S.createElement(e,t):S.createElement(vS,t)}var yt=(function(e){function t(){return IS(this,t),RS(this,t,arguments)}return qS(t,e),kS(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.content,f=i.coordinate,l=i.filterNull,h=i.isAnimationActive,d=i.offset,y=i.payload,v=i.payloadUniqBy,p=i.position,g=i.reverseDirection,b=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=B0(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,BS));var x=m.length>0;return S.createElement($S,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:h,active:a,coordinate:f,hasPayload:x,offset:d,position:p,reverseDirection:g,useTranslate3d:b,viewBox:w,wrapperStyle:O},FS(s,Sy(Sy({},this.props),{},{payload:m})))}}])})(N.PureComponent);yh(yt,"displayName","Tooltip");yh(yt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Nt.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 As,Py;function WS(){if(Py)return As;Py=1;var e=pt(),t=function(){return e.Date.now()};return As=t,As}var Ss,Ty;function zS(){if(Ty)return Ss;Ty=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Ss=t,Ss}var Ps,Ey;function US(){if(Ey)return Ps;Ey=1;var e=zS(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Ps=r,Ps}var Ts,jy;function Z0(){if(jy)return Ts;jy=1;var e=US(),t=Dt(),r=an(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function c(s){if(typeof s=="number")return s;if(r(s))return n;if(t(s)){var f=typeof s.valueOf=="function"?s.valueOf():s;s=t(f)?f+"":f}if(typeof s!="string")return s===0?s:+s;s=e(s);var l=a.test(s);return l||o.test(s)?u(s.slice(2),l?2:8):i.test(s)?n:+s}return Ts=c,Ts}var Es,$y;function HS(){if($y)return Es;$y=1;var e=Dt(),t=WS(),r=Z0(),n="Expected a function",i=Math.max,a=Math.min;function o(u,c,s){var f,l,h,d,y,v,p=0,g=!1,b=!1,w=!0;if(typeof u!="function")throw new TypeError(n);c=r(c)||0,e(s)&&(g=!!s.leading,b="maxWait"in s,h=b?i(r(s.maxWait)||0,c):h,w="trailing"in s?!!s.trailing:w);function O(j){var I=f,M=l;return f=l=void 0,p=j,d=u.apply(M,I),d}function m(j){return p=j,y=setTimeout(A,c),g?O(j):d}function x(j){var I=j-v,M=j-p,k=c-I;return b?a(k,h-M):k}function _(j){var I=j-v,M=j-p;return v===void 0||I>=c||I<0||b&&M>=h}function A(){var j=t();if(_(j))return T(j);y=setTimeout(A,x(j))}function T(j){return y=void 0,w&&f?O(j):(f=l=void 0,d)}function $(){y!==void 0&&clearTimeout(y),p=0,f=v=l=y=void 0}function P(){return y===void 0?d:T(t())}function E(){var j=t(),I=_(j);if(f=arguments,l=this,v=j,I){if(y===void 0)return m(v);if(b)return clearTimeout(y),y=setTimeout(A,c),O(v)}return y===void 0&&(y=setTimeout(A,c)),d}return E.cancel=$,E.flush=P,E}return Es=o,Es}var js,My;function KS(){if(My)return js;My=1;var e=HS(),t=Dt(),r="Expected a function";function n(i,a,o){var u=!0,c=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,c="trailing"in o?!!o.trailing:c),e(i,a,{leading:u,maxWait:a,trailing:c})}return js=n,js}var GS=KS();const J0=oe(GS);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 Iy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ei(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Iy(Object(r),!0).forEach(function(n){VS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VS(e,t,r){return t=XS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XS(e){var t=YS(e,"string");return Nn(t)=="symbol"?t:t+""}function YS(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 ZS(e,t){return tP(e)||eP(e,t)||QS(e,t)||JS()}function JS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QS(e,t){if(e){if(typeof e=="string")return Cy(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 Cy(e,t)}}function Cy(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 eP(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 tP(e){if(Array.isArray(e))return e}var vq=N.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,c=u===void 0?"100%":u,s=e.minWidth,f=s===void 0?0:s,l=e.minHeight,h=e.maxHeight,d=e.children,y=e.debounce,v=y===void 0?0:y,p=e.id,g=e.className,b=e.onResize,w=e.style,O=w===void 0?{}:w,m=N.useRef(null),x=N.useRef();x.current=b,N.useImperativeHandle(t,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var _=N.useState({containerWidth:i.width,containerHeight:i.height}),A=ZS(_,2),T=A[0],$=A[1],P=N.useCallback(function(j,I){$(function(M){var k=Math.round(j),R=Math.round(I);return M.containerWidth===k&&M.containerHeight===R?M:{containerWidth:k,containerHeight:R}})},[]);N.useEffect(function(){var j=function(B){var H,V=B[0].contentRect,W=V.width,X=V.height;P(W,X),(H=x.current)===null||H===void 0||H.call(x,W,X)};v>0&&(j=J0(j,v,{trailing:!0,leading:!1}));var I=new ResizeObserver(j),M=m.current.getBoundingClientRect(),k=M.width,R=M.height;return P(k,R),I.observe(m.current),function(){I.disconnect()}},[P,v]);var E=N.useMemo(function(){var j=T.containerWidth,I=T.containerHeight;if(j<0||I<0)return null;it(Zt(o)||Zt(c),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,o,c),it(!r||r>0,"The aspect(%s) must be greater than zero.",r);var M=Zt(o)?j:o,k=Zt(c)?I:c;r&&r>0&&(M?k=M/r:k&&(M=k*r),h&&k>h&&(k=h)),it(M>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
||
please check the style of container, or the props width(%s) and height(%s),
|
||
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
||
height and width.`,M,k,o,c,f,l,r);var R=!Array.isArray(d)&&wt(d.type).endsWith("Chart");return S.Children.map(d,function(L){return S.isValidElement(L)?N.cloneElement(L,Ei({width:M,height:k},R?{style:Ei({height:"100%",width:"100%",maxHeight:k,maxWidth:M},L.props.style)}:{})):L})},[r,d,c,h,l,f,T,o]);return S.createElement("div",{id:p?"".concat(p):void 0,className:Z("recharts-responsive-container",g),style:Ei(Ei({},O),{},{width:o,height:c,minWidth:f,minHeight:l,maxHeight:h}),ref:m},E)}),mh=function(t){return null};mh.displayName="Cell";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 ky(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ul(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ky(Object(r),!0).forEach(function(n){rP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ky(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rP(e,t,r){return t=nP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nP(e){var t=iP(e,"string");return qn(t)=="symbol"?t:t+""}function iP(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 br={widthCache:{},cacheCount:0},aP=2e3,oP={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Ry="recharts_measurement_span";function uP(e){var t=Ul({},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||Nt.isSsr)return{width:0,height:0};var n=uP(r),i=JSON.stringify({text:t,copyStyle:n});if(br.widthCache[i])return br.widthCache[i];try{var a=document.getElementById(Ry);a||(a=document.createElement("span"),a.setAttribute("id",Ry),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Ul(Ul({},oP),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return br.widthCache[i]=c,++br.cacheCount>aP&&(br.cacheCount=0,br.widthCache={}),c}catch{return{width:0,height:0}}},cP=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 Zi(e,t){return hP(e)||fP(e,t)||lP(e,t)||sP()}function sP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lP(e,t){if(e){if(typeof e=="string")return Dy(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 Dy(e,t)}}function Dy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fP(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],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 hP(e){if(Array.isArray(e))return e}function pP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ny(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,vP(n.key),n)}}function dP(e,t,r){return t&&Ny(e.prototype,t),r&&Ny(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vP(e){var t=yP(e,"string");return Ln(t)=="symbol"?t:t+""}function yP(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 qy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ly=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,mP=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,gP=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Q0={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},bP=Object.keys(Q0),_r="NaN";function xP(e,t){return e*Q0[t]}var ji=(function(){function e(t,r){pP(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!mP.test(r)&&(this.num=NaN,this.unit=""),bP.includes(r)&&(this.num=xP(t,r),this.unit="px")}return dP(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=gP.exec(r))!==null&&n!==void 0?n:[],a=Zi(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function ex(e){if(e.includes(_r))return _r;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=qy.exec(t))!==null&&r!==void 0?r:[],i=Zi(n,4),a=i[1],o=i[2],u=i[3],c=ji.parse(a??""),s=ji.parse(u??""),f=o==="*"?c.multiply(s):c.divide(s);if(f.isNaN())return _r;t=t.replace(qy,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=Ly.exec(t))!==null&&l!==void 0?l:[],d=Zi(h,4),y=d[1],v=d[2],p=d[3],g=ji.parse(y??""),b=ji.parse(p??""),w=v==="+"?g.add(b):g.subtract(b);if(w.isNaN())return _r;t=t.replace(Ly,w.toString())}return t}var By=/\(([^()]*)\)/;function wP(e){for(var t=e;t.includes("(");){var r=By.exec(t),n=Zi(r,2),i=n[1];t=t.replace(By,ex(i))}return t}function OP(e){var t=e.replace(/\s+/g,"");return t=wP(t),t=ex(t),t}function _P(e){try{return OP(e)}catch{return _r}}function $s(e){var t=_P(e.slice(5,-1));return t===_r?"":t}var AP=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],SP=["dx","dy","angle","className","breakAll"];function Hl(){return Hl=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},Hl.apply(this,arguments)}function Fy(e,t){if(e==null)return{};var r=PP(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 PP(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Wy(e,t){return $P(e)||jP(e,t)||EP(e,t)||TP()}function TP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EP(e,t){if(e){if(typeof e=="string")return zy(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 zy(e,t)}}function zy(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 jP(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 $P(e){if(Array.isArray(e))return e}var tx=/[ \f\n\r\t\v\u2028\u2029]+/,rx=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Y(r)||(n?a=r.toString().split(""):a=r.toString().split(tx));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}},MP=function(t,r,n,i,a){var o=t.maxLines,u=t.children,c=t.style,s=t.breakAll,f=q(o),l=u,h=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function(k,R){var L=R.word,B=R.width,H=k[k.length-1];if(H&&(i==null||a||H.width+B+n<Number(i)))H.words.push(L),H.width+=B+n;else{var V={words:[L],width:B};k.push(V)}return k},[])},d=h(r),y=function(M){return M.reduce(function(k,R){return k.width>R.width?k:R})};if(!f)return d;for(var v="…",p=function(M){var k=l.slice(0,M),R=rx({breakAll:s,style:c,children:k+v}).wordsWithComputedWidth,L=h(R),B=L.length>o||y(L).width>Number(i);return[B,L]},g=0,b=l.length-1,w=0,O;g<=b&&w<=l.length-1;){var m=Math.floor((g+b)/2),x=m-1,_=p(x),A=Wy(_,2),T=A[0],$=A[1],P=p(m),E=Wy(P,1),j=E[0];if(!T&&!j&&(g=m+1),T&&j&&(b=m-1),!T&&j){O=$;break}w++}return O||d},Uy=function(t){var r=Y(t)?[]:t.toString().split(tx);return[{words:r}]},IP=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!Nt.isSsr){var c,s,f=rx({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;c=l,s=h}else return Uy(i);return MP({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return Uy(i)},Hy="#808080",ur=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,c=t.capHeight,s=c===void 0?"0.71em":c,f=t.scaleToFit,l=f===void 0?!1:f,h=t.textAnchor,d=h===void 0?"start":h,y=t.verticalAnchor,v=y===void 0?"end":y,p=t.fill,g=p===void 0?Hy:p,b=Fy(t,AP),w=N.useMemo(function(){return IP({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:l,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,l,b.style,b.width]),O=b.dx,m=b.dy,x=b.angle,_=b.className,A=b.breakAll,T=Fy(b,SP);if(!Se(n)||!Se(a))return null;var $=n+(q(O)?O:0),P=a+(q(m)?m:0),E;switch(v){case"start":E=$s("calc(".concat(s,")"));break;case"middle":E=$s("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:E=$s("calc(".concat(w.length-1," * -").concat(u,")"));break}var j=[];if(l){var I=w[0].width,M=b.width;j.push("scale(".concat((q(M)?M/I:1)/I,")"))}return x&&j.push("rotate(".concat(x,", ").concat($,", ").concat(P,")")),j.length&&(T.transform=j.join(" ")),S.createElement("text",Hl({},U(T,!0),{x:$,y:P,className:Z("recharts-text",_),textAnchor:d,fill:g.includes("url")?Hy:g}),w.map(function(k,R){var L=k.words.join(A?"":" ");return S.createElement("tspan",{x:$,dy:R===0?E:u,key:"".concat(L,"-").concat(R)},L)}))};function Rt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function CP(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gh(e){let t,r,n;e.length!==2?(t=Rt,r=(u,c)=>Rt(e(u),c),n=(u,c)=>e(u)-c):(t=e===Rt||e===CP?e:kP,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 kP(){return 0}function nx(e){return e===null?NaN:+e}function*RP(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const DP=gh(Rt),yi=DP.right;gh(nx).center;class Ky extends Map{constructor(t,r=LP){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(Gy(this,t))}has(t){return super.has(Gy(this,t))}set(t,r){return super.set(NP(this,t),r)}delete(t){return super.delete(qP(this,t))}}function Gy({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function NP({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function qP({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function LP(e){return e!==null&&typeof e=="object"?e.valueOf():e}function BP(e=Rt){if(e===Rt)return ix;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 ix(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const FP=Math.sqrt(50),WP=Math.sqrt(10),zP=Math.sqrt(2);function Ji(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>=FP?10:a>=WP?5:a>=zP?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?Ji(e,t,r*2):[u,c,s]}function Kl(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?Ji(t,e,r):Ji(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 Gl(e,t,r){return t=+t,e=+e,r=+r,Ji(e,t,r)[2]}function Vl(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Gl(t,e,r):Gl(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Vy(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Xy(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function ax(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?ix:BP(i);n>r;){if(n-r>600){const c=n-r+1,s=t-r+1,f=Math.log(c),l=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*l*(c-l)/c)*(s-c/2<0?-1:1),d=Math.max(r,Math.floor(t-s*l/c+h)),y=Math.min(n,Math.floor(t+(c-s)*l/c+h));ax(e,t,d,y,i)}const a=e[t];let o=r,u=n;for(vn(e,r,t),i(e[n],a)>0&&vn(e,r,n);o<u;){for(vn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?vn(e,r,u):(++u,vn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function vn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function UP(e,t,r){if(e=Float64Array.from(RP(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Xy(e);if(t>=1)return Vy(e);var n,i=(n-1)*t,a=Math.floor(i),o=Vy(ax(e,a).subarray(0,a+1)),u=Xy(e.subarray(a+1));return o+(u-o)*(i-a)}}function HP(e,t,r=nx){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 KP(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 Qe(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 Xl=Symbol("implicit");function bh(){var e=new Ky,t=[],r=[],n=Xl;function i(a){let o=e.get(a);if(o===void 0){if(n!==Xl)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 Ky;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 bh(t,r).unknown(n)},Qe.apply(i,arguments),i}function Bn(){var e=bh().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,c=0,s=0,f=.5;delete e.unknown;function l(){var h=t().length,d=i<n,y=d?i:n,v=d?n:i;a=(v-y)/Math.max(1,h-c+s*2),u&&(a=Math.floor(a)),y+=(v-y-a*(h-c))*f,o=a*(1-c),u&&(y=Math.round(y),o=Math.round(o));var p=KP(h).map(function(g){return y+a*g});return r(d?p.reverse():p)}return e.domain=function(h){return arguments.length?(t(h),l()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(u=!!h,l()):u},e.padding=function(h){return arguments.length?(c=Math.min(1,s=+h),l()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),l()):c},e.paddingOuter=function(h){return arguments.length?(s=+h,l()):s},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},e.copy=function(){return Bn(t(),[n,i]).round(u).paddingInner(c).paddingOuter(s).align(f)},Qe.apply(l(),arguments)}function ox(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return ox(t())},e}function Tn(){return ox(Bn.apply(null,arguments).paddingInner(1))}function xh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ux(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function mi(){}var Fn=.7,Qi=1/Fn,$r="\\s*([+-]?\\d+)\\s*",Wn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",st="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",GP=/^#([0-9a-f]{3,8})$/,VP=new RegExp(`^rgb\\(${$r},${$r},${$r}\\)$`),XP=new RegExp(`^rgb\\(${st},${st},${st}\\)$`),YP=new RegExp(`^rgba\\(${$r},${$r},${$r},${Wn}\\)$`),ZP=new RegExp(`^rgba\\(${st},${st},${st},${Wn}\\)$`),JP=new RegExp(`^hsl\\(${Wn},${st},${st}\\)$`),QP=new RegExp(`^hsla\\(${Wn},${st},${st},${Wn}\\)$`),Yy={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};xh(mi,zn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Zy,formatHex:Zy,formatHex8:eT,formatHsl:tT,formatRgb:Jy,toString:Jy});function Zy(){return this.rgb().formatHex()}function eT(){return this.rgb().formatHex8()}function tT(){return cx(this).formatHsl()}function Jy(){return this.rgb().formatRgb()}function zn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=GP.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Qy(t):r===3?new qe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?$i(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?$i(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=VP.exec(e))?new qe(t[1],t[2],t[3],1):(t=XP.exec(e))?new qe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=YP.exec(e))?$i(t[1],t[2],t[3],t[4]):(t=ZP.exec(e))?$i(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=JP.exec(e))?rm(t[1],t[2]/100,t[3]/100,1):(t=QP.exec(e))?rm(t[1],t[2]/100,t[3]/100,t[4]):Yy.hasOwnProperty(e)?Qy(Yy[e]):e==="transparent"?new qe(NaN,NaN,NaN,0):null}function Qy(e){return new qe(e>>16&255,e>>8&255,e&255,1)}function $i(e,t,r,n){return n<=0&&(e=t=r=NaN),new qe(e,t,r,n)}function rT(e){return e instanceof mi||(e=zn(e)),e?(e=e.rgb(),new qe(e.r,e.g,e.b,e.opacity)):new qe}function Yl(e,t,r,n){return arguments.length===1?rT(e):new qe(e,t,r,n??1)}function qe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}xh(qe,Yl,ux(mi,{brighter(e){return e=e==null?Qi:Math.pow(Qi,e),new qe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Fn:Math.pow(Fn,e),new qe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qe(rr(this.r),rr(this.g),rr(this.b),ea(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:em,formatHex:em,formatHex8:nT,formatRgb:tm,toString:tm}));function em(){return`#${Jt(this.r)}${Jt(this.g)}${Jt(this.b)}`}function nT(){return`#${Jt(this.r)}${Jt(this.g)}${Jt(this.b)}${Jt((isNaN(this.opacity)?1:this.opacity)*255)}`}function tm(){const e=ea(this.opacity);return`${e===1?"rgb(":"rgba("}${rr(this.r)}, ${rr(this.g)}, ${rr(this.b)}${e===1?")":`, ${e})`}`}function ea(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Jt(e){return e=rr(e),(e<16?"0":"")+e.toString(16)}function rm(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new nt(e,t,r,n)}function cx(e){if(e instanceof nt)return new nt(e.h,e.s,e.l,e.opacity);if(e instanceof mi||(e=zn(e)),!e)return new nt;if(e instanceof nt)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 nt(o,u,c,e.opacity)}function iT(e,t,r,n){return arguments.length===1?cx(e):new nt(e,t,r,n??1)}function nt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}xh(nt,iT,ux(mi,{brighter(e){return e=e==null?Qi:Math.pow(Qi,e),new nt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Fn:Math.pow(Fn,e),new nt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new qe(Ms(e>=240?e-240:e+120,i,n),Ms(e,i,n),Ms(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new nt(nm(this.h),Mi(this.s),Mi(this.l),ea(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=ea(this.opacity);return`${e===1?"hsl(":"hsla("}${nm(this.h)}, ${Mi(this.s)*100}%, ${Mi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function nm(e){return e=(e||0)%360,e<0?e+360:e}function Mi(e){return Math.max(0,Math.min(1,e||0))}function Ms(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 wh=e=>()=>e;function aT(e,t){return function(r){return e+r*t}}function oT(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 uT(e){return(e=+e)==1?sx:function(t,r){return r-t?oT(t,r,e):wh(isNaN(t)?r:t)}}function sx(e,t){var r=t-e;return r?aT(e,r):wh(isNaN(e)?t:e)}const im=(function e(t){var r=uT(t);function n(i,a){var o=r((i=Yl(i)).r,(a=Yl(a)).r),u=r(i.g,a.g),c=r(i.b,a.b),s=sx(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 cT(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 sT(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function lT(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]=sn(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 fT(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ta(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function hT(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]=sn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Zl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Is=new RegExp(Zl.source,"g");function pT(e){return function(){return e}}function dT(e){return function(t){return e(t)+""}}function vT(e,t){var r=Zl.lastIndex=Is.lastIndex=0,n,i,a,o=-1,u=[],c=[];for(e=e+"",t=t+"";(n=Zl.exec(e))&&(i=Is.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:ta(n,i)})),r=Is.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?dT(c[0].x):pT(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 sn(e,t){var r=typeof t,n;return t==null||r==="boolean"?wh(t):(r==="number"?ta:r==="string"?(n=zn(t))?(t=n,im):vT:t instanceof zn?im:t instanceof Date?fT:sT(t)?cT:Array.isArray(t)?lT:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?hT:ta)(e,t)}function Oh(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function yT(e,t){t===void 0&&(t=e,e=sn);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 mT(e){return function(){return e}}function ra(e){return+e}var am=[0,1];function Re(e){return e}function Jl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:mT(isNaN(t)?NaN:.5)}function gT(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function bT(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Jl(i,n),a=r(o,a)):(n=Jl(n,i),a=r(a,o)),function(u){return a(n(u))}}function xT(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Jl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var c=yi(e,u,1,n)-1;return a[c](i[c](u))}}function gi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ja(){var e=am,t=am,r=sn,n,i,a,o=Re,u,c,s;function f(){var h=Math.min(e.length,t.length);return o!==Re&&(o=gT(e[0],e[h-1])),u=h>2?xT:bT,c=s=null,l}function l(h){return h==null||isNaN(h=+h)?a:(c||(c=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((s||(s=u(t,e.map(n),ta)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,ra),f()):e.slice()},l.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},l.rangeRound=function(h){return t=Array.from(h),r=Oh,f()},l.clamp=function(h){return arguments.length?(o=h?!0:Re,f()):o!==Re},l.interpolate=function(h){return arguments.length?(r=h,f()):r},l.unknown=function(h){return arguments.length?(a=h,l):a},function(h,d){return n=h,i=d,f()}}function _h(){return Ja()(Re,Re)}function wT(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function na(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Nr(e){return e=na(Math.abs(e)),e?e[1]:NaN}function OT(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 _T(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var AT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Un(e){if(!(t=AT.exec(e)))throw new Error("invalid format: "+e);var t;return new Ah({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]})}Un.prototype=Ah.prototype;function Ah(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+""}Ah.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 ST(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 lx;function PT(e,t){var r=na(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(lx=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")+na(e,Math.max(0,t+a-1))[0]}function om(e,t){var r=na(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 um={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:wT,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)=>om(e*100,t),r:om,s:PT,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function cm(e){return e}var sm=Array.prototype.map,lm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function TT(e){var t=e.grouping===void 0||e.thousands===void 0?cm:OT(sm.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?cm:_T(sm.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function s(l){l=Un(l);var h=l.fill,d=l.align,y=l.sign,v=l.symbol,p=l.zero,g=l.width,b=l.comma,w=l.precision,O=l.trim,m=l.type;m==="n"?(b=!0,m="g"):um[m]||(w===void 0&&(w=12),O=!0,m="g"),(p||h==="0"&&d==="=")&&(p=!0,h="0",d="=");var x=v==="$"?r:v==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_=v==="$"?n:/[%p]/.test(m)?o:"",A=um[m],T=/[defgprs%]/.test(m);w=w===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function $(P){var E=x,j=_,I,M,k;if(m==="c")j=A(P)+j,P="";else{P=+P;var R=P<0||1/P<0;if(P=isNaN(P)?c:A(Math.abs(P),w),O&&(P=ST(P)),R&&+P==0&&y!=="+"&&(R=!1),E=(R?y==="("?y:u:y==="-"||y==="("?"":y)+E,j=(m==="s"?lm[8+lx/3]:"")+j+(R&&y==="("?")":""),T){for(I=-1,M=P.length;++I<M;)if(k=P.charCodeAt(I),48>k||k>57){j=(k===46?i+P.slice(I+1):P.slice(I))+j,P=P.slice(0,I);break}}}b&&!p&&(P=t(P,1/0));var L=E.length+P.length+j.length,B=L<g?new Array(g-L+1).join(h):"";switch(b&&p&&(P=t(B+P,B.length?g-j.length:1/0),B=""),d){case"<":P=E+P+j+B;break;case"=":P=E+B+P+j;break;case"^":P=B.slice(0,L=B.length>>1)+E+P+j+B.slice(L);break;default:P=B+E+P+j;break}return a(P)}return $.toString=function(){return l+""},$}function f(l,h){var d=s((l=Un(l),l.type="f",l)),y=Math.max(-8,Math.min(8,Math.floor(Nr(h)/3)))*3,v=Math.pow(10,-y),p=lm[8+y/3];return function(g){return d(v*g)+p}}return{format:s,formatPrefix:f}}var Ii,Sh,fx;ET({thousands:",",grouping:[3],currency:["$",""]});function ET(e){return Ii=TT(e),Sh=Ii.format,fx=Ii.formatPrefix,Ii}function jT(e){return Math.max(0,-Nr(Math.abs(e)))}function $T(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Nr(t)/3)))*3-Nr(Math.abs(e)))}function MT(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Nr(t)-Nr(e))+1}function hx(e,t,r,n){var i=Vl(e,t,r),a;switch(n=Un(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=$T(i,o))&&(n.precision=a),fx(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=MT(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=jT(i))&&(n.precision=a-(n.type==="%")*2);break}}return Sh(n)}function qt(e){var t=e.domain;return e.ticks=function(r){var n=t();return Kl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return hx(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=Gl(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 ia(){var e=_h();return e.copy=function(){return gi(e,ia())},Qe.apply(e,arguments),qt(e)}function px(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,ra),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return px(e).unknown(t)},e=arguments.length?Array.from(e,ra):[0,1],qt(r)}function dx(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 fm(e){return Math.log(e)}function hm(e){return Math.exp(e)}function IT(e){return-Math.log(-e)}function CT(e){return-Math.exp(-e)}function kT(e){return isFinite(e)?+("1e"+e):e<0?0:e}function RT(e){return e===10?kT:e===Math.E?Math.exp:t=>Math.pow(e,t)}function DT(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 pm(e){return(t,r)=>-e(-t,r)}function Ph(e){const t=e(fm,hm),r=t.domain;let n=10,i,a;function o(){return i=DT(n),a=RT(n),r()[0]<0?(i=pm(i),a=pm(a),e(IT,CT)):e(fm,hm),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const c=r();let s=c[0],f=c[c.length-1];const l=f<s;l&&([s,f]=[f,s]);let h=i(s),d=i(f),y,v;const p=u==null?10:+u;let g=[];if(!(n%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),s>0){for(;h<=d;++h)for(y=1;y<n;++y)if(v=h<0?y/a(-h):y*a(h),!(v<s)){if(v>f)break;g.push(v)}}else for(;h<=d;++h)for(y=n-1;y>=1;--y)if(v=h>0?y/a(-h):y*a(h),!(v<s)){if(v>f)break;g.push(v)}g.length*2<p&&(g=Kl(s,f,p))}else g=Kl(h,d,Math.min(d-h,p)).map(a);return l?g.reverse():g},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=Un(c)).precision==null&&(c.trim=!0),c=Sh(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(dx(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function vx(){const e=Ph(Ja()).domain([1,10]);return e.copy=()=>gi(e,vx()).base(e.base()),Qe.apply(e,arguments),e}function dm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function vm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Th(e){var t=1,r=e(dm(t),vm(t));return r.constant=function(n){return arguments.length?e(dm(t=+n),vm(t)):t},qt(r)}function yx(){var e=Th(Ja());return e.copy=function(){return gi(e,yx()).constant(e.constant())},Qe.apply(e,arguments)}function ym(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function NT(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function qT(e){return e<0?-e*e:e*e}function Eh(e){var t=e(Re,Re),r=1;function n(){return r===1?e(Re,Re):r===.5?e(NT,qT):e(ym(r),ym(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},qt(t)}function jh(){var e=Eh(Ja());return e.copy=function(){return gi(e,jh()).exponent(e.exponent())},Qe.apply(e,arguments),e}function LT(){return jh.apply(null,arguments).exponent(.5)}function mm(e){return Math.sign(e)*e*e}function BT(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function mx(){var e=_h(),t=[0,1],r=!1,n;function i(a){var o=BT(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(mm(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,ra)).map(mm)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return mx(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Qe.apply(i,arguments),qt(i)}function gx(){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]=HP(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[yi(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(Rt),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 gx().domain(e).range(t).unknown(n)},Qe.apply(a,arguments)}function bx(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[yi(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 bx().domain([e,t]).range(i).unknown(a)},Qe.apply(qt(o),arguments)}function xx(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[yi(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 xx().domain(e).range(t).unknown(r)},Qe.apply(i,arguments)}const Cs=new Date,ks=new Date;function Pe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const 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=>Pe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Cs.setTime(+a),ks.setTime(+o),e(Cs),e(ks),Math.floor(r(Cs,ks))),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 aa=Pe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);aa.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):aa);aa.range;const gt=1e3,Ze=gt*60,bt=Ze*60,_t=bt*24,$h=_t*7,gm=_t*30,Rs=_t*365,Qt=Pe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*gt)},(e,t)=>(t-e)/gt,e=>e.getUTCSeconds());Qt.range;const Mh=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*gt)},(e,t)=>{e.setTime(+e+t*Ze)},(e,t)=>(t-e)/Ze,e=>e.getMinutes());Mh.range;const Ih=Pe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ze)},(e,t)=>(t-e)/Ze,e=>e.getUTCMinutes());Ih.range;const Ch=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*gt-e.getMinutes()*Ze)},(e,t)=>{e.setTime(+e+t*bt)},(e,t)=>(t-e)/bt,e=>e.getHours());Ch.range;const kh=Pe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*bt)},(e,t)=>(t-e)/bt,e=>e.getUTCHours());kh.range;const bi=Pe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ze)/_t,e=>e.getDate()-1);bi.range;const Qa=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_t,e=>e.getUTCDate()-1);Qa.range;const wx=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_t,e=>Math.floor(e/_t));wx.range;function dr(e){return Pe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ze)/$h)}const eo=dr(0),oa=dr(1),FT=dr(2),WT=dr(3),qr=dr(4),zT=dr(5),UT=dr(6);eo.range;oa.range;FT.range;WT.range;qr.range;zT.range;UT.range;function vr(e){return Pe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/$h)}const to=vr(0),ua=vr(1),HT=vr(2),KT=vr(3),Lr=vr(4),GT=vr(5),VT=vr(6);to.range;ua.range;HT.range;KT.range;Lr.range;GT.range;VT.range;const Rh=Pe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Rh.range;const Dh=Pe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Dh.range;const At=Pe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());At.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});At.range;const St=Pe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());St.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});St.range;function Ox(e,t,r,n,i,a){const o=[[Qt,1,gt],[Qt,5,5*gt],[Qt,15,15*gt],[Qt,30,30*gt],[a,1,Ze],[a,5,5*Ze],[a,15,15*Ze],[a,30,30*Ze],[i,1,bt],[i,3,3*bt],[i,6,6*bt],[i,12,12*bt],[n,1,_t],[n,2,2*_t],[r,1,$h],[t,1,gm],[t,3,3*gm],[e,1,Rs]];function u(s,f,l){const h=f<s;h&&([s,f]=[f,s]);const d=l&&typeof l.range=="function"?l:c(s,f,l),y=d?d.range(s,+f+1):[];return h?y.reverse():y}function c(s,f,l){const h=Math.abs(f-s)/l,d=gh(([,,p])=>p).right(o,h);if(d===o.length)return e.every(Vl(s/Rs,f/Rs,l));if(d===0)return aa.every(Math.max(Vl(s,f,l),1));const[y,v]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return y.every(v)}return[u,c]}const[XT,YT]=Ox(St,Dh,to,wx,kh,Ih),[ZT,JT]=Ox(At,Rh,eo,bi,Ch,Mh);function Ds(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 Ns(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 yn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function QT(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=mn(i),f=gn(i),l=mn(a),h=gn(a),d=mn(o),y=gn(o),v=mn(u),p=gn(u),g=mn(c),b=gn(c),w={a:R,A:L,b:B,B:H,c:null,d:Am,e:Am,f:OE,g:IE,G:kE,H:bE,I:xE,j:wE,L:_x,m:_E,M:AE,p:V,q:W,Q:Tm,s:Em,S:SE,u:PE,U:TE,V:EE,w:jE,W:$E,x:null,X:null,y:ME,Y:CE,Z:RE,"%":Pm},O={a:X,A:fe,b:me,B:Be,c:null,d:Sm,e:Sm,f:LE,g:XE,G:ZE,H:DE,I:NE,j:qE,L:Sx,m:BE,M:FE,p:Wt,q:De,Q:Tm,s:Em,S:WE,u:zE,U:UE,V:HE,w:KE,W:GE,x:null,X:null,y:VE,Y:YE,Z:JE,"%":Pm},m={a:$,A:P,b:E,B:j,c:I,d:Om,e:Om,f:vE,g:wm,G:xm,H:_m,I:_m,j:fE,L:dE,m:lE,M:hE,p:T,q:sE,Q:mE,s:gE,S:pE,u:iE,U:aE,V:oE,w:nE,W:uE,x:M,X:k,y:wm,Y:xm,Z:cE,"%":yE};w.x=x(r,w),w.X=x(n,w),w.c=x(t,w),O.x=x(r,O),O.X=x(n,O),O.c=x(t,O);function x(F,J){return function(Q){var D=[],de=-1,te=0,xe=F.length,we,Ne,jt;for(Q instanceof Date||(Q=new Date(+Q));++de<xe;)F.charCodeAt(de)===37&&(D.push(F.slice(te,de)),(Ne=bm[we=F.charAt(++de)])!=null?we=F.charAt(++de):Ne=we==="e"?" ":"0",(jt=J[we])&&(we=jt(Q,Ne)),D.push(we),te=de+1);return D.push(F.slice(te,de)),D.join("")}}function _(F,J){return function(Q){var D=yn(1900,void 0,1),de=A(D,F,Q+="",0),te,xe;if(de!=Q.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(J&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(te=Ns(yn(D.y,0,1)),xe=te.getUTCDay(),te=xe>4||xe===0?ua.ceil(te):ua(te),te=Qa.offset(te,(D.V-1)*7),D.y=te.getUTCFullYear(),D.m=te.getUTCMonth(),D.d=te.getUTCDate()+(D.w+6)%7):(te=Ds(yn(D.y,0,1)),xe=te.getDay(),te=xe>4||xe===0?oa.ceil(te):oa(te),te=bi.offset(te,(D.V-1)*7),D.y=te.getFullYear(),D.m=te.getMonth(),D.d=te.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),xe="Z"in D?Ns(yn(D.y,0,1)).getUTCDay():Ds(yn(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(xe+5)%7:D.w+D.U*7-(xe+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,Ns(D)):Ds(D)}}function A(F,J,Q,D){for(var de=0,te=J.length,xe=Q.length,we,Ne;de<te;){if(D>=xe)return-1;if(we=J.charCodeAt(de++),we===37){if(we=J.charAt(de++),Ne=m[we in bm?J.charAt(de++):we],!Ne||(D=Ne(F,Q,D))<0)return-1}else if(we!=Q.charCodeAt(D++))return-1}return D}function T(F,J,Q){var D=s.exec(J.slice(Q));return D?(F.p=f.get(D[0].toLowerCase()),Q+D[0].length):-1}function $(F,J,Q){var D=d.exec(J.slice(Q));return D?(F.w=y.get(D[0].toLowerCase()),Q+D[0].length):-1}function P(F,J,Q){var D=l.exec(J.slice(Q));return D?(F.w=h.get(D[0].toLowerCase()),Q+D[0].length):-1}function E(F,J,Q){var D=g.exec(J.slice(Q));return D?(F.m=b.get(D[0].toLowerCase()),Q+D[0].length):-1}function j(F,J,Q){var D=v.exec(J.slice(Q));return D?(F.m=p.get(D[0].toLowerCase()),Q+D[0].length):-1}function I(F,J,Q){return A(F,t,J,Q)}function M(F,J,Q){return A(F,r,J,Q)}function k(F,J,Q){return A(F,n,J,Q)}function R(F){return o[F.getDay()]}function L(F){return a[F.getDay()]}function B(F){return c[F.getMonth()]}function H(F){return u[F.getMonth()]}function V(F){return i[+(F.getHours()>=12)]}function W(F){return 1+~~(F.getMonth()/3)}function X(F){return o[F.getUTCDay()]}function fe(F){return a[F.getUTCDay()]}function me(F){return c[F.getUTCMonth()]}function Be(F){return u[F.getUTCMonth()]}function Wt(F){return i[+(F.getUTCHours()>=12)]}function De(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var J=x(F+="",w);return J.toString=function(){return F},J},parse:function(F){var J=_(F+="",!1);return J.toString=function(){return F},J},utcFormat:function(F){var J=x(F+="",O);return J.toString=function(){return F},J},utcParse:function(F){var J=_(F+="",!0);return J.toString=function(){return F},J}}}var bm={"-":"",_:" ",0:"0"},je=/^\s*\d+/,eE=/^%/,tE=/[\\^$*+?|[\]().{}]/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 rE(e){return e.replace(tE,"\\$&")}function mn(e){return new RegExp("^(?:"+e.map(rE).join("|")+")","i")}function gn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function nE(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function iE(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function aE(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function oE(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function uE(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function xm(e,t,r){var n=je.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function wm(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 cE(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 sE(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 lE(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 Om(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function fE(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 _m(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function hE(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function pE(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function dE(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function vE(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 yE(e,t,r){var n=eE.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function mE(e,t,r){var n=je.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function gE(e,t,r){var n=je.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Am(e,t){return re(e.getDate(),t,2)}function bE(e,t){return re(e.getHours(),t,2)}function xE(e,t){return re(e.getHours()%12||12,t,2)}function wE(e,t){return re(1+bi.count(At(e),e),t,3)}function _x(e,t){return re(e.getMilliseconds(),t,3)}function OE(e,t){return _x(e,t)+"000"}function _E(e,t){return re(e.getMonth()+1,t,2)}function AE(e,t){return re(e.getMinutes(),t,2)}function SE(e,t){return re(e.getSeconds(),t,2)}function PE(e){var t=e.getDay();return t===0?7:t}function TE(e,t){return re(eo.count(At(e)-1,e),t,2)}function Ax(e){var t=e.getDay();return t>=4||t===0?qr(e):qr.ceil(e)}function EE(e,t){return e=Ax(e),re(qr.count(At(e),e)+(At(e).getDay()===4),t,2)}function jE(e){return e.getDay()}function $E(e,t){return re(oa.count(At(e)-1,e),t,2)}function ME(e,t){return re(e.getFullYear()%100,t,2)}function IE(e,t){return e=Ax(e),re(e.getFullYear()%100,t,2)}function CE(e,t){return re(e.getFullYear()%1e4,t,4)}function kE(e,t){var r=e.getDay();return e=r>=4||r===0?qr(e):qr.ceil(e),re(e.getFullYear()%1e4,t,4)}function RE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+re(t/60|0,"0",2)+re(t%60,"0",2)}function Sm(e,t){return re(e.getUTCDate(),t,2)}function DE(e,t){return re(e.getUTCHours(),t,2)}function NE(e,t){return re(e.getUTCHours()%12||12,t,2)}function qE(e,t){return re(1+Qa.count(St(e),e),t,3)}function Sx(e,t){return re(e.getUTCMilliseconds(),t,3)}function LE(e,t){return Sx(e,t)+"000"}function BE(e,t){return re(e.getUTCMonth()+1,t,2)}function FE(e,t){return re(e.getUTCMinutes(),t,2)}function WE(e,t){return re(e.getUTCSeconds(),t,2)}function zE(e){var t=e.getUTCDay();return t===0?7:t}function UE(e,t){return re(to.count(St(e)-1,e),t,2)}function Px(e){var t=e.getUTCDay();return t>=4||t===0?Lr(e):Lr.ceil(e)}function HE(e,t){return e=Px(e),re(Lr.count(St(e),e)+(St(e).getUTCDay()===4),t,2)}function KE(e){return e.getUTCDay()}function GE(e,t){return re(ua.count(St(e)-1,e),t,2)}function VE(e,t){return re(e.getUTCFullYear()%100,t,2)}function XE(e,t){return e=Px(e),re(e.getUTCFullYear()%100,t,2)}function YE(e,t){return re(e.getUTCFullYear()%1e4,t,4)}function ZE(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Lr(e):Lr.ceil(e),re(e.getUTCFullYear()%1e4,t,4)}function JE(){return"+0000"}function Pm(){return"%"}function Tm(e){return+e}function Em(e){return Math.floor(+e/1e3)}var xr,Tx,Ex;QE({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 QE(e){return xr=QT(e),Tx=xr.format,xr.parse,Ex=xr.utcFormat,xr.utcParse,xr}function ej(e){return new Date(e)}function tj(e){return e instanceof Date?+e:+new Date(+e)}function Nh(e,t,r,n,i,a,o,u,c,s){var f=_h(),l=f.invert,h=f.domain,d=s(".%L"),y=s(":%S"),v=s("%I:%M"),p=s("%I %p"),g=s("%a %d"),b=s("%b %d"),w=s("%B"),O=s("%Y");function m(x){return(c(x)<x?d:u(x)<x?y:o(x)<x?v:a(x)<x?p:n(x)<x?i(x)<x?g:b:r(x)<x?w:O)(x)}return f.invert=function(x){return new Date(l(x))},f.domain=function(x){return arguments.length?h(Array.from(x,tj)):h().map(ej)},f.ticks=function(x){var _=h();return e(_[0],_[_.length-1],x??10)},f.tickFormat=function(x,_){return _==null?m:s(_)},f.nice=function(x){var _=h();return(!x||typeof x.range!="function")&&(x=t(_[0],_[_.length-1],x??10)),x?h(dx(_,x)):f},f.copy=function(){return gi(f,Nh(e,t,r,n,i,a,o,u,c,s))},f}function rj(){return Qe.apply(Nh(ZT,JT,At,Rh,eo,bi,Ch,Mh,Qt,Tx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function nj(){return Qe.apply(Nh(XT,YT,St,Dh,to,Qa,kh,Ih,Qt,Ex).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ro(){var e=0,t=1,r,n,i,a,o=Re,u=!1,c;function s(l){return l==null||isNaN(l=+l)?c:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}s.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(l){return arguments.length?(u=!!l,s):u},s.interpolator=function(l){return arguments.length?(o=l,s):o};function f(l){return function(h){var d,y;return arguments.length?([d,y]=h,o=l(d,y),s):[o(0),o(1)]}}return s.range=f(sn),s.rangeRound=f(Oh),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 Lt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function jx(){var e=qt(ro()(Re));return e.copy=function(){return Lt(e,jx())},Et.apply(e,arguments)}function $x(){var e=Ph(ro()).domain([1,10]);return e.copy=function(){return Lt(e,$x()).base(e.base())},Et.apply(e,arguments)}function Mx(){var e=Th(ro());return e.copy=function(){return Lt(e,Mx()).constant(e.constant())},Et.apply(e,arguments)}function qh(){var e=Eh(ro());return e.copy=function(){return Lt(e,qh()).exponent(e.exponent())},Et.apply(e,arguments)}function ij(){return qh.apply(null,arguments).exponent(.5)}function Ix(){var e=[],t=Re;function r(n){if(n!=null&&!isNaN(n=+n))return t((yi(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(Rt),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)=>UP(e,a/n))},r.copy=function(){return Ix(t).domain(e)},Et.apply(r,arguments)}function no(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,s=Re,f,l=!1,h;function d(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:c),s(l?Math.max(0,Math.min(1,v)):v))}d.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,d):[e,t,r]},d.clamp=function(v){return arguments.length?(l=!!v,d):l},d.interpolator=function(v){return arguments.length?(s=v,d):s};function y(v){return function(p){var g,b,w;return arguments.length?([g,b,w]=p,s=yT(v,[g,b,w]),d):[s(0),s(.5),s(1)]}}return d.range=y(sn),d.rangeRound=y(Oh),d.unknown=function(v){return arguments.length?(h=v,d):h},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,d}}function Cx(){var e=qt(no()(Re));return e.copy=function(){return Lt(e,Cx())},Et.apply(e,arguments)}function kx(){var e=Ph(no()).domain([.1,1,10]);return e.copy=function(){return Lt(e,kx()).base(e.base())},Et.apply(e,arguments)}function Rx(){var e=Th(no());return e.copy=function(){return Lt(e,Rx()).constant(e.constant())},Et.apply(e,arguments)}function Lh(){var e=Eh(no());return e.copy=function(){return Lt(e,Lh()).exponent(e.exponent())},Et.apply(e,arguments)}function aj(){return Lh.apply(null,arguments).exponent(.5)}const jm=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Bn,scaleDiverging:Cx,scaleDivergingLog:kx,scaleDivergingPow:Lh,scaleDivergingSqrt:aj,scaleDivergingSymlog:Rx,scaleIdentity:px,scaleImplicit:Xl,scaleLinear:ia,scaleLog:vx,scaleOrdinal:bh,scalePoint:Tn,scalePow:jh,scaleQuantile:gx,scaleQuantize:bx,scaleRadial:mx,scaleSequential:jx,scaleSequentialLog:$x,scaleSequentialPow:qh,scaleSequentialQuantile:Ix,scaleSequentialSqrt:ij,scaleSequentialSymlog:Mx,scaleSqrt:LT,scaleSymlog:yx,scaleThreshold:xx,scaleTime:rj,scaleUtc:nj,tickFormat:hx},Symbol.toStringTag,{value:"Module"}));var qs,$m;function io(){if($m)return qs;$m=1;var e=an();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],c=n(u);if(c!=null&&(s===void 0?c===c&&!e(c):i(c,s)))var s=c,f=u}return f}return qs=t,qs}var Ls,Mm;function Dx(){if(Mm)return Ls;Mm=1;function e(t,r){return t>r}return Ls=e,Ls}var Bs,Im;function oj(){if(Im)return Bs;Im=1;var e=io(),t=Dx(),r=cn();function n(i){return i&&i.length?e(i,r,t):void 0}return Bs=n,Bs}var uj=oj();const Ct=oe(uj);var Fs,Cm;function Nx(){if(Cm)return Fs;Cm=1;function e(t,r){return t<r}return Fs=e,Fs}var Ws,km;function cj(){if(km)return Ws;km=1;var e=io(),t=Nx(),r=cn();function n(i){return i&&i.length?e(i,r,t):void 0}return Ws=n,Ws}var sj=cj();const ao=oe(sj);var zs,Rm;function lj(){if(Rm)return zs;Rm=1;var e=eh(),t=dt(),r=H0(),n=Le();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return zs=i,zs}var Us,Dm;function fj(){if(Dm)return Us;Dm=1;var e=z0(),t=lj();function r(n,i){return e(t(n,i),1)}return Us=r,Us}var hj=fj();const pj=oe(hj);var Hs,Nm;function dj(){if(Nm)return Hs;Nm=1;var e=ph();function t(r,n){return e(r,n)}return Hs=t,Hs}var vj=dj();const cr=oe(vj);var ln=1e9,yj={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Fh,pe=!0,Je="[DecimalError] ",nr=Je+"Invalid argument: ",Bh=Je+"Exponent out of range: ",fn=Math.floor,Xt=Math.pow,mj=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ue,Te=1e7,he=7,qx=9007199254740991,ca=fn(qx/he),z={};z.absoluteValue=z.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};z.comparedTo=z.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};z.decimalPlaces=z.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};z.dividedBy=z.div=function(e){return Ot(this,new this.constructor(e))};z.dividedToIntegerBy=z.idiv=function(e){var t=this,r=t.constructor;return ue(Ot(t,new r(e),0,1),r.precision)};z.equals=z.eq=function(e){return!this.cmp(e)};z.exponent=function(){return be(this)};z.greaterThan=z.gt=function(e){return this.cmp(e)>0};z.greaterThanOrEqualTo=z.gte=function(e){return this.cmp(e)>=0};z.isInteger=z.isint=function(){return this.e>this.d.length-2};z.isNegative=z.isneg=function(){return this.s<0};z.isPositive=z.ispos=function(){return this.s>0};z.isZero=function(){return this.s===0};z.lessThan=z.lt=function(e){return this.cmp(e)<0};z.lessThanOrEqualTo=z.lte=function(e){return this.cmp(e)<1};z.logarithm=z.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(Ue))throw Error(Je+"NaN");if(r.s<1)throw Error(Je+(r.s?"NaN":"-Infinity"));return r.eq(Ue)?new n(0):(pe=!1,t=Ot(Hn(r,a),Hn(e,a),a),pe=!0,ue(t,i))};z.minus=z.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Fx(t,e):Lx(t,(e.s=-e.s,e))};z.modulo=z.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Je+"NaN");return r.s?(pe=!1,t=Ot(r,e,0,1).times(e),pe=!0,r.minus(t)):ue(new n(r),i)};z.naturalExponential=z.exp=function(){return Bx(this)};z.naturalLogarithm=z.ln=function(){return Hn(this)};z.negated=z.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};z.plus=z.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Lx(t,e):Fx(t,(e.s=-e.s,e))};z.precision=z.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(nr+e);if(t=be(i)+1,n=i.d.length-1,r=n*he+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};z.squareRoot=z.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(Je+"NaN")}for(e=be(u),pe=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=ut(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=fn((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),ut(a.d).slice(0,o)===(t=ut(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 pe=!0,ue(n,r)};z.times=z.mul=function(e){var t,r,n,i,a,o,u,c,s,f=this,l=f.constructor,h=f.d,d=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,c=h.length,s=d.length,c<s&&(a=h,h=d,d=a,o=c,c=s,s=o),a=[],o=c+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=c+n;i>n;)u=a[i]+d[n]*h[i-n-1]+t,a[i--]=u%Te|0,t=u/Te|0;a[i]=(a[i]+t)%Te|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,pe?ue(e,l.precision):e};z.toDecimalPlaces=z.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ht(e,0,ln),t===void 0?t=n.rounding:ht(t,0,8),ue(r,e+be(r)+1,t))};z.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=sr(n,!0):(ht(e,0,ln),t===void 0?t=i.rounding:ht(t,0,8),n=ue(new i(n),e+1,t),r=sr(n,!0,e+1)),r};z.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?sr(i):(ht(e,0,ln),t===void 0?t=a.rounding:ht(t,0,8),n=ue(new a(i),e+be(i)+1,t),r=sr(n.abs(),!1,e+be(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};z.toInteger=z.toint=function(){var e=this,t=e.constructor;return ue(new t(e),be(e)+1,t.rounding)};z.toNumber=function(){return+this};z.toPower=z.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(Ue);if(u=new c(u),!u.s){if(e.s<1)throw Error(Je+"Infinity");return u}if(u.eq(Ue))return u;if(n=c.precision,e.eq(Ue))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)<=qx){for(i=new c(Ue),t=Math.ceil(n/he+4),pe=!1;r%2&&(i=i.times(u),Lm(i.d,t)),r=fn(r/2),r!==0;)u=u.times(u),Lm(u.d,t);return pe=!0,e.s<0?new c(Ue).div(i):ue(i,n)}}else if(a<0)throw Error(Je+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,pe=!1,i=e.times(Hn(u,n+s)),pe=!0,i=Bx(i),i.s=a,i};z.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=be(i),n=sr(i,r<=a.toExpNeg||r>=a.toExpPos)):(ht(e,1,ln),t===void 0?t=a.rounding:ht(t,0,8),i=ue(new a(i),e,t),r=be(i),n=sr(i,e<=r||r<=a.toExpNeg,e)),n};z.toSignificantDigits=z.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ht(e,1,ln),t===void 0?t=n.rounding:ht(t,0,8)),ue(new n(r),e,t)};z.toString=z.valueOf=z.val=z.toJSON=z[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=be(e),r=e.constructor;return sr(e,t<=r.toExpNeg||t>=r.toExpPos)};function Lx(e,t){var r,n,i,a,o,u,c,s,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),pe?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)/Te|0,c[a]%=Te;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,pe?ue(t,l):t}function ht(e,t,r){if(e!==~~e||e<t||e>r)throw Error(nr+e)}function ut(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+=Mt(r)),a+=n;o=e[t],n=o+"",r=he-n.length,r&&(a+=Mt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Ot=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%Te|0,o=a/Te|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,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*Te+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,c,s,f,l,h,d,y,v,p,g,b,w,O,m,x,_,A,T=n.constructor,$=n.s==i.s?1:-1,P=n.d,E=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(Je+"Division by zero");for(c=n.e-i.e,_=E.length,m=P.length,d=new T($),y=d.d=[],s=0;E[s]==(P[s]||0);)++s;if(E[s]>(P[s]||0)&&--c,a==null?b=a=T.precision:o?b=a+(be(n)-be(i))+1:b=a,b<0)return new T(0);if(b=b/he+2|0,s=0,_==1)for(f=0,E=E[0],b++;(s<m||f)&&b--;s++)w=f*Te+(P[s]||0),y[s]=w/E|0,f=w%E|0;else{for(f=Te/(E[0]+1)|0,f>1&&(E=e(E,f),P=e(P,f),_=E.length,m=P.length),O=_,v=P.slice(0,_),p=v.length;p<_;)v[p++]=0;A=E.slice(),A.unshift(0),x=E[0],E[1]>=Te/2&&++x;do f=0,u=t(E,v,_,p),u<0?(g=v[0],_!=p&&(g=g*Te+(v[1]||0)),f=g/x|0,f>1?(f>=Te&&(f=Te-1),l=e(E,f),h=l.length,p=v.length,u=t(l,v,h,p),u==1&&(f--,r(l,_<h?A:E,h))):(f==0&&(u=f=1),l=E.slice()),h=l.length,h<p&&l.unshift(0),r(v,l,p),u==-1&&(p=v.length,u=t(E,v,_,p),u<1&&(f++,r(v,_<p?A:E,p))),p=v.length):u===0&&(f++,v=[0]),y[s++]=f,u&&v[0]?v[p++]=P[O]||0:(v=[P[O]],p=1);while((O++<m||v[0]!==void 0)&&b--)}return y[0]||y.shift(),d.e=c,ue(d,o?a+be(d)+1:a)}})();function Bx(e,t){var r,n,i,a,o,u,c=0,s=0,f=e.constructor,l=f.precision;if(be(e)>16)throw Error(Bh+be(e));if(!e.s)return new f(Ue);for(pe=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Xt(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Ue),f.precision=u;;){if(i=ue(i.times(e),u),r=r.times(++c),o=a.plus(Ot(i,r,u)),ut(o.d).slice(0,u)===ut(a.d).slice(0,u)){for(;s--;)a=ue(a.times(a),u);return f.precision=l,t==null?(pe=!0,ue(a,l)):a}a=o}}function be(e){for(var t=e.e*he,r=e.d[0];r>=10;r/=10)t++;return t}function Ks(e,t,r){if(t>e.LN10.sd())throw pe=!0,r&&(e.precision=r),Error(Je+"LN10 precision limit exceeded");return ue(new e(e.LN10),t)}function Mt(e){for(var t="";e--;)t+="0";return t}function Hn(e,t){var r,n,i,a,o,u,c,s,f,l=1,h=10,d=e,y=d.d,v=d.constructor,p=v.precision;if(d.s<1)throw Error(Je+(d.s?"NaN":"-Infinity"));if(d.eq(Ue))return new v(0);if(t==null?(pe=!1,s=p):s=t,d.eq(10))return t==null&&(pe=!0),Ks(v,s);if(s+=h,v.precision=s,r=ut(y),n=r.charAt(0),a=be(d),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)d=d.times(e),r=ut(d.d),n=r.charAt(0),l++;a=be(d),n>1?(d=new v("0."+r),a++):d=new v(n+"."+r.slice(1))}else return c=Ks(v,s+2,p).times(a+""),d=Hn(new v(n+"."+r.slice(1)),s-h).plus(c),v.precision=p,t==null?(pe=!0,ue(d,p)):d;for(u=o=d=Ot(d.minus(Ue),d.plus(Ue),s),f=ue(d.times(d),s),i=3;;){if(o=ue(o.times(f),s),c=u.plus(Ot(o,new v(i),s)),ut(c.d).slice(0,s)===ut(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(Ks(v,s+2,p).times(a+""))),u=Ot(u,new v(l),s),v.precision=p,t==null?(pe=!0,ue(u,p)):u;u=c,i+=2}}function qm(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=fn(r/he),e.d=[],n=(r+1)%he,r<0&&(n+=he),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=he;n<i;)e.d.push(+t.slice(n,n+=he));t=t.slice(n),n=he-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),pe&&(e.e>ca||e.e<-ca))throw Error(Bh+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=Xt(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/Xt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return c?(a=be(e),l.length=1,t=t-a-1,l[0]=Xt(10,(he-t%he)%he),e.e=fn(-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=Xt(10,he-n),l[f]=i>0?(s/Xt(10,o-i)%Xt(10,i)|0)*a:0),c)for(;;)if(f==0){(l[0]+=a)==Te&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Te)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(pe&&(e.e>ca||e.e<-ca))throw Error(Bh+be(e));return e}function Fx(e,t){var r,n,i,a,o,u,c,s,f,l,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),pe?ue(t,d):t;if(c=e.d,l=t.d,n=t.e,s=e.e,c=c.slice(),o=s-n,o){for(f=o<0,f?(r=c,o=-o,u=l.length):(r=l,n=s,u=c.length),i=Math.max(Math.ceil(d/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]=Te-1;--c[a],c[i]+=Te}c[i]-=l[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,pe?ue(t,d):t):new h(0)}function sr(e,t,r){var n,i=be(e),a=ut(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Mt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Mt(-i-1)+a,r&&(n=r-o)>0&&(a+=Mt(n))):i>=o?(a+=Mt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Mt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Mt(n))),e.s<0?"-"+a:a}function Lm(e,t){if(e.length>t)return e.length=t,!0}function Wx(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(nr+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 qm(o,a.toString())}else if(typeof a!="string")throw Error(nr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,mj.test(a))qm(o,a);else throw Error(nr+a)}if(i.prototype=z,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=Wx,i.config=i.set=gj,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 gj(e){if(!e||typeof e!="object")throw Error(Je+"Object expected");var t,r,n,i=["precision",1,ln,"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(fn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(nr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(nr+r+": "+n);return this}var Fh=Wx(yj);Ue=new Fh(1);const ae=Fh;function bj(e){return _j(e)||Oj(e)||wj(e)||xj()}function xj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wj(e,t){if(e){if(typeof e=="string")return Ql(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ql(e,t)}}function Oj(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _j(e){if(Array.isArray(e))return Ql(e)}function Ql(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Aj=function(t){return t},zx={},Ux=function(t){return t===zx},Bm=function(t){return function r(){return arguments.length===0||arguments.length===1&&Ux(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},Sj=function e(t,r){return t===1?r:Bm(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==zx}).length;return o>=t?r.apply(void 0,i):e(t-o,Bm(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 Ux(l)?c.shift():l});return r.apply(void 0,bj(f).concat(c))}))})},oo=function(t){return Sj(t.length,t)},ef=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},Pj=oo(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),Tj=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return Aj;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))}},tf=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Hx=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 Ej(e){var t;return e===0?t=1:t=Math.floor(new ae(e).abs().log(10).toNumber())+1,t}function jj(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 $j=oo(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),Mj=oo(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),Ij=oo(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const uo={rangeStep:jj,getDigitCount:Ej,interpolateNumber:$j,uninterpolateNumber:Mj,uninterpolateTruncation:Ij};function rf(e){return Rj(e)||kj(e)||Kx(e)||Cj()}function Cj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kj(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Rj(e){if(Array.isArray(e))return nf(e)}function Kn(e,t){return qj(e)||Nj(e,t)||Kx(e,t)||Dj()}function Dj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kx(e,t){if(e){if(typeof e=="string")return nf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nf(e,t)}}function nf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Nj(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 qj(e){if(Array.isArray(e))return e}function Gx(e){var t=Kn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Vx(e,t,r){if(e.lte(0))return new ae(0);var n=uo.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 Lj(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(uo.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=Tj(Pj(function(c){return i.add(new ae(c-o).mul(n)).toNumber()}),ef);return u(0,t)}function Xx(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=Vx(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?Xx(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 Bj(e){var t=Kn(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=Gx([r,n]),c=Kn(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(rf(ef(0,i-1).map(function(){return 1/0}))):[].concat(rf(ef(0,i-1).map(function(){return-1/0})),[f]);return r>n?tf(l):l}if(s===f)return Lj(s,i,a);var h=Xx(s,f,o,a),d=h.step,y=h.tickMin,v=h.tickMax,p=uo.rangeStep(y,v.add(new ae(.1).mul(d)),d);return r>n?tf(p):p}function Fj(e,t){var r=Kn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Gx([n,i]),u=Kn(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=Vx(new ae(s).sub(c).div(f-1),a,0),h=[].concat(rf(uo.rangeStep(new ae(c),new ae(s).sub(new ae(.99).mul(l)),l)),[s]);return n>i?tf(h):h}var Wj=Hx(Bj),zj=Hx(Fj),Uj="Invariant failed";function lr(e,t){throw new Error(Uj)}var Hj=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sa.apply(this,arguments)}function Kj(e,t){return Yj(e)||Xj(e,t)||Vj(e,t)||Gj()}function Gj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vj(e,t){if(e){if(typeof e=="string")return Fm(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 Fm(e,t)}}function Fm(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 Xj(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 Yj(e){if(Array.isArray(e))return e}function Zj(e,t){if(e==null)return{};var r=Jj(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 Jj(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 Qj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e$(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,Jx(n.key),n)}}function t$(e,t,r){return t&&e$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function r$(e,t,r){return t=la(t),n$(e,Yx()?Reflect.construct(t,r||[],la(e).constructor):t.apply(e,r))}function n$(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 i$(e)}function i$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yx=function(){return!!e})()}function la(e){return la=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},la(e)}function a$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&af(e,t)}function af(e,t){return af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},af(e,t)}function Zx(e,t,r){return t=Jx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jx(e){var t=o$(e,"string");return Br(t)=="symbol"?t:t+""}function o$(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 xi=(function(e){function t(){return Qj(this,t),r$(this,t,arguments)}return a$(t,e),t$(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,c=n.data,s=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,h=Zj(n,Hj),d=U(h,!1);this.props.direction==="x"&&f.type!=="number"&&lr();var y=c.map(function(v){var p=s(v,u),g=p.x,b=p.y,w=p.value,O=p.errorVal;if(!O)return null;var m=[],x,_;if(Array.isArray(O)){var A=Kj(O,2);x=A[0],_=A[1]}else x=_=O;if(a==="vertical"){var T=f.scale,$=b+i,P=$+o,E=$-o,j=T(w-x),I=T(w+_);m.push({x1:I,y1:P,x2:I,y2:E}),m.push({x1:j,y1:$,x2:I,y2:$}),m.push({x1:j,y1:P,x2:j,y2:E})}else if(a==="horizontal"){var M=l.scale,k=g+i,R=k-o,L=k+o,B=M(w-x),H=M(w+_);m.push({x1:R,y1:H,x2:L,y2:H}),m.push({x1:k,y1:B,x2:k,y2:H}),m.push({x1:R,y1:B,x2:L,y2:B})}return S.createElement(ee,sa({className:"recharts-errorBar",key:"bar-".concat(m.map(function(V){return"".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))},d),m.map(function(V){return S.createElement("line",sa({},V,{key:"line-".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))}))});return S.createElement(ee,{className:"recharts-errorBars"},y)}}])})(S.Component);Zx(xi,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Zx(xi,"displayName","ErrorBar");function Gn(e){"@babel/helpers - typeof";return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gn(e)}function Wm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wm(Object(r),!0).forEach(function(n){u$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function u$(e,t,r){return t=c$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c$(e){var t=s$(e,"string");return Gn(t)=="symbol"?t:t+""}function s$(e,t){if(Gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qx=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=ze(r,jr);if(!o)return null;var u=jr.defaultProps,c=u!==void 0?Ht(Ht({},u),o.props):{},s;return o.props&&o.props.payload?s=o.props&&o.props.payload:a==="children"?s=(n||[]).reduce(function(f,l){var h=l.item,d=l.props,y=d.sectors||d.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):s=(n||[]).map(function(f){var l=f.item,h=l.type.defaultProps,d=h!==void 0?Ht(Ht({},h),l.props):{},y=d.dataKey,v=d.name,p=d.legendType,g=d.hide;return{inactive:g,dataKey:y,type:c.iconType||p||"square",color:Wh(l),value:v||y,payload:d}}),Ht(Ht(Ht({},c),jr.getWithHeight(o,i)),{},{payload:s,item:o})};function Vn(e){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(e)}function zm(e){return p$(e)||h$(e)||f$(e)||l$()}function l$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f$(e,t){if(e){if(typeof e=="string")return of(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 of(e,t)}}function h$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function p$(e){if(Array.isArray(e))return of(e)}function of(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 Um(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Um(Object(r),!0).forEach(function(n){Mr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Um(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mr(e,t,r){return t=d$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d$(e){var t=v$(e,"string");return Vn(t)=="symbol"?t:t+""}function v$(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 ye(e,t,r){return Y(e)||Y(t)?r:Se(t)?He(e,t,r):G(t)?t(e):r}function En(e,t,r,n){var i=pj(e,function(u){return ye(u,t)});if(r==="number"){var a=i.filter(function(u){return q(u)||parseFloat(u)});return a.length?[ao(a),Ct(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Y(u)}):i;return o.map(function(u){return Se(u)||u instanceof Date?u:""})}var y$=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,s=0;s<u;s++){var f=s>0?i[s-1].coordinate:i[u-1].coordinate,l=i[s].coordinate,h=s>=u-1?i[0].coordinate:i[s+1].coordinate,d=void 0;if(Ce(l-f)!==Ce(h-l)){var y=[];if(Ce(h-l)===Ce(c[1]-c[0])){d=h;var v=l+c[1]-c[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{d=f;var p=h+c[1]-c[0];y[0]=Math.min(l,(p+l)/2),y[1]=Math.max(l,(p+l)/2)}var g=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){o=i[s].index;break}}else{var b=Math.min(f,h),w=Math.max(f,h);if(t>(b+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},Wh=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ve(ve({},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},m$=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),c=0,s=u.length;c<s;c++)for(var f=a[u[c]].stackGroups,l=Object.keys(f),h=0,d=l.length;h<d;h++){var y=f[l[h]],v=y.items,p=y.cateAxisId,g=v.filter(function(_){return wt(_.type).indexOf("Bar")>=0});if(g&&g.length){var b=g[0].type.defaultProps,w=b!==void 0?ve(ve({},b),g[0].props):g[0].props,O=w.barSize,m=w[p];o[m]||(o[m]=[]);var x=Y(O)?r:O;o[m].push({item:g[0],stackList:g.slice(1),barSize:Y(x)?void 0:ke(x,n,0)})}}return o},g$=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=ke(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,d=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&&d>0&&(h=!0,d*=.9,y=c*d);var v=(i-y)/2>>0,p={offset:v-s,size:0};f=o.reduce(function(O,m){var x={item:m.item,position:{offset:p.offset+p.size+s,size:h?d:m.barSize}},_=[].concat(zm(O),[x]);return p=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:p})}),_},l)}else{var g=ke(n,i,0,!0);i-2*g-(c-1)*s<=0&&(s=0);var b=(i-2*g-(c-1)*s)/c;b>1&&(b>>=0);var w=u===+u?Math.min(b,u):b;f=o.reduce(function(O,m,x){var _=[].concat(zm(O),[{item:m.item,position:{offset:g+(b+s)*x+(b-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:_[_.length-1].position})}),_},l)}return f},b$=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=Qx({children:a,legendWidth:c});if(s){var f=i||{},l=f.width,h=f.height,d=s.align,y=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&d!=="center"&&q(t[d]))return ve(ve({},t),{},Mr({},d,t[d]+(l||0)));if((v==="horizontal"||v==="vertical"&&d==="center")&&y!=="middle"&&q(t[y]))return ve(ve({},t),{},Mr({},y,t[y]+(h||0)))}return t},x$=function(t,r,n){return Y(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},ew=function(t,r,n,i,a){var o=r.props.children,u=Ke(o,xi).filter(function(s){return x$(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=ye(f,n);if(Y(l))return s;var h=Array.isArray(l)?[ao(l),Ct(l)]:[l,l],d=c.reduce(function(y,v){var p=ye(f,v,0),g=h[0]-Math.abs(Array.isArray(p)?p[0]:p),b=h[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(g,y[0]),Math.max(b,y[1])]},[1/0,-1/0]);return[Math.min(d[0],s[0]),Math.max(d[1],s[1])]},[1/0,-1/0])}return null},w$=function(t,r,n,i,a){var o=r.map(function(u){return ew(t,u,n,a,i)}).filter(function(u){return!Y(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},tw=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&ew(t,c,s,i)||En(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},[])},rw=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},nw=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},xt=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?.length>=2?Ce(u[0]-u[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var h=a?a.indexOf(l):l;return{coordinate:i(h)+s,value:l,offset:s}});return f.filter(function(l){return!un(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+s,value:l,index:h,offset:s}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+s,value:l,offset:s}}):i.domain().map(function(l,h){return{coordinate:i(l)+s,value:a?a[l]:l,index:h,offset:s}})},Gs=new WeakMap,Ci=function(t,r){if(typeof r!="function")return t;Gs.has(t)||Gs.set(t,new WeakMap);var n=Gs.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},iw=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:ia(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Tn(),realScaleType:"point"}:a==="category"?{scale:Bn(),realScaleType:"band"}:{scale:ia(),realScaleType:"linear"};if(ar(i)){var c="scale".concat(Ha(i));return{scale:(jm[c]||Tn)(),realScaleType:jm[c]?c:"point"}}return G(i)?{scale:i}:{scale:Tn(),realScaleType:"point"}},Hm=1e-4,aw=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])-Hm,o=Math.max(i[0],i[1])+Hm,u=t(r[0]),c=t(r[n-1]);(u<a||u>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},O$=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},_$=function(t,r){if(!r||r.length!==2||!q(r[0])||!q(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!q(t[0])||t[0]<n)&&(a[0]=n),(!q(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},A$=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=un(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])}},S$=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=un(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)}},P$={sign:A$,expand:pA,none:Ir,silhouette:dA,wiggle:vA,positive:S$},T$=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=P$[n],o=hA().keys(i).value(function(u,c){return+ye(u,c,0)}).order(Rl).offset(a);return o(t)},E$=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,c={},s=u.reduce(function(l,h){var d,y=(d=h.type)!==null&&d!==void 0&&d.defaultProps?ve(ve({},h.type.defaultProps),h.props):h.props,v=y.stackId,p=y.hide;if(p)return l;var g=y[n],b=l[g]||{hasStack:!1,stackGroups:{}};if(Se(v)){var w=b.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),b.hasStack=!0,b.stackGroups[v]=w}else b.stackGroups[pr("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return ve(ve({},l),{},Mr({},g,b))},c),f={};return Object.keys(s).reduce(function(l,h){var d=s[h];if(d.hasStack){var y={};d.stackGroups=Object.keys(d.stackGroups).reduce(function(v,p){var g=d.stackGroups[p];return ve(ve({},v),{},Mr({},p,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:T$(t,g.items,a)}))},y)}return ve(ve({},l),{},Mr({},h,d))},f)},ow=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=Wj(s,a,u);return t.domain([ao(f),Ct(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=zj(l,a,u);return{niceTicks:h}}return null};function fa(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&&!Y(i[t.dataKey])){var u=Bi(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=ye(i,Y(o)?t.dataKey:o);return Y(c)?null:t.scale(c)}var Km=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=ye(o,r.dataKey,r.domain[u]);return Y(c)?null:r.scale(c)-a/2+i},j$=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]},$$=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ve(ve({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Se(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},M$=function(t){return t.reduce(function(r,n){return[ao(n.concat([r[0]]).filter(q)),Ct(n.concat([r[1]]).filter(q))]},[1/0,-1/0])},uw=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=M$(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})},Gm=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Vm=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,uf=function(t,r,n){if(G(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Gm.test(t[0])){var a=+Gm.exec(t[0])[1];i[0]=r[0]-a}else G(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Vm.test(t[1])){var o=+Vm.exec(t[1])[1];i[1]=r[1]+o}else G(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=vh(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},Xm=function(t,r,n){return!t||!t.length||cr(t,He(n,"type.defaultProps.domain"))?r:t},cw=function(t,r){var n=t.type.defaultProps?ve(ve({},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 ve(ve({},U(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Wh(t),value:ye(r,i),type:c,payload:r,chartType:s,hide:f})};function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}function Ym(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ym(Object(r),!0).forEach(function(n){sw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ym(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sw(e,t,r){return t=I$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I$(e){var t=C$(e,"string");return Xn(t)=="symbol"?t:t+""}function C$(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 k$(e,t){return q$(e)||N$(e,t)||D$(e,t)||R$()}function R$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D$(e,t){if(e){if(typeof e=="string")return Zm(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 Zm(e,t)}}function Zm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],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 q$(e){if(Array.isArray(e))return e}var pa=Math.PI/180,L$=function(t){return t*180/Math.PI},le=function(t,r,n,i){return{x:t+Math.cos(-pa*i)*n,y:r+Math.sin(-pa*i)*n}},lw=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},B$=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.startAngle,s=t.endAngle,f=ke(t.cx,o,o/2),l=ke(t.cy,u,u/2),h=lw(o,u,n),d=ke(t.innerRadius,h,0),y=ke(t.outerRadius,h,h*.8),v=Object.keys(r);return v.reduce(function(p,g){var b=r[g],w=b.domain,O=b.reversed,m;if(Y(b.range))i==="angleAxis"?m=[c,s]:i==="radiusAxis"&&(m=[d,y]),O&&(m=[m[1],m[0]]);else{m=b.range;var x=m,_=k$(x,2);c=_[0],s=_[1]}var A=iw(b,a),T=A.realScaleType,$=A.scale;$.domain(w).range(m),aw($);var P=ow($,mt(mt({},b),{},{realScaleType:T})),E=mt(mt(mt({},b),P),{},{range:m,radius:y,realScaleType:T,scale:$,cx:f,cy:l,innerRadius:d,outerRadius:y,startAngle:c,endAngle:s});return mt(mt({},p),{},sw({},g,E))},{})},F$=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))},W$=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=F$({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:L$(s),angleInRadian:s}},z$=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}},U$=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},Jm=function(t,r){var n=t.x,i=t.y,a=W$({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=z$(r),l=f.startAngle,h=f.endAngle,d=u,y;if(l<=h){for(;d>h;)d-=360;for(;d<l;)d+=360;y=d>=l&&d<=h}else{for(;d>l;)d-=360;for(;d<h;)d+=360;y=d>=h&&d<=l}return y?mt(mt({},r),{},{radius:o,angle:U$(d,r)}):null},fw=function(t){return!N.isValidElement(t)&&!G(t)&&typeof t!="boolean"?t.className:""};function Yn(e){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(e)}var H$=["offset"];function K$(e){return Y$(e)||X$(e)||V$(e)||G$()}function G$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V$(e,t){if(e){if(typeof e=="string")return cf(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 cf(e,t)}}function X$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Y$(e){if(Array.isArray(e))return cf(e)}function cf(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 Z$(e,t){if(e==null)return{};var r=J$(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 J$(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 Qm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qm(Object(r),!0).forEach(function(n){Q$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q$(e,t,r){return t=eM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eM(e){var t=tM(e,"string");return Yn(t)=="symbol"?t:t+""}function tM(e,t){if(Yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zn(){return Zn=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},Zn.apply(this,arguments)}var rM=function(t){var r=t.value,n=t.formatter,i=Y(t.children)?r:t.children;return G(n)?n(i):i},nM=function(t,r){var n=Ce(r-t),i=Math.min(Math.abs(r-t),360);return n*i},iM=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,c=a,s=c.cx,f=c.cy,l=c.innerRadius,h=c.outerRadius,d=c.startAngle,y=c.endAngle,v=c.clockWise,p=(l+h)/2,g=nM(d,y),b=g>=0?1:-1,w,O;i==="insideStart"?(w=d+b*o,O=v):i==="insideEnd"?(w=y-b*o,O=!v):i==="end"&&(w=y+b*o,O=v),O=g<=0?O:!O;var m=le(s,f,p,w),x=le(s,f,p,w+(O?1:-1)*359),_="M".concat(m.x,",").concat(m.y,`
|
||
A`).concat(p,",").concat(p,",0,1,").concat(O?0:1,`,
|
||
`).concat(x.x,",").concat(x.y),A=Y(t.id)?pr("recharts-radial-line-"):t.id;return S.createElement("text",Zn({},n,{dominantBaseline:"central",className:Z("recharts-radial-bar-label",u)}),S.createElement("defs",null,S.createElement("path",{id:A,d:_})),S.createElement("textPath",{xlinkHref:"#".concat(A)},r))},aM=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,s=a.outerRadius,f=a.startAngle,l=a.endAngle,h=(f+l)/2;if(i==="outside"){var d=le(o,u,s+n,h),y=d.x,v=d.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var p=(c+s)/2,g=le(o,u,p,h),b=g.x,w=g.y;return{x:b,y:w,textAnchor:"middle",verticalAnchor:"middle"}},oM=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,c=o.y,s=o.width,f=o.height,l=f>=0?1:-1,h=l*i,d=l>0?"end":"start",y=l>0?"start":"end",v=s>=0?1:-1,p=v*i,g=v>0?"end":"start",b=v>0?"start":"end";if(a==="top"){var w={x:u+s/2,y:c-l*i,textAnchor:"middle",verticalAnchor:d};return _e(_e({},w),n?{height:Math.max(c-n.y,0),width:s}:{})}if(a==="bottom"){var O={x:u+s/2,y:c+f+h,textAnchor:"middle",verticalAnchor:y};return _e(_e({},O),n?{height:Math.max(n.y+n.height-(c+f),0),width:s}:{})}if(a==="left"){var m={x:u-p,y:c+f/2,textAnchor:g,verticalAnchor:"middle"};return _e(_e({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var x={x:u+s+p,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return _e(_e({},x),n?{width:Math.max(n.x+n.width-x.x,0),height:f}:{})}var _=n?{width:s,height:f}:{};return a==="insideLeft"?_e({x:u+p,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideRight"?_e({x:u+s-p,y:c+f/2,textAnchor:g,verticalAnchor:"middle"},_):a==="insideTop"?_e({x:u+s/2,y:c+h,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?_e({x:u+s/2,y:c+f-h,textAnchor:"middle",verticalAnchor:d},_):a==="insideTopLeft"?_e({x:u+p,y:c+h,textAnchor:b,verticalAnchor:y},_):a==="insideTopRight"?_e({x:u+s-p,y:c+h,textAnchor:g,verticalAnchor:y},_):a==="insideBottomLeft"?_e({x:u+p,y:c+f-h,textAnchor:b,verticalAnchor:d},_):a==="insideBottomRight"?_e({x:u+s-p,y:c+f-h,textAnchor:g,verticalAnchor:d},_):on(a)&&(q(a.x)||Zt(a.x))&&(q(a.y)||Zt(a.y))?_e({x:u+ke(a.x,s),y:c+ke(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):_e({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},uM=function(t){return"cx"in t&&q(t.cx)};function Ee(e){var t=e.offset,r=t===void 0?5:t,n=Z$(e,H$),i=_e({offset:r},n),a=i.viewBox,o=i.position,u=i.value,c=i.children,s=i.content,f=i.className,l=f===void 0?"":f,h=i.textBreakAll;if(!a||Y(u)&&Y(c)&&!N.isValidElement(s)&&!G(s))return null;if(N.isValidElement(s))return N.cloneElement(s,i);var d;if(G(s)){if(d=N.createElement(s,i),N.isValidElement(d))return d}else d=rM(i);var y=uM(a),v=U(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return iM(i,d,v);var p=y?aM(i):oM(i);return S.createElement(ur,Zn({className:Z("recharts-label",l)},v,p,{breakAll:h}),d)}Ee.displayName="Label";var hw=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,c=t.radius,s=t.innerRadius,f=t.outerRadius,l=t.x,h=t.y,d=t.top,y=t.left,v=t.width,p=t.height,g=t.clockWise,b=t.labelViewBox;if(b)return b;if(q(v)&&q(p)){if(q(l)&&q(h))return{x:l,y:h,width:v,height:p};if(q(d)&&q(y))return{x:d,y,width:v,height:p}}return q(l)&&q(h)?{x:l,y:h,width:0,height:0}:q(r)&&q(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||c||u||0,clockWise:g}:t.viewBox?t.viewBox:{}},cM=function(t,r){return t?t===!0?S.createElement(Ee,{key:"label-implicit",viewBox:r}):Se(t)?S.createElement(Ee,{key:"label-implicit",viewBox:r,value:t}):N.isValidElement(t)?t.type===Ee?N.cloneElement(t,{key:"label-implicit",viewBox:r}):S.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):G(t)?S.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):on(t)?S.createElement(Ee,Zn({viewBox:r},t,{key:"label-implicit"})):null:null},sM=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=hw(t),o=Ke(i,Ee).map(function(c,s){return N.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=cM(t.label,r||a);return[u].concat(K$(o))};Ee.parseViewBox=hw;Ee.renderCallByParent=sM;var Vs,eg;function lM(){if(eg)return Vs;eg=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Vs=e,Vs}var fM=lM();const hM=oe(fM);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)}var pM=["valueAccessor"],dM=["data","dataKey","clockWise","id","textBreakAll"];function vM(e){return bM(e)||gM(e)||mM(e)||yM()}function yM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mM(e,t){if(e){if(typeof e=="string")return sf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sf(e,t)}}function gM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bM(e){if(Array.isArray(e))return sf(e)}function sf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},da.apply(this,arguments)}function tg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tg(Object(r),!0).forEach(function(n){xM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xM(e,t,r){return t=wM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wM(e){var t=OM(e,"string");return Jn(t)=="symbol"?t:t+""}function OM(e,t){if(Jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ng(e,t){if(e==null)return{};var r=_M(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _M(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var AM=function(t){return Array.isArray(t.value)?hM(t.value):t.value};function lt(e){var t=e.valueAccessor,r=t===void 0?AM:t,n=ng(e,pM),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=ng(n,dM);return!i||!i.length?null:S.createElement(ee,{className:"recharts-label-list"},i.map(function(f,l){var h=Y(a)?r(f,l):ye(f&&f.payload,a),d=Y(u)?{}:{id:"".concat(u,"-").concat(l)};return S.createElement(Ee,da({},U(f,!0),s,d,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:Ee.parseViewBox(Y(o)?f:rg(rg({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}lt.displayName="LabelList";function SM(e,t){return e?e===!0?S.createElement(lt,{key:"labelList-implicit",data:t}):S.isValidElement(e)||G(e)?S.createElement(lt,{key:"labelList-implicit",data:t,content:e}):on(e)?S.createElement(lt,da({data:t},e,{key:"labelList-implicit"})):null:null}function PM(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Ke(n,lt).map(function(o,u){return N.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=SM(e.label,t);return[a].concat(vM(i))}lt.renderCallByParent=PM;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 lf(){return lf=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},lf.apply(this,arguments)}function ig(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ag(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ig(Object(r),!0).forEach(function(n){TM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ig(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TM(e,t,r){return t=EM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EM(e){var t=jM(e,"string");return Qn(t)=="symbol"?t:t+""}function jM(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $M=function(t,r){var n=Ce(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ki=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)/pa,h=s?a:a+o*l,d=le(r,n,f,h),y=le(r,n,i,h),v=s?a-o*l:a,p=le(r,n,f*Math.cos(l*pa),v);return{center:d,circleTangency:y,lineTangency:p,theta:l}},pw=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,c=$M(o,u),s=o+c,f=le(r,n,a,o),l=le(r,n,a,s),h="M ".concat(f.x,",").concat(f.y,`
|
||
A `).concat(a,",").concat(a,`,0,
|
||
`).concat(+(Math.abs(c)>180),",").concat(+(o>s),`,
|
||
`).concat(l.x,",").concat(l.y,`
|
||
`);if(i>0){var d=le(r,n,i,o),y=le(r,n,i,s);h+="L ".concat(y.x,",").concat(y.y,`
|
||
A `).concat(i,",").concat(i,`,0,
|
||
`).concat(+(Math.abs(c)>180),",").concat(+(o<=s),`,
|
||
`).concat(d.x,",").concat(d.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},MM=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=Ce(f-s),h=ki({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),d=h.circleTangency,y=h.lineTangency,v=h.theta,p=ki({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),g=p.circleTangency,b=p.lineTangency,w=p.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,`
|
||
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
|
||
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
|
||
`):pw({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(d.x,",").concat(d.y,`
|
||
A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(g.x,",").concat(g.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(b.x,",").concat(b.y,`
|
||
`);if(i>0){var x=ki({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),_=x.circleTangency,A=x.lineTangency,T=x.theta,$=ki({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),P=$.circleTangency,E=$.lineTangency,j=$.theta,I=c?Math.abs(s-f):Math.abs(s-f)-T-j;if(I<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(E.x,",").concat(E.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(P.x,",").concat(P.y,`
|
||
A`).concat(i,",").concat(i,",0,").concat(+(I>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(A.x,",").concat(A.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},IM={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},dw=function(t){var r=ag(ag({},IM),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,c=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,h=r.className;if(o<a||f===l)return null;var d=Z("recharts-sector",h),y=o-a,v=ke(u,y,0,!0),p;return v>0&&Math.abs(f-l)<360?p=MM({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):p=pw({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),S.createElement("path",lf({},U(r,!0),{className:d,d:p,role:"img"}))};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 ff(){return ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ff.apply(this,arguments)}function og(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ug(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?og(Object(r),!0).forEach(function(n){CM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):og(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CM(e,t,r){return t=kM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kM(e){var t=RM(e,"string");return ei(t)=="symbol"?t:t+""}function RM(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cg={curveBasisClosed:tA,curveBasisOpen:rA,curveBasis:eA,curveBumpX:B_,curveBumpY:F_,curveLinearClosed:nA,curveLinear:Ga,curveMonotoneX:iA,curveMonotoneY:aA,curveNatural:oA,curveStep:uA,curveStepAfter:sA,curveStepBefore:cA},Ri=function(t){return t.x===+t.x&&t.y===+t.y},bn=function(t){return t.x},xn=function(t){return t.y},DM=function(t,r){if(G(t))return t;var n="curve".concat(Ha(t));return(n==="curveMonotone"||n==="curveBump")&&r?cg["".concat(n).concat(r==="vertical"?"Y":"X")]:cg[n]||Ga},NM=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=DM(n,u),l=s?a.filter(function(v){return Ri(v)}):a,h;if(Array.isArray(o)){var d=s?o.filter(function(v){return Ri(v)}):o,y=l.map(function(v,p){return ug(ug({},v),{},{base:d[p]})});return u==="vertical"?h=Pi().y(xn).x1(bn).x0(function(v){return v.base.x}):h=Pi().x(bn).y1(xn).y0(function(v){return v.base.y}),h.defined(Ri).curve(f),h(y)}return u==="vertical"&&q(o)?h=Pi().y(xn).x1(bn).x0(o):q(o)?h=Pi().x(bn).y1(xn).y0(o):h=h0().x(bn).y(xn),h.defined(Ri).curve(f),h(l)},ir=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?NM(t):i;return N.createElement("path",ff({},U(t,!1),Fi(t),{className:Z("recharts-curve",r),d:o,ref:a}))},Xs={exports:{}},Ys,sg;function qM(){if(sg)return Ys;sg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ys=e,Ys}var Zs,lg;function LM(){if(lg)return Zs;lg=1;var e=qM();function t(){}function r(){}return r.resetWarningCache=t,Zs=function(){function n(o,u,c,s,f,l){if(l!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Zs}var fg;function BM(){return fg||(fg=1,Xs.exports=LM()()),Xs.exports}var FM=BM();const ie=oe(FM),{getOwnPropertyNames:WM,getOwnPropertySymbols:zM}=Object,{hasOwnProperty:UM}=Object.prototype;function Js(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Di(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 HM(e){return e?.[Symbol.toStringTag]}function hg(e){return WM(e).concat(zM(e))}const KM=Object.hasOwn||((e,t)=>UM.call(e,t));function yr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const GM="__v",VM="__o",XM="_owner",{getOwnPropertyDescriptor:pg,keys:dg}=Object;function YM(e,t){return e.byteLength===t.byteLength&&va(new Uint8Array(e),new Uint8Array(t))}function ZM(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 JM(e,t){return e.byteLength===t.byteLength&&va(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function QM(e,t){return yr(e.getTime(),t.getTime())}function eI(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function tI(e,t){return e===t}function vg(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 h=o.value,d=u.value;if(r.equals(h[0],d[0],c,l,e,t,r)&&r.equals(h[1],d[1],h[0],d[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;c++}return!0}const rI=yr;function nI(e,t,r){const n=dg(e);let i=n.length;if(dg(t).length!==i)return!1;for(;i-- >0;)if(!vw(e,t,r,n[i]))return!1;return!0}function wn(e,t,r){const n=hg(e);let i=n.length;if(hg(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!vw(e,t,r,a)||(o=pg(e,a),u=pg(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function iI(e,t){return yr(e.valueOf(),t.valueOf())}function aI(e,t){return e.source===t.source&&e.flags===t.flags}function yg(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 va(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 oI(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 vw(e,t,r,n){return(n===XM||n===VM||n===GM)&&(e.$$typeof||t.$$typeof)?!0:KM(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const uI="[object ArrayBuffer]",cI="[object Arguments]",sI="[object Boolean]",lI="[object DataView]",fI="[object Date]",hI="[object Error]",pI="[object Map]",dI="[object Number]",vI="[object Object]",yI="[object RegExp]",mI="[object Set]",gI="[object String]",bI={"[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},xI="[object URL]",wI=Object.prototype.toString;function OI({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:h,areUrlsEqual:d,unknownTagComparators:y}){return function(p,g,b){if(p===g)return!0;if(p==null||g==null)return!1;const w=typeof p;if(w!==typeof g)return!1;if(w!=="object")return w==="number"?u(p,g,b):w==="function"?a(p,g,b):!1;const O=p.constructor;if(O!==g.constructor)return!1;if(O===Object)return c(p,g,b);if(Array.isArray(p))return t(p,g,b);if(O===Date)return n(p,g,b);if(O===RegExp)return f(p,g,b);if(O===Map)return o(p,g,b);if(O===Set)return l(p,g,b);const m=wI.call(p);if(m===fI)return n(p,g,b);if(m===yI)return f(p,g,b);if(m===pI)return o(p,g,b);if(m===mI)return l(p,g,b);if(m===vI)return typeof p.then!="function"&&typeof g.then!="function"&&c(p,g,b);if(m===xI)return d(p,g,b);if(m===hI)return i(p,g,b);if(m===cI)return c(p,g,b);if(bI[m])return h(p,g,b);if(m===uI)return e(p,g,b);if(m===lI)return r(p,g,b);if(m===sI||m===dI||m===gI)return s(p,g,b);if(y){let x=y[m];if(!x){const _=HM(p);_&&(x=y[_])}if(x)return x(p,g,b)}return!1}}function _I({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:YM,areArraysEqual:r?wn:ZM,areDataViewsEqual:JM,areDatesEqual:QM,areErrorsEqual:eI,areFunctionsEqual:tI,areMapsEqual:r?Js(vg,wn):vg,areNumbersEqual:rI,areObjectsEqual:r?wn:nI,arePrimitiveWrappersEqual:iI,areRegExpsEqual:aI,areSetsEqual:r?Js(yg,wn):yg,areTypedArraysEqual:r?Js(va,wn):va,areUrlsEqual:oI,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Di(n.areArraysEqual),a=Di(n.areMapsEqual),o=Di(n.areObjectsEqual),u=Di(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function AI(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function SI({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 PI=Bt();Bt({strict:!0});Bt({circular:!0});Bt({circular:!0,strict:!0});Bt({createInternalComparator:()=>yr});Bt({strict:!0,createInternalComparator:()=>yr});Bt({circular:!0,createInternalComparator:()=>yr});Bt({circular:!0,createInternalComparator:()=>yr,strict:!0});function Bt(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=_I(e),o=OI(a),u=r?r(o):AI(o);return SI({circular:t,comparator:o,createState:n,equals:u,strict:i})}function TI(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function mg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):TI(i)};requestAnimationFrame(n)}function hf(e){"@babel/helpers - typeof";return hf=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},hf(e)}function EI(e){return II(e)||MI(e)||$I(e)||jI()}function jI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $I(e,t){if(e){if(typeof e=="string")return gg(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 gg(e,t)}}function gg(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 MI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function II(e){if(Array.isArray(e))return e}function CI(){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=EI(o),c=u[0],s=u.slice(1);if(typeof c=="number"){mg(i.bind(null,s),c);return}i(c),mg(i.bind(null,s));return}hf(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 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 bg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bg(Object(r),!0).forEach(function(n){yw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yw(e,t,r){return t=kI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kI(e){var t=RI(e,"string");return ti(t)==="symbol"?t:String(t)}function RI(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)}var DI=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},NI=function(t){return t},qI=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},jn=function(t,r){return Object.keys(r).reduce(function(n,i){return xg(xg({},n),{},yw({},i,t(i,r[i])))},{})},wg=function(t,r,n){return t.map(function(i){return"".concat(qI(i)," ").concat(r,"ms ").concat(n)}).join(",")};function LI(e,t){return WI(e)||FI(e,t)||mw(e,t)||BI()}function BI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FI(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 WI(e){if(Array.isArray(e))return e}function zI(e){return KI(e)||HI(e)||mw(e)||UI()}function UI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mw(e,t){if(e){if(typeof e=="string")return pf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pf(e,t)}}function HI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KI(e){if(Array.isArray(e))return pf(e)}function pf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ya=1e-4,gw=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},bw=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Og=function(t,r){return function(n){var i=gw(t,r);return bw(i,n)}},GI=function(t,r){return function(n){var i=gw(t,r),a=[].concat(zI(i.map(function(o,u){return o*u}).slice(1)),[0]);return bw(a,n)}},_g=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var s=c[1].split(")")[0].split(",").map(function(p){return parseFloat(p)}),f=LI(s,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=Og(i,o),h=Og(a,u),d=GI(i,o),y=function(g){return g>1?1:g<0?0:g},v=function(g){for(var b=g>1?1:g,w=b,O=0;O<8;++O){var m=l(w)-b,x=d(w);if(Math.abs(m-b)<ya||x<ya)return h(w);w=y(w-m/x)}return h(w)};return v.isStepper=!1,v},VI=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,c=function(f,l,h){var d=-(f-l)*n,y=h*a,v=h+(d-y)*u/1e3,p=h*u/1e3+f;return Math.abs(p-l)<ya&&Math.abs(v)<ya?[l,0]:[p,v]};return c.isStepper=!0,c.dt=u,c},XI=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 _g(i);case"spring":return VI();default:if(i.split("(")[0]==="cubic-bezier")return _g(i)}return typeof i=="function"?i:null};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 Ag(e){return JI(e)||ZI(e)||xw(e)||YI()}function YI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JI(e){if(Array.isArray(e))return vf(e)}function Sg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sg(Object(r),!0).forEach(function(n){df(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function df(e,t,r){return t=QI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QI(e){var t=eC(e,"string");return ri(t)==="symbol"?t:String(t)}function eC(e,t){if(ri(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ri(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tC(e,t){return iC(e)||nC(e,t)||xw(e,t)||rC()}function rC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xw(e,t){if(e){if(typeof e=="string")return vf(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 vf(e,t)}}function vf(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 nC(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 iC(e){if(Array.isArray(e))return e}var ma=function(t,r,n){return t+(r-t)*n},yf=function(t){var r=t.from,n=t.to;return r!==n},aC=function e(t,r,n){var i=jn(function(a,o){if(yf(o)){var u=t(o.from,o.to,o.velocity),c=tC(u,2),s=c[0],f=c[1];return $e($e({},o),{},{from:s,velocity:f})}return o},r);return n<1?jn(function(a,o){return yf(o)?$e($e({},o),{},{velocity:ma(o.velocity,i[a].velocity,n),from:ma(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const oC=(function(e,t,r,n,i){var a=DI(e,t),o=a.reduce(function(p,g){return $e($e({},p),{},df({},g,[e[g],t[g]]))},{}),u=a.reduce(function(p,g){return $e($e({},p),{},df({},g,{from:e[g],velocity:0,to:t[g]}))},{}),c=-1,s,f,l=function(){return null},h=function(){return jn(function(g,b){return b.from},u)},d=function(){return!Object.values(u).filter(yf).length},y=function(g){s||(s=g);var b=g-s,w=b/r.dt;u=aC(r,u,w),i($e($e($e({},e),t),h())),s=g,d()||(c=requestAnimationFrame(l))},v=function(g){f||(f=g);var b=(g-f)/n,w=jn(function(m,x){return ma.apply(void 0,Ag(x).concat([r(b)]))},o);if(i($e($e($e({},e),t),w)),b<1)c=requestAnimationFrame(l);else{var O=jn(function(m,x){return ma.apply(void 0,Ag(x).concat([r(1)]))},o);i($e($e($e({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(c)}}});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)}var uC=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function cC(e,t){if(e==null)return{};var r=sC(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 sC(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 Qs(e){return pC(e)||hC(e)||fC(e)||lC()}function lC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fC(e,t){if(e){if(typeof e=="string")return mf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mf(e,t)}}function hC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pC(e){if(Array.isArray(e))return mf(e)}function mf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pg(Object(r),!0).forEach(function(n){Sn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sn(e,t,r){return t=ww(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vC(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,ww(n.key),n)}}function yC(e,t,r){return t&&vC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ww(e){var t=mC(e,"string");return Fr(t)==="symbol"?t:String(t)}function mC(e,t){if(Fr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gf(e,t)}function gf(e,t){return gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gf(e,t)}function bC(e){var t=xC();return function(){var n=ga(e),i;if(t){var a=ga(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return bf(this,i)}}function bf(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 xf(e)}function xf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xC(){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 ga(e){return ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ga(e)}var at=(function(e){gC(r,e);var t=bC(r);function r(n,i){var a;dC(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,s=o.from,f=o.to,l=o.steps,h=o.children,d=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(xf(a)),a.changeStyle=a.changeStyle.bind(xf(a)),!u||d<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),bf(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof h=="function")return a.state={style:s},bf(a);a.state={style:c?Sn({},c,s):s}}else a.state={style:{}};return a}return yC(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,c=a.attributeName,s=a.shouldReAnimate,f=a.to,l=a.from,h=this.state.style;if(u){if(!o){var d={style:c?Sn({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(d);return}if(!(PI(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&&h){var p={style:c?Sn({},c,v):v};(c&&h[c]!==v||!c&&h!==v)&&this.setState(p)}this.runAnimation(et(et({},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,h=i.onAnimationStart,d=oC(o,u,XI(s),c,this.changeStyle),y=function(){a.stopJSAnimation=d()};this.manager.start([h,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,h=l===void 0?0:l,d=function(v,p,g){if(g===0)return v;var b=p.duration,w=p.easing,O=w===void 0?"ease":w,m=p.style,x=p.properties,_=p.onAnimationEnd,A=g>0?o[g-1]:p,T=x||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(Qs(v),[a.runJSAnimation.bind(a,{from:A.style,to:m,duration:b,easing:O}),b]);var $=wg(T,b,O),P=et(et(et({},A.style),m),{},{transition:$});return[].concat(Qs(v),[P,b,_]).filter(NI)};return this.manager.start([c].concat(Qs(o.reduce(d,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=CI());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,s=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,h=i.steps,d=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof s=="function"||typeof d=="function"||s==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=u?Sn({},u,c):c,p=wg(Object.keys(v),o,s);y.start([f,a,et(et({},v),{},{transition:p}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=cC(i,uC),s=N.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||s===0||o<=0)return a;var l=function(d){var y=d.props,v=y.style,p=v===void 0?{}:v,g=y.className,b=N.cloneElement(d,et(et({},c),{},{style:et(et({},p),f),className:g}));return b};return s===1?l(N.Children.only(a)):S.createElement("div",null,N.Children.map(a,function(h){return l(h)}))}}]),r})(N.PureComponent);at.displayName="Animate";at.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};at.propTypes={from:ie.oneOfType([ie.object,ie.string]),to:ie.oneOfType([ie.object,ie.string]),attributeName:ie.string,duration:ie.number,begin:ie.number,easing:ie.oneOfType([ie.string,ie.func]),steps:ie.arrayOf(ie.shape({duration:ie.number.isRequired,style:ie.object.isRequired,easing:ie.oneOfType([ie.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ie.func]),properties:ie.arrayOf("string"),onAnimationEnd:ie.func})),children:ie.oneOfType([ie.node,ie.func]),isActive:ie.bool,canBegin:ie.bool,onAnimationEnd:ie.func,shouldReAnimate:ie.bool,onAnimationStart:ie.func,onAnimationReStart:ie.func};function ni(e){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ni(e)}function ba(){return ba=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},ba.apply(this,arguments)}function wC(e,t){return SC(e)||AC(e,t)||_C(e,t)||OC()}function OC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _C(e,t){if(e){if(typeof e=="string")return Tg(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 Tg(e,t)}}function Tg(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 AC(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 SC(e){if(Array.isArray(e))return e}function Eg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eg(Object(r),!0).forEach(function(n){PC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PC(e,t,r){return t=TC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TC(e){var t=EC(e,"string");return ni(t)=="symbol"?t:t+""}function EC(e,t){if(ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $g=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,c=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],h=0,d=4;h<d;h++)l[h]=a[h]>o?o:a[h];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(t+c*l[0],",").concat(r)),f+="L ".concat(t+n-c*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,`,
|
||
`).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,`,
|
||
`).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,`,
|
||
`).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,`
|
||
A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+c*y,",").concat(r,`
|
||
L `).concat(t+n-c*y,",").concat(r,`
|
||
A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n,",").concat(r+u*y,`
|
||
L `).concat(t+n,",").concat(r+i-u*y,`
|
||
A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n-c*y,",").concat(r+i,`
|
||
L `).concat(t+c*y,",").concat(r+i,`
|
||
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},jC=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,c=r.height;if(Math.abs(u)>0&&Math.abs(c)>0){var s=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+c),h=Math.max(o,o+c);return n>=s&&n<=f&&i>=l&&i<=h}return!1},$C={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zh=function(t){var r=jg(jg({},$C),t),n=N.useRef(),i=N.useState(-1),a=wC(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var c=r.x,s=r.y,f=r.width,l=r.height,h=r.radius,d=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,g=r.isAnimationActive,b=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||f===0||l===0)return null;var w=Z("recharts-rectangle",d);return b?S.createElement(at,{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:b},function(O){var m=O.width,x=O.height,_=O.x,A=O.y;return S.createElement(at,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,isActive:g,easing:y},S.createElement("path",ba({},U(r,!0),{className:w,d:$g(_,A,m,x,h),ref:n})))}):S.createElement("path",ba({},U(r,!0),{className:w,d:$g(c,s,f,l,h)}))},MC=["points","className","baseLinePoints","connectNulls"];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 IC(e,t){if(e==null)return{};var r=CC(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 CC(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 Mg(e){return NC(e)||DC(e)||RC(e)||kC()}function kC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RC(e,t){if(e){if(typeof e=="string")return wf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wf(e,t)}}function DC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NC(e){if(Array.isArray(e))return wf(e)}function wf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ig=function(t){return t&&t.x===+t.x&&t.y===+t.y},qC=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){Ig(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),Ig(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},$n=function(t,r){var n=qC(t);r&&(n=[n.reduce(function(a,o){return[].concat(Mg(a),Mg(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},LC=function(t,r,n){var i=$n(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat($n(r.reverse(),n).slice(1))},BC=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=IC(t,MC);if(!r||!r.length)return null;var u=Z("recharts-polygon",n);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",s=LC(r,i,a);return S.createElement("g",{className:u},S.createElement("path",Ar({},U(o,!0),{fill:s.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:s})),c?S.createElement("path",Ar({},U(o,!0),{fill:"none",d:$n(r,a)})):null,c?S.createElement("path",Ar({},U(o,!0),{fill:"none",d:$n(i,a)})):null)}var f=$n(r,a);return S.createElement("path",Ar({},U(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function Of(){return Of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Of.apply(this,arguments)}var wi=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Z("recharts-dot",a);return r===+r&&n===+n&&i===+i?N.createElement("circle",Of({},U(t,!1),Fi(t),{className:o,cx:r,cy:n,r:i})):null};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)}var FC=["x","y","top","left","width","height","className"];function _f(){return _f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_f.apply(this,arguments)}function Cg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function WC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cg(Object(r),!0).forEach(function(n){zC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zC(e,t,r){return t=UC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UC(e){var t=HC(e,"string");return ii(t)=="symbol"?t:t+""}function HC(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)}function KC(e,t){if(e==null)return{};var r=GC(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 GC(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 VC=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},XC=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,c=t.left,s=c===void 0?0:c,f=t.width,l=f===void 0?0:f,h=t.height,d=h===void 0?0:h,y=t.className,v=KC(t,FC),p=WC({x:n,y:a,top:u,left:s,width:l,height:d},v);return!q(n)||!q(a)||!q(l)||!q(d)||!q(u)||!q(s)?null:S.createElement("path",_f({},U(p,!0),{className:Z("recharts-cross",y),d:VC(n,a,l,d,u,s)}))},el,kg;function YC(){if(kg)return el;kg=1;var e=io(),t=Dx(),r=dt();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return el=n,el}var ZC=YC();const JC=oe(ZC);var tl,Rg;function QC(){if(Rg)return tl;Rg=1;var e=io(),t=dt(),r=Nx();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return tl=n,tl}var ek=QC();const tk=oe(ek);var rk=["cx","cy","angle","ticks","axisLine"],nk=["ticks","tick","angle","tickFormatter","stroke"];function Wr(e){"@babel/helpers - typeof";return Wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(e)}function 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 Dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dg(Object(r),!0).forEach(function(n){co(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ng(e,t){if(e==null)return{};var r=ik(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 ik(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ak(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_w(n.key),n)}}function ok(e,t,r){return t&&qg(e.prototype,t),r&&qg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uk(e,t,r){return t=xa(t),ck(e,Ow()?Reflect.construct(t,r||[],xa(e).constructor):t.apply(e,r))}function ck(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 sk(e)}function sk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ow(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ow=function(){return!!e})()}function xa(e){return xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xa(e)}function lk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Af(e,t)}function Af(e,t){return Af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Af(e,t)}function co(e,t,r){return t=_w(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _w(e){var t=fk(e,"string");return Wr(t)=="symbol"?t:t+""}function fk(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 so=(function(e){function t(){return ak(this,t),uk(this,t,arguments)}return lk(t,e),ok(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,c=a.cy;return le(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=JC(u,function(f){return f.coordinate||0}),s=tk(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=Ng(n,rk),f=u.reduce(function(y,v){return[Math.min(y[0],v.coordinate),Math.max(y[1],v.coordinate)]},[1/0,-1/0]),l=le(i,a,f[0],o),h=le(i,a,f[1],o),d=Kt(Kt(Kt({},U(s,!1)),{},{fill:"none"},U(c,!1)),{},{x1:l.x,y1:l.y,x2:h.x,y2:h.y});return S.createElement("line",Mn({className:"recharts-polar-radius-axis-line"},d))}},{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=Ng(i,nk),l=this.getTickTextAnchor(),h=U(f,!1),d=U(o,!1),y=a.map(function(v,p){var g=n.getTickValueCoord(v),b=Kt(Kt(Kt(Kt({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(g.x,", ").concat(g.y,")")},h),{},{stroke:"none",fill:s},d),{},{index:p},g),{},{payload:v});return S.createElement(ee,Mn({className:Z("recharts-polar-radius-axis-tick",fw(o)),key:"tick-".concat(v.coordinate)},or(n.props,v,p)),t.renderTickItem(o,b,c?c(v.value,p):v.value))});return S.createElement(ee,{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(ee,{className:Z("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Ee.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):G(n)?o=n(i):o=S.createElement(ur,Mn({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(N.PureComponent);co(so,"displayName","PolarRadiusAxis");co(so,"axisType","radiusAxis");co(so,"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 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 Yt(){return Yt=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},Yt.apply(this,arguments)}function Lg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lg(Object(r),!0).forEach(function(n){lo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Sw(n.key),n)}}function pk(e,t,r){return t&&Bg(e.prototype,t),r&&Bg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dk(e,t,r){return t=wa(t),vk(e,Aw()?Reflect.construct(t,r||[],wa(e).constructor):t.apply(e,r))}function vk(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 yk(e)}function yk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Aw=function(){return!!e})()}function wa(e){return wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wa(e)}function mk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sf(e,t)}function Sf(e,t){return Sf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sf(e,t)}function lo(e,t,r){return t=Sw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sw(e){var t=gk(e,"string");return zr(t)=="symbol"?t:t+""}function gk(e,t){if(zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bk=Math.PI/180,Fg=1e-5,fo=(function(e){function t(){return hk(this,t),dk(this,t,arguments)}return mk(t,e),pk(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=le(a,o,u,n.coordinate),h=le(a,o,u+(c==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*bk),o;return a>Fg?o=i==="outer"?"start":"end":a<-Fg?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({},U(this.props,!1)),{},{fill:"none"},U(u,!1));if(c==="circle")return S.createElement(wi,Yt({className:"recharts-polar-angle-axis-line"},s,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(h){return le(i,a,o,h.coordinate)});return S.createElement(BC,Yt({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=U(this.props,!1),l=U(o,!1),h=Gt(Gt({},f),{},{fill:"none"},U(u,!1)),d=a.map(function(y,v){var p=n.getTickLineCoord(y),g=n.getTickTextAnchor(y),b=Gt(Gt(Gt({textAnchor:g},f),{},{stroke:"none",fill:s},l),{},{index:v,payload:y,x:p.x2,y:p.y2});return S.createElement(ee,Yt({className:Z("recharts-polar-angle-axis-tick",fw(o)),key:"tick-".concat(y.coordinate)},or(n.props,y,v)),u&&S.createElement("line",Yt({className:"recharts-polar-angle-axis-tick-line"},h,p)),o&&t.renderTickItem(o,b,c?c(y.value,v):y.value))});return S.createElement(ee,{className:"recharts-polar-angle-axis-ticks"},d)}},{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(ee,{className:Z("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):G(n)?o=n(i):o=S.createElement(ur,Yt({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(N.PureComponent);lo(fo,"displayName","PolarAngleAxis");lo(fo,"axisType","angleAxis");lo(fo,"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 rl,Wg;function xk(){if(Wg)return rl;Wg=1;var e=R0(),t=e(Object.getPrototypeOf,Object);return rl=t,rl}var nl,zg;function wk(){if(zg)return nl;zg=1;var e=Pt(),t=xk(),r=Tt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,c=o.call(Object);function s(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var h=u.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==c}return nl=s,nl}var Ok=wk();const _k=oe(Ok);var il,Ug;function Ak(){if(Ug)return il;Ug=1;var e=Pt(),t=Tt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return il=n,il}var Sk=Ak();const Pk=oe(Sk);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 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 Tk(e,t){return Mk(e)||$k(e,t)||jk(e,t)||Ek()}function Ek(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jk(e,t){if(e){if(typeof e=="string")return Hg(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 Hg(e,t)}}function Hg(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 $k(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function Mk(e){if(Array.isArray(e))return e}function Kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kg(Object(r),!0).forEach(function(n){Ik(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ik(e,t,r){return t=Ck(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ck(e){var t=kk(e,"string");return ai(t)=="symbol"?t:t+""}function kk(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)}var Vg=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},Rk={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Dk=function(t){var r=Gg(Gg({},Rk),t),n=N.useRef(),i=N.useState(-1),a=Tk(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var c=r.x,s=r.y,f=r.upperWidth,l=r.lowerWidth,h=r.height,d=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,g=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var b=Z("recharts-trapezoid",d);return g?S.createElement(at,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:s},to:{upperWidth:f,lowerWidth:l,height:h,x:c,y:s},duration:v,animationEasing:y,isActive:g},function(w){var O=w.upperWidth,m=w.lowerWidth,x=w.height,_=w.x,A=w.y;return S.createElement(at,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:y},S.createElement("path",Oa({},U(r,!0),{className:b,d:Vg(_,A,O,m,x),ref:n})))}):S.createElement("g",null,S.createElement("path",Oa({},U(r,!0),{className:b,d:Vg(c,s,f,l,h)})))},Nk=["option","shapeType","propTransformer","activeClassName","isActive"];function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function qk(e,t){if(e==null)return{};var r=Lk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Xg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xg(Object(r),!0).forEach(function(n){Bk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bk(e,t,r){return t=Fk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fk(e){var t=Wk(e,"string");return oi(t)=="symbol"?t:t+""}function Wk(e,t){if(oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zk(e,t){return _a(_a({},t),e)}function Uk(e,t){return e==="symbols"}function Yg(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return S.createElement(zh,r);case"trapezoid":return S.createElement(Dk,r);case"sector":return S.createElement(dw,r);case"symbols":if(Uk(t))return S.createElement(uh,r);break;default:return null}}function Hk(e){return N.isValidElement(e)?e.props:e}function Pw(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?zk:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,c=qk(e,Nk),s;if(N.isValidElement(t))s=N.cloneElement(t,_a(_a({},c),Hk(t)));else if(G(t))s=t(c);else if(_k(t)&&!Pk(t)){var f=i(t,c);s=S.createElement(Yg,{shapeType:r,elementProps:f})}else{var l=c;s=S.createElement(Yg,{shapeType:r,elementProps:l})}return u?S.createElement(ee,{className:o},s):s}function ho(e,t){return t!=null&&"trapezoids"in e.props}function po(e,t){return t!=null&&"sectors"in e.props}function ui(e,t){return t!=null&&"points"in e.props}function Kk(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 Gk(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function Vk(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function Xk(e,t){var r;return ho(e,t)?r=Kk:po(e,t)?r=Gk:ui(e,t)&&(r=Vk),r}function Yk(e,t){var r;return ho(e,t)?r="trapezoids":po(e,t)?r="sectors":ui(e,t)&&(r="points"),r}function Zk(e,t){if(ho(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(po(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 ui(e,t)?t.payload:{}}function Jk(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=Yk(r,t),a=Zk(r,t),o=n.filter(function(c,s){var f=cr(a,c),l=r.props[i].filter(function(y){var v=Xk(r,t);return v(y,t)}),h=r.props[i].indexOf(l[l.length-1]),d=s===h;return f&&d}),u=n.indexOf(o[o.length-1]);return u}var Li;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 Sr(){return Sr=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},Sr.apply(this,arguments)}function Zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zg(Object(r),!0).forEach(function(n){Ye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ew(n.key),n)}}function eR(e,t,r){return t&&Jg(e.prototype,t),r&&Jg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tR(e,t,r){return t=Aa(t),rR(e,Tw()?Reflect.construct(t,r||[],Aa(e).constructor):t.apply(e,r))}function rR(e,t){if(t&&(Ur(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nR(e)}function nR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tw=function(){return!!e})()}function Aa(e){return Aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Aa(e)}function iR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pf(e,t)}function Pf(e,t){return Pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pf(e,t)}function Ye(e,t,r){return t=Ew(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ew(e){var t=aR(e,"string");return Ur(t)=="symbol"?t:t+""}function aR(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 String(e)}var Ft=(function(e){function t(r){var n;return Qk(this,t),n=tR(this,t,[r]),Ye(n,"pieRef",null),Ye(n,"sectorRefs",[]),Ye(n,"id",pr("recharts-pie-")),Ye(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),G(i)&&i()}),Ye(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),G(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return iR(t,e),eR(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=U(this.props,!1),l=U(o,!1),h=U(u,!1),d=o&&o.offsetRadius||20,y=n.map(function(v,p){var g=(v.startAngle+v.endAngle)/2,b=le(v.cx,v.cy,v.outerRadius+d,g),w=ce(ce(ce(ce({},f),v),{},{stroke:"none"},l),{},{index:p,textAnchor:t.getTextAnchor(b.x,v.cx)},b),O=ce(ce(ce(ce({},f),v),{},{fill:"none",stroke:v.fill},h),{},{index:p,points:[le(v.cx,v.cy,v.outerRadius,g),b]}),m=c;return Y(c)&&Y(s)?m="value":Y(c)&&(m=s),S.createElement(ee,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(p)},u&&t.renderLabelLineItem(u,O,"line"),t.renderLabelItem(o,w,ye(v,m)))});return S.createElement(ee,{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?.startAngle===0&&s?.endAngle===0&&n.length!==1)return null;var l=i.isActiveIndex(f),h=c&&i.hasActiveIndex()?c:null,d=l?o:h,y=ce(ce({},s),{},{stroke:u?s.fill:s.stroke,tabIndex:-1});return S.createElement(ee,Sr({ref:function(p){p&&!i.sectorRefs.includes(p)&&i.sectorRefs.push(p)},tabIndex:-1,className:"recharts-pie-sector"},or(i.props,s,f),{key:"sector-".concat(s?.startAngle,"-").concat(s?.endAngle,"-").concat(s.midAngle,"-").concat(f)}),S.createElement(Pw,Sr({option:d,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,h=l.prevSectors,d=l.prevIsAnimationActive;return S.createElement(at,{begin:u,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(d),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var v=y.t,p=[],g=a&&a[0],b=g.startAngle;return a.forEach(function(w,O){var m=h&&h[O],x=O>0?He(w,"paddingAngle",0):0;if(m){var _=Ae(m.endAngle-m.startAngle,w.endAngle-w.startAngle),A=ce(ce({},w),{},{startAngle:b+x,endAngle:b+_(v)+x});p.push(A),b=A.endAngle}else{var T=w.endAngle,$=w.startAngle,P=Ae(0,T-$),E=P(v),j=ce(ce({},w),{},{startAngle:b+x,endAngle:b+E+x});p.push(j),b=j.endAngle}}),S.createElement(ee,null,n.renderSectorsStatically(p))})}},{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||!cr(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,h=i.outerRadius,d=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!q(s)||!q(f)||!q(l)||!q(h))return null;var v=Z("recharts-pie",u);return S.createElement(ee,{tabIndex:this.props.rootTabIndex,className:v,ref:function(g){n.pieRef=g}},this.renderSectors(),c&&this.renderLabels(o),Ee.renderCallByParent(this.props,null,!1),(!d||y)&<.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(G(n))return n(i);var o=Z("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return S.createElement(ir,Sr({},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(G(n)&&(o=n(i),S.isValidElement(o)))return o;var u=Z("recharts-pie-label-text",typeof n!="boolean"&&!G(n)?n.className:"");return S.createElement(ur,Sr({},i,{alignmentBaseline:"middle",className:u}),o)}}])})(N.PureComponent);Li=Ft;Ye(Ft,"displayName","Pie");Ye(Ft,"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:!Nt.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Ye(Ft,"parseDeltaAngle",function(e,t){var r=Ce(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Ye(Ft,"getRealPieData",function(e){var t=e.data,r=e.children,n=U(e,!1),i=Ke(r,mh);return t&&t.length?t.map(function(a,o){return ce(ce(ce({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return ce(ce({},n),a.props)}):[]});Ye(Ft,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=lw(i,a),u=n+ke(e.cx,i,i/2),c=r+ke(e.cy,a,a/2),s=ke(e.innerRadius,o,0),f=ke(e.outerRadius,o,o*.8),l=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:c,innerRadius:s,outerRadius:f,maxRadius:l}});Ye(Ft,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?ce(ce({},t.type.defaultProps),t.props):t.props,i=Li.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,h=n.tooltipType,d=Math.abs(n.minAngle),y=Li.parseCoordinateOfPie(n,r),v=Li.parseDeltaAngle(o,u),p=Math.abs(v),g=s;Y(s)&&Y(l)?(it(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),g="value"):Y(s)&&(it(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),g=l);var b=i.filter(function(A){return ye(A,g,0)!==0}).length,w=(p>=360?b:b-1)*c,O=p-b*d-w,m=i.reduce(function(A,T){var $=ye(T,g,0);return A+(q($)?$:0)},0),x;if(m>0){var _;x=i.map(function(A,T){var $=ye(A,g,0),P=ye(A,f,T),E=(q($)?$:0)/m,j;T?j=_.endAngle+Ce(v)*c*($!==0?1:0):j=o;var I=j+Ce(v)*(($!==0?d:0)+E*O),M=(j+I)/2,k=(y.innerRadius+y.outerRadius)/2,R=[{name:P,value:$,payload:A,dataKey:g,type:h}],L=le(y.cx,y.cy,k,M);return _=ce(ce(ce({percent:E,cornerRadius:a,name:P,tooltipPayload:R,midAngle:M,middleRadius:k,tooltipPosition:L},A),y),{},{value:ye(A,g),startAngle:j,endAngle:I,payload:A,paddingAngle:Ce(v)*c}),_})}return ce(ce({},y),{},{sectors:x,data:i})});var al,Qg;function oR(){if(Qg)return al;Qg=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,c=t(e((i-n)/(a||1)),0),s=Array(c);c--;)s[o?c:++u]=n,n+=a;return s}return al=r,al}var ol,eb;function jw(){if(eb)return ol;eb=1;var e=Z0(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return ol=n,ol}var ul,tb;function uR(){if(tb)return ul;tb=1;var e=oR(),t=Za(),r=jw();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return ul=n,ul}var cl,rb;function cR(){if(rb)return cl;rb=1;var e=uR(),t=e();return cl=t,cl}var sR=cR();const Sa=oe(sR);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 nb(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 ib(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nb(Object(r),!0).forEach(function(n){$w(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $w(e,t,r){return t=lR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lR(e){var t=fR(e,"string");return ci(t)=="symbol"?t:t+""}function fR(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 hR=["Webkit","Moz","O","ms"],pR=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=hR.reduce(function(a,o){return ib(ib({},a),{},$w({},o+n,r))},{});return i[t]=r,i};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 Pa(){return Pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pa.apply(this,arguments)}function ab(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ab(Object(r),!0).forEach(function(n){We(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ab(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ob(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,Iw(n.key),n)}}function vR(e,t,r){return t&&ob(e.prototype,t),r&&ob(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function yR(e,t,r){return t=Ta(t),mR(e,Mw()?Reflect.construct(t,r||[],Ta(e).constructor):t.apply(e,r))}function mR(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 gR(e)}function gR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Mw=function(){return!!e})()}function Ta(e){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ta(e)}function bR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tf(e,t)}function Tf(e,t){return Tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tf(e,t)}function We(e,t,r){return t=Iw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iw(e){var t=xR(e,"string");return Hr(t)=="symbol"?t:t+""}function xR(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 wR=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=Tn().domain(Sa(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}},ub=function(t){return t.changedTouches&&!!t.changedTouches.length},Kr=(function(e){function t(r){var n;return dR(this,t),n=yR(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?.({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=ub(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 bR(t,e),vR(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,c=u.gap,s=u.data,f=s.length-1,l=Math.min(i,a),h=Math.max(i,a),d=t.getIndexInRange(o,l),y=t.getIndexInRange(o,h);return{startIndex:d-d%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=ye(a[n],u,n);return G(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,c=this.props,s=c.x,f=c.width,l=c.travellerWidth,h=c.startIndex,d=c.endIndex,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 p=this.getIndex({startX:o+v,endX:u+v});(p.startIndex!==h||p.endIndex!==d)&&y&&y(p),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=ub(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,c=i.startX,s=this.state[o],f=this.props,l=f.x,h=f.width,d=f.travellerWidth,y=f.onChange,v=f.gap,p=f.data,g={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,l+h-d-s):b<0&&(b=Math.max(b,l-s)),g[o]=s+b;var w=this.getIndex(g),O=w.startIndex,m=w.endIndex,x=function(){var A=p.length-1;return o==="startX"&&(u>c?O%v===0:m%v===0)||u<c&&m===A||o==="endX"&&(u>c?m%v===0:O%v===0)||u>c&&m===A};this.setState(We(We({},o,s+b),"brushMoveStartX",n.pageX),function(){y&&x()&&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 h=l+n;if(!(h===-1||h>=u.length)){var d=u[h];i==="startX"&&d>=s||i==="endX"&&d<=c||this.setState(We({},i,d),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.fill,s=n.stroke;return 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=N.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,h=c.traveller,d=c.ariaLabel,y=c.data,v=c.startIndex,p=c.endIndex,g=Math.max(n,this.props.x),b=sl(sl({},U(this.props,!1)),{},{x:g,y:s,width:f,height:l}),w=d||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[p])===null||o===void 0?void 0:o.name);return S.createElement(ee,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,b))}},{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,h=f.endX,d=5,y={pointerEvents:"none",fill:s};return S.createElement(ee,{className:"recharts-brush-texts"},S.createElement(ur,Pa({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-d,y:o+u/2},y),this.getTextOfTick(i)),S.createElement(ur,Pa({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+c+d,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,c=n.y,s=n.width,f=n.height,l=n.alwaysShowText,h=this.state,d=h.startX,y=h.endX,v=h.isTextActive,p=h.isSlideMoving,g=h.isTravellerMoving,b=h.isTravellerFocused;if(!i||!i.length||!q(u)||!q(c)||!q(s)||!q(f)||s<=0||f<=0)return null;var w=Z("recharts-brush",a),O=S.Children.count(o)===1,m=pR("userSelect","none");return S.createElement(ee,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(d,y),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(y,"endX"),(v||p||g||b||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):G(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 sl({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?wR({data:a,width:o,x:u,travellerWidth:c,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var h=i.scale.domain().map(function(d){return i.scale(d)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}])})(N.PureComponent);We(Kr,"displayName","Brush");We(Kr,"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 ll,cb;function OR(){if(cb)return ll;cb=1;var e=dh();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return ll=t,ll}var fl,sb;function _R(){if(sb)return fl;sb=1;var e=E0(),t=dt(),r=OR(),n=Le(),i=Za();function a(o,u,c){var s=n(o)?e:r;return c&&i(o,u,c)&&(u=void 0),s(o,t(u,3))}return fl=a,fl}var AR=_R();const SR=oe(AR);var ft=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},hl,lb;function PR(){if(lb)return hl;lb=1;var e=K0();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return hl=t,hl}var pl,fb;function TR(){if(fb)return pl;fb=1;var e=PR(),t=U0(),r=dt();function n(i,a){var o={};return a=r(a,3),t(i,function(u,c,s){e(o,c,a(u,c,s))}),o}return pl=n,pl}var ER=TR();const jR=oe(ER);var dl,hb;function $R(){if(hb)return dl;hb=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return dl=e,dl}var vl,pb;function MR(){if(pb)return vl;pb=1;var e=dh();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return vl=t,vl}var yl,db;function IR(){if(db)return yl;db=1;var e=$R(),t=MR(),r=dt(),n=Le(),i=Za();function a(o,u,c){var s=n(o)?e:t;return c&&i(o,u,c)&&(u=void 0),s(o,r(u,3))}return yl=a,yl}var CR=IR();const Cw=oe(CR);var kR=["x","y"];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 Ef(){return Ef=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},Ef.apply(this,arguments)}function vb(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 On(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vb(Object(r),!0).forEach(function(n){RR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RR(e,t,r){return t=DR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DR(e){var t=NR(e,"string");return si(t)=="symbol"?t:t+""}function NR(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 qR(e,t){if(e==null)return{};var r=LR(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 LR(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 BR(e,t){var r=e.x,n=e.y,i=qR(e,kR),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),h=parseInt(l,10);return On(On(On(On(On({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function yb(e){return S.createElement(Pw,Ef({shapeType:"rectangle",propTransformer:BR,activeClassName:"recharts-active-bar"},e))}var FR=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=q(n)||c_(n);return a?t(n,i):(a||lr(),r)}},WR=["value","background"],kw;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 zR(e,t){if(e==null)return{};var r=UR(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 UR(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 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 mb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mb(Object(r),!0).forEach(function(n){kt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gb(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,Dw(n.key),n)}}function KR(e,t,r){return t&&gb(e.prototype,t),r&&gb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function GR(e,t,r){return t=ja(t),VR(e,Rw()?Reflect.construct(t,r||[],ja(e).constructor):t.apply(e,r))}function VR(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 XR(e)}function XR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rw=function(){return!!e})()}function ja(e){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ja(e)}function YR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jf(e,t)}function jf(e,t){return jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jf(e,t)}function kt(e,t,r){return t=Dw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dw(e){var t=ZR(e,"string");return Gr(t)=="symbol"?t:t+""}function ZR(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 hn=(function(e){function t(){var r;HR(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=GR(this,t,[].concat(i)),kt(r,"state",{isAnimationFinished:!1}),kt(r,"id",pr("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 YR(t,e),KR(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=U(this.props,!1);return n&&n.map(function(l,h){var d=h===c,y=d?s:o,v=ge(ge(ge({},f),l),{},{isActive:d,option:y,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return S.createElement(ee,Ea({className:"recharts-bar-rectangle"},or(i.props,l,h),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(h)}),S.createElement(yb,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,h=this.state.prevData;return S.createElement(at,{begin:c,duration:s,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var y=d.t,v=a.map(function(p,g){var b=h&&h[g];if(b){var w=Ae(b.x,p.x),O=Ae(b.y,p.y),m=Ae(b.width,p.width),x=Ae(b.height,p.height);return ge(ge({},p),{},{x:w(y),y:O(y),width:m(y),height:x(y)})}if(o==="horizontal"){var _=Ae(0,p.height),A=_(y);return ge(ge({},p),{},{y:p.y+p.height-A,height:A})}var T=Ae(0,p.width),$=T(y);return ge(ge({},p),{},{width:$})});return S.createElement(ee,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||!cr(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=U(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,h=zR(s,WR);if(!l)return null;var d=ge(ge(ge(ge(ge({},h),{},{fill:"#eee"},l),c),or(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return S.createElement(yb,Ea({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},d))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=Ke(f,xi);if(!l)return null;var h=s==="vertical"?o[0].height/2:o[0].width/2,d=function(p,g){var b=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:b,errorVal:ye(p,g)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(ee,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:h,dataPointFormatter:d})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,c=n.yAxis,s=n.left,f=n.top,l=n.width,h=n.height,d=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,g=Z("recharts-bar",o),b=u&&u.allowDataOverflow,w=c&&c.allowDataOverflow,O=b||w,m=Y(v)?this.id:v;return S.createElement(ee,{className:g},b||w?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(m)},S.createElement("rect",{x:b?s:s-l/2,y:w?f:f-h/2,width:b?l:l*2,height:w?h:h*2}))):null,S.createElement(ee,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!d||p)&<.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(N.PureComponent);kw=hn;kt(hn,"displayName","Bar");kt(hn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Nt.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});kt(hn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,c=e.yAxisTicks,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,d=O$(n,r);if(!d)return null;var y=t.layout,v=r.type.defaultProps,p=v!==void 0?ge(ge({},v),r.props):r.props,g=p.dataKey,b=p.children,w=p.minPointSize,O=y==="horizontal"?o:a,m=s?O.scale.domain():null,x=j$({numericAxis:O}),_=Ke(b,mh),A=l.map(function(T,$){var P,E,j,I,M,k;s?P=_$(s[f+$],m):(P=ye(T,g),Array.isArray(P)||(P=[x,P]));var R=FR(w,kw.defaultProps.minPointSize)(P[1],$);if(y==="horizontal"){var L,B=[o.scale(P[0]),o.scale(P[1])],H=B[0],V=B[1];E=Km({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:T,index:$}),j=(L=V??H)!==null&&L!==void 0?L:void 0,I=d.size;var W=H-V;if(M=Number.isNaN(W)?0:W,k={x:E,y:o.y,width:I,height:o.height},Math.abs(R)>0&&Math.abs(M)<Math.abs(R)){var X=Ce(M||R)*(Math.abs(R)-Math.abs(M));j-=X,M+=X}}else{var fe=[a.scale(P[0]),a.scale(P[1])],me=fe[0],Be=fe[1];if(E=me,j=Km({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:T,index:$}),I=Be-me,M=d.size,k={x:a.x,y:j,width:a.width,height:M},Math.abs(R)>0&&Math.abs(I)<Math.abs(R)){var Wt=Ce(I||R)*(Math.abs(R)-Math.abs(I));I+=Wt}}return ge(ge(ge({},T),{},{x:E,y:j,width:I,height:M,value:s?P:P[1],payload:T,background:k},_&&_[$]&&_[$].props),{},{tooltipPayload:[cw(r,T)],tooltipPosition:{x:E+I/2,y:j+M/2}})});return ge({data:A,layout:y},h)});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 JR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nw(n.key),n)}}function QR(e,t,r){return t&&bb(e.prototype,t),r&&bb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xb(Object(r),!0).forEach(function(n){vo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vo(e,t,r){return t=Nw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nw(e){var t=eD(e,"string");return li(t)=="symbol"?t:t+""}function eD(e,t){if(li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Uh=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.layout,s=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},h=!!ze(s,hn);return f.reduce(function(d,y){var v=r[y],p=v.orientation,g=v.domain,b=v.padding,w=b===void 0?{}:b,O=v.mirror,m=v.reversed,x="".concat(p).concat(O?"Mirror":""),_,A,T,$,P;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var E=g[1]-g[0],j=1/0,I=v.categoricalDomain.sort(f_);if(I.forEach(function(fe,me){me>0&&(j=Math.min((fe||0)-(I[me-1]||0),j))}),Number.isFinite(j)){var M=j/E,k=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=M*k/2),v.padding==="no-gap"){var R=ke(t.barCategoryGap,M*k),L=M*k/2;_=L-R-(L-R)/k*R}}}i==="xAxis"?A=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?A=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:A=v.range,m&&(A=[A[1],A[0]]);var B=iw(v,a,h),H=B.scale,V=B.realScaleType;H.domain(g).range(A),aw(H);var W=ow(H,tt(tt({},v),{},{realScaleType:V}));i==="xAxis"?(P=p==="top"&&!O||p==="bottom"&&O,T=n.left,$=l[x]-P*v.height):i==="yAxis"&&(P=p==="left"&&!O||p==="right"&&O,T=l[x]-P*v.width,$=n.top);var X=tt(tt(tt({},v),W),{},{realScaleType:V,x:T,y:$,scale:H,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[x]+=(P?-1:1)*X.height:v.hide||(l[x]+=(P?-1:1)*X.width),tt(tt({},d),{},vo({},y,X))},{})},qw=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)}},tD=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return qw({x:r,y:n},{x:i,y:a})},Lw=(function(){function e(t){JR(this,e),this.scale=t}return QR(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)}}])})();vo(Lw,"EPS",1e-4);var Hh=function(t){var r=Object.keys(t).reduce(function(n,i){return tt(tt({},n),{},vo({},i,Lw.create(t[i])))},{});return tt(tt({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return jR(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return Cw(i,function(a,o){return r[o].isInRange(a)})}})};function rD(e){return(e%180+180)%180}var nD=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=rD(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)},ml,wb;function iD(){if(wb)return ml;wb=1;var e=dt(),t=vi(),r=Xa();function n(i){return function(a,o,u){var c=Object(a);if(!t(a)){var s=e(o,3);a=r(a),o=function(l){return s(c[l],l,c)}}var f=i(a,o,u);return f>-1?c[s?a[f]:f]:void 0}}return ml=n,ml}var gl,Ob;function aD(){if(Ob)return gl;Ob=1;var e=jw();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return gl=t,gl}var bl,_b;function oD(){if(_b)return bl;_b=1;var e=L0(),t=dt(),r=aD(),n=Math.max;function i(a,o,u){var c=a==null?0:a.length;if(!c)return-1;var s=u==null?0:r(u);return s<0&&(s=n(c+s,0)),e(a,t(o,3),s)}return bl=i,bl}var xl,Ab;function uD(){if(Ab)return xl;Ab=1;var e=iD(),t=oD(),r=e(t);return xl=r,xl}var cD=uD();const sD=oe(cD);var lD=e0();const fD=oe(lD);var hD=fD(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("")}),Kh=N.createContext(void 0),Gh=N.createContext(void 0),Bw=N.createContext(void 0),Fw=N.createContext({}),Ww=N.createContext(void 0),zw=N.createContext(0),Uw=N.createContext(0),Sb=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=hD(a);return S.createElement(Kh.Provider,{value:n},S.createElement(Gh.Provider,{value:i},S.createElement(Fw.Provider,{value:a},S.createElement(Bw.Provider,{value:f},S.createElement(Ww.Provider,{value:o},S.createElement(zw.Provider,{value:s},S.createElement(Uw.Provider,{value:c},u)))))))},pD=function(){return N.useContext(Ww)},Hw=function(t){var r=N.useContext(Kh);r==null&&lr();var n=r[t];return n==null&&lr(),n},dD=function(){var t=N.useContext(Kh);return It(t)},vD=function(){var t=N.useContext(Gh),r=sD(t,function(n){return Cw(n.domain,Number.isFinite)});return r||It(t)},Kw=function(t){var r=N.useContext(Gh);r==null&&lr();var n=r[t];return n==null&&lr(),n},yD=function(){var t=N.useContext(Bw);return t},mD=function(){return N.useContext(Fw)},Vh=function(){return N.useContext(Uw)},Xh=function(){return N.useContext(zw)};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 gD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Vw(n.key),n)}}function xD(e,t,r){return t&&bD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wD(e,t,r){return t=$a(t),OD(e,Gw()?Reflect.construct(t,r||[],$a(e).constructor):t.apply(e,r))}function OD(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 _D(e)}function _D(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gw=function(){return!!e})()}function $a(e){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$a(e)}function AD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$f(e,t)}function $f(e,t){return $f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$f(e,t)}function Pb(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 Tb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pb(Object(r),!0).forEach(function(n){Yh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yh(e,t,r){return t=Vw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vw(e){var t=SD(e,"string");return Vr(t)=="symbol"?t:t+""}function SD(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)}function PD(e,t){return $D(e)||jD(e,t)||ED(e,t)||TD()}function TD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ED(e,t){if(e){if(typeof e=="string")return Eb(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 Eb(e,t)}}function Eb(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 jD(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 $D(e){if(Array.isArray(e))return e}function Mf(){return Mf=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},Mf.apply(this,arguments)}var MD=function(t,r){var n;return S.isValidElement(t)?n=S.cloneElement(t,r):G(t)?n=t(r):n=S.createElement("line",Mf({},r,{className:"recharts-reference-line-line"})),n},ID=function(t,r,n,i,a,o,u,c,s){var f=a.x,l=a.y,h=a.width,d=a.height;if(n){var y=s.y,v=t.y.apply(y,{position:o});if(ft(s,"discard")&&!t.y.isInRange(v))return null;var p=[{x:f+h,y:v},{x:f,y:v}];return c==="left"?p.reverse():p}if(r){var g=s.x,b=t.x.apply(g,{position:o});if(ft(s,"discard")&&!t.x.isInRange(b))return null;var w=[{x:b,y:l+d},{x:b,y:l}];return u==="top"?w.reverse():w}if(i){var O=s.segment,m=O.map(function(x){return t.apply(x,{position:o})});return ft(s,"discard")&&SR(m,function(x){return!t.isInRange(x)})?null:m}return null};function CD(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=pD(),f=Hw(i),l=Kw(a),h=yD();if(!s||!h)return null;it(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=Hh({x:f.scale,y:l.scale}),y=Se(t),v=Se(r),p=n&&n.length===2,g=ID(d,y,v,p,h,e.position,f.orientation,l.orientation,e);if(!g)return null;var b=PD(g,2),w=b[0],O=w.x,m=w.y,x=b[1],_=x.x,A=x.y,T=ft(e,"hidden")?"url(#".concat(s,")"):void 0,$=Tb(Tb({clipPath:T},U(e,!0)),{},{x1:O,y1:m,x2:_,y2:A});return S.createElement(ee,{className:Z("recharts-reference-line",u)},MD(o,$),Ee.renderCallByParent(e,tD({x1:O,y1:m,x2:_,y2:A})))}var Zh=(function(e){function t(){return gD(this,t),wD(this,t,arguments)}return AD(t,e),xD(t,[{key:"render",value:function(){return S.createElement(CD,this.props)}}])})(S.Component);Yh(Zh,"displayName","ReferenceLine");Yh(Zh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function If(){return If=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},If.apply(this,arguments)}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 jb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $b(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jb(Object(r),!0).forEach(function(n){yo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yw(n.key),n)}}function DD(e,t,r){return t&&RD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ND(e,t,r){return t=Ma(t),qD(e,Xw()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}function qD(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 LD(e)}function LD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xw=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ma(e)}function BD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cf(e,t)}function Cf(e,t){return Cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cf(e,t)}function yo(e,t,r){return t=Yw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yw(e){var t=FD(e,"string");return Xr(t)=="symbol"?t:t+""}function FD(e,t){if(Xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var WD=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Hh({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return ft(t,"discard")&&!o.isInRange(u)?null:u},mo=(function(e){function t(){return kD(this,t),ND(this,t,arguments)}return BD(t,e),DD(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=Se(i),f=Se(a);if(it(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=WD(this.props);if(!l)return null;var h=l.x,d=l.y,y=this.props,v=y.shape,p=y.className,g=ft(this.props,"hidden")?"url(#".concat(c,")"):void 0,b=$b($b({clipPath:g},U(this.props,!0)),{},{cx:h,cy:d});return S.createElement(ee,{className:Z("recharts-reference-dot",p)},t.renderDot(v,b),Ee.renderCallByParent(this.props,{x:h-o,y:d-o,width:2*o,height:2*o}))}}])})(S.Component);yo(mo,"displayName","ReferenceDot");yo(mo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});yo(mo,"renderDot",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):G(e)?r=e(t):r=S.createElement(wi,If({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function kf(){return kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kf.apply(this,arguments)}function Yr(e){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yr(e)}function Mb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ib(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mb(Object(r),!0).forEach(function(n){go(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UD(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,Jw(n.key),n)}}function HD(e,t,r){return t&&UD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KD(e,t,r){return t=Ia(t),GD(e,Zw()?Reflect.construct(t,r||[],Ia(e).constructor):t.apply(e,r))}function GD(e,t){if(t&&(Yr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VD(e)}function VD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zw=function(){return!!e})()}function Ia(e){return Ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ia(e)}function XD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rf(e,t)}function Rf(e,t){return Rf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rf(e,t)}function go(e,t,r){return t=Jw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jw(e){var t=YD(e,"string");return Yr(t)=="symbol"?t:t+""}function YD(e,t){if(Yr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ZD=function(t,r,n,i,a){var o=a.x1,u=a.x2,c=a.y1,s=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var h=Hh({x:f.scale,y:l.scale}),d={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(c,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(u,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(s,{position:"end"}):h.y.rangeMax};return ft(a,"discard")&&(!h.isInRange(d)||!h.isInRange(y))?null:qw(d,y)},bo=(function(e){function t(){return zD(this,t),KD(this,t,arguments)}return XD(t,e),HD(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;it(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Se(i),h=Se(a),d=Se(o),y=Se(u),v=this.props.shape;if(!l&&!h&&!d&&!y&&!v)return null;var p=ZD(l,h,d,y,this.props);if(!p&&!v)return null;var g=ft(this.props,"hidden")?"url(#".concat(f,")"):void 0;return S.createElement(ee,{className:Z("recharts-reference-area",c)},t.renderRect(v,Ib(Ib({clipPath:g},U(this.props,!0)),p)),Ee.renderCallByParent(this.props,p))}}])})(S.Component);go(bo,"displayName","ReferenceArea");go(bo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});go(bo,"renderRect",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):G(e)?r=e(t):r=S.createElement(zh,kf({},t,{className:"recharts-reference-area-rect"})),r});function Qw(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 JD(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return nD(n,r)}function QD(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 Ca(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 eN(e,t){return Qw(e,t+1)}function tN(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?.[c];if(y===void 0)return{v:Qw(n,s)};var v=c,p,g=function(){return p===void 0&&(p=r(y,v)),p},b=y.coordinate,w=c===0||Ca(e,b,g,f,u);w||(c=0,f=o,s+=1),w&&(f=b+e*(g()/2+i),c+=s)},h;s<=a.length;)if(h=l(),h)return h.v;return[]}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 Cb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cb(Object(r),!0).forEach(function(n){rN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rN(e,t,r){return t=nN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nN(e){var t=iN(e,"string");return fi(t)=="symbol"?t:t+""}function iN(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 aN(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,c=t.end,s=function(h){var d=a[h],y,v=function(){return y===void 0&&(y=r(d,h)),y};if(h===o-1){var p=e*(d.coordinate+e*v()/2-c);a[h]=d=Me(Me({},d),{},{tickCoord:p>0?d.coordinate-p*e:d.coordinate})}else a[h]=d=Me(Me({},d),{},{tickCoord:d.coordinate});var g=Ca(e,d.tickCoord,v,u,c);g&&(c=d.tickCoord-e*(v()/2+i),a[h]=Me(Me({},d),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function oN(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=t.start,s=t.end;if(a){var f=n[u-1],l=r(f,u-1),h=e*(f.coordinate+e*l/2-s);o[u-1]=f=Me(Me({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var d=Ca(e,f.tickCoord,function(){return l},c,s);d&&(s=f.tickCoord-e*(l/2+i),o[u-1]=Me(Me({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(b){var w=o[b],O,m=function(){return O===void 0&&(O=r(w,b)),O};if(b===0){var x=e*(w.coordinate-e*m()/2-c);o[b]=w=Me(Me({},w),{},{tickCoord:x<0?w.coordinate-x*e:w.coordinate})}else o[b]=w=Me(Me({},w),{},{tickCoord:w.coordinate});var _=Ca(e,w.tickCoord,m,c,s);_&&(c=w.tickCoord+e*(m()/2+i),o[b]=Me(Me({},w),{},{isShow:!0}))},p=0;p<y;p++)v(p);return o}function Jh(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(q(c)||Nt.isSsr)return eN(i,typeof c=="number"&&q(c)?c:0);var h=[],d=u==="top"||u==="bottom"?"width":"height",y=f&&d==="width"?Pn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var m=G(s)?s(w.value,O):w.value;return d==="width"?JD(Pn(m,{fontSize:t,letterSpacing:r}),y,l):Pn(m,{fontSize:t,letterSpacing:r})[d]},p=i.length>=2?Ce(i[1].coordinate-i[0].coordinate):1,g=QD(a,p,d);return c==="equidistantPreserveStart"?tN(p,g,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=oN(p,g,v,i,o,c==="preserveStartEnd"):h=aN(p,g,v,i,o),h.filter(function(b){return b.isShow}))}var uN=["viewBox"],cN=["viewBox"],sN=["ticks"];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 Pr(){return Pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pr.apply(this,arguments)}function kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kb(Object(r),!0).forEach(function(n){Qh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wl(e,t){if(e==null)return{};var r=lN(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 lN(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 fN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rb(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,tO(n.key),n)}}function hN(e,t,r){return t&&Rb(e.prototype,t),r&&Rb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pN(e,t,r){return t=ka(t),dN(e,eO()?Reflect.construct(t,r||[],ka(e).constructor):t.apply(e,r))}function dN(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 vN(e)}function vN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eO=function(){return!!e})()}function ka(e){return ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ka(e)}function yN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Df(e,t)}function Df(e,t){return Df=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Df(e,t)}function Qh(e,t,r){return t=tO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tO(e){var t=mN(e,"string");return Zr(t)=="symbol"?t:t+""}function mN(e,t){if(Zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pn=(function(e){function t(r){var n;return fN(this,t),n=pN(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return yN(t,e),hN(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=wl(n,uN),u=this.props,c=u.viewBox,s=wl(u,cN);return!Er(a,c)||!Er(o,s)||!Er(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,c=i.height,s=i.orientation,f=i.tickSize,l=i.mirror,h=i.tickMargin,d,y,v,p,g,b,w=l?-1:1,O=n.tickSize||f,m=q(n.tickCoord)?n.tickCoord:n.coordinate;switch(s){case"top":d=y=n.coordinate,p=o+ +!l*c,v=p-w*O,b=v-w*h,g=m;break;case"left":v=p=n.coordinate,y=a+ +!l*u,d=y-w*O,g=d-w*h,b=m;break;case"right":v=p=n.coordinate,y=a+ +l*u,d=y+w*O,g=d+w*h,b=m;break;default:d=y=n.coordinate,p=o+ +l*c,v=p+w*O,b=v+w*h,g=m;break}return{line:{x1:d,y1:v,x2:y,y2:p},tick:{x:g,y:b}}}},{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=Oe(Oe(Oe({},U(this.props,!1)),U(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!s||c==="bottom"&&s);l=Oe(Oe({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var d=+(c==="left"&&!s||c==="right"&&s);l=Oe(Oe({},l),{},{x1:i+d*o,y1:a,x2:i+d*o,y2:a+u})}return S.createElement("line",Pr({},l,{className:Z("recharts-cartesian-axis-line",He(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,c=u.tickLine,s=u.stroke,f=u.tick,l=u.tickFormatter,h=u.unit,d=Jh(Oe(Oe({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),p=U(this.props,!1),g=U(f,!1),b=Oe(Oe({},p),{},{fill:"none"},U(c,!1)),w=d.map(function(O,m){var x=o.getTickLineCoord(O),_=x.line,A=x.tick,T=Oe(Oe(Oe(Oe({textAnchor:y,verticalAnchor:v},p),{},{stroke:"none",fill:s},g),A),{},{index:m,payload:O,visibleTicksCount:d.length,tickFormatter:l});return S.createElement(ee,Pr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},or(o.props,O,m)),c&&S.createElement("line",Pr({},b,_,{className:Z("recharts-cartesian-axis-tick-line",He(c,"className"))})),f&&t.renderTickItem(f,T,"".concat(G(l)?l(O.value,m):O.value).concat(h||"")))});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,h=l.ticks,d=wl(l,sN),y=h;return G(c)&&(y=h&&h.length>0?c(this.props):c(d)),o<=0||u<=0||!y||!y.length?null:S.createElement(ee,{className:Z("recharts-cartesian-axis",s),ref:function(p){n.layerReference=p}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ee.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=Z(i.className,"recharts-cartesian-axis-tick-value");return S.isValidElement(n)?o=S.cloneElement(n,Oe(Oe({},i),{},{className:u})):G(n)?o=n(Oe(Oe({},i),{},{className:u})):o=S.createElement(ur,Pr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(N.Component);Qh(pn,"displayName","CartesianAxis");Qh(pn,"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 gN=["x1","y1","x2","y2","key"],bN=["offset"];function fr(e){"@babel/helpers - typeof";return fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fr(e)}function Db(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Db(Object(r),!0).forEach(function(n){xN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Db(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xN(e,t,r){return t=wN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wN(e){var t=ON(e,"string");return fr(t)=="symbol"?t:t+""}function ON(e,t){if(fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function er(){return er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},er.apply(this,arguments)}function Nb(e,t){if(e==null)return{};var r=_N(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 _N(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 AN=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 rO(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(G(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,c=Nb(t,gN),s=U(c,!1);s.offset;var f=Nb(s,bN);r=S.createElement("line",er({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function SN(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=Ie(Ie({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return rO(i,s)});return S.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function PN(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=Ie(Ie({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return rO(i,s)});return S.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function TN(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,c=e.horizontal,s=c===void 0?!0:c;if(!s||!t||!t.length)return null;var f=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,d){return h-d});i!==f[0]&&f.unshift(0);var l=f.map(function(h,d){var y=!f[d+1],v=y?i+o-h:f[d+1]-h;if(v<=0)return null;var p=d%t.length;return S.createElement("rect",{key:"react-".concat(d),y:h,x:n,height:v,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function EN(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,c=e.height,s=e.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(h){return Math.round(h+a-a)}).sort(function(h,d){return h-d});a!==f[0]&&f.unshift(0);var l=f.map(function(h,d){var y=!f[d+1],v=y?a+u-h:f[d+1]-h;if(v<=0)return null;var p=d%n.length;return S.createElement("rect",{key:"react-".concat(d),x:h,y:o,width:v,height:c,stroke:"none",fill:n[p],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var jN=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return nw(Jh(Ie(Ie(Ie({},pn.defaultProps),n),{},{ticks:xt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},$N=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return nw(Jh(Ie(Ie(Ie({},pn.defaultProps),n),{},{ticks:xt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},wr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function MN(e){var t,r,n,i,a,o,u=Vh(),c=Xh(),s=mD(),f=Ie(Ie({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:wr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:wr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:wr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:wr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:wr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:wr.verticalFill,x:q(e.x)?e.x:s.left,y:q(e.y)?e.y:s.top,width:q(e.width)?e.width:s.width,height:q(e.height)?e.height:s.height}),l=f.x,h=f.y,d=f.width,y=f.height,v=f.syncWithTicks,p=f.horizontalValues,g=f.verticalValues,b=dD(),w=vD();if(!q(d)||d<=0||!q(y)||y<=0||!q(l)||l!==+l||!q(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||jN,m=f.horizontalCoordinatesGenerator||$N,x=f.horizontalPoints,_=f.verticalPoints;if((!x||!x.length)&&G(m)){var A=p&&p.length,T=m({yAxis:w?Ie(Ie({},w),{},{ticks:A?p:w.ticks}):void 0,width:u,height:c,offset:s},A?!0:v);it(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(fr(T),"]")),Array.isArray(T)&&(x=T)}if((!_||!_.length)&&G(O)){var $=g&&g.length,P=O({xAxis:b?Ie(Ie({},b),{},{ticks:$?g:b.ticks}):void 0,width:u,height:c,offset:s},$?!0:v);it(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(fr(P),"]")),Array.isArray(P)&&(_=P)}return S.createElement("g",{className:"recharts-cartesian-grid"},S.createElement(AN,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),S.createElement(SN,er({},f,{offset:s,horizontalPoints:x,xAxis:b,yAxis:w})),S.createElement(PN,er({},f,{offset:s,verticalPoints:_,xAxis:b,yAxis:w})),S.createElement(TN,er({},f,{horizontalPoints:x})),S.createElement(EN,er({},f,{verticalPoints:_})))}MN.displayName="CartesianGrid";var IN=["type","layout","connectNulls","ref"],CN=["key"];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 qb(e,t){if(e==null)return{};var r=kN(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 kN(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 In(){return In=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},In.apply(this,arguments)}function Lb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lb(Object(r),!0).forEach(function(n){rt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Or(e){return qN(e)||NN(e)||DN(e)||RN()}function RN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DN(e,t){if(e){if(typeof e=="string")return Nf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nf(e,t)}}function NN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qN(e){if(Array.isArray(e))return Nf(e)}function Nf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function LN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iO(n.key),n)}}function BN(e,t,r){return t&&Bb(e.prototype,t),r&&Bb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function FN(e,t,r){return t=Ra(t),WN(e,nO()?Reflect.construct(t,r||[],Ra(e).constructor):t.apply(e,r))}function WN(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 zN(e)}function zN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nO=function(){return!!e})()}function Ra(e){return Ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ra(e)}function UN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qf(e,t)}function qf(e,t){return qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qf(e,t)}function rt(e,t,r){return t=iO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iO(e){var t=HN(e,"string");return Jr(t)=="symbol"?t:t+""}function HN(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 xo=(function(e){function t(){var r;LN(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=FN(this,t,[].concat(i)),rt(r,"state",{isAnimationFinished:!0,totalLength:0}),rt(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),rt(r,"getStrokeDasharray",function(o,u,c){var s=c.reduce(function(g,b){return g+b});if(!s)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/s),l=o%s,h=u-o,d=[],y=0,v=0;y<c.length;v+=c[y],++y)if(v+c[y]>l){d=[].concat(Or(c.slice(0,y)),[l-v]);break}var p=d.length%2===0?[0,h]:[h];return[].concat(Or(t.repeat(c,f)),Or(d),p).map(function(g){return"".concat(g,"px")}).join(", ")}),rt(r,"id",pr("recharts-line-")),rt(r,"pathRef",function(o){r.mainCurve=o}),rt(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),rt(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return UN(t,e),BN(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=Ke(f,xi);if(!l)return null;var h=function(v,p){return{x:v.x,y:v.y,value:v.value,errorVal:ye(v.payload,p)}},d={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(ee,d,l.map(function(y){return S.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,dataPointFormatter:h})}))}},{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=U(this.props,!1),h=U(c,!0),d=s.map(function(v,p){var g=Fe(Fe(Fe({key:"dot-".concat(p),r:3},l),h),{},{index:p,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:s});return t.renderDotItem(c,g)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(ee,In({className:"recharts-line-dots",key:"dots"},y),d)}},{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=qb(u,IN),h=Fe(Fe(Fe({},U(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(ir,In({},h,{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,h=o.animationEasing,d=o.animationId,y=o.animateNewValues,v=o.width,p=o.height,g=this.state,b=g.prevPoints,w=g.totalLength;return S.createElement(at,{begin:f,duration:l,isActive:s,easing:h,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var m=O.t;if(b){var x=b.length/u.length,_=u.map(function(E,j){var I=Math.floor(j*x);if(b[I]){var M=b[I],k=Ae(M.x,E.x),R=Ae(M.y,E.y);return Fe(Fe({},E),{},{x:k(m),y:R(m)})}if(y){var L=Ae(v*2,E.x),B=Ae(p/2,E.y);return Fe(Fe({},E),{},{x:L(m),y:B(m)})}return Fe(Fe({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(_,n,i)}var A=Ae(0,w),T=A(m),$;if(c){var P="".concat(c).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});$=a.getStrokeDasharray(T,w,P)}else $=a.generateSimpleStrokeDasharray(w,T);return a.renderCurveStatically(u,n,i,{strokeDasharray:$})})}},{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||!cr(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,h=i.left,d=i.width,y=i.height,v=i.isAnimationActive,p=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,b=u.length===1,w=Z("recharts-line",c),O=s&&s.allowDataOverflow,m=f&&f.allowDataOverflow,x=O||m,_=Y(p)?this.id:p,A=(n=U(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,$=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,j=a0(o)?o:{},I=j.clipDot,M=I===void 0?!0:I,k=$*2+E;return S.createElement(ee,{className:w},O||m?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(_)},S.createElement("rect",{x:O?h:h-d/2,y:m?l:l-y/2,width:O?d:d*2,height:m?y:y*2})),!M&&S.createElement("clipPath",{id:"clipPath-dots-".concat(_)},S.createElement("rect",{x:h-k/2,y:l-k/2,width:d+k,height:y+k}))):null,!b&&this.renderCurve(x,_),this.renderErrorBar(x,_),(b||o)&&this.renderDots(x,M,_),(!v||g)&<.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(Or(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(Or(o),Or(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(S.isValidElement(n))a=S.cloneElement(n,i);else if(G(n))a=n(i);else{var o=i.key,u=qb(i,CN),c=Z("recharts-line-dot",typeof n!="boolean"?n.className:"");a=S.createElement(wi,In({key:o},u,{className:c}))}return a}}])})(N.PureComponent);rt(xo,"displayName","Line");rt(xo,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Nt.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});rt(xo,"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(h,d){var y=ye(h,o);return f==="horizontal"?{x:fa({axis:r,ticks:i,bandSize:u,entry:h,index:d}),y:Y(y)?null:n.scale(y),value:y,payload:h}:{x:Y(y)?null:r.scale(y),y:fa({axis:n,ticks:a,bandSize:u,entry:h,index:d}),value:y,payload:h}});return Fe({points:l,layout:f},s)});var KN=["layout","type","stroke","connectNulls","isRange","ref"],GN=["key"],aO;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 oO(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={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tr.apply(this,arguments)}function Fb(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 $t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fb(Object(r),!0).forEach(function(n){ct(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wb(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,cO(n.key),n)}}function YN(e,t,r){return t&&Wb(e.prototype,t),r&&Wb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZN(e,t,r){return t=Da(t),JN(e,uO()?Reflect.construct(t,r||[],Da(e).constructor):t.apply(e,r))}function JN(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 QN(e)}function QN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uO=function(){return!!e})()}function Da(e){return Da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Da(e)}function e2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lf(e,t)}function Lf(e,t){return Lf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lf(e,t)}function ct(e,t,r){return t=cO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cO(e){var t=t2(e,"string");return Qr(t)=="symbol"?t:t+""}function t2(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 mr=(function(e){function t(){var r;XN(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=ZN(this,t,[].concat(i)),ct(r,"state",{isAnimationFinished:!0}),ct(r,"id",pr("recharts-area-")),ct(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),G(o)&&o()}),ct(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),G(o)&&o()}),r}return e2(t,e),YN(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var c=this.props,s=c.dot,f=c.points,l=c.dataKey,h=U(this.props,!1),d=U(s,!0),y=f.map(function(p,g){var b=$t($t($t({key:"dot-".concat(g),r:3},h),d),{},{index:g,cx:p.x,cy:p.y,dataKey:l,value:p.value,payload:p.payload,points:f});return t.renderDotItem(s,b)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(ee,tr({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,c=o[0].x,s=o[o.length-1].x,f=n*Math.abs(c-s),l=Ct(o.map(function(h){return h.y||0}));return q(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Ct(a.map(function(h){return h.y||0})),l)),q(l)?S.createElement("rect",{x:c<s?c:c-f,y:0,width:f,height:Math.floor(l+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,c=o[0].y,s=o[o.length-1].y,f=n*Math.abs(c-s),l=Ct(o.map(function(h){return h.x||0}));return q(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Ct(a.map(function(h){return h.x||0})),l)),q(l)?S.createElement("rect",{x:0,y:c<s?c:c-f,width:l+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,c=u.layout,s=u.type,f=u.stroke,l=u.connectNulls,h=u.isRange;u.ref;var d=oO(u,KN);return S.createElement(ee,{clipPath:a?"url(#clipPath-".concat(o,")"):null},S.createElement(ir,tr({},U(d,!0),{points:n,connectNulls:l,type:s,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),f!=="none"&&S.createElement(ir,tr({},U(this.props,!1),{className:"recharts-area-curve",layout:c,type:s,connectNulls:l,fill:"none",points:n})),f!=="none"&&h&&S.createElement(ir,tr({},U(this.props,!1),{className:"recharts-area-curve",layout:c,type:s,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.baseLine,s=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,h=o.animationEasing,d=o.animationId,y=this.state,v=y.prevPoints,p=y.prevBaseLine;return S.createElement(at,{begin:f,duration:l,isActive:s,easing:h,from:{t:0},to:{t:1},key:"area-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var b=g.t;if(v){var w=v.length/u.length,O=u.map(function(A,T){var $=Math.floor(T*w);if(v[$]){var P=v[$],E=Ae(P.x,A.x),j=Ae(P.y,A.y);return $t($t({},A),{},{x:E(b),y:j(b)})}return A}),m;if(q(c)&&typeof c=="number"){var x=Ae(p,c);m=x(b)}else if(Y(c)||un(c)){var _=Ae(p,0);m=_(b)}else m=c.map(function(A,T){var $=Math.floor(T*w);if(p[$]){var P=p[$],E=Ae(P.x,A.x),j=Ae(P.y,A.y);return $t($t({},A),{},{x:E(b),y:j(b)})}return A});return a.renderAreaStatically(O,m,n,i)}return S.createElement(ee,null,S.createElement("defs",null,S.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(b))),S.createElement(ee,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,c,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,c=a.isAnimationActive,s=this.state,f=s.prevPoints,l=s.prevBaseLine,h=s.totalLength;return c&&o&&o.length&&(!f&&h>0||!cr(f,o)||!cr(l,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,c=i.className,s=i.top,f=i.left,l=i.xAxis,h=i.yAxis,d=i.width,y=i.height,v=i.isAnimationActive,p=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,b=u.length===1,w=Z("recharts-area",c),O=l&&l.allowDataOverflow,m=h&&h.allowDataOverflow,x=O||m,_=Y(p)?this.id:p,A=(n=U(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,$=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,j=a0(o)?o:{},I=j.clipDot,M=I===void 0?!0:I,k=$*2+E;return S.createElement(ee,{className:w},O||m?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(_)},S.createElement("rect",{x:O?f:f-d/2,y:m?s:s-y/2,width:O?d:d*2,height:m?y:y*2})),!M&&S.createElement("clipPath",{id:"clipPath-dots-".concat(_)},S.createElement("rect",{x:f-k/2,y:s-k/2,width:d+k,height:y+k}))):null,b?null:this.renderArea(x,_),(o||b)&&this.renderDots(x,M,_),(!v||g)&<.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(N.PureComponent);aO=mr;ct(mr,"displayName","Area");ct(mr,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Nt.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});ct(mr,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(q(u)&&typeof u=="number")return u;var c=i==="horizontal"?n:r,s=c.scale.domain();if(c.type==="number"){var f=Math.max(s[0],s[1]),l=Math.min(s[0],s[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(s[0],s[1]),0)}return u==="dataMin"?s[0]:u==="dataMax"?s[1]:s[0]});ct(mr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,c=e.dataKey,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,d=t.layout,y=s&&s.length,v=aO.getBaseValue(t,r,n,i),p=d==="horizontal",g=!1,b=l.map(function(O,m){var x;y?x=s[f+m]:(x=ye(O,c),Array.isArray(x)?g=!0:x=[v,x]);var _=x[1]==null||y&&ye(O,c)==null;return p?{x:fa({axis:n,ticks:a,bandSize:u,entry:O,index:m}),y:_?null:i.scale(x[1]),value:x,payload:O}:{x:_?null:n.scale(x[1]),y:fa({axis:i,ticks:o,bandSize:u,entry:O,index:m}),value:x,payload:O}}),w;return y||g?w=b.map(function(O){var m=Array.isArray(O.value)?O.value[0]:null;return p?{x:O.x,y:m!=null&&O.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:O.y}}):w=p?i.scale(v):n.scale(v),$t({points:b,baseLine:w,layout:d,isRange:g},h)});ct(mr,"renderDotItem",function(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(G(e))r=e(t);else{var n=Z("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=oO(t,GN);r=S.createElement(wi,tr({},a,{key:i,className:n}))}return r});function en(e){"@babel/helpers - typeof";return en=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},en(e)}function r2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fO(n.key),n)}}function i2(e,t,r){return t&&n2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function a2(e,t,r){return t=Na(t),o2(e,sO()?Reflect.construct(t,r||[],Na(e).constructor):t.apply(e,r))}function o2(e,t){if(t&&(en(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u2(e)}function u2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sO=function(){return!!e})()}function Na(e){return Na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Na(e)}function c2(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&&Bf(e,t)}function Bf(e,t){return Bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Bf(e,t)}function lO(e,t,r){return t=fO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fO(e){var t=s2(e,"string");return en(t)=="symbol"?t:t+""}function s2(e,t){if(en(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(en(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ff(){return Ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ff.apply(this,arguments)}function l2(e){var t=e.xAxisId,r=Vh(),n=Xh(),i=Hw(t);return i==null?null:N.createElement(pn,Ff({},i,{className:Z("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return xt(o,!0)}}))}var Oi=(function(e){function t(){return r2(this,t),a2(this,t,arguments)}return c2(t,e),i2(t,[{key:"render",value:function(){return N.createElement(l2,this.props)}}])})(N.Component);lO(Oi,"displayName","XAxis");lO(Oi,"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 tn(e){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tn(e)}function f2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dO(n.key),n)}}function p2(e,t,r){return t&&h2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function d2(e,t,r){return t=qa(t),v2(e,hO()?Reflect.construct(t,r||[],qa(e).constructor):t.apply(e,r))}function v2(e,t){if(t&&(tn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y2(e)}function y2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hO=function(){return!!e})()}function qa(e){return qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qa(e)}function m2(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&&Wf(e,t)}function Wf(e,t){return Wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wf(e,t)}function pO(e,t,r){return t=dO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dO(e){var t=g2(e,"string");return tn(t)=="symbol"?t:t+""}function g2(e,t){if(tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function zf(){return zf=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},zf.apply(this,arguments)}var b2=function(t){var r=t.yAxisId,n=Vh(),i=Xh(),a=Kw(r);return a==null?null:N.createElement(pn,zf({},a,{className:Z("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return xt(u,!0)}}))},_i=(function(e){function t(){return f2(this,t),d2(this,t,arguments)}return m2(t,e),p2(t,[{key:"render",value:function(){return N.createElement(b2,this.props)}}])})(N.Component);pO(_i,"displayName","YAxis");pO(_i,"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 zb(e){return _2(e)||O2(e)||w2(e)||x2()}function x2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w2(e,t){if(e){if(typeof e=="string")return Uf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uf(e,t)}}function O2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _2(e){if(Array.isArray(e))return Uf(e)}function Uf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Hf=function(t,r,n,i,a){var o=Ke(t,Zh),u=Ke(t,mo),c=[].concat(zb(o),zb(u)),s=Ke(t,bo),f="".concat(i,"Id"),l=i[0],h=r;if(c.length&&(h=c.reduce(function(v,p){if(p.props[f]===n&&ft(p.props,"extendDomain")&&q(p.props[l])){var g=p.props[l];return[Math.min(v[0],g),Math.max(v[1],g)]}return v},h)),s.length){var d="".concat(l,"1"),y="".concat(l,"2");h=s.reduce(function(v,p){if(p.props[f]===n&&ft(p.props,"extendDomain")&&q(p.props[d])&&q(p.props[y])){var g=p.props[d],b=p.props[y];return[Math.min(v[0],g,b),Math.max(v[1],g,b)]}return v},h)}return a&&a.length&&(h=a.reduce(function(v,p){return q(p)?[Math.min(v[0],p),Math.max(v[1],p)]:v},h)),h},Ol={exports:{}},Ub;function A2(){return Ub||(Ub=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,s,f){this.fn=c,this.context=s,this.once=f||!1}function a(c,s,f,l,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var d=new i(f,l||c,h),y=r?r+s:s;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],d]:c._events[y].push(d):(c._events[y]=d,c._eventsCount++),c}function o(c,s){--c._eventsCount===0?c._events=new n:delete c._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],f,l;if(this._eventsCount===0)return s;for(l in f=this._events)t.call(f,l)&&s.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},u.prototype.listeners=function(s){var f=r?r+s:s,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var h=0,d=l.length,y=new Array(d);h<d;h++)y[h]=l[h].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,h,d,y){var v=r?r+s:s;if(!this._events[v])return!1;var p=this._events[v],g=arguments.length,b,w;if(p.fn){switch(p.once&&this.removeListener(s,p.fn,void 0,!0),g){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,f),!0;case 3:return p.fn.call(p.context,f,l),!0;case 4:return p.fn.call(p.context,f,l,h),!0;case 5:return p.fn.call(p.context,f,l,h,d),!0;case 6:return p.fn.call(p.context,f,l,h,d,y),!0}for(w=1,b=new Array(g-1);w<g;w++)b[w-1]=arguments[w];p.fn.apply(p.context,b)}else{var O=p.length,m;for(w=0;w<O;w++)switch(p[w].once&&this.removeListener(s,p[w].fn,void 0,!0),g){case 1:p[w].fn.call(p[w].context);break;case 2:p[w].fn.call(p[w].context,f);break;case 3:p[w].fn.call(p[w].context,f,l);break;case 4:p[w].fn.call(p[w].context,f,l,h);break;default:if(!b)for(m=1,b=new Array(g-1);m<g;m++)b[m-1]=arguments[m];p[w].fn.apply(p[w].context,b)}}return!0},u.prototype.on=function(s,f,l){return a(this,s,f,l,!1)},u.prototype.once=function(s,f,l){return a(this,s,f,l,!0)},u.prototype.removeListener=function(s,f,l,h){var d=r?r+s:s;if(!this._events[d])return this;if(!f)return o(this,d),this;var y=this._events[d];if(y.fn)y.fn===f&&(!h||y.once)&&(!l||y.context===l)&&o(this,d);else{for(var v=0,p=[],g=y.length;v<g;v++)(y[v].fn!==f||h&&!y[v].once||l&&y[v].context!==l)&&p.push(y[v]);p.length?this._events[d]=p.length===1?p[0]:p:o(this,d)}return this},u.prototype.removeAllListeners=function(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})(Ol)),Ol.exports}var S2=A2();const P2=oe(S2);var _l=new P2,Al="recharts.syncMouseEvents";function hi(e){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hi(e)}function T2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vO(n.key),n)}}function j2(e,t,r){return t&&E2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sl(e,t,r){return t=vO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vO(e){var t=$2(e,"string");return hi(t)=="symbol"?t:t+""}function $2(e,t){if(hi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var M2=(function(){function e(){T2(this,e),Sl(this,"activeIndex",0),Sl(this,"coordinateList",[]),Sl(this,"layout","horizontal")}return j2(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,c=r.layout,s=c===void 0?null:c,f=r.offset,l=f===void 0?null:f,h=r.mouseHandlerCallback,d=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=s??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=d??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,c=this.coordinateList[this.activeIndex].coordinate,s=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+c+s,h=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:h})}}}])})();function I2(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&q(n)&&q(i))return!0}return!1}function C2(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 yO(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=le(t,r,n,i),u=le(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function k2(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,c=t.cy,s=t.innerRadius,f=t.outerRadius,l=t.angle,h=le(u,c,s,l),d=le(u,c,f,l);n=h.x,i=h.y,a=d.x,o=d.y}else return yO(t);return[{x:n,y:i},{x:a,y:o}]}function pi(e){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pi(e)}function Hb(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?Hb(Object(r),!0).forEach(function(n){R2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function R2(e,t,r){return t=D2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D2(e){var t=N2(e,"string");return pi(t)=="symbol"?t:t+""}function N2(e,t){if(pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function q2(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,c=e.offset,s=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,h=e.chartName,d=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!d||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,v=ir;if(h==="ScatterChart")y=o,v=XC;else if(h==="BarChart")y=C2(l,o,c,f),v=zh;else if(l==="radial"){var p=yO(o),g=p.cx,b=p.cy,w=p.radius,O=p.startAngle,m=p.endAngle;y={cx:g,cy:b,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=dw}else y={points:k2(l,o,c)},v=ir;var x=Ni(Ni(Ni(Ni({stroke:"#ccc",pointerEvents:"none"},c),y),U(d,!1)),{},{payload:u,payloadIndex:s,className:Z("recharts-tooltip-cursor",d.className)});return N.isValidElement(d)?N.cloneElement(d,x):N.createElement(v,x)}var L2=["item"],B2=["children","className","width","height","style","compact","title","desc"];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 Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tr.apply(this,arguments)}function Kb(e,t){return z2(e)||W2(e,t)||gO(e,t)||F2()}function F2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W2(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 z2(e){if(Array.isArray(e))return e}function Gb(e,t){if(e==null)return{};var r=U2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function U2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function H2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K2(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,bO(n.key),n)}}function G2(e,t,r){return t&&K2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function V2(e,t,r){return t=La(t),X2(e,mO()?Reflect.construct(t,r||[],La(e).constructor):t.apply(e,r))}function X2(e,t){if(t&&(rn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Y2(e)}function Y2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mO=function(){return!!e})()}function La(e){return La=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},La(e)}function Z2(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&&Kf(e,t)}function Kf(e,t){return Kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Kf(e,t)}function nn(e){return eq(e)||Q2(e)||gO(e)||J2()}function J2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gO(e,t){if(e){if(typeof e=="string")return Gf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gf(e,t)}}function Q2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eq(e){if(Array.isArray(e))return Gf(e)}function Gf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vb(Object(r),!0).forEach(function(n){K(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K(e,t,r){return t=bO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bO(e){var t=tq(e,"string");return rn(t)=="symbol"?t:t+""}function tq(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 rq={xAxis:["bottom","top"],yAxis:["left","right"]},nq={width:"100%",height:"100%"},xO={x:0,y:0};function qi(e){return e}var iq=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},aq=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 C(C(C({},i),le(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return C(C(C({},i),le(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return xO},wo=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(nn(u),nn(s)):u},[]);return o.length>0?o:t&&t.length&&q(i)&&q(a)?t.slice(i,a+1):[]};function wO(e){return e==="number"?[0,"auto"]:void 0}var Vf=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=wo(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,s){var f,l=(f=s.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var d=l===void 0?u:l;h=Bi(d,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(nn(c),[cw(s,h)]):c},[])},Xb=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=iq(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=y$(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,h=Vf(t,r,f,l),d=aq(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:d}}return null},oq=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,d=rw(f,a);return n.reduce(function(y,v){var p,g=v.type.defaultProps!==void 0?C(C({},v.type.defaultProps),v.props):v.props,b=g.type,w=g.dataKey,O=g.allowDataOverflow,m=g.allowDuplicatedCategory,x=g.scale,_=g.ticks,A=g.includeHidden,T=g[o];if(y[T])return y;var $=wo(t.data,{graphicalItems:i.filter(function(W){var X,fe=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o];return fe===T}),dataStartIndex:c,dataEndIndex:s}),P=$.length,E,j,I;I2(g.domain,O,b)&&(E=uf(g.domain,null,O),d&&(b==="number"||x!=="auto")&&(I=En($,w,"category")));var M=wO(b);if(!E||E.length===0){var k,R=(k=g.domain)!==null&&k!==void 0?k:M;if(w){if(E=En($,w,b),b==="category"&&d){var L=l_(E);m&&L?(j=E,E=Sa(0,P)):m||(E=Xm(R,E,v).reduce(function(W,X){return W.indexOf(X)>=0?W:[].concat(nn(W),[X])},[]))}else if(b==="category")m?E=E.filter(function(W){return W!==""&&!Y(W)}):E=Xm(R,E,v).reduce(function(W,X){return W.indexOf(X)>=0||X===""||Y(X)?W:[].concat(nn(W),[X])},[]);else if(b==="number"){var B=w$($,i.filter(function(W){var X,fe,me=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o],Be="hide"in W.props?W.props.hide:(fe=W.type.defaultProps)===null||fe===void 0?void 0:fe.hide;return me===T&&(A||!Be)}),w,a,f);B&&(E=B)}d&&(b==="number"||x!=="auto")&&(I=En($,w,"category"))}else d?E=Sa(0,P):u&&u[T]&&u[T].hasStack&&b==="number"?E=h==="expand"?[0,1]:uw(u[T].stackGroups,c,s):E=tw($,i.filter(function(W){var X=o in W.props?W.props[o]:W.type.defaultProps[o],fe="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return X===T&&(A||!fe)}),b,f,!0);if(b==="number")E=Hf(l,E,T,a,_),R&&(E=uf(R,E,O));else if(b==="category"&&R){var H=R,V=E.every(function(W){return H.indexOf(W)>=0});V&&(E=H)}}return C(C({},y),{},K({},T,C(C({},g),{},{axisType:a,domain:E,categoricalDomain:I,duplicateDomain:j,originalDomain:(p=g.domain)!==null&&p!==void 0?p:M,isCategorical:d,layout:f})))},{})},uq=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=wo(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),d=h.length,y=rw(f,a),v=-1;return n.reduce(function(p,g){var b=g.type.defaultProps!==void 0?C(C({},g.type.defaultProps),g.props):g.props,w=b[o],O=wO("number");if(!p[w]){v++;var m;return y?m=Sa(0,d):u&&u[w]&&u[w].hasStack?(m=uw(u[w].stackGroups,c,s),m=Hf(l,m,w,a)):(m=uf(O,tw(h,n.filter(function(x){var _,A,T=o in x.props?x.props[o]:(_=x.type.defaultProps)===null||_===void 0?void 0:_[o],$="hide"in x.props?x.props.hide:(A=x.type.defaultProps)===null||A===void 0?void 0:A.hide;return T===w&&!$}),"number",f),i.defaultProps.allowDataOverflow),m=Hf(l,m,w,a)),C(C({},p),{},K({},w,C(C({axisType:a},i.defaultProps),{},{hide:!0,orientation:He(rq,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return p},{})},cq=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=Ke(f,a),d={};return h&&h.length?d=oq(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(d=uq(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),d},sq=function(t){var r=It(t),n=xt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:vh(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ha(r,n)}},Yb=function(t){var r=t.children,n=t.defaultShowTooltip,i=ze(r,Kr),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}},lq=function(t){return!t||!t.length?!1:t.some(function(r){var n=wt(r&&r.type);return n&&n.indexOf("Bar")>=0})},Zb=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"}},fq=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,c=u===void 0?{}:u,s=n.width,f=n.height,l=n.children,h=n.margin||{},d=ze(l,Kr),y=ze(l,jr),v=Object.keys(c).reduce(function(m,x){var _=c[x],A=_.orientation;return!_.mirror&&!_.hide?C(C({},m),{},K({},A,m[A]+_.width)):m},{left:h.left||0,right:h.right||0}),p=Object.keys(o).reduce(function(m,x){var _=o[x],A=_.orientation;return!_.mirror&&!_.hide?C(C({},m),{},K({},A,He(m,"".concat(A))+_.height)):m},{top:h.top||0,bottom:h.bottom||0}),g=C(C({},p),v),b=g.bottom;d&&(g.bottom+=d.props.height||Kr.defaultProps.height),y&&r&&(g=b$(g,i,n,r));var w=s-g.left-g.right,O=f-g.top-g.bottom;return C(C({brushBottom:b},g),{},{width:Math.max(w,0),height:Math.max(O,0)})},hq=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Oo=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,c=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,h=function(g,b){var w=b.graphicalItems,O=b.stackGroups,m=b.offset,x=b.updateId,_=b.dataStartIndex,A=b.dataEndIndex,T=g.barSize,$=g.layout,P=g.barGap,E=g.barCategoryGap,j=g.maxBarSize,I=Zb($),M=I.numericAxisName,k=I.cateAxisName,R=lq(w),L=[];return w.forEach(function(B,H){var V=wo(g.data,{graphicalItems:[B],dataStartIndex:_,dataEndIndex:A}),W=B.type.defaultProps!==void 0?C(C({},B.type.defaultProps),B.props):B.props,X=W.dataKey,fe=W.maxBarSize,me=W["".concat(M,"Id")],Be=W["".concat(k,"Id")],Wt={},De=c.reduce(function(zt,Ut){var _o=b["".concat(Ut.axisType,"Map")],ep=W["".concat(Ut.axisType,"Id")];_o&&_o[ep]||Ut.axisType==="zAxis"||lr();var tp=_o[ep];return C(C({},zt),{},K(K({},Ut.axisType,tp),"".concat(Ut.axisType,"Ticks"),xt(tp)))},Wt),F=De[k],J=De["".concat(k,"Ticks")],Q=O&&O[me]&&O[me].hasStack&&$$(B,O[me].stackGroups),D=wt(B.type).indexOf("Bar")>=0,de=ha(F,J),te=[],xe=R&&m$({barSize:T,stackGroups:O,totalSize:hq(De,k)});if(D){var we,Ne,jt=Y(fe)?j:fe,gr=(we=(Ne=ha(F,J,!0))!==null&&Ne!==void 0?Ne:jt)!==null&&we!==void 0?we:0;te=g$({barGap:P,barCategoryGap:E,bandSize:gr!==de?gr:de,sizeList:xe[Be],maxBarSize:jt}),gr!==de&&(te=te.map(function(zt){return C(C({},zt),{},{position:C(C({},zt.position),{},{offset:zt.position.offset-gr/2})})}))}var Ai=B&&B.type&&B.type.getComposedData;Ai&&L.push({props:C(C({},Ai(C(C({},De),{},{displayedData:V,props:g,dataKey:X,item:B,bandSize:de,barPosition:te,offset:m,stackedData:Q,layout:$,dataStartIndex:_,dataEndIndex:A}))),{},K(K(K({key:B.key||"item-".concat(H)},M,De[M]),k,De[k]),"animationId",x)),childIndex:O_(B,g.children),item:B})}),L},d=function(g,b){var w=g.props,O=g.dataStartIndex,m=g.dataEndIndex,x=g.updateId;if(!ld({props:w}))return null;var _=w.children,A=w.layout,T=w.stackOffset,$=w.data,P=w.reverseStackOrder,E=Zb(A),j=E.numericAxisName,I=E.cateAxisName,M=Ke(_,n),k=E$($,M,"".concat(j,"Id"),"".concat(I,"Id"),T,P),R=c.reduce(function(W,X){var fe="".concat(X.axisType,"Map");return C(C({},W),{},K({},fe,cq(w,C(C({},X),{},{graphicalItems:M,stackGroups:X.axisType===j&&k,dataStartIndex:O,dataEndIndex:m}))))},{}),L=fq(C(C({},R),{},{props:w,graphicalItems:M}),b?.legendBBox);Object.keys(R).forEach(function(W){R[W]=f(w,R[W],L,W.replace("Map",""),r)});var B=R["".concat(I,"Map")],H=sq(B),V=h(w,C(C({},R),{},{dataStartIndex:O,dataEndIndex:m,updateId:x,graphicalItems:M,stackGroups:k,offset:L}));return C(C({formattedGraphicalItems:V,graphicalItems:M,offset:L,stackGroups:k},H),R)},y=(function(p){function g(b){var w,O,m;return H2(this,g),m=V2(this,g,[b]),K(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),K(m,"accessibilityManager",new M2),K(m,"handleLegendBBoxUpdate",function(x){if(x){var _=m.state,A=_.dataStartIndex,T=_.dataEndIndex,$=_.updateId;m.setState(C({legendBBox:x},d({props:m.props,dataStartIndex:A,dataEndIndex:T,updateId:$},C(C({},m.state),{},{legendBBox:x}))))}}),K(m,"handleReceiveSyncEvent",function(x,_,A){if(m.props.syncId===x){if(A===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),K(m,"handleBrushChange",function(x){var _=x.startIndex,A=x.endIndex;if(_!==m.state.dataStartIndex||A!==m.state.dataEndIndex){var T=m.state.updateId;m.setState(function(){return C({dataStartIndex:_,dataEndIndex:A},d({props:m.props,dataStartIndex:_,dataEndIndex:A,updateId:T},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:A})}}),K(m,"handleMouseEnter",function(x){var _=m.getMouseInfo(x);if(_){var A=C(C({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var T=m.props.onMouseEnter;G(T)&&T(A,x)}}),K(m,"triggeredAfterMouseMove",function(x){var _=m.getMouseInfo(x),A=_?C(C({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var T=m.props.onMouseMove;G(T)&&T(A,x)}),K(m,"handleItemMouseEnter",function(x){m.setState(function(){return{isTooltipActive:!0,activeItem:x,activePayload:x.tooltipPayload,activeCoordinate:x.tooltipPosition||{x:x.cx,y:x.cy}}})}),K(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),K(m,"handleMouseMove",function(x){x.persist(),m.throttleTriggeredAfterMouseMove(x)}),K(m,"handleMouseLeave",function(x){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var A=m.props.onMouseLeave;G(A)&&A(_,x)}),K(m,"handleOuterEvent",function(x){var _=w_(x),A=He(m.props,"".concat(_));if(_&&G(A)){var T,$;/.*touch.*/i.test(_)?$=m.getMouseInfo(x.changedTouches[0]):$=m.getMouseInfo(x),A((T=$)!==null&&T!==void 0?T:{},x)}}),K(m,"handleClick",function(x){var _=m.getMouseInfo(x);if(_){var A=C(C({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var T=m.props.onClick;G(T)&&T(A,x)}}),K(m,"handleMouseDown",function(x){var _=m.props.onMouseDown;if(G(_)){var A=m.getMouseInfo(x);_(A,x)}}),K(m,"handleMouseUp",function(x){var _=m.props.onMouseUp;if(G(_)){var A=m.getMouseInfo(x);_(A,x)}}),K(m,"handleTouchMove",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(x.changedTouches[0])}),K(m,"handleTouchStart",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&m.handleMouseDown(x.changedTouches[0])}),K(m,"handleTouchEnd",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&m.handleMouseUp(x.changedTouches[0])}),K(m,"handleDoubleClick",function(x){var _=m.props.onDoubleClick;if(G(_)){var A=m.getMouseInfo(x);_(A,x)}}),K(m,"handleContextMenu",function(x){var _=m.props.onContextMenu;if(G(_)){var A=m.getMouseInfo(x);_(A,x)}}),K(m,"triggerSyncEvent",function(x){m.props.syncId!==void 0&&_l.emit(Al,m.props.syncId,x,m.eventEmitterSymbol)}),K(m,"applySyncEvent",function(x){var _=m.props,A=_.layout,T=_.syncMethod,$=m.state.updateId,P=x.dataStartIndex,E=x.dataEndIndex;if(x.dataStartIndex!==void 0||x.dataEndIndex!==void 0)m.setState(C({dataStartIndex:P,dataEndIndex:E},d({props:m.props,dataStartIndex:P,dataEndIndex:E,updateId:$},m.state)));else if(x.activeTooltipIndex!==void 0){var j=x.chartX,I=x.chartY,M=x.activeTooltipIndex,k=m.state,R=k.offset,L=k.tooltipTicks;if(!R)return;if(typeof T=="function")M=T(L,x);else if(T==="value"){M=-1;for(var B=0;B<L.length;B++)if(L[B].value===x.activeLabel){M=B;break}}var H=C(C({},R),{},{x:R.left,y:R.top}),V=Math.min(j,H.x+H.width),W=Math.min(I,H.y+H.height),X=L[M]&&L[M].value,fe=Vf(m.state,m.props.data,M),me=L[M]?{x:A==="horizontal"?L[M].coordinate:V,y:A==="horizontal"?W:L[M].coordinate}:xO;m.setState(C(C({},x),{},{activeLabel:X,activeCoordinate:me,activePayload:fe,activeTooltipIndex:M}))}else m.setState(x)}),K(m,"renderCursor",function(x){var _,A=m.state,T=A.isTooltipActive,$=A.activeCoordinate,P=A.activePayload,E=A.offset,j=A.activeTooltipIndex,I=A.tooltipAxisBandSize,M=m.getTooltipEventType(),k=(_=x.props.active)!==null&&_!==void 0?_:T,R=m.props.layout,L=x.key||"_recharts-cursor";return S.createElement(q2,{key:L,activeCoordinate:$,activePayload:P,activeTooltipIndex:j,chartName:r,element:x,isActive:k,layout:R,offset:E,tooltipAxisBandSize:I,tooltipEventType:M})}),K(m,"renderPolarAxis",function(x,_,A){var T=He(x,"type.axisType"),$=He(m.state,"".concat(T,"Map")),P=x.type.defaultProps,E=P!==void 0?C(C({},P),x.props):x.props,j=$&&$[E["".concat(T,"Id")]];return N.cloneElement(x,C(C({},j),{},{className:Z(T,j.className),key:x.key||"".concat(_,"-").concat(A),ticks:xt(j,!0)}))}),K(m,"renderPolarGrid",function(x){var _=x.props,A=_.radialLines,T=_.polarAngles,$=_.polarRadius,P=m.state,E=P.radiusAxisMap,j=P.angleAxisMap,I=It(E),M=It(j),k=M.cx,R=M.cy,L=M.innerRadius,B=M.outerRadius;return N.cloneElement(x,{polarAngles:Array.isArray(T)?T:xt(M,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray($)?$:xt(I,!0).map(function(H){return H.coordinate}),cx:k,cy:R,innerRadius:L,outerRadius:B,key:x.key||"polar-grid",radialLines:A})}),K(m,"renderLegend",function(){var x=m.state.formattedGraphicalItems,_=m.props,A=_.children,T=_.width,$=_.height,P=m.props.margin||{},E=T-(P.left||0)-(P.right||0),j=Qx({children:A,formattedGraphicalItems:x,legendWidth:E,legendContent:s});if(!j)return null;var I=j.item,M=Gb(j,L2);return N.cloneElement(I,C(C({},M),{},{chartWidth:T,chartHeight:$,margin:P,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),K(m,"renderTooltip",function(){var x,_=m.props,A=_.children,T=_.accessibilityLayer,$=ze(A,yt);if(!$)return null;var P=m.state,E=P.isTooltipActive,j=P.activeCoordinate,I=P.activePayload,M=P.activeLabel,k=P.offset,R=(x=$.props.active)!==null&&x!==void 0?x:E;return N.cloneElement($,{viewBox:C(C({},k),{},{x:k.left,y:k.top}),active:R,label:M,payload:R?I:[],coordinate:j,accessibilityLayer:T})}),K(m,"renderBrush",function(x){var _=m.props,A=_.margin,T=_.data,$=m.state,P=$.offset,E=$.dataStartIndex,j=$.dataEndIndex,I=$.updateId;return N.cloneElement(x,{key:x.key||"_recharts-brush",onChange:Ci(m.handleBrushChange,x.props.onChange),data:T,x:q(x.props.x)?x.props.x:P.left,y:q(x.props.y)?x.props.y:P.top+P.height+P.brushBottom-(A.bottom||0),width:q(x.props.width)?x.props.width:P.width,startIndex:E,endIndex:j,updateId:"brush-".concat(I)})}),K(m,"renderReferenceElement",function(x,_,A){if(!x)return null;var T=m,$=T.clipPathId,P=m.state,E=P.xAxisMap,j=P.yAxisMap,I=P.offset,M=x.type.defaultProps||{},k=x.props,R=k.xAxisId,L=R===void 0?M.xAxisId:R,B=k.yAxisId,H=B===void 0?M.yAxisId:B;return N.cloneElement(x,{key:x.key||"".concat(_,"-").concat(A),xAxis:E[L],yAxis:j[H],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:$})}),K(m,"renderActivePoints",function(x){var _=x.item,A=x.activePoint,T=x.basePoint,$=x.childIndex,P=x.isRange,E=[],j=_.props.key,I=_.item.type.defaultProps!==void 0?C(C({},_.item.type.defaultProps),_.item.props):_.item.props,M=I.activeDot,k=I.dataKey,R=C(C({index:$,dataKey:k,cx:A.x,cy:A.y,r:4,fill:Wh(_.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},U(M,!1)),Fi(M));return E.push(g.renderActiveDot(M,R,"".concat(j,"-activePoint-").concat($))),T?E.push(g.renderActiveDot(M,C(C({},R),{},{cx:T.x,cy:T.y}),"".concat(j,"-basePoint-").concat($))):P&&E.push(null),E}),K(m,"renderGraphicChild",function(x,_,A){var T=m.filterFormatItem(x,_,A);if(!T)return null;var $=m.getTooltipEventType(),P=m.state,E=P.isTooltipActive,j=P.tooltipAxis,I=P.activeTooltipIndex,M=P.activeLabel,k=m.props.children,R=ze(k,yt),L=T.props,B=L.points,H=L.isRange,V=L.baseLine,W=T.item.type.defaultProps!==void 0?C(C({},T.item.type.defaultProps),T.item.props):T.item.props,X=W.activeDot,fe=W.hide,me=W.activeBar,Be=W.activeShape,Wt=!!(!fe&&E&&R&&(X||me||Be)),De={};$!=="axis"&&R&&R.props.trigger==="click"?De={onClick:Ci(m.handleItemMouseEnter,x.props.onClick)}:$!=="axis"&&(De={onMouseLeave:Ci(m.handleItemMouseLeave,x.props.onMouseLeave),onMouseEnter:Ci(m.handleItemMouseEnter,x.props.onMouseEnter)});var F=N.cloneElement(x,C(C({},T.props),De));function J(Ut){return typeof j.dataKey=="function"?j.dataKey(Ut.payload):null}if(Wt)if(I>=0){var Q,D;if(j.dataKey&&!j.allowDuplicatedCategory){var de=typeof j.dataKey=="function"?J:"payload.".concat(j.dataKey.toString());Q=Bi(B,de,M),D=H&&V&&Bi(V,de,M)}else Q=B?.[I],D=H&&V&&V[I];if(Be||me){var te=x.props.activeIndex!==void 0?x.props.activeIndex:I;return[N.cloneElement(x,C(C(C({},T.props),De),{},{activeIndex:te})),null,null]}if(!Y(Q))return[F].concat(nn(m.renderActivePoints({item:T,activePoint:Q,basePoint:D,childIndex:I,isRange:H})))}else{var xe,we=(xe=m.getItemByXY(m.state.activeCoordinate))!==null&&xe!==void 0?xe:{graphicalItem:F},Ne=we.graphicalItem,jt=Ne.item,gr=jt===void 0?x:jt,Ai=Ne.childIndex,zt=C(C(C({},T.props),De),{},{activeIndex:Ai});return[N.cloneElement(gr,zt),null,null]}return H?[F,null,null]:[F,null]}),K(m,"renderCustomized",function(x,_,A){return N.cloneElement(x,C(C({key:"recharts-customized-".concat(A)},m.props),m.state))}),K(m,"renderMap",{CartesianGrid:{handler:qi,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:qi},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:qi},YAxis:{handler:qi},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=b.id)!==null&&w!==void 0?w:pr("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=J0(m.triggeredAfterMouseMove,(O=b.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return Z2(g,p),G2(g,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,m=w.data,x=w.height,_=w.layout,A=ze(O,yt);if(A){var T=A.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var $=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,P=Vf(this.state,m,T,$),E=this.state.tooltipTicks[T].coordinate,j=(this.state.offset.top+x)/2,I=_==="horizontal",M=I?{x:E,y:j}:{y:E,x:j},k=this.state.formattedGraphicalItems.find(function(L){var B=L.item;return B.type.name==="Scatter"});k&&(M=C(C({},M),k.props.points[T].tooltipPosition),P=k.props.points[T].tooltipPayload);var R={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:$,activePayload:P,activeCoordinate:M};this.setState(R),this.renderCursor(A),this.accessibilityManager.setIndex(T)}}}},{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,x;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0}})}return null}},{key:"componentDidUpdate",value:function(w){El([ze(w.children,yt)],[ze(this.props.children,yt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=ze(this.props.children,yt);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(),x=cP(m),_={chartX:Math.round(w.pageX-x.left),chartY:Math.round(w.pageY-x.top)},A=m.width/O.offsetWidth||1,T=this.inRange(_.chartX,_.chartY,A);if(!T)return null;var $=this.state,P=$.xAxisMap,E=$.yAxisMap,j=this.getTooltipEventType(),I=Xb(this.state,this.props.data,this.props.layout,T);if(j!=="axis"&&P&&E){var M=It(P).scale,k=It(E).scale,R=M&&M.invert?M.invert(_.chartX):null,L=k&&k.invert?k.invert(_.chartY):null;return C(C({},_),{},{xValue:R,yValue:L},I)}return I?C(C({},_),I):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,x=this.props.layout,_=w/m,A=O/m;if(x==="horizontal"||x==="vertical"){var T=this.state.offset,$=_>=T.left&&_<=T.left+T.width&&A>=T.top&&A<=T.top+T.height;return $?{x:_,y:A}:null}var P=this.state,E=P.angleAxisMap,j=P.radiusAxisMap;if(E&&j){var I=It(E);return Jm({x:_,y:A},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=ze(w,yt),x={};m&&O==="axis"&&(m.props.trigger==="click"?x={onClick:this.handleClick}:x={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 _=Fi(this.props,this.handleOuterEvent);return C(C({},_),x)}},{key:"addListener",value:function(){_l.on(Al,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){_l.removeListener(Al,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var x=this.state.formattedGraphicalItems,_=0,A=x.length;_<A;_++){var T=x[_];if(T.item===w||T.props.key===w.key||O===wt(T.item.type)&&m===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,x=O.top,_=O.height,A=O.width;return S.createElement("defs",null,S.createElement("clipPath",{id:w},S.createElement("rect",{x:m,y:x,height:_,width:A})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var x=Kb(m,2),_=x[0],A=x[1];return C(C({},O),{},K({},_,A.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var x=Kb(m,2),_=x[0],A=x[1];return C(C({},O),{},K({},_,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,x=O.activeItem;if(m&&m.length)for(var _=0,A=m.length;_<A;_++){var T=m[_],$=T.props,P=T.item,E=P.type.defaultProps!==void 0?C(C({},P.type.defaultProps),P.props):P.props,j=wt(P.type);if(j==="Bar"){var I=($.data||[]).find(function(L){return jC(w,L)});if(I)return{graphicalItem:T,payload:I}}else if(j==="RadialBar"){var M=($.data||[]).find(function(L){return Jm(w,L)});if(M)return{graphicalItem:T,payload:M}}else if(ho(T,x)||po(T,x)||ui(T,x)){var k=Jk({graphicalItem:T,activeTooltipItem:x,itemData:E.data}),R=E.activeIndex===void 0?k:E.activeIndex;return{graphicalItem:C(C({},T),{},{childIndex:R}),payload:ui(T,x)?E.data[k]:T.props.data[k]}}}return null}},{key:"render",value:function(){var w=this;if(!ld(this))return null;var O=this.props,m=O.children,x=O.className,_=O.width,A=O.height,T=O.style,$=O.compact,P=O.title,E=O.desc,j=Gb(O,B2),I=U(j,!1);if($)return S.createElement(Sb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement($l,Tr({},I,{width:_,height:A,title:P,desc:E}),this.renderClipPath(),hd(m,this.renderMap)));if(this.props.accessibilityLayer){var M,k;I.tabIndex=(M=this.props.tabIndex)!==null&&M!==void 0?M:0,I.role=(k=this.props.role)!==null&&k!==void 0?k:"application",I.onKeyDown=function(L){w.accessibilityManager.keyboardEvent(L)},I.onFocus=function(){w.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return S.createElement(Sb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement("div",Tr({className:Z("recharts-wrapper",x),style:C({position:"relative",cursor:"default",width:_,height:A},T)},R,{ref:function(B){w.container=B}}),S.createElement($l,Tr({},I,{width:_,height:A,title:P,desc:E,style:nq}),this.renderClipPath(),hd(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(N.Component);K(y,"displayName",r),K(y,"defaultProps",C({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),K(y,"getDerivedStateFromProps",function(p,g){var b=p.dataKey,w=p.data,O=p.children,m=p.width,x=p.height,_=p.layout,A=p.stackOffset,T=p.margin,$=g.dataStartIndex,P=g.dataEndIndex;if(g.updateId===void 0){var E=Yb(p);return C(C(C({},E),{},{updateId:0},d(C(C({props:p},E),{},{updateId:0}),g)),{},{prevDataKey:b,prevData:w,prevWidth:m,prevHeight:x,prevLayout:_,prevStackOffset:A,prevMargin:T,prevChildren:O})}if(b!==g.prevDataKey||w!==g.prevData||m!==g.prevWidth||x!==g.prevHeight||_!==g.prevLayout||A!==g.prevStackOffset||!Er(T,g.prevMargin)){var j=Yb(p),I={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},M=C(C({},Xb(g,w,_)),{},{updateId:g.updateId+1}),k=C(C(C({},j),I),M);return C(C(C({},k),d(C({props:p},k),g)),{},{prevDataKey:b,prevData:w,prevWidth:m,prevHeight:x,prevLayout:_,prevStackOffset:A,prevMargin:T,prevChildren:O})}if(!El(O,g.prevChildren)){var R,L,B,H,V=ze(O,Kr),W=V&&(R=(L=V.props)===null||L===void 0?void 0:L.startIndex)!==null&&R!==void 0?R:$,X=V&&(B=(H=V.props)===null||H===void 0?void 0:H.endIndex)!==null&&B!==void 0?B:P,fe=W!==$||X!==P,me=!Y(w),Be=me&&!fe?g.updateId:g.updateId+1;return C(C({updateId:Be},d(C(C({props:p},g),{},{updateId:Be,dataStartIndex:W,dataEndIndex:X}),g)),{},{prevChildren:O,dataStartIndex:W,dataEndIndex:X})}return null}),K(y,"renderActiveDot",function(p,g,b){var w;return N.isValidElement(p)?w=N.cloneElement(p,g):G(p)?w=p(g):w=S.createElement(wi,g),S.createElement(ee,{className:"recharts-active-dot",key:b},w)});var v=N.forwardRef(function(g,b){return S.createElement(y,Tr({},g,{ref:b}))});return v.displayName=y.displayName,v},yq=Oo({chartName:"LineChart",GraphicalChild:xo,axisComponents:[{axisType:"xAxis",AxisComp:Oi},{axisType:"yAxis",AxisComp:_i}],formatAxisMap:Uh}),mq=Oo({chartName:"BarChart",GraphicalChild:hn,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Oi},{axisType:"yAxis",AxisComp:_i}],formatAxisMap:Uh}),gq=Oo({chartName:"PieChart",GraphicalChild:Ft,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:fo},{axisType:"radiusAxis",AxisComp:so}],formatAxisMap:B$,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),bq=Oo({chartName:"AreaChart",GraphicalChild:mr,axisComponents:[{axisType:"xAxis",AxisComp:Oi},{axisType:"yAxis",AxisComp:_i}],formatAxisMap:Uh});export{bq as A,mq as B,MN as C,yq as L,gq as P,vq as R,yt as T,Oi as X,_i as Y,jr as a,xo as b,mr as c,Ft as d,mh as e,hn as f};
|
||
//# sourceMappingURL=chart-vendor-CnBPFalK.js.map
|