PageSourceSearch

https://quant-sent.vercel.app/assets/Dashboard-C_PAKmtL.js

js quant-sent.vercel.app collected 2026-10-03 07:33:41 UTC 420,961 bytes, 112 lines download raw bytes

vendor: 7,284 bytes, lines 1-21
1import{c as Da,a as xi,g as se,r as $,b as re,R as _,j as P,d as qe,e as Um,u as Gr,P as ai,f as Ra,h as er,i as Vt,k as Hm,l as ks,m as qm}from"./index-CQ9BrgpI.js";import{C as mt,a as wr,b as Or,T as ic,c as Gm,d as gt,I as ac,B as Is,e as Km,u as Xm,D as Vm}from"./card-DghLmPEs.js";import{S as Xh,R as Ju,f as oc}from"./stock-api-DsXfmFVS.js";import{C as Vh,u as Ym,c as Zm}from"./index-Dw3jZy1Y.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Jm=Da("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const Qu=Da("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/**
12 * @license lucide-react v0.462.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const Qm=Da("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
17 * @license lucide-react v0.462.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const eg=Da("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);var tg=Array.isArray,Ie=tg,rg=typeof xi=="object"&&xi&&xi.Object===Object&&xi,Yh=rg,ng=Yh,ig=typeof self=="object"&&self&&self.Object===Object&&self,ag=ng||ig||Function("return this")(),ft=ag,og=ft,cg=og.Symbol,oi=cg,el=oi,Zh=Object.prototype,sg=Zh.hasOwnProperty,ug=Zh.toString,cn=el?el.toStringTag:void 0;function lg(e){var t=sg.call(e,cn),r=e[cn];try{e[cn]=void 0;var n=!0}catch{}var i=ug.call(e);return n&&(t?e[cn]=r:delete e[cn]),i}var fg=lg,dg=Object.prototype,hg=dg.toString;function pg(e){return hg.call(e)}var vg=pg,tl=oi,yg=fg,mg=vg,gg="[object Null]",bg="[object Undefined]",rl=tl?tl.toStringTag:void 0;function xg(e){return e==null?e===void 0?bg:gg:rl&&rl in Object(e)?yg(e):mg(e)}var Et=xg;function wg(e){return e!=null&&typeof e=="object"}var Ct=wg,Og=Et,Sg=Ct,Pg="[object Symbol]";function Ag(e){return typeof e=="symbol"||Sg(e)&&Og(e)==Pg}var Kr=Ag,_g=Ie,$g=Kr,jg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tg=/^\w*$/;function Eg(e,t){if(_g(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||$g(e)?!0:Tg.test(e)||!jg.test(e)||t!=null&&e in Object(t)}var Ds=Eg;function Cg(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Lt=Cg;const Xr=se(Lt);var Mg=Et,Ng=Lt,kg="[object AsyncFunction]",Ig="[object Function]",Dg="[object GeneratorFunction]",Rg="[object Proxy]";function Lg(e){if(!Ng(e))return!1;var t=Mg(e);return t==Ig||t==Dg||t==kg||t==Rg}var Rs=Lg;const J=se(Rs);var Bg=ft,Fg=Bg["__core-js_shared__"],Wg=Fg,To=Wg,nl=function(){var e=/[^.]+$/.exec(To&&To.keys&&To.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function zg(e){return!!nl&&nl in e}var Ug=zg,Hg=Function.prototype,qg=Hg.toString;function Gg(e){if(e!=null){try{return qg.call(e)}catch{}try{return e+""}catch{}}return""}var Jh=Gg,Kg=Rs,Xg=Ug,Vg=Lt,Yg=Jh,Zg=/[\\^$.*+?()[\]{}|]/g,Jg=/^\[object .+?Constructor\]$/,Qg=Function.prototype,eb=Object.prototype,tb=Qg.toString,rb=eb.hasOwnProperty,nb=RegExp("^"+tb.call(rb).replace(Zg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ib(e){if(!Vg(e)||Xg(e))return!1;var t=Kg(e)?nb:Jg;return t.test(Yg(e))}var ab=ib;function ob(e,t){return e==null?void 0:e[t]}var cb=ob,sb=ab,ub=cb;function lb(e,t){var r=ub(e,t);return sb(r)?r:void 0}var sr=lb,fb=sr,db=fb(Object,"create"),La=db,il=La;function hb(){this.__data__=il?il(null):{},this.size=0}var pb=hb;function vb(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var yb=vb,mb=La,gb="__lodash_hash_undefined__",bb=Object.prototype,xb=bb.hasOwnProperty;function wb(e){var t=this.__data__;if(mb){var r=t[e];return r===gb?void 0:r}return xb.call(t,e)?t[e]:void 0}var Ob=wb,Sb=La,Pb=Object.prototype,Ab=Pb.hasOwnProperty;function _b(e){var t=this.__data__;return Sb?t[e]!==void 0:Ab.call(t,e)}var $b=_b,jb=La,Tb="__lodash_hash_undefined__";function Eb(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=jb&&t===void 0?Tb:t,this}var Cb=Eb,Mb=pb,Nb=yb,kb=Ob,Ib=$b,Db=Cb;function Vr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Vr.prototype.clear=Mb;Vr.prototype.delete=Nb;Vr.prototype.get=kb;Vr.prototype.has=Ib;Vr.prototype.set=Db;var Rb=Vr;function Lb(){this.__data__=[],this.size=0}var Bb=Lb;function Fb(e,t){return e===t||e!==e&&t!==t}var Ls=Fb,Wb=Ls;function zb(e,t){for(var r=e.length;r--;)if(Wb(e[r][0],t))return r;return-1}var Ba=zb,Ub=Ba,Hb=Array.prototype,qb=Hb.splice;function Gb(e){var t=this.__data__,r=Ub(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():qb.call(t,r,1),--this.size,!0}var Kb=Gb,Xb=Ba;function Vb(e){var t=this.__data__,r=Xb(t,e);return r<0?void 0:t[r][1]}var Yb=Vb,Zb=Ba;function Jb(e){return Zb(this.__data__,e)>-1}var Qb=Jb,e0=Ba;function t0(e,t){var r=this.__data__,n=e0(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var r0=t0,n0=Bb,i0=Kb,a0=Yb,o0=Qb,c0=r0;function Yr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Yr.prototype.clear=n0;Yr.prototype.delete=i0;Yr.prototype.get=a0;Yr.prototype.has=o0;Yr.prototype.set=c0;var Fa=Yr,s0=sr,u0=ft,l0=s0(u0,"Map"),Bs=l0,al=Rb,f0=Fa,d0=Bs;function h0(){this.size=0,this.__data__={hash:new al,map:new(d0||f0),string:new al}}var p0=h0;function v0(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var y0=v0,m0=y0;function g0(e,t){var r=e.__data__;return m0(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Wa=g0,b0=Wa;function x0(e){var t=b0(this,e).delete(e);return this.size-=t?1:0,t}var w0=x0,O0=Wa;function S0(e){return O0(this,e).get(e)}var P0=S0,A0=Wa;function _0(e){return A0(this,e).has(e)}var $0=_0,j0=Wa;function T0(e,t){var r=j0(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var E0=T0,C0=p0,M0=w0,N0=P0,k0=$0,I0=E0;function Zr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Zr.prototype.clear=C0;Zr.prototype.delete=M0;Zr.prototype.get=N0;Zr.prototype.has=k0;Zr.prototype.set=I0;var Fs=Zr,Qh=Fs,D0="Expected a function";function Ws(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(D0);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(Ws.Cache||Qh),r}Ws.Cache=Qh;var ep=Ws;const R0=se(ep);var L0=ep,B0=500;function F0(e){var t=L0(e,function(n){return r.size===B0&&r.clear(),n}
vendor: 6,442 bytes, lines 21-29
21),r=t.cache;return t}var W0=F0,z0=W0,U0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H0=/\\(\\)?/g,q0=z0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(U0,function(r,n,i,a){t.push(i?a.replace(H0,"$1"):n||r)}),t}),G0=q0;function K0(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var zs=K0,ol=oi,X0=zs,V0=Ie,Y0=Kr,Z0=1/0,cl=ol?ol.prototype:void 0,sl=cl?cl.toString:void 0;function tp(e){if(typeof e=="string")return e;if(V0(e))return X0(e,tp)+"";if(Y0(e))return sl?sl.call(e):"";var t=e+"";return t=="0"&&1/e==-Z0?"-0":t}var J0=tp,Q0=J0;function ex(e){return e==null?"":Q0(e)}var rp=ex,tx=Ie,rx=Ds,nx=G0,ix=rp;function ax(e,t){return tx(e)?e:rx(e,t)?[e]:nx(ix(e))}var np=ax,ox=Kr,cx=1/0;function sx(e){if(typeof e=="string"||ox(e))return e;var t=e+"";return t=="0"&&1/e==-cx?"-0":t}var za=sx,ux=np,lx=za;function fx(e,t){t=ux(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[lx(t[r++])];return r&&r==n?e:void 0}var Us=fx,dx=Us;function hx(e,t,r){var n=e==null?void 0:dx(e,t);return n===void 0?r:n}var ip=hx;const Ke=se(ip);function px(e){return e==null}var vx=px;const Q=se(vx);var yx=Et,mx=Ie,gx=Ct,bx="[object String]";function xx(e){return typeof e=="string"||!mx(e)&&gx(e)&&yx(e)==bx}var wx=xx;const ci=se(wx);var ap={exports:{}},ie={};/**
22 * @license React
23 * react-is.production.min.js
24 *
25 * Copyright (c) Facebook, Inc. and its affiliates.
26 *
27 * This source code is licensed under the MIT license found in the
28 * LICENSE file in the root directory of this source tree.
29 */var Hs=Symbol.for("react.element"),qs=Symbol.for("react.portal"),Ua=Symbol.for("react.fragment"),Ha=Symbol.for("react.strict_mode"),qa=Symbol.for("react.profiler"),Ga=Symbol.for("react.provider"),Ka=Symbol.for("react.context"),Ox=Symbol.for("react.server_context"),Xa=Symbol.for("react.forward_ref"),Va=Symbol.for("react.suspense"),Ya=Symbol.for("react.suspense_list"),Za=Symbol.for("react.memo"),Ja=Symbol.for("react.lazy"),Sx=Symbol.for("react.offscreen"),op;op=Symbol.for("react.module.reference");function Ye(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Hs:switch(e=e.type,e){case Ua:case qa:case Ha:case Va:case Ya:return e;default:switch(e=e&&e.$$typeof,e){case Ox:case Ka:case Xa:case Ja:case Za:case Ga:return e;default:return t}}case qs:return t}}}ie.ContextConsumer=Ka;ie.ContextProvider=Ga;ie.Element=Hs;ie.ForwardRef=Xa;ie.Fragment=Ua;ie.Lazy=Ja;ie.Memo=Za;ie.Portal=qs;ie.Profiler=qa;ie.StrictMode=Ha;ie.Suspense=Va;ie.SuspenseList=Ya;ie.isAsyncMode=function(){return!1};ie.isConcurrentMode=function(){return!1};ie.isContextConsumer=function(e){return Ye(e)===Ka};ie.isContextProvider=function(e){return Ye(e)===Ga};ie.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hs};ie.isForwardRef=function(e){return Ye(e)===Xa};ie.isFragment=function(e){return Ye(e)===Ua};ie.isLazy=function(e){return Ye(e)===Ja};ie.isMemo=function(e){return Ye(e)===Za};ie.isPortal=function(e){return Ye(e)===qs};ie.isProfiler=function(e){return Ye(e)===qa};ie.isStrictMode=function(e){return Ye(e)===Ha};ie.isSuspense=function(e){return Ye(e)===Va};ie.isSuspenseList=function(e){return Ye(e)===Ya};ie.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ua||e===qa||e===Ha||e===Va||e===Ya||e===Sx||typeof e=="object"&&e!==null&&(e.$$typeof===Ja||e.$$typeof===Za||e.$$typeof===Ga||e.$$typeof===Ka||e.$$typeof===Xa||e.$$typeof===op||e.getModuleId!==void 0)};ie.typeOf=Ye;ap.exports=ie;var cp=ap.exports,Px=Et,Ax=Ct,_x="[object Number]";function $x(e){return typeof e=="number"||Ax(e)&&Px(e)==_x}var sp=$x;const jx=se(sp);var Tx=sp;function Ex(e){return Tx(e)&&e!=+e}var Cx=Ex;const si=se(Cx);var it=function(t){return t===0?0:t>0?1:-1},Yt=function(t){return ci(t)&&t.indexOf("%")===t.length-1},F=function(t){return jx(t)&&!si(t)},we=function(t){return F(t)||ci(t)},Mx=0,ui=function(t){var r=++Mx;return"".concat(t||"").concat(r)},nr=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(!F(t)&&!ci(t))return n;var a;if(Yt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return si(a)&&(a=n),i&&a>r&&(a=r),a},kt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Nx=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},rt=function(t,r){return F(t)&&F(r)?function(n){return t+n*(r-t)}:function(){return r}};function Ii(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ke(n,t))===r})}function mr(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function cc(e){"@babel/helpers - typeof";return cc=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},cc(e)}var kx=["viewBox","children"],Ix=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
29dering","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"],ul=["points","pathLength"],Eo={svg:kx,polygon:ul,polyline:ul},Gs=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDrag
29Capture","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"],Di=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if($.isValidElement(t)&&(n=t.props),!Xr(n))return null;var i={};return Object.keys(n).forEach(function(a){Gs.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Dx=function(t,r,n){return function(i){return t(r,n,i),null}},Ri=function(t,r,n){if(!Xr(t)||cc(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Gs.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Dx(o,r,n))}),i},Rx=["children"],Lx=["children"];function ll(e,t){if(e==null)return{};var r=Bx(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 Bx(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 sc(e){"@babel/helpers - typeof";return sc=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},sc(e)}var fl={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ot=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},dl=null,Co=null,Ks=function e(t){if(t===dl&&Array.isArray(Co))return Co;var r=[];return $.Children.forEach(t,function(n){Q(n)||(cp.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Co=r,dl=t,r};function Xe(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Ot(i)}):n=[Ot(t)],Ks(e).forEach(function(i){var a=Ke(i,"type.displayName")||Ke(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Be(e,t){var r=Xe(e,t);return r&&r[0]}var hl=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!F(n)||n<=0||!F(i)||i<=0)},Fx=["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"],Wx=function(t){return t&&t.type&&ci(t.type)&&Fx.indexOf(t.type)>=0},zx=function(t){return t&&sc(t)==="object"&&"clipDot"in t},Ux=function(t,r,n,i){var a,o=(a=Eo==null?void 0:Eo[i])!==null&&a!==void 0?a:[];return!J(t)&&(i&&o.includes(r)||Ix.includes(r))||n&&Gs.includes(r)},ee=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if($.isValidElement(t)&&(i=t.props),!Xr(i))return null;var a={};
29return Object.keys(i).forEach(function(o){var c;Ux((c=i)===null||c===void 0?void 0:c[o],o,r,n)&&(a[o]=i[o])}),a},uc=function e(t,r){if(t===r)return!0;var n=$.Children.count(t);if(n!==$.Children.count(r))return!1;if(n===0)return!0;if(n===1)return pl(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(!pl(a,o))return!1}return!0},pl=function(t,r){if(Q(t)&&Q(r))return!0;if(!Q(t)&&!Q(r)){var n=t.props||{},i=n.children,a=ll(n,Rx),o=r.props||{},c=o.children,s=ll(o,Lx);return i&&c?mr(a,s)&&uc(i,c):!i&&!c?mr(a,s):!1}return!1},vl=function(t,r){var n=[],i={};return Ks(t).forEach(function(a,o){if(Wx(a))n.push(a);else if(a){var c=Ot(a.type),s=r[c]||{},u=s.handler,f=s.once;if(u&&(!f||!i[c])){var l=u(a,c,o);n.push(l),i[c]=!0}}}),n},Hx=function(t){var r=t&&t.type;return r&&fl[r]?fl[r]:null},qx=function(t,r){return Ks(r).indexOf(t)},Gx=["children","width","height","viewBox","className","style","title","desc"];function lc(){return lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lc.apply(this,arguments)}function Kx(e,t){if(e==null)return{};var r=Xx(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 Xx(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 fc(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,c=e.title,s=e.desc,u=Kx(e,Gx),f=i||{width:r,height:n,x:0,y:0},l=re("recharts-surface",a);return _.createElement("svg",lc({},ee(u,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),_.createElement("title",null,c),_.createElement("desc",null,s),t)}var Vx=["children","className"];function dc(){return dc=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},dc.apply(this,arguments)}function Yx(e,t){if(e==null)return{};var r=Zx(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 Zx(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 ve=_.forwardRef(function(e,t){var r=e.children,n=e.className,i=Yx(e,Vx),a=re("recharts-layer",n);return _.createElement("g",dc({className:a},ee(i,!0),{ref:t}),r)}),St=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]};function Jx(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var Qx=Jx,ew=Qx;function tw(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:ew(e,t,r)}var rw=tw,nw="\\ud800-\\udfff",iw="\\u0300-\\u036f",aw="\\ufe20-\\ufe2f",ow="\\u20d0-\\u20ff",cw=iw+aw+ow,sw="\\ufe0e\\ufe0f",uw="\\u200d",lw=RegExp("["+uw+nw+cw+sw+"]");function fw(e){return lw.test(e)}var up=fw;function dw(e){return e.split("")}var hw=dw,lp="\\ud800-\\udfff",pw="\\u0300-\\u036f",vw="\\ufe20-\\ufe2f",yw="\\u20d0-\\u20ff",mw=pw+vw+yw,gw="\\ufe0e\\ufe0f",bw="["+lp+"]",hc="["+mw+"]",pc="\\ud83c[\\udffb-\\udfff]",xw="(?:"+hc+"|"+pc+")",fp="[^"+lp+"]",dp="(?:\\ud83c[\\udde6-\\uddff]){2}",hp="[\\ud800-\\udbff][\\udc00-\\udfff]",ww="\\u200d",pp=xw+"?",vp="["+gw+"]?",Ow="(?:"+ww+"(?:"+[fp,dp,hp].join("|")+")"+vp+pp+")*",Sw=vp+pp+Ow,Pw="(?:"+[fp+hc+"?",hc,dp,hp,bw].join("|")+")",Aw=RegExp(pc+"(?="+pc+")|"+Pw+Sw,"g");function _w(e){return e.match(Aw)||[]}var $w=_w,jw=hw,Tw=up,Ew=$w;function Cw(e){return Tw(e)?Ew(e):jw(e)}var Mw=Cw,Nw=rw,kw=up,Iw=Mw,Dw=rp;function Rw(e){return function(t){t=Dw(t);var r=kw(t)?Iw(t):void 0,n=r?r[0]:t.charAt(0),i=r?Nw(r,1).join(""):t.slice(1);return n[e]()+i}}var Lw=Rw,Bw=Lw,Fw=Bw("toUpperCase"),Ww=Fw;const Qa=se(Ww);function ce(e){return function(){return e}}const yp=Math.cos,Li=Math.sin,at=Math.sqrt,Bi=Math.PI,eo=2*Bi,vc=Math.PI,yc=2*vc,Gt=1e-6,zw=yc-Gt;function mp(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Uw(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return mp;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 Hw{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?mp:Uw(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}
29,${+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,c=this._y1,s=n-t,u=i-r,f=o-t,l=c-r,d=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Gt)if(!(Math.abs(l*s-u*f)>Gt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,p=i-c,v=s*s+u*u,y=h*h+p*p,b=Math.sqrt(v),x=Math.sqrt(d),w=a*Math.tan((vc-Math.acos((v+d-y)/(2*b*x)))/2),m=w/x,g=w/b;Math.abs(m-1)>Gt&&this._append`L${t+m*f},${r+m*l}`,this._append`A${a},${a},0,0,${+(l*h>f*p)},${this._x1=t+g*s},${this._y1=r+g*u}`}}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 c=n*Math.cos(i),s=n*Math.sin(i),u=t+c,f=r+s,l=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Gt||Math.abs(this._y1-f)>Gt)&&this._append`L${u},${f}`,n&&(d<0&&(d=d%yc+yc),d>zw?this._append`A${n},${n},0,1,${l},${t-c},${r-s}A${n},${n},0,1,${l},${this._x1=u},${this._y1=f}`:d>Gt&&this._append`A${n},${n},0,${+(d>=vc)},${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 Xs(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 Hw(t)}function Vs(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function gp(e){this._context=e}gp.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 to(e){return new gp(e)}function bp(e){return e[0]}function xp(e){return e[1]}function wp(e,t){var r=ce(!0),n=null,i=to,a=null,o=Xs(c);e=typeof e=="function"?e:e===void 0?bp:ce(e),t=typeof t=="function"?t:t===void 0?xp:ce(t);function c(s){var u,f=(s=Vs(s)).length,l,d=!1,h;for(n==null&&(a=i(h=o())),u=0;u<=f;++u)!(u<f&&r(l=s[u],u,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(l,u,s),+t(l,u,s));if(h)return a=null,h+""||null}return c.x=function(s){return arguments.length?(e=typeof s=="function"?s:ce(+s),c):e},c.y=function(s){return arguments.length?(t=typeof s=="function"?s:ce(+s),c):t},c.defined=function(s){return arguments.length?(r=typeof s=="function"?s:ce(!!s),c):r},c.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),c):i},c.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),c):n},c}function wi(e,t,r){var n=null,i=ce(!0),a=null,o=to,c=null,s=Xs(u);e=typeof e=="function"?e:e===void 0?bp:ce(+e),t=typeof t=="function"?t:ce(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?xp:ce(+r);function u(l){var d,h,p,v=(l=Vs(l)).length,y,b=!1,x,w=new Array(v),m=new Array(v);for(a==null&&(c=o(x=s())),d=0;d<=v;++d){if(!(d<v&&i(y=l[d],d,l))===b)if(b=!b)h=d,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=d-1;p>=h;--p)c.point(w[p],m[p]);c.lineEnd(),c.areaEnd()}b&&(w[d]=+e(y,d,l),m[d]=+t(y,d,l),c.point(n?+n(y,d,l):w[d],r?+r(y,d,l):m[d]))}if(x)return c=null,x+""||null}function f(){return wp().defined(i).curve(o).context(a)}return u.x=function(l){return arguments.length?(e=typeof l=="function"?l:ce(+l),n=null,u):e},u.x0=function(l){return arguments.length?(e=typeof l=="function"?l:ce(+l),u):e},u.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:ce(+l),u):n},u.y=function(l){return arguments.length?(t=typeof l=="function"?l:ce(+l),r=null,u):t},u.y0=function(l){return arguments.length?(t=typeof l=="function"?l:ce(+l),u):t},u.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ce(+l),u):r},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(r)},u.lineX1=function(){return f().x(n).y(t)},u.defined=function(l){return arguments.length?(i=typeof l=="function"?l:ce(!!l),u):i},u.curve=function(l){return arguments.length?(o=l,a!=null&&(c=o(a)
vendor: 8,741 bytes, line 29
29),u):o},u.context=function(l){return arguments.length?(l==null?a=c=null:c=o(a=l),u):a},u}class Op{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 qw(e){return new Op(e,!0)}function Gw(e){return new Op(e,!1)}const Ys={draw(e,t){const r=at(t/Bi);e.moveTo(r,0),e.arc(0,0,r,0,eo)}},Kw={draw(e,t){const r=at(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()}},Sp=at(1/3),Xw=Sp*2,Vw={draw(e,t){const r=at(t/Xw),n=r*Sp;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Yw={draw(e,t){const r=at(t),n=-r/2;e.rect(n,n,r,r)}},Zw=.8908130915292852,Pp=Li(Bi/10)/Li(7*Bi/10),Jw=Li(eo/10)*Pp,Qw=-yp(eo/10)*Pp,e1={draw(e,t){const r=at(t*Zw),n=Jw*r,i=Qw*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=eo*a/5,c=yp(o),s=Li(o);e.lineTo(s*r,-c*r),e.lineTo(c*n-s*i,s*n+c*i)}e.closePath()}},Mo=at(3),t1={draw(e,t){const r=-at(t/(Mo*3));e.moveTo(0,r*2),e.lineTo(-Mo*r,-r),e.lineTo(Mo*r,-r),e.closePath()}},ze=-.5,Ue=at(3)/2,mc=1/at(12),r1=(mc/2+1)*3,n1={draw(e,t){const r=at(t/r1),n=r/2,i=r*mc,a=n,o=r*mc+r,c=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(c,s),e.lineTo(ze*n-Ue*i,Ue*n+ze*i),e.lineTo(ze*a-Ue*o,Ue*a+ze*o),e.lineTo(ze*c-Ue*s,Ue*c+ze*s),e.lineTo(ze*n+Ue*i,ze*i-Ue*n),e.lineTo(ze*a+Ue*o,ze*o-Ue*a),e.lineTo(ze*c+Ue*s,ze*s-Ue*c),e.closePath()}};function i1(e,t){let r=null,n=Xs(i);e=typeof e=="function"?e:ce(e||Ys),t=typeof t=="function"?t:ce(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:ce(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ce(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Fi(){}function Wi(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Ap(e){this._context=e}Ap.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Wi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Wi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function a1(e){return new Ap(e)}function _p(e){this._context=e}_p.prototype={areaStart:Fi,areaEnd:Fi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Wi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function o1(e){return new _p(e)}function $p(e){this._context=e}$p.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Wi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function c1(e){return new $p(e)}function jp(e){this._context=e}jp.prototype={areaStart:Fi,areaEnd:Fi,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 s1(e){return new jp(e)}function yl(e){return e<0?-1:1}function ml(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),c=(a*i+o*n)/(n+i);return(yl(a)+yl(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(c))||0}function gl(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function No(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,c=(a-n)/3;e._context.bezierCurveTo(n+c,i+c*t,a-c,o-c*r,a,o)}function zi(e){this._context=e}zi.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:No(this,this._t0,gl(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,No(this,gl(this,r=ml(this,e,t)),r);break;default:No(this,this._t0,r=ml(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Tp(e){this._context=new Ep(e)}(Tp.prototype=Object.create(zi.prototype)).point=function(e,t){zi.prototype.point.call(this,t,e)};function Ep(e){this._context=e}Ep.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 u1(e){return new zi(e)}function l1(e){return new Tp(e)}function Cp(e){this._context=e}Cp.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=bl(e),i=bl(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 bl(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 f1(e){return new Cp(e)}function ro(e,t){this._context=e,this._t=t}ro.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 11,871 bytes, lines 29-32
29default:{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 d1(e){return new ro(e,.5)}function h1(e){return new ro(e,0)}function p1(e){return new ro(e,1)}function Sr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,c=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<c;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function gc(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function v1(e,t){return e[t]}function y1(e){const t=[];return t.key=e,t}function m1(){var e=ce([]),t=gc,r=Sr,n=v1;function i(a){var o=Array.from(e.apply(this,arguments),y1),c,s=o.length,u=-1,f;for(const l of a)for(c=0,++u;c<s;++c)(o[c][u]=[0,+n(l,o[c].key,u,a)]).data=l;for(c=0,f=Vs(t(o));c<s;++c)o[f[c]].index=c;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ce(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ce(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?gc:typeof a=="function"?a:ce(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Sr,i):r},i}function g1(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}Sr(e,t)}}function b1(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,c=0;o<i;++o)c+=e[o][r][1]||0;n[r][1]+=n[r][0]=-c/2}Sr(e,t)}}function x1(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 c=0,s=0,u=0;c<o;++c){for(var f=e[t[c]],l=f[n][1]||0,d=f[n-1][1]||0,h=(l-d)/2,p=0;p<c;++p){var v=e[t[p]],y=v[n][1]||0,b=v[n-1][1]||0;h+=y-b}s+=l,u+=h*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=u/s)}i[n-1][1]+=i[n-1][0]=r,Sr(e,t)}}function Pn(e){"@babel/helpers - typeof";return Pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pn(e)}var w1=["type","size","sizeType"];function bc(){return bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bc.apply(this,arguments)}function xl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xl(Object(r),!0).forEach(function(n){O1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O1(e,t,r){return t=S1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S1(e){var t=P1(e,"string");return Pn(t)=="symbol"?t:t+""}function P1(e,t){if(Pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A1(e,t){if(e==null)return{};var r=_1(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 _1(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 Mp={symbolCircle:Ys,symbolCross:Kw,symbolDiamond:Vw,symbolSquare:Yw,symbolStar:e1,symbolTriangle:t1,symbolWye:n1},$1=Math.PI/180,j1=function(t){var r="symbol".concat(Qa(t));return Mp[r]||Ys},T1=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*$1;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}},E1=function(t,r){Mp["symbol".concat(Qa(t))]=r},Zs=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,c=o===void 0?"area":o,s=A1(t,w1),u=wl(wl({},s),{},{type:n,size:a,sizeType:c}),f=function(){var y=j1(n),b=i1().type(y).size(T1(a,c,n));return b()},l=u.className,d=u.cx,h=u.cy,p=ee(u,!0);return d===+d&&h===+h&&a===+a?_.createElement("path",bc({},p,{className:re("recharts-symbols",l),transform:"translate(".concat(d,", ").concat(h,")"),d:f()})):null};Zs.registerSymbol=E1;function Pr(e){"@babel/helpers - typeof";return Pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pr(e)}function xc(){return xc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xc.apply(this,arguments)}function Ol(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 C1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ol(Object(r),!0).forEach(function(n){An(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ol(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function M1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kp(n.key),n)}}function k1(e,t,r){return t&&N1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function I1(e,t,r){return t=Ui(t),D1(e,Np()?Reflect.construct(t,r||[],Ui(e).constructor):t.apply(e,r))}function D1(e,t){if(t&&(Pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R1(e)}function R1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Np(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Np=function(){return!!e})()}function Ui(e){return Ui=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ui(e)}function L1(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wc(e,t)}function wc(e,t){return wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wc(e,t)}function An(e,t,r){return t=kp(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kp(e){var t=B1(e,"string");return Pr(t)=="symbol"?t:t+""}function B1(e,t){if(Pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var He=32,Js=function(e){function t(){return M1(this,t),I1(this,t,arguments)}return L1(t,e),k1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=He/2,o=He/6,c=He/3,s=n.inactive?i:n.color;if(n.type==="plainline")return _.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:He,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return _.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(c,`
30            A`).concat(o,",").concat(o,",0,1,1,").concat(2*c,",").concat(a,`
31            H`).concat(He,"M").concat(2*c,",").concat(a,`
32            A`).concat(o,",").concat(o,",0,1,1,").concat(c,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return _.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(He/8,"h").concat(He,"v").concat(He*3/4,"h").concat(-He,"z"),className:"recharts-legend-icon"});if(_.isValidElement(n.legendIcon)){var u=C1({},n);return delete u.legendIcon,_.cloneElement(n.legendIcon,u)}return _.createElement(Zs,{fill:s,cx:a,cy:a,size:He,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,c=i.layout,s=i.formatter,u=i.inactiveColor,f={x:0,y:0,width:He,height:He},l={display:c==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,p){var v=h.formatter||s,y=re(An(An({"recharts-legend-item":!0},"legend-item-".concat(p),!0),"inactive",h.inactive));if(h.type==="none")return null;var b=J(h.value)?null:h.value;St(!J(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=h.inactive?u:h.color;return _.createElement("li",xc({className:y,style:l,key:"legend-item-".concat(p)},Ri(n.props,h,p)),_.createElement(fc,{width:o,height:o,viewBox:f,style:d},n.renderIcon(h)),_.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(b,h,p):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var c={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return _.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])}($.PureComponent);An(Js,"displayName","Legend");An(Js,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var F1=Fa;function W1(){this.__data__=new F1,this.size=0}var z1=W1;function U1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var H1=U1;function q1(e){return this.__data__.get(e)}var G1=q1;function K1(e){return this.__data__.has(e)}var X1=K1,V1=Fa,Y1=Bs,Z1=Fs,J1=200;function Q1(e,t){var r=this.__data__;if(r instanceof V1){var n=r.__data__;if(!Y1||n.length<J1-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Z1(n)}return r.set(e,t),this.size=r.size,this}var eO=Q1,tO=Fa,rO=z1,nO=H1,iO=G1,aO=X1,oO=eO;function Jr(e){var t=this.__data__=new tO(e);this.size=t.size}Jr.prototype.clear=rO;Jr.prototype.delete=nO;Jr.prototype.get=iO;Jr.prototype.has=aO;Jr.prototype.set=oO;var Ip=Jr,cO="__lodash_hash_undefined__";function sO(e){return this.__data__.set(e,cO),this}var uO=sO;function lO(e){return this.__data__.has(e)}var fO=lO,dO=Fs,hO=uO,pO=fO;function Hi(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new dO;++t<r;)this.add(e[t])}Hi.prototype.add=Hi.prototype.push=hO;Hi.prototype.has=pO;var Dp=Hi;function vO(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Rp=vO;function yO(e,t){return e.has(t)}var Lp=yO,mO=Dp,gO=Rp,bO=Lp,xO=1,wO=2;function OO(e,t,r,n,i,a){var o=r&xO,c=e.length,s=t.length;if(c!=s&&!(o&&s>c))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var l=-1,d=!0,h=r&wO?new mO:void 0;for(a.set(e,t),a.set(t,e);++l<c;){var p=e[l],v=t[l];if(n)var y=o?n(v,p,l,t,e,a):n(p,v,l,e,t,a);if(y!==void 0){if(y)continue;d=!1;break}
vendor: 4,700 bytes, line 32
32if(h){if(!gO(t,function(b,x){if(!bO(h,x)&&(p===b||i(p,b,r,n,a)))return h.push(x)})){d=!1;break}}else if(!(p===v||i(p,v,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var Bp=OO,SO=ft,PO=SO.Uint8Array,AO=PO;function _O(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var $O=_O;function jO(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Qs=jO,Sl=oi,Pl=AO,TO=Ls,EO=Bp,CO=$O,MO=Qs,NO=1,kO=2,IO="[object Boolean]",DO="[object Date]",RO="[object Error]",LO="[object Map]",BO="[object Number]",FO="[object RegExp]",WO="[object Set]",zO="[object String]",UO="[object Symbol]",HO="[object ArrayBuffer]",qO="[object DataView]",Al=Sl?Sl.prototype:void 0,ko=Al?Al.valueOf:void 0;function GO(e,t,r,n,i,a,o){switch(r){case qO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case HO:return!(e.byteLength!=t.byteLength||!a(new Pl(e),new Pl(t)));case IO:case DO:case BO:return TO(+e,+t);case RO:return e.name==t.name&&e.message==t.message;case FO:case zO:return e==t+"";case LO:var c=CO;case WO:var s=n&NO;if(c||(c=MO),e.size!=t.size&&!s)return!1;var u=o.get(e);if(u)return u==t;n|=kO,o.set(e,t);var f=EO(c(e),c(t),n,i,a,o);return o.delete(e),f;case UO:if(ko)return ko.call(e)==ko.call(t)}return!1}var KO=GO;function XO(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Fp=XO,VO=Fp,YO=Ie;function ZO(e,t,r){var n=t(e);return YO(e)?n:VO(n,r(e))}var JO=ZO;function QO(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var eS=QO;function tS(){return[]}var rS=tS,nS=eS,iS=rS,aS=Object.prototype,oS=aS.propertyIsEnumerable,_l=Object.getOwnPropertySymbols,cS=_l?function(e){return e==null?[]:(e=Object(e),nS(_l(e),function(t){return oS.call(e,t)}))}:iS,sS=cS;function uS(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var lS=uS,fS=Et,dS=Ct,hS="[object Arguments]";function pS(e){return dS(e)&&fS(e)==hS}var vS=pS,$l=vS,yS=Ct,Wp=Object.prototype,mS=Wp.hasOwnProperty,gS=Wp.propertyIsEnumerable,bS=$l(function(){return arguments}())?$l:function(e){return yS(e)&&mS.call(e,"callee")&&!gS.call(e,"callee")},eu=bS,qi={exports:{}};function xS(){return!1}var wS=xS;qi.exports;(function(e,t){var r=ft,n=wS,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,c=o?r.Buffer:void 0,s=c?c.isBuffer:void 0,u=s||n;e.exports=u})(qi,qi.exports);var zp=qi.exports,OS=9007199254740991,SS=/^(?:0|[1-9]\d*)$/;function PS(e,t){var r=typeof e;return t=t??OS,!!t&&(r=="number"||r!="symbol"&&SS.test(e))&&e>-1&&e%1==0&&e<t}var tu=PS,AS=9007199254740991;function _S(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=AS}var ru=_S,$S=Et,jS=ru,TS=Ct,ES="[object Arguments]",CS="[object Array]",MS="[object Boolean]",NS="[object Date]",kS="[object Error]",IS="[object Function]",DS="[object Map]",RS="[object Number]",LS="[object Object]",BS="[object RegExp]",FS="[object Set]",WS="[object String]",zS="[object WeakMap]",US="[object ArrayBuffer]",HS="[object DataView]",qS="[object Float32Array]",GS="[object Float64Array]",KS="[object Int8Array]",XS="[object Int16Array]",VS="[object Int32Array]",YS="[object Uint8Array]",ZS="[object Uint8ClampedArray]",JS="[object Uint16Array]",QS="[object Uint32Array]",le={};le[qS]=le[GS]=le[KS]=le[XS]=le[VS]=le[YS]=le[ZS]=le[JS]=le[QS]=!0;le[ES]=le[CS]=le[US]=le[MS]=le[HS]=le[NS]=le[kS]=le[IS]=le[DS]=le[RS]=le[LS]=le[BS]=le[FS]=le[WS]=le[zS]=!1;function eP(e){return TS(e)&&jS(e.length)&&!!le[$S(e)]}var tP=eP;function rP(e){return function(t){return e(t)}}var Up=rP,Gi={exports:{}};Gi.exports;(function(e,t){var r=Yh,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,c=function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=c})(Gi,Gi.exports);var nP=Gi.exports,iP=tP,aP=Up,jl=nP,Tl=jl&&jl.isTypedArray,oP=Tl?aP(Tl):iP,Hp=oP,cP=lS,sP=eu,uP=Ie,lP=zp,fP=tu,dP=Hp,hP=Object.prototype,pP=hP.hasOwnProperty;function vP(e,t){var r=uP(e),n=!r&&sP(e),i=!r&&!n&&lP(e),a=!r&&!n&&!i&&dP(e),o=r||n||i||a,c=o?cP(e.length,String):[],s=c.length;for(var u in e)(t||pP.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||fP(u,s)))&&c.push(u);return c}var yP=vP,mP=Object.prototype;function gP(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||mP;return e===r}var bP=gP;function xP(e,t){return function(r){return e(t(r))}}var qp=xP,wP=qp,OP=wP(Object.keys,Object),SP=OP,PP=bP,AP=SP,_P=Object.prototype,$P=_P.hasOwnProperty;function jP(e){if(!PP(e))return AP(e);var t=[];for(var r in Object(e))$P.call(e,r)&&r!="constructor"&&t.push(r);return t}var TP=jP,EP=Rs,CP=ru;
vendor: 6,966 bytes, line 32
32function MP(e){return e!=null&&CP(e.length)&&!EP(e)}var li=MP,NP=yP,kP=TP,IP=li;function DP(e){return IP(e)?NP(e):kP(e)}var no=DP,RP=JO,LP=sS,BP=no;function FP(e){return RP(e,BP,LP)}var WP=FP,El=WP,zP=1,UP=Object.prototype,HP=UP.hasOwnProperty;function qP(e,t,r,n,i,a){var o=r&zP,c=El(e),s=c.length,u=El(t),f=u.length;if(s!=f&&!o)return!1;for(var l=s;l--;){var d=c[l];if(!(o?d in t:HP.call(t,d)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var v=!0;a.set(e,t),a.set(t,e);for(var y=o;++l<s;){d=c[l];var b=e[d],x=t[d];if(n)var w=o?n(x,b,d,t,e,a):n(b,x,d,e,t,a);if(!(w===void 0?b===x||i(b,x,r,n,a):w)){v=!1;break}y||(y=d=="constructor")}if(v&&!y){var m=e.constructor,g=t.constructor;m!=g&&"constructor"in e&&"constructor"in t&&!(typeof m=="function"&&m instanceof m&&typeof g=="function"&&g instanceof g)&&(v=!1)}return a.delete(e),a.delete(t),v}var GP=qP,KP=sr,XP=ft,VP=KP(XP,"DataView"),YP=VP,ZP=sr,JP=ft,QP=ZP(JP,"Promise"),eA=QP,tA=sr,rA=ft,nA=tA(rA,"Set"),Gp=nA,iA=sr,aA=ft,oA=iA(aA,"WeakMap"),cA=oA,Oc=YP,Sc=Bs,Pc=eA,Ac=Gp,_c=cA,Kp=Et,Qr=Jh,Cl="[object Map]",sA="[object Object]",Ml="[object Promise]",Nl="[object Set]",kl="[object WeakMap]",Il="[object DataView]",uA=Qr(Oc),lA=Qr(Sc),fA=Qr(Pc),dA=Qr(Ac),hA=Qr(_c),Kt=Kp;(Oc&&Kt(new Oc(new ArrayBuffer(1)))!=Il||Sc&&Kt(new Sc)!=Cl||Pc&&Kt(Pc.resolve())!=Ml||Ac&&Kt(new Ac)!=Nl||_c&&Kt(new _c)!=kl)&&(Kt=function(e){var t=Kp(e),r=t==sA?e.constructor:void 0,n=r?Qr(r):"";if(n)switch(n){case uA:return Il;case lA:return Cl;case fA:return Ml;case dA:return Nl;case hA:return kl}return t});var pA=Kt,Io=Ip,vA=Bp,yA=KO,mA=GP,Dl=pA,Rl=Ie,Ll=zp,gA=Hp,bA=1,Bl="[object Arguments]",Fl="[object Array]",Oi="[object Object]",xA=Object.prototype,Wl=xA.hasOwnProperty;function wA(e,t,r,n,i,a){var o=Rl(e),c=Rl(t),s=o?Fl:Dl(e),u=c?Fl:Dl(t);s=s==Bl?Oi:s,u=u==Bl?Oi:u;var f=s==Oi,l=u==Oi,d=s==u;if(d&&Ll(e)){if(!Ll(t))return!1;o=!0,f=!1}if(d&&!f)return a||(a=new Io),o||gA(e)?vA(e,t,r,n,i,a):yA(e,t,s,r,n,i,a);if(!(r&bA)){var h=f&&Wl.call(e,"__wrapped__"),p=l&&Wl.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,y=p?t.value():t;return a||(a=new Io),i(v,y,r,n,a)}}return d?(a||(a=new Io),mA(e,t,r,n,i,a)):!1}var OA=wA,SA=OA,zl=Ct;function Xp(e,t,r,n,i){return e===t?!0:e==null||t==null||!zl(e)&&!zl(t)?e!==e&&t!==t:SA(e,t,r,n,Xp,i)}var nu=Xp,PA=Ip,AA=nu,_A=1,$A=2;function jA(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var c=r[i];if(o&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){c=r[i];var s=c[0],u=e[s],f=c[1];if(o&&c[2]){if(u===void 0&&!(s in e))return!1}else{var l=new PA;if(n)var d=n(u,f,s,e,t,l);if(!(d===void 0?AA(f,u,_A|$A,n,l):d))return!1}}return!0}var TA=jA,EA=Lt;function CA(e){return e===e&&!EA(e)}var Vp=CA,MA=Vp,NA=no;function kA(e){for(var t=NA(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,MA(i)]}return t}var IA=kA;function DA(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Yp=DA,RA=TA,LA=IA,BA=Yp;function FA(e){var t=LA(e);return t.length==1&&t[0][2]?BA(t[0][0],t[0][1]):function(r){return r===e||RA(r,e,t)}}var WA=FA;function zA(e,t){return e!=null&&t in Object(e)}var UA=zA,HA=np,qA=eu,GA=Ie,KA=tu,XA=ru,VA=za;function YA(e,t,r){t=HA(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=VA(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&XA(i)&&KA(o,i)&&(GA(e)||qA(e)))}var ZA=YA,JA=UA,QA=ZA;function e_(e,t){return e!=null&&QA(e,t,JA)}var t_=e_,r_=nu,n_=ip,i_=t_,a_=Ds,o_=Vp,c_=Yp,s_=za,u_=1,l_=2;function f_(e,t){return a_(e)&&o_(t)?c_(s_(e),t):function(r){var n=n_(r,e);return n===void 0&&n===t?i_(r,e):r_(t,n,u_|l_)}}var d_=f_;function h_(e){return e}var en=h_;function p_(e){return function(t){return t==null?void 0:t[e]}}var v_=p_,y_=Us;function m_(e){return function(t){return y_(t,e)}}var g_=m_,b_=v_,x_=g_,w_=Ds,O_=za;function S_(e){return w_(e)?b_(O_(e)):x_(e)}var P_=S_,A_=WA,__=d_,$_=en,j_=Ie,T_=P_;function E_(e){return typeof e=="function"?e:e==null?$_:typeof e=="object"?j_(e)?__(e[0],e[1]):A_(e):T_(e)}var Bt=E_;function C_(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var Zp=C_;function M_(e){return e!==e}var N_=M_;function k_(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var I_=k_,D_=Zp,R_=N_,L_=I_;function B_(e,t,r){return t===t?L_(e,t,r):D_(e,R_,r)}var F_=B_,W_=F_;function z_(e,t){var r=e==null?0:e.length;return!!r&&W_(e,t,0)>-1}var U_=z_;function H_(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var q_=H_;function G_(){}var K_=G_,Do=Gp,X_=K_,V_=Qs,Y_=1/0,Z_=Do&&1/V_(new Do([,-0]))[1]==Y_?function(e){return new Do(e)}:X_,J_=Z_,Q_=Dp,e$=U_,t$=q_,r$=Lp,n$=J_,i$=Qs,a$=200;function o$(e,t,r){var n=-1,i=e$,a=e.length,o=!0,c=[],s=c;if(r)o=!1,i=t$;else if(a>=a$){var u=t?null:n$(e);if(u)return i$(u);o=!1,i=r$,s=new Q_}else s=t?[]:c;e:for(;++n<a;){var f=e[n],l=t?t(f):f;if(f=r||f!==0?f:0,o&&l===l){for(var d=s.length;d--;)if(s[d]===l)continue e;t&&s.push(l),c.push(f)}else i(s,l,r)||(s!==c&&s.push(l),c.push(f))}return c}var c$=o$,s$=Bt,u$=c$;function l$(e,t){return e&&e.length?u$(e,s$(t)):[]}var f$=l$;const Ul=se(f$);function Jp(e,t,r){return t===!0?Ul(e,r):J(t)?Ul(e,t):e}function Ar(e){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ar(e)}var d$=["ref"];function Hl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hl(Object(r),!0).forEach(function(n){io(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ql(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ev(n.key),n)}}function p$(e,t,r){return t&&ql(e.prototype,t),r&&ql(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function v$(e,t,r){return t=Ki(t),y$(e,Qp()?Reflect.construct(t,r||[],Ki(e).constructor):t.apply(e,r))}function y$(e,t){if(t&&(Ar(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m$(e)}function m$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qp=function(){return!!e})()}
vendor: 18,465 bytes, lines 32-33
32function Ki(e){return Ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ki(e)}function g$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$c(e,t)}function $c(e,t){return $c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$c(e,t)}function io(e,t,r){return t=ev(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ev(e){var t=b$(e,"string");return Ar(t)=="symbol"?t:t+""}function b$(e,t){if(Ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function x$(e,t){if(e==null)return{};var r=w$(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 w$(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 O$(e){return e.value}function S$(e,t){if(_.isValidElement(e))return _.cloneElement(e,t);if(typeof e=="function")return _.createElement(e,t);t.ref;var r=x$(t,d$);return _.createElement(Js,r)}var Gl=1,gr=function(e){function t(){var r;h$(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=v$(this,t,[].concat(i)),io(r,"lastBoundingBox",{width:-1,height:-1}),r}return g$(t,e),p$(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)>Gl||Math.abs(i.height-this.lastBoundingBox.height)>Gl)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?yt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,c=i.verticalAlign,s=i.margin,u=i.chartWidth,f=i.chartHeight,l,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();l={left:((u||0)-h.width)/2}}else l=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(c==="middle"){var p=this.getBBoxSnapshot();d={top:((f||0)-p.height)/2}}else d=c==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return yt(yt({},l),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,c=i.height,s=i.wrapperStyle,u=i.payloadUniqBy,f=i.payload,l=yt(yt({position:"absolute",width:o||"auto",height:c||"auto"},this.getDefaultPosition(s)),s);return _.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(h){n.wrapperNode=h}},S$(a,yt(yt({},this.props),{},{payload:Jp(f,u,O$)})))}}],[{key:"getWithHeight",value:function(n,i){var a=yt(yt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&F(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}($.PureComponent);io(gr,"displayName","Legend");io(gr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Kl=oi,P$=eu,A$=Ie,Xl=Kl?Kl.isConcatSpreadable:void 0;function _$(e){return A$(e)||P$(e)||!!(Xl&&e&&e[Xl])}var $$=_$,j$=Fp,T$=$$;function tv(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=T$),i||(i=[]);++a<o;){var c=e[a];t>0&&r(c)?t>1?tv(c,t-1,r,n,i):j$(i,c):n||(i[i.length]=c)}return i}var rv=tv;function E$(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),c=o.length;c--;){var s=o[e?c:++i];if(r(a[s],s,a)===!1)break}return t}}var C$=E$,M$=C$,N$=M$(),k$=N$,I$=k$,D$=no;function R$(e,t){return e&&I$(e,t,D$)}var nv=R$,L$=li;function B$(e,t){return function(r,n){if(r==null)return r;if(!L$(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var F$=B$,W$=nv,z$=F$,U$=z$(W$),iu=U$,H$=iu,q$=li;function G$(e,t){var r=-1,n=q$(e)?Array(e.length):[];return H$(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var iv=G$;function K$(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var X$=K$,Vl=Kr;function V$(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=Vl(e),o=t!==void 0,c=t===null,s=t===t,u=Vl(t);if(!c&&!u&&!a&&e>t||a&&o&&s&&!c&&!u||n&&o&&s||!r&&s||!i)return 1;if(!n&&!a&&!u&&e<t||u&&r&&i&&!n&&!a||c&&r&&i||!o&&i||!s)return-1}return 0}var Y$=V$,Z$=Y$;function J$(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,c=r.length;++n<o;){var s=Z$(i[n],a[n]);if(s){if(n>=c)return s;var u=r[n];return s*(u=="desc"?-1:1)}}return e.index-t.index}var Q$=J$,Ro=zs,ej=Us,tj=Bt,rj=iv,nj=X$,ij=Up,aj=Q$,oj=en,cj=Ie;function sj(e,t,r){t.length?t=Ro(t,function(a){return cj(a)?function(o){return ej(o,a.length===1?a[0]:a)}:a}):t=[oj];var n=-1;t=Ro(t,ij(tj));var i=rj(e,function(a,o,c){var s=Ro(t,function(u){return u(a)});return{criteria:s,index:++n,value:a}});return nj(i,function(a,o){return aj(a,o,r)})}var uj=sj;function lj(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var fj=lj,dj=fj,Yl=Math.max;function hj(e,t,r){return t=Yl(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Yl(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=n[i];return c[t]=r(o),dj(e,this,c)}}var pj=hj;function vj(e){return function(){return e}}var yj=vj,mj=sr,gj=function(){try{var e=mj(Object,"defineProperty");return e({},"",{}),e}catch{}}(),av=gj,bj=yj,Zl=av,xj=en,wj=Zl?function(e,t){return Zl(e,"toString",{configurable:!0,enumerable:!1,value:bj(t),writable:!0})}:xj,Oj=wj,Sj=800,Pj=16,Aj=Date.now;function _j(e){var t=0,r=0;return function(){var n=Aj(),i=Pj-(n-r);if(r=n,i>0){if(++t>=Sj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var $j=_j,jj=Oj,Tj=$j,Ej=Tj(jj),Cj=Ej,Mj=en,Nj=pj,kj=Cj;function Ij(e,t){return kj(Nj(e,t,Mj),e+"")}var Dj=Ij,Rj=Ls,Lj=li,Bj=tu,Fj=Lt;function Wj(e,t,r){if(!Fj(r))return!1;var n=typeof t;return(n=="number"?Lj(r)&&Bj(t,r.length):n=="string"&&t in r)?Rj(r[t],e):!1}var ao=Wj,zj=rv,Uj=uj,Hj=Dj,Jl=ao,qj=Hj(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Jl(e,t[0],t[1])?t=[]:r>2&&Jl(t[0],t[1],t[2])&&(t=[t[0]]),Uj(e,zj(t,1),[])}),Gj=qj;const au=se(Gj);function _n(e){"@babel/helpers - typeof";return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(e)}function jc(){return jc=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},jc.apply(this,arguments)}function Kj(e,t){return Zj(e)||Yj(e,t)||Vj(e,t)||Xj()}function Xj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vj(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 Ql(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Yj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,c=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(f){u=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}function Zj(e){if(Array.isArray(e))return e}function ef(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ef(Object(r),!0).forEach(function(n){Jj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ef(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jj(e,t,r){return t=Qj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qj(e){var t=eT(e,"string");return _n(t)=="symbol"?t:t+""}function eT(e,t){if(_n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(_n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tT(e){return Array.isArray(e)&&we(e[0])&&we(e[1])?e.join(" ~ "):e}var rT=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,c=o===void 0?{}:o,s=t.labelStyle,u=s===void 0?{}:s,f=t.payload,l=t.formatter,d=t.itemSorter,h=t.wrapperClassName,p=t.labelClassName,v=t.label,y=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,w=function(){if(f&&f.length){var E={padding:0,margin:0},k=(d?au(f,d):f).map(function(N,D){if(N.type==="none")return null;var I=Lo({display:"block",paddingTop:4,paddingBottom:4,color:N.color||"#000"},c),L=N.formatter||l||tT,B=N.value,U=N.name,K=B,q=U;if(L&&K!=null&&q!=null){var H=L(B,U,N,D,f);if(Array.isArray(H)){var X=Kj(H,2);K=X[0],q=X[1]}else K=H}return _.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:I},we(q)?_.createElement("span",{className:"recharts-tooltip-item-name"},q):null,we(q)?_.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,_.createElement("span",{className:"recharts-tooltip-item-value"},K),_.createElement("span",{className:"recharts-tooltip-item-unit"},N.unit||""))});return _.createElement("ul",{className:"recharts-tooltip-item-list",style:E},k)}return null},m=Lo({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),g=Lo({margin:0},u),O=!Q(v),S=O?v:"",A=re("recharts-default-tooltip",h),T=re("recharts-tooltip-label",p);O&&y&&f!==void 0&&f!==null&&(S=y(v,f));var C=x?{role:"status","aria-live":"assertive"}:{};return _.createElement("div",jc({className:A,style:m},C),_.createElement("p",{className:T,style:g},_.isValidElement(S)?S:"".concat(S)),w())};function $n(e){"@babel/helpers - typeof";return $n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$n(e)}function Si(e,t,r){return t=nT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nT(e){var t=iT(e,"string");return $n(t)=="symbol"?t:t+""}function iT(e,t){if($n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sn="recharts-tooltip-wrapper",aT={visibility:"hidden"};function oT(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return re(sn,Si(Si(Si(Si({},"".concat(sn,"-right"),F(r)&&t&&F(t.x)&&r>=t.x),"".concat(sn,"-left"),F(r)&&t&&F(t.x)&&r<t.x),"".concat(sn,"-bottom"),F(n)&&t&&F(t.y)&&n>=t.y),"".concat(sn,"-top"),F(n)&&t&&F(t.y)&&n<t.y))}function tf(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,c=e.tooltipDimension,s=e.viewBox,u=e.viewBoxDimension;if(a&&F(a[n]))return a[n];var f=r[n]-c-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var d=f,h=s[n];return d<h?Math.max(l,s[n]):Math.max(f,s[n])}var p=l+c,v=s[n]+u;return p>v?Math.max(f,s[n]):Math.max(l,s[n])}function cT(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 sT(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,c=e.useTranslate3d,s=e.viewBox,u,f,l;return o.height>0&&o.width>0&&r?(f=tf({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=tf({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),u=cT({translateX:f,translateY:l,useTranslate3d:c})):u=aT,{cssProperties:u,cssClasses:oT({translateX:f,translateY:l,coordinate:r})}}function _r(e){"@babel/helpers - typeof";return _r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_r(e)}function rf(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 nf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rf(Object(r),!0).forEach(function(n){Ec(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lT(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,cv(n.key),n)}}function fT(e,t,r){return t&&lT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dT(e,t,r){return t=Xi(t),hT(e,ov()?Reflect.construct(t,r||[],Xi(e).constructor):t.apply(e,r))}function hT(e,t){if(t&&(_r(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pT(e)}function pT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ov(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ov=function(){return!!e})()}function Xi(e){return Xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xi(e)}function vT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tc(e,t)}function Tc(e,t){return Tc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tc(e,t)}function Ec(e,t,r){return t=cv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cv(e){var t=yT(e,"string");return _r(t)=="symbol"?t:t+""}function yT(e,t){if(_r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(_r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var af=1,mT=function(e){function t(){var r;uT(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=dT(this,t,[].concat(i)),Ec(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Ec(r,"handleKeyDown",function(o){if(o.key==="Escape"){var c,s,u,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(c=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&c!==void 0?c:0,y:(u=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),r}return vT(t,e),fT(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>af||Math.abs(n.height-this.state.lastBoundingBox.height)>af)&&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,c=i.animationDuration,s=i.animationEasing,u=i.children,f=i.coordinate,l=i.hasPayload,d=i.isAnimationActive,h=i.offset,p=i.position,v=i.reverseDirection,y=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,w=sT({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:h,position:p,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:b}
33),m=w.cssClasses,g=w.cssProperties,O=nf(nf({transition:d&&a?"transform ".concat(c,"ms ").concat(s):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return _.createElement("div",{tabIndex:-1,className:m,style:O,ref:function(A){n.wrapperNode=A}},u)}}])}($.PureComponent),gT=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Pt={isSsr:gT(),get:function(t){return Pt[t]},set:function(t,r){if(typeof t=="string")Pt[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){Pt[i]=t[i]})}}};function $r(e){"@babel/helpers - typeof";return $r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$r(e)}function of(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 cf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?of(Object(r),!0).forEach(function(n){ou(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):of(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xT(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,uv(n.key),n)}}function wT(e,t,r){return t&&xT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function OT(e,t,r){return t=Vi(t),ST(e,sv()?Reflect.construct(t,r||[],Vi(e).constructor):t.apply(e,r))}function ST(e,t){if(t&&($r(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PT(e)}function PT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sv=function(){return!!e})()}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(e)}function AT(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&&Cc(e,t)}function Cc(e,t){return Cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cc(e,t)}function ou(e,t,r){return t=uv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uv(e){var t=_T(e,"string");return $r(t)=="symbol"?t:t+""}function _T(e,t){if($r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $T(e){return e.dataKey}function jT(e,t){return _.isValidElement(e)?_.cloneElement(e,t):typeof e=="function"?_.createElement(e,t):_.createElement(rT,t)}var ot=function(e){function t(){return bT(this,t),OT(this,t,arguments)}return AT(t,e),wT(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,c=i.animationDuration,s=i.animationEasing,u=i.content,f=i.coordinate,l=i.filterNull,d=i.isAnimationActive,h=i.offset,p=i.payload,v=i.payloadUniqBy,y=i.position,b=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,m=i.wrapperStyle,g=p??[];l&&g.length&&(g=Jp(p.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),v,$T));var O=g.length>0;return _.createElement(mT,{allowEscapeViewBox:o,animationDuration:c,animationEasing:s,isAnimationActive:d,active:a,coordinate:f,hasPayload:O,offset:h,position:y,reverseDirection:b,useTranslate3d:x,viewB
vendor: 13,826 bytes, lines 33-39
33ox:w,wrapperStyle:m},jT(u,cf(cf({},this.props),{},{payload:g})))}}])}($.PureComponent);ou(ot,"displayName","Tooltip");ou(ot,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Pt.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 TT=ft,ET=function(){return TT.Date.now()},CT=ET,MT=/\s/;function NT(e){for(var t=e.length;t--&&MT.test(e.charAt(t)););return t}var kT=NT,IT=kT,DT=/^\s+/;function RT(e){return e&&e.slice(0,IT(e)+1).replace(DT,"")}var LT=RT,BT=LT,sf=Lt,FT=Kr,uf=NaN,WT=/^[-+]0x[0-9a-f]+$/i,zT=/^0b[01]+$/i,UT=/^0o[0-7]+$/i,HT=parseInt;function qT(e){if(typeof e=="number")return e;if(FT(e))return uf;if(sf(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=sf(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=BT(e);var r=zT.test(e);return r||UT.test(e)?HT(e.slice(2),r?2:8):WT.test(e)?uf:+e}var lv=qT,GT=Lt,Bo=CT,lf=lv,KT="Expected a function",XT=Math.max,VT=Math.min;function YT(e,t,r){var n,i,a,o,c,s,u=0,f=!1,l=!1,d=!0;if(typeof e!="function")throw new TypeError(KT);t=lf(t)||0,GT(r)&&(f=!!r.leading,l="maxWait"in r,a=l?XT(lf(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function h(O){var S=n,A=i;return n=i=void 0,u=O,o=e.apply(A,S),o}function p(O){return u=O,c=setTimeout(b,t),f?h(O):o}function v(O){var S=O-s,A=O-u,T=t-S;return l?VT(T,a-A):T}function y(O){var S=O-s,A=O-u;return s===void 0||S>=t||S<0||l&&A>=a}function b(){var O=Bo();if(y(O))return x(O);c=setTimeout(b,v(O))}function x(O){return c=void 0,d&&n?h(O):(n=i=void 0,o)}function w(){c!==void 0&&clearTimeout(c),u=0,n=s=i=c=void 0}function m(){return c===void 0?o:x(Bo())}function g(){var O=Bo(),S=y(O);if(n=arguments,i=this,s=O,S){if(c===void 0)return p(s);if(l)return clearTimeout(c),c=setTimeout(b,t),h(s)}return c===void 0&&(c=setTimeout(b,t)),o}return g.cancel=w,g.flush=m,g}var ZT=YT,JT=ZT,QT=Lt,eE="Expected a function";function tE(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(eE);return QT(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),JT(e,t,{leading:n,maxWait:t,trailing:i})}var rE=tE;const fv=se(rE);function jn(e){"@babel/helpers - typeof";return jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jn(e)}function ff(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ff(Object(r),!0).forEach(function(n){nE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ff(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nE(e,t,r){return t=iE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iE(e){var t=aE(e,"string");return jn(t)=="symbol"?t:t+""}function aE(e,t){if(jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oE(e,t){return lE(e)||uE(e,t)||sE(e,t)||cE()}function cE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
34In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sE(e,t){if(e){if(typeof e=="string")return df(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return df(e,t)}}function df(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,c=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(f){u=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}function lE(e){if(Array.isArray(e))return e}var fE=$.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,c=e.height,s=c===void 0?"100%":c,u=e.minWidth,f=u===void 0?0:u,l=e.minHeight,d=e.maxHeight,h=e.children,p=e.debounce,v=p===void 0?0:p,y=e.id,b=e.className,x=e.onResize,w=e.style,m=w===void 0?{}:w,g=$.useRef(null),O=$.useRef();O.current=x,$.useImperativeHandle(t,function(){return Object.defineProperty(g.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),g.current},configurable:!0})});var S=$.useState({containerWidth:i.width,containerHeight:i.height}),A=oE(S,2),T=A[0],C=A[1],j=$.useCallback(function(k,N){C(function(D){var I=Math.round(k),L=Math.round(N);return D.containerWidth===I&&D.containerHeight===L?D:{containerWidth:I,containerHeight:L}})},[]);$.useEffect(function(){var k=function(U){var K,q=U[0].contentRect,H=q.width,X=q.height;j(H,X),(K=O.current)===null||K===void 0||K.call(O,H,X)};v>0&&(k=fv(k,v,{trailing:!0,leading:!1}));var N=new ResizeObserver(k),D=g.current.getBoundingClientRect(),I=D.width,L=D.height;return j(I,L),N.observe(g.current),function(){N.disconnect()}},[j,v]);var E=$.useMemo(function(){var k=T.containerWidth,N=T.containerHeight;if(k<0||N<0)return null;St(Yt(o)||Yt(s),`The width(%s) and height(%s) are both fixed numbers,
35       maybe you don't need to use a ResponsiveContainer.`,o,s),St(!r||r>0,"The aspect(%s) must be greater than zero.",r);var D=Yt(o)?k:o,I=Yt(s)?N:s;r&&r>0&&(D?I=D/r:I&&(D=I*r),d&&I>d&&(I=d)),St(D>0||I>0,`The width(%s) and height(%s) of chart should be greater than 0,
36       please check the style of container, or the props width(%s) and height(%s),
37       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
38       height and width.`,D,I,o,s,f,l,r);var L=!Array.isArray(h)&&Ot(h.type).endsWith("Chart");return _.Children.map(h,function(B){return cp.isElement(B)?$.cloneElement(B,Pi({width:D,height:I},L?{style:Pi({height:"100%",width:"100%",maxHeight:I,maxWidth:D},B.props.style)}:{})):B})},[r,h,s,d,l,f,T,o]);return _.createElement("div",{id:y?"".concat(y):void 0,className:re("recharts-responsive-container",b),style:Pi(Pi({},m),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:d}),ref:g},E)}),dv=function(t){return null};dv.displayName="Cell";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 hf(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 Mc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hf(Object(r),!0).forEach(function(n){dE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dE(e,t,r){return t=hE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hE(e){var t=pE(e,"string");return Tn(t)=="symbol"?t:t+""}function pE(e,t){if(Tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fr={widthCache:{},cacheCount:0},vE=2e3,yE={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},pf="recharts_measurement_span";function mE(e){var t=Mc({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var gn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Pt.isSsr)return{width:0,height:0};var n=mE(r),i=JSON.stringify({text:t,copyStyle:n});if(fr.widthCache[i])return fr.widthCache[i];try{var a=document.getElementById(pf);a||(a=document.createElement("span"),a.setAttribute("id",pf),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Mc(Mc({},yE),n);Object.assign(a.style,o),a.textContent="".concat(t);var c=a.getBoundingClientRect(),s={width:c.width,height:c.height};return fr.widthCache[i]=s,++fr.cacheCount>vE&&(fr.cacheCount=0,fr.widthCache={}),s}catch{return{width:0,height:0}}},gE=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Yi(e,t){return OE(e)||wE(e,t)||xE(e,t)||bE()}function bE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
39In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xE(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 wE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,c=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(f){u=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}function OE(e){if(Array.isArray(e))return e}function SE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yf(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,AE(n.key),n)}}function PE(e,t,r){return t&&yf(e.prototype,t),r&&yf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function AE(e){var t=_E(e,"string");return En(t)=="symbol"?t:t+""}function _E(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)}var mf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,gf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,$E=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,jE=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,hv={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},TE=Object.keys(hv),vr="NaN";function EE(e,t){return e*hv[t]}var Ai=function(){function e(t,r){SE(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!$E.test(r)&&(this.num=NaN,this.unit=""),TE.includes(r)&&(this.num=EE(t,r),this.unit="px")}return PE(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=jE.exec(r))!==null&&n!==void 0?n:[],a=Yi(i,3),o=a[1],c=a[2];return new e(parseFloat(o),c??"")}}])}();function pv(e){if(e.includes(vr))return vr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=mf.exec(t))!==null&&r!==void 0?r:[],i=Yi(n,4),a=i[1],o=i[2],c=i[3],s=Ai.parse(a??""),u=Ai.parse(c??""),f=o==="*"?s.multiply(u):s.divide(u);if(f.isNaN())return vr;t=t.replace(mf,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,d=(l=gf.exec(t))!==null&&l!==void 0?l:[],h=Yi(d,4),p=h[1],v=h[2],y=h[3],b=Ai.parse(p??""),x=Ai.parse(y??""),w=v==="+"?b.add(x):b.subtract(x);if(w.isNaN())return vr;t=t.replace(gf,w.toString())}return t}var bf=/\(([^()]*)\)/;function CE(e){for(var t=e;t.includes("(");){var r=bf.exec(t),n=Yi(r,2),i=n[1];t=t.replace(bf,pv(i))}return t}function ME(e){var t=e.replace(/\s+/g,"");return t=CE(t),t=pv(t),t}function NE(e){try{return ME(e)}catch{return vr}}function Fo(e){var t=NE(e.slice(5,-1));return t===vr?"":t}var kE=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],IE=["dx","dy","angle","className","breakAll"];function Nc(){return Nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
39for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nc.apply(this,arguments)}function xf(e,t){if(e==null)return{};var r=DE(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 DE(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 wf(e,t){return FE(e)||BE(e,t)||LE(e,t)||RE()}function RE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
40In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LE(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 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 BE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,c=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(f){u=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}function FE(e){if(Array.isArray(e))return e}var vv=/[ \f\n\r\t\v\u2028\u2029]+/,yv=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Q(r)||(n?a=r.toString().split(""):a=r.toString().split(vv));var o=a.map(function(s){return{word:s,width:gn(s,i).width}}),c=n?0:gn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:c}}catch{return null}},WE=function(t,r,n,i,a){var o=t.maxLines,c=t.children,s=t.style,u=t.breakAll,f=F(o),l=c,d=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return D.reduce(function(I,L){var B=L.word,U=L.width,K=I[I.length-1];if(K&&(i==null||a||K.width+U+n<Number(i)))K.words.push(B),K.width+=U+n;else{var q={words:[B],width:U};I.push(q)}return I},[])},h=d(r),p=function(D){return D.reduce(function(I,L){return I.width>L.width?I:L})};if(!f)return h;for(var v="…",y=function(D){var I=l.slice(0,D),L=yv({breakAll:u,style:s,children:I+v}).wordsWithComputedWidth,B=d(L),U=B.length>o||p(B).width>Number(i);return[U,B]},b=0,x=l.length-1,w=0,m;b<=x&&w<=l.length-1;){var g=Math.floor((b+x)/2),O=g-1,S=y(O),A=wf(S,2),T=A[0],C=A[1],j=y(g),E=wf(j,1),k=E[0];if(!T&&!k&&(b=g+1),T&&k&&(x=g-1),!T&&k){m=C;break}w++}return m||h},Sf=function(t){var r=Q(t)?[]:t.toString().split(vv);return[{words:r}]},zE=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,c=t.maxLines;if((r||n)&&!Pt.isSsr){var s,u,f=yv({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,d=f.spaceWidth;s=l,u=d}else return Sf(i);return WE({breakAll:o,children:i,maxLines:c,style:a},s,u,r,n)}return Sf(i)},Pf="#808080",Zi=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,c=o===void 0?"1em":o,s=t.capHeight,u=s===void 0?"0.71em":s,f=t.scaleToFit,l=f===void 0?!1:f,d=t.textAnchor,h=d===void 0?"start":d,p=t.verticalAnchor,v=p===void 0?"end":p,y=t.fill,b=y===void 0?Pf:y,x=xf(t,kE),w=$.useMemo(function(){return zE({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),m=x.dx,g=x.dy,O=x.angle,S=x.className,A=x.breakAll,T=xf(x,IE);if(!we(n)||!we(a))return null;var C=n+(F(m)?m:0),j=a+(F(g)?g:0),E;switch(v){case"start":E=Fo("calc(".concat(u,")"));break;case"middle":E=Fo("calc(".concat((w.length-1)/2," * -").concat(c," + (").concat(u," / 2))"));break;default:E=Fo("calc(".concat(w.length-1," * -").concat(c,")"));break}var k=[];if(l){var N=w[0].width,D=x.width;k.push("scale(".concat((F(D)?D/N:1)/N,")"))}return O&&k.push("rotate(".concat(O,", ").concat(C,", ").concat(j,")")),k.length&&(T.transform=k.join(" ")),_.createElement("text",Nc({},ee(T,!0),{x:C,y:j,className:re("recharts-text",S),textAnchor:h,fill:b.includes("url")?Pf:b}),w.map(function(I,L){var B=I.words.join(A?"":" ");return _.createElement("tspan",{x:C,dy:L===0?E:c,key:"".concat(B,"-").concat(L)},B)}))};function Dt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function UE(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function cu(e){let t,r,n;e.length!==2?(t=Dt,r=(c,s)=>Dt(e(c),s),n=(c,s)=>e(c)-s):(t=e===Dt||e===UE?e:HE,r=e,n=e);function i(c,s,u=0,f=c.length){if(u<f){if(t(s,s)!==0)return f;do{const l=u+f>>>1;r(c[l],s)<0?u=l+1:f=l}while(u<f)}return u}function a(c,s,u=0,f=c.length){if(u<f){if(t(s,s)!==0)return f;do{const l=u+f>>>1;r(c[l],s)<=0?u=l+1:f=l}while(u<f)}return u}function o(c,s,u=0,f=c.length){const l=i(c,s,u,f-1);return l>u&&n(c[l-1],s)>-n(c[l],s)?l-1:l}return{left:i,center:o,right:a}}function HE(){return 0}function mv(e){return e===null?NaN:+e}function*qE(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const GE=cu(Dt),fi=GE.right;cu(mv).center;class Af extends Map{constructor(t,r=VE){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(_f(this,t))}has(t){return super.has(_f(this,t))}set(t,r){return super.set(KE(this,t),r)}delete(t){return super.delete(XE(this,t))}}function _f({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function KE({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function XE({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function VE(e){return e!==null&&typeof e=="object"?e.valueOf():e}function YE(e=Dt){if(e===Dt)return gv;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)}}
40function gv(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const ZE=Math.sqrt(50),JE=Math.sqrt(10),QE=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>=ZE?10:a>=JE?5:a>=QE?2:1;let c,s,u;return i<0?(u=Math.pow(10,-i)/o,c=Math.round(e*u),s=Math.round(t*u),c/u<e&&++c,s/u>t&&--s,u=-u):(u=Math.pow(10,i)*o,c=Math.round(e/u),s=Math.round(t/u),c*u<e&&++c,s*u>t&&--s),s<c&&.5<=r&&r<2?Ji(e,t,r*2):[c,s,u]}function kc(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 c=a-i+1,s=new Array(c);if(n)if(o<0)for(let u=0;u<c;++u)s[u]=(a-u)/-o;else for(let u=0;u<c;++u)s[u]=(a-u)*o;else if(o<0)for(let u=0;u<c;++u)s[u]=(i+u)/-o;else for(let u=0;u<c;++u)s[u]=(i+u)*o;return s}function Ic(e,t,r){return t=+t,e=+e,r=+r,Ji(e,t,r)[2]}function Dc(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Ic(t,e,r):Ic(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function $f(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function jf(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function bv(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?gv:YE(i);n>r;){if(n-r>600){const s=n-r+1,u=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*l*(s-l)/s)*(u-s/2<0?-1:1),h=Math.max(r,Math.floor(t-u*l/s+d)),p=Math.min(n,Math.floor(t+(s-u)*l/s+d));bv(e,t,h,p,i)}const a=e[t];let o=r,c=n;for(un(e,r,t),i(e[n],a)>0&&un(e,r,n);o<c;){for(un(e,o,c),++o,--c;i(e[o],a)<0;)++o;for(;i(e[c],a)>0;)--c}i(e[r],a)===0?un(e,r,c):(++c,un(e,c,n)),c<=t&&(r=c+1),t<=c&&(n=c-1)}return e}function un(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function eC(e,t,r){if(e=Float64Array.from(qE(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return jf(e);if(t>=1)return $f(e);var n,i=(n-1)*t,a=Math.floor(i),o=$f(bv(e,a).subarray(0,a+1)),c=jf(e.subarray(a+1));return o+(c-o)*(i-a)}}function tC(e,t,r=mv){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),c=+r(e[a+1],a+1,e);return o+(c-o)*(i-a)}}function rC(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 Ze(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Mt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Rc=Symbol("implicit");function su(){var e=new Af,t=[],r=[],n=Rc;function i(a){let o=e.get(a);if(o===void 0){if(n!==Rc)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 Af;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 su(t,r).unknown(n)},Ze.apply(i,arguments),i}function Cn(){var e=su().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,c=!1,s=0,u=0,f=.5;delete e.unknown;function l(){var d=t().length,h=i<n,p=h?i:n,v=h?n:i;a=(v-p)/Math.max(1,d-s+u*2),c&&(a=Math.floor(a)),p+=(v-p-a*(d-s))*f,o=a*(1-s),c&&(p=Math.round(p),o=Math.round(o));var y=rC(d).map(function(b){return p+a*b});return r(h?y.reverse():y)}return e.domain=function(d){return arguments.length?(t(d),l()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,c=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(c=!!d,l()):c},e.padding=function(d){return arguments.length?(s=Math.min(1,u=+d),l()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),l()):s},e.paddingOuter=function(d){return arguments.length?(u=+d,l()):u},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),l()):f},e.copy=function(){return Cn(t(),[n,i]).round(c).paddingInner(s).paddingOuter(u).align(f)},Ze.apply(l(),arguments)}function xv(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return xv(t())},e}function bn(){return xv(Cn.apply(null,arguments).paddingInner(1))}function uu(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function wv(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function di(){}var Mn=.7,Qi=1/Mn,br="\\s*([+-]?\\d+)\\s*",Nn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",st="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nC=/^#([0-9a-f]{3,8})$/,iC=new RegExp(`^rgb\\(${br},${br},${br}\\)$`),aC=new RegExp(`^rgb\\(${st},${st},${st}\\)$`),oC=new RegExp(`^rgba\\(${br},${br},${br},${Nn}\\)$`),cC=new RegExp(`^rgba\\(${st},${st},${st},${Nn}\\)$`),sC=new RegExp(`^hsl\\(${Nn},${st},${st}\\)$`),uC=new RegExp(`^hsla\\(${Nn},${st},${st},${Nn}\\)$`),Tf={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};uu(di,kn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ef,formatHex:Ef,formatHex8:lC,formatHsl:fC,formatRgb:Cf,toString:Cf});function Ef(){return this.rgb().formatHex()}function lC(){return this.rgb().formatHex8()}function fC(){return Ov(this).formatHsl()}function Cf(){return this.rgb().formatRgb()}function kn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=nC.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Mf(t):r===3?new ke(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=iC.exec(e))?new ke(t[1],t[2],t[3],1):(t=aC.exec(e))?new ke(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=oC.exec(e))?_i(t[1],t[2],t[3],t[4]):(t=cC.exec(e))?_i(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=sC.exec(e))?If(t[1],t[2]/100,t[3]/100,1):(t=uC.exec(e))?If(t[1],t[2]/100,t[3]/100,t[4]):Tf.hasOwnProperty(e)?Mf(Tf[e]):e==="transparent"?new ke(NaN,NaN,NaN,0):null}function Mf(e){return new ke(e>>16&255,e>>8&255,e&255,1)}function _i(e,t,r,n){return n<=0&&(e=t=r=NaN),new ke(e,t,r,n)}function dC(e){return e instanceof di||(e=kn(e)),e?(e=e.rgb(),new ke(e.r,e.g,e.b,e.opacity)):new ke}function Lc(e,t,r,n){return arguments.length===1?dC(e):new ke(e,t,r,n??1)}function ke(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}uu(ke,Lc,wv(di,{brighter(e){return e=e==null?Qi:Math.pow(Qi,e),new ke(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Mn:Math.pow(Mn,e),new ke(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ke(tr(this.r),tr(this.g),tr(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:Nf,formatHex:Nf,formatHex8:hC,formatRgb:kf,toString:kf}));function Nf(){return`#${Zt(this.r)}${Zt(this.g)}${Zt(this.b)}`}function hC(){return`#${Zt(this.r)}${Zt(this.g)}${Zt(this.b)}${Zt((isNaN(this.opacity)?1:this.opacity)*255)}`}function kf(){const e=ea(this.opacity);return`${e===1?"rgb(":"rgba("}${tr(this.r)}, ${tr(this.g)}, ${tr(this.b)}${e===1?")":`, ${e})`}`}function ea(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}
vendor: 5,689 bytes, line 40
40function Zt(e){return e=tr(e),(e<16?"0":"")+e.toString(16)}function If(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 Ov(e){if(e instanceof nt)return new nt(e.h,e.s,e.l,e.opacity);if(e instanceof di||(e=kn(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,c=a-i,s=(a+i)/2;return c?(t===a?o=(r-n)/c+(r<n)*6:r===a?o=(n-t)/c+2:o=(t-r)/c+4,c/=s<.5?a+i:2-a-i,o*=60):c=s>0&&s<1?0:o,new nt(o,c,s,e.opacity)}function pC(e,t,r,n){return arguments.length===1?Ov(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}uu(nt,pC,wv(di,{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?Mn:Math.pow(Mn,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 ke(Wo(e>=240?e-240:e+120,i,n),Wo(e,i,n),Wo(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new nt(Df(this.h),$i(this.s),$i(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("}${Df(this.h)}, ${$i(this.s)*100}%, ${$i(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Df(e){return e=(e||0)%360,e<0?e+360:e}function $i(e){return Math.max(0,Math.min(1,e||0))}function Wo(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 lu=e=>()=>e;function vC(e,t){return function(r){return e+r*t}}function yC(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 mC(e){return(e=+e)==1?Sv:function(t,r){return r-t?yC(t,r,e):lu(isNaN(t)?r:t)}}function Sv(e,t){var r=t-e;return r?vC(e,r):lu(isNaN(e)?t:e)}const Rf=function e(t){var r=mC(t);function n(i,a){var o=r((i=Lc(i)).r,(a=Lc(a)).r),c=r(i.g,a.g),s=r(i.b,a.b),u=Sv(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=c(f),i.b=s(f),i.opacity=u(f),i+""}}return n.gamma=e,n}(1);function gC(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 bC(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function xC(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]=tn(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(c){for(o=0;o<n;++o)a[o]=i[o](c);return a}}function wC(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 OC(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]=tn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Bc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zo=new RegExp(Bc.source,"g");function SC(e){return function(){return e}}function PC(e){return function(t){return e(t)+""}}function AC(e,t){var r=Bc.lastIndex=zo.lastIndex=0,n,i,a,o=-1,c=[],s=[];for(e=e+"",t=t+"";(n=Bc.exec(e))&&(i=zo.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),c[o]?c[o]+=a:c[++o]=a),(n=n[0])===(i=i[0])?c[o]?c[o]+=i:c[++o]=i:(c[++o]=null,s.push({i:o,x:ta(n,i)})),r=zo.lastIndex;return r<t.length&&(a=t.slice(r),c[o]?c[o]+=a:c[++o]=a),c.length<2?s[0]?PC(s[0].x):SC(t):(t=s.length,function(u){for(var f=0,l;f<t;++f)c[(l=s[f]).i]=l.x(u);return c.join("")})}function tn(e,t){var r=typeof t,n;return t==null||r==="boolean"?lu(t):(r==="number"?ta:r==="string"?(n=kn(t))?(t=n,Rf):AC:t instanceof kn?Rf:t instanceof Date?wC:bC(t)?gC:Array.isArray(t)?xC:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?OC:ta)(e,t)}function fu(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function _C(e,t){t===void 0&&(t=e,e=tn);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 c=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[c](o-c)}}function $C(e){return function(){return e}}function ra(e){return+e}var Lf=[0,1];function Ne(e){return e}function Fc(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:$C(isNaN(t)?NaN:.5)}function jC(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function TC(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Fc(i,n),a=r(o,a)):(n=Fc(n,i),a=r(a,o)),function(c){return a(n(c))}}function EC(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]=Fc(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(c){var s=fi(e,c,1,n)-1;return a[s](i[s](c))}}function hi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function oo(){var e=Lf,t=Lf,r=tn,n,i,a,o=Ne,c,s,u;function f(){var d=Math.min(e.length,t.length);return o!==Ne&&(o=jC(e[0],e[d-1])),c=d>2?EC:TC,s=u=null,l}function l(d){return d==null||isNaN(d=+d)?a:(s||(s=c(e.map(n),t,r)))(n(o(d)))}return l.invert=function(d){return o(i((u||(u=c(t,e.map(n),ta)))(d)))},l.domain=function(d){return arguments.length?(e=Array.from(d,ra),f()):e.slice()},l.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},l.rangeRound=function(d){return t=Array.from(d),r=fu,f()},l.clamp=function(d){return arguments.length?(o=d?!0:Ne,f()):o!==Ne},l.interpolate=function(d){return arguments.length?(r=d,f()):r},l.unknown=function(d){return arguments.length?(a=d,l):a},function(d,h){return n=d,i=h,f()}}function du(){return oo()(Ne,Ne)}
vendor: 5,494 bytes, line 40
40function CC(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 jr(e){return e=na(Math.abs(e)),e?e[1]:NaN}function MC(e,t){return function(r,n){for(var i=r.length,a=[],o=0,c=e[0],s=0;i>0&&c>0&&(s+c+1>n&&(c=Math.max(1,n-s)),a.push(r.substring(i-=c,i+c)),!((s+=c+1)>n));)c=e[o=(o+1)%e.length];return a.reverse().join(t)}}function NC(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var kC=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function In(e){if(!(t=kC.exec(e)))throw new Error("invalid format: "+e);var t;return new hu({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]})}In.prototype=hu.prototype;function hu(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+""}hu.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 IC(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 Pv;function DC(e,t){var r=na(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(Pv=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 Bf(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 Ff={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:CC,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)=>Bf(e*100,t),r:Bf,s:DC,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Wf(e){return e}var zf=Array.prototype.map,Uf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function RC(e){var t=e.grouping===void 0||e.thousands===void 0?Wf:MC(zf.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?Wf:NC(zf.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(l){l=In(l);var d=l.fill,h=l.align,p=l.sign,v=l.symbol,y=l.zero,b=l.width,x=l.comma,w=l.precision,m=l.trim,g=l.type;g==="n"?(x=!0,g="g"):Ff[g]||(w===void 0&&(w=12),m=!0,g="g"),(y||d==="0"&&h==="=")&&(y=!0,d="0",h="=");var O=v==="$"?r:v==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",S=v==="$"?n:/[%p]/.test(g)?o:"",A=Ff[g],T=/[defgprs%]/.test(g);w=w===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function C(j){var E=O,k=S,N,D,I;if(g==="c")k=A(j)+k,j="";else{j=+j;var L=j<0||1/j<0;if(j=isNaN(j)?s:A(Math.abs(j),w),m&&(j=IC(j)),L&&+j==0&&p!=="+"&&(L=!1),E=(L?p==="("?p:c:p==="-"||p==="("?"":p)+E,k=(g==="s"?Uf[8+Pv/3]:"")+k+(L&&p==="("?")":""),T){for(N=-1,D=j.length;++N<D;)if(I=j.charCodeAt(N),48>I||I>57){k=(I===46?i+j.slice(N+1):j.slice(N))+k,j=j.slice(0,N);break}}}x&&!y&&(j=t(j,1/0));var B=E.length+j.length+k.length,U=B<b?new Array(b-B+1).join(d):"";switch(x&&y&&(j=t(U+j,U.length?b-k.length:1/0),U=""),h){case"<":j=E+j+k+U;break;case"=":j=E+U+j+k;break;case"^":j=U.slice(0,B=U.length>>1)+E+j+k+U.slice(B);break;default:j=U+E+j+k;break}return a(j)}return C.toString=function(){return l+""},C}function f(l,d){var h=u((l=In(l),l.type="f",l)),p=Math.max(-8,Math.min(8,Math.floor(jr(d)/3)))*3,v=Math.pow(10,-p),y=Uf[8+p/3];return function(b){return h(v*b)+y}}return{format:u,formatPrefix:f}}var ji,pu,Av;LC({thousands:",",grouping:[3],currency:["$",""]});function LC(e){return ji=RC(e),pu=ji.format,Av=ji.formatPrefix,ji}function BC(e){return Math.max(0,-jr(Math.abs(e)))}function FC(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(jr(t)/3)))*3-jr(Math.abs(e)))}function WC(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,jr(t)-jr(e))+1}function _v(e,t,r,n){var i=Dc(e,t,r),a;switch(n=In(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=FC(i,o))&&(n.precision=a),Av(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=WC(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=BC(i))&&(n.precision=a-(n.type==="%")*2);break}}return pu(n)}function Ft(e){var t=e.domain;return e.ticks=function(r){var n=t();return kc(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return _v(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],c=n[a],s,u,f=10;
vendor: 4,312 bytes, line 40
40for(c<o&&(u=o,o=c,c=u,u=i,i=a,a=u);f-- >0;){if(u=Ic(o,c,r),u===s)return n[i]=o,n[a]=c,t(n);if(u>0)o=Math.floor(o/u)*u,c=Math.ceil(c/u)*u;else if(u<0)o=Math.ceil(o*u)/u,c=Math.floor(c*u)/u;else break;s=u}return e},e}function ia(){var e=du();return e.copy=function(){return hi(e,ia())},Ze.apply(e,arguments),Ft(e)}function $v(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 $v(e).unknown(t)},e=arguments.length?Array.from(e,ra):[0,1],Ft(r)}function jv(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 Hf(e){return Math.log(e)}function qf(e){return Math.exp(e)}function zC(e){return-Math.log(-e)}function UC(e){return-Math.exp(-e)}function HC(e){return isFinite(e)?+("1e"+e):e<0?0:e}function qC(e){return e===10?HC:e===Math.E?Math.exp:t=>Math.pow(e,t)}function GC(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 Gf(e){return(t,r)=>-e(-t,r)}function vu(e){const t=e(Hf,qf),r=t.domain;let n=10,i,a;function o(){return i=GC(n),a=qC(n),r()[0]<0?(i=Gf(i),a=Gf(a),e(zC,UC)):e(Hf,qf),t}return t.base=function(c){return arguments.length?(n=+c,o()):n},t.domain=function(c){return arguments.length?(r(c),o()):r()},t.ticks=c=>{const s=r();let u=s[0],f=s[s.length-1];const l=f<u;l&&([u,f]=[f,u]);let d=i(u),h=i(f),p,v;const y=c==null?10:+c;let b=[];if(!(n%1)&&h-d<y){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(p=1;p<n;++p)if(v=d<0?p/a(-d):p*a(d),!(v<u)){if(v>f)break;b.push(v)}}else for(;d<=h;++d)for(p=n-1;p>=1;--p)if(v=d>0?p/a(-d):p*a(d),!(v<u)){if(v>f)break;b.push(v)}b.length*2<y&&(b=kc(u,f,y))}else b=kc(d,h,Math.min(h-d,y)).map(a);return l?b.reverse():b},t.tickFormat=(c,s)=>{if(c==null&&(c=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=In(s)).precision==null&&(s.trim=!0),s=pu(s)),c===1/0)return s;const u=Math.max(1,n*c/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=u?s(f):""}},t.nice=()=>r(jv(r(),{floor:c=>a(Math.floor(i(c))),ceil:c=>a(Math.ceil(i(c)))})),t}function Tv(){const e=vu(oo()).domain([1,10]);return e.copy=()=>hi(e,Tv()).base(e.base()),Ze.apply(e,arguments),e}function Kf(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Xf(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function yu(e){var t=1,r=e(Kf(t),Xf(t));return r.constant=function(n){return arguments.length?e(Kf(t=+n),Xf(t)):t},Ft(r)}function Ev(){var e=yu(oo());return e.copy=function(){return hi(e,Ev()).constant(e.constant())},Ze.apply(e,arguments)}function Vf(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function KC(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function XC(e){return e<0?-e*e:e*e}function mu(e){var t=e(Ne,Ne),r=1;function n(){return r===1?e(Ne,Ne):r===.5?e(KC,XC):e(Vf(r),Vf(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Ft(t)}function gu(){var e=mu(oo());return e.copy=function(){return hi(e,gu()).exponent(e.exponent())},Ze.apply(e,arguments),e}function VC(){return gu.apply(null,arguments).exponent(.5)}function Yf(e){return Math.sign(e)*e*e}function YC(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Cv(){var e=du(),t=[0,1],r=!1,n;function i(a){var o=YC(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Yf(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(Yf)),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 Cv(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ze.apply(i,arguments),Ft(i)}function Mv(){var e=[],t=[],r=[],n;function i(){var o=0,c=Math.max(1,t.length);for(r=new Array(c-1);++o<c;)r[o-1]=tC(e,o/c);return a}function a(o){return o==null||isNaN(o=+o)?n:t[fi(r,o)]}return a.invertExtent=function(o){var c=t.indexOf(o);
40return c<0?[NaN,NaN]:[c>0?r[c-1]:e[0],c<r.length?r[c]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let c of o)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(Dt),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return Mv().domain(e).range(t).unknown(n)},Ze.apply(a,arguments)}function Nv(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[fi(n,s,0,r)]:a}function c(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,c()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,c()):i.slice()},o.invertExtent=function(s){var u=i.indexOf(s);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Nv().domain([e,t]).range(i).unknown(a)},Ze.apply(Ft(o),arguments)}function kv(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[fi(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 kv().domain(e).range(t).unknown(r)},Ze.apply(i,arguments)}const Uo=new Date,Ho=new Date;function Oe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),c=i.ceil(a);return a-o<c-a?o:c},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,c)=>{const s=[];if(a=i.ceil(a),c=c==null?1:Math.floor(c),!(a<o)||!(c>0))return s;let u;do s.push(u=new Date(+a)),t(a,c),e(a);while(u<a&&a<o);return s},i.filter=a=>Oe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,c)=>{if(o>=o)if(c<0)for(;++c<=0;)for(;t(o,-1),!a(o););else for(;--c>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Uo.setTime(+a),Ho.setTime(+o),e(Uo),e(Ho),Math.floor(r(Uo,Ho))),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=Oe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);aa.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Oe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):aa);aa.range;const bt=1e3,Ge=bt*60,xt=Ge*60,_t=xt*24,bu=_t*7,Zf=_t*30,qo=_t*365,Jt=Oe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*bt)},(e,t)=>(t-e)/bt,e=>e.getUTCSeconds());Jt.range;const xu=Oe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bt)},(e,t)=>{e.setTime(+e+t*Ge)},(e,t)=>(t-e)/Ge,e=>e.getMinutes());xu.range;const wu=Oe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ge)},(e,t)=>(t-e)/Ge,e=>e.getUTCMinutes());wu.range;const Ou=Oe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bt-e.getMinutes()*Ge)},(e,t)=>{e.setTime(+e+t*xt)},(e,t)=>(t-e)/xt,e=>e.getHours());Ou.range;const Su=Oe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*xt)},(e,t)=>(t-e)/xt,e=>e.getUTCHours());Su.range;const pi=Oe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ge)/_t,e=>e.getDate()-1);pi.range;const co=Oe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_t,e=>e.getUTCDate()-1);co.range;const Iv=Oe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_t,e=>Math.floor(e/_t));Iv.range;function ur(e){return Oe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ge)/bu)}const so=ur(0),oa=ur(1),ZC=ur(2),JC=ur(3),Tr=ur(4),QC=ur(5),eM=ur(6);so.range;oa.range;ZC.range;JC.range;Tr.range;QC.range;eM.range;function lr(e){return Oe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/bu)}const uo=lr(0),ca=lr(1),tM=lr(2),rM=lr(3),Er=lr(4),nM=lr(5),iM=lr(6);uo.range;ca.range;tM.range;rM.range;Er.range;nM.range;iM.range;const Pu=Oe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Pu.range;const Au=Oe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Au.range;const $t=Oe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());$t.every=e=>
vendor: 5,005 bytes, line 40
40!isFinite(e=Math.floor(e))||!(e>0)?null:Oe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});$t.range;const jt=Oe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());jt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});jt.range;function Dv(e,t,r,n,i,a){const o=[[Jt,1,bt],[Jt,5,5*bt],[Jt,15,15*bt],[Jt,30,30*bt],[a,1,Ge],[a,5,5*Ge],[a,15,15*Ge],[a,30,30*Ge],[i,1,xt],[i,3,3*xt],[i,6,6*xt],[i,12,12*xt],[n,1,_t],[n,2,2*_t],[r,1,bu],[t,1,Zf],[t,3,3*Zf],[e,1,qo]];function c(u,f,l){const d=f<u;d&&([u,f]=[f,u]);const h=l&&typeof l.range=="function"?l:s(u,f,l),p=h?h.range(u,+f+1):[];return d?p.reverse():p}function s(u,f,l){const d=Math.abs(f-u)/l,h=cu(([,,y])=>y).right(o,d);if(h===o.length)return e.every(Dc(u/qo,f/qo,l));if(h===0)return aa.every(Math.max(Dc(u,f,l),1));const[p,v]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return p.every(v)}return[c,s]}const[aM,oM]=Dv(jt,Au,uo,Iv,Su,wu),[cM,sM]=Dv($t,Pu,so,pi,Ou,xu);function Go(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 Ko(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 ln(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function uM(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,c=e.months,s=e.shortMonths,u=fn(i),f=dn(i),l=fn(a),d=dn(a),h=fn(o),p=dn(o),v=fn(c),y=dn(c),b=fn(s),x=dn(s),w={a:L,A:B,b:U,B:K,c:null,d:nd,e:nd,f:MM,g:zM,G:HM,H:TM,I:EM,j:CM,L:Rv,m:NM,M:kM,p:q,q:H,Q:od,s:cd,S:IM,u:DM,U:RM,V:LM,w:BM,W:FM,x:null,X:null,y:WM,Y:UM,Z:qM,"%":ad},m={a:X,A:ue,b:Ae,B:ht,c:null,d:id,e:id,f:VM,g:a2,G:c2,H:GM,I:KM,j:XM,L:Bv,m:YM,M:ZM,p:je,q:pt,Q:od,s:cd,S:JM,u:QM,U:e2,V:t2,w:r2,W:n2,x:null,X:null,y:i2,Y:o2,Z:s2,"%":ad},g={a:C,A:j,b:E,B:k,c:N,d:td,e:td,f:AM,g:ed,G:Qf,H:rd,I:rd,j:wM,L:PM,m:xM,M:OM,p:T,q:bM,Q:$M,s:jM,S:SM,u:pM,U:vM,V:yM,w:hM,W:mM,x:D,X:I,y:ed,Y:Qf,Z:gM,"%":_M};w.x=O(r,w),w.X=O(n,w),w.c=O(t,w),m.x=O(r,m),m.X=O(n,m),m.c=O(t,m);function O(W,V){return function(Z){var R=[],pe=-1,te=0,be=W.length,ye,De,vt;for(Z instanceof Date||(Z=new Date(+Z));++pe<be;)W.charCodeAt(pe)===37&&(R.push(W.slice(te,pe)),(De=Jf[ye=W.charAt(++pe)])!=null?ye=W.charAt(++pe):De=ye==="e"?" ":"0",(vt=V[ye])&&(ye=vt(Z,De)),R.push(ye),te=pe+1);return R.push(W.slice(te,pe)),R.join("")}}function S(W,V){return function(Z){var R=ln(1900,void 0,1),pe=A(R,W,Z+="",0),te,be;if(pe!=Z.length)return null;if("Q"in R)return new Date(R.Q);if("s"in R)return new Date(R.s*1e3+("L"in R?R.L:0));if(V&&!("Z"in R)&&(R.Z=0),"p"in R&&(R.H=R.H%12+R.p*12),R.m===void 0&&(R.m="q"in R?R.q:0),"V"in R){if(R.V<1||R.V>53)return null;"w"in R||(R.w=1),"Z"in R?(te=Ko(ln(R.y,0,1)),be=te.getUTCDay(),te=be>4||be===0?ca.ceil(te):ca(te),te=co.offset(te,(R.V-1)*7),R.y=te.getUTCFullYear(),R.m=te.getUTCMonth(),R.d=te.getUTCDate()+(R.w+6)%7):(te=Go(ln(R.y,0,1)),be=te.getDay(),te=be>4||be===0?oa.ceil(te):oa(te),te=pi.offset(te,(R.V-1)*7),R.y=te.getFullYear(),R.m=te.getMonth(),R.d=te.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),be="Z"in R?Ko(ln(R.y,0,1)).getUTCDay():Go(ln(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(be+5)%7:R.w+R.U*7-(be+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,Ko(R)):Go(R)}}function A(W,V,Z,R){for(var pe=0,te=V.length,be=Z.length,ye,De;pe<te;){if(R>=be)return-1;if(ye=V.charCodeAt(pe++),ye===37){if(ye=V.charAt(pe++),De=g[ye in Jf?V.charAt(pe++):ye],!De||(R=De(W,Z,R))<0)return-1}else if(ye!=Z.charCodeAt(R++))return-1}return R}function T(W,V,Z){var R=u.exec(V.slice(Z));return R?(W.p=f.get(R[0].toLowerCase()),Z+R[0].length):-1}function C(W,V,Z){var R=h.exec(V.slice(Z));return R?(W.w=p.get(R[0].toLowerCase()),Z+R[0].length):-1}function j(W,V,Z){var R=l.exec(V.slice(Z));return R?(W.w=d.get(R[0].toLowerCase()),Z+R[0].length):-1}function E(W,V,Z){var R=b.exec(V.slice(Z));return R?(W.m=x.get(R[0].toLowerCase()),Z+R[0].length):-1}function k(W,V,Z){var R=v.exec(V.slice(Z));return R?(W.m=y.get(R[0].toLowerCase()),Z+R[0].length):-1}function N(W,V,Z){return A(W,t,V,Z)}function D(W,V,Z){return A(W,r,V,Z)}function I(W,V,Z){return A(W,n,V,Z)}function L(W){return o[W.getDay()]}function B(W){return a[W.getDay()]}function U(W){return s[W.getMonth()]}function K(W){return c[W.getMonth()]}function q(W){return i[+(W.getHours()>=12)]}function H(W){return 1+~~(W.getMonth()/3)}function X(W){return o[W.getUTCDay()]}function ue(W){return a[W.getUTCDay()]}function Ae(W){return s[W.getUTCMonth()]}function ht(W){return c[W.getUTCMonth()]}function je(W){return i[+(W.getUTCHours()>=12)]}function pt(W){return 1+~~(W.getUTCMonth()/3)}
vendor: 4,962 bytes, line 40
40return{format:function(W){var V=O(W+="",w);return V.toString=function(){return W},V},parse:function(W){var V=S(W+="",!1);return V.toString=function(){return W},V},utcFormat:function(W){var V=O(W+="",m);return V.toString=function(){return W},V},utcParse:function(W){var V=S(W+="",!0);return V.toString=function(){return W},V}}}var Jf={"-":"",_:" ",0:"0"},Pe=/^\s*\d+/,lM=/^%/,fM=/[\\^$*+?|[\]().{}]/g;function ne(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function dM(e){return e.replace(fM,"\\$&")}function fn(e){return new RegExp("^(?:"+e.map(dM).join("|")+")","i")}function dn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function hM(e,t,r){var n=Pe.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function pM(e,t,r){var n=Pe.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function vM(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function yM(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function mM(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Qf(e,t,r){var n=Pe.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function ed(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function gM(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 bM(e,t,r){var n=Pe.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function xM(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function td(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function wM(e,t,r){var n=Pe.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function rd(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function OM(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function SM(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function PM(e,t,r){var n=Pe.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function AM(e,t,r){var n=Pe.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function _M(e,t,r){var n=lM.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function $M(e,t,r){var n=Pe.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function jM(e,t,r){var n=Pe.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function nd(e,t){return ne(e.getDate(),t,2)}function TM(e,t){return ne(e.getHours(),t,2)}function EM(e,t){return ne(e.getHours()%12||12,t,2)}function CM(e,t){return ne(1+pi.count($t(e),e),t,3)}function Rv(e,t){return ne(e.getMilliseconds(),t,3)}function MM(e,t){return Rv(e,t)+"000"}function NM(e,t){return ne(e.getMonth()+1,t,2)}function kM(e,t){return ne(e.getMinutes(),t,2)}function IM(e,t){return ne(e.getSeconds(),t,2)}function DM(e){var t=e.getDay();return t===0?7:t}function RM(e,t){return ne(so.count($t(e)-1,e),t,2)}function Lv(e){var t=e.getDay();return t>=4||t===0?Tr(e):Tr.ceil(e)}function LM(e,t){return e=Lv(e),ne(Tr.count($t(e),e)+($t(e).getDay()===4),t,2)}function BM(e){return e.getDay()}function FM(e,t){return ne(oa.count($t(e)-1,e),t,2)}function WM(e,t){return ne(e.getFullYear()%100,t,2)}function zM(e,t){return e=Lv(e),ne(e.getFullYear()%100,t,2)}function UM(e,t){return ne(e.getFullYear()%1e4,t,4)}function HM(e,t){var r=e.getDay();return e=r>=4||r===0?Tr(e):Tr.ceil(e),ne(e.getFullYear()%1e4,t,4)}function qM(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ne(t/60|0,"0",2)+ne(t%60,"0",2)}function id(e,t){return ne(e.getUTCDate(),t,2)}function GM(e,t){return ne(e.getUTCHours(),t,2)}function KM(e,t){return ne(e.getUTCHours()%12||12,t,2)}function XM(e,t){return ne(1+co.count(jt(e),e),t,3)}function Bv(e,t){return ne(e.getUTCMilliseconds(),t,3)}function VM(e,t){return Bv(e,t)+"000"}function YM(e,t){return ne(e.getUTCMonth()+1,t,2)}function ZM(e,t){return ne(e.getUTCMinutes(),t,2)}function JM(e,t){return ne(e.getUTCSeconds(),t,2)}function QM(e){var t=e.getUTCDay();return t===0?7:t}function e2(e,t){return ne(uo.count(jt(e)-1,e),t,2)}function Fv(e){var t=e.getUTCDay();return t>=4||t===0?Er(e):Er.ceil(e)}function t2(e,t){return e=Fv(e),ne(Er.count(jt(e),e)+(jt(e).getUTCDay()===4),t,2)}function r2(e){return e.getUTCDay()}function n2(e,t){return ne(ca.count(jt(e)-1,e),t,2)}function i2(e,t){return ne(e.getUTCFullYear()%100,t,2)}function a2(e,t){return e=Fv(e),ne(e.getUTCFullYear()%100,t,2)}function o2(e,t){return ne(e.getUTCFullYear()%1e4,t,4)}function c2(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Er(e):Er.ceil(e),ne(e.getUTCFullYear()%1e4,t,4)}function s2(){return"+0000"}function ad(){return"%"}function od(e){return+e}function cd(e){return Math.floor(+e/1e3)}var dr,Wv,zv;u2({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
40ay","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 u2(e){return dr=uM(e),Wv=dr.format,dr.parse,zv=dr.utcFormat,dr.utcParse,dr}function l2(e){return new Date(e)}function f2(e){return e instanceof Date?+e:+new Date(+e)}function _u(e,t,r,n,i,a,o,c,s,u){var f=du(),l=f.invert,d=f.domain,h=u(".%L"),p=u(":%S"),v=u("%I:%M"),y=u("%I %p"),b=u("%a %d"),x=u("%b %d"),w=u("%B"),m=u("%Y");function g(O){return(s(O)<O?h:c(O)<O?p:o(O)<O?v:a(O)<O?y:n(O)<O?i(O)<O?b:x:r(O)<O?w:m)(O)}return f.invert=function(O){return new Date(l(O))},f.domain=function(O){return arguments.length?d(Array.from(O,f2)):d().map(l2)},f.ticks=function(O){var S=d();return e(S[0],S[S.length-1],O??10)},f.tickFormat=function(O,S){return S==null?g:u(S)},f.nice=function(O){var S=d();return(!O||typeof O.range!="function")&&(O=t(S[0],S[S.length-1],O??10)),O?d(jv(S,O)):f},f.copy=function(){return hi(f,_u(e,t,r,n,i,a,o,c,s,u))},f}function d2(){return Ze.apply(_u(cM,sM,$t,Pu,so,pi,Ou,xu,Jt,Wv).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function h2(){return Ze.apply(_u(aM,oM,jt,Au,uo,co,Su,wu,Jt,zv).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function lo(){var e=0,t=1,r,n,i,a,o=Ne,c=!1,s;function u(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,c?Math.max(0,Math.min(1,l)):l))}u.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(l){return arguments.length?(c=!!l,u):c},u.interpolator=function(l){return arguments.length?(o=l,u):o};function f(l){return function(d){var h,p;return arguments.length?([h,p]=d,o=l(h,p),u):[o(0),o(1)]}}return u.range=f(tn),u.rangeRound=f(fu),u.unknown=function(l){return arguments.length?(s=l,u):s},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),u}}function Wt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Uv(){var e=Ft(lo()(Ne));return e.copy=function(){return Wt(e,Uv())},Mt.apply(e,arguments)}function Hv(){var e=vu(lo()).domain([1,10]);return e.copy=function(){return Wt(e,Hv()).base(e.base())},Mt.apply(e,arguments)}function qv(){var e=yu(lo());return e.copy=function(){return Wt(e,qv()).constant(e.constant())},Mt.apply(e,arguments)}function $u(){var e=mu(lo());return e.copy=function(){return Wt(e,$u()).exponent(e.exponent())},Mt.apply(e,arguments)}function p2(){return $u.apply(null,arguments).exponent(.5)}function Gv(){var e=[],t=Ne;function r(n){if(n!=null&&!isNaN(n=+n))return t((fi(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Dt),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>eC(e,a/n))},r.copy=function(){return Gv(t).domain(e)},Mt.apply(r,arguments)}function fo(){var e=0,t=.5,r=1,n=1,i,a,o,c,s,u=Ne,f,l=!1,d;function h(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-a)*(n*v<n*a?c:s),u(l?Math.max(0,Math.min(1,v)):v))}h.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),c=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(v){return arguments.length?(l=!!v,h):l},h.interpolator=function(v){return arguments.length?(u=v,h):u};function p(v){return function(y){var b,x,w;return arguments.length?([b,x,w]=y,u=_C(v,[b,x,w]),h):[u(0),u(.5),u(1)]}}return h.range=p(tn),h.rangeRound=p(fu),h.unknown=function(v){return arguments.length?(d=v,h):d},function(v){return f=v,i=v(e),a=v(t),o=v(r),c=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function Kv(){var e=Ft(fo()(Ne));return e.copy=function(){return Wt(e,Kv())},Mt.apply(e,arguments)}function Xv(){var e=vu(fo()).domain([.1,1,10]);return e.copy=function(){return Wt(e,Xv()).base(e.base())},Mt.apply(e,arguments)}function Vv(){var e=yu(fo());return e.copy=function(){return Wt(e,Vv()).constant(e.constant())},Mt.apply(e,arguments)}function ju(){var e=mu(fo());return e.copy=function(){return Wt(e,ju()).exponent(e.exponent())},Mt.apply(e,arguments)}function v2(){return ju.apply(null,arguments).exponent(.5)}const sd=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Cn,scaleDiverging:Kv,scaleDivergingLog:Xv,scaleDivergingPow:ju,scaleDivergingSqrt:v2,scaleDivergingSymlog:Vv,scaleIdentity:$v,scaleImplicit:Rc,scaleLinear:ia,scaleLog:Tv,scaleOrdinal:su,scalePoint:bn,scalePow:gu,scaleQuantile:Mv,scaleQuantize:Nv,scaleRadial:Cv,scaleSequential:Uv,scaleSequentialLog:Hv,scaleSequentialPow:$u,scaleSequentialQuantile:Gv,scaleSequentialSqrt:p2,scaleSequentialSymlog:qv,scaleSqrt:VC,scaleSymlog:Ev,scaleThreshold:kv,scaleTime:d2,scaleUtc:h2,tickFormat:_v},Symbol.toStringTag,{value:"Module"}));var y2=Kr;function m2(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(c===void 0?o===o&&!y2(o):r(o,c)))var c=o,s=a}return s}var Yv=m2;function g2(e,t){return e>t}var b2=g2,x2=Yv,w2=b2,O2=en;function S2(e){return e&&e.length?x2(e,O2,w2):void 0}var P2=S2;const ho=se(P2);function A2(e,t){return e<t}var _2=A2,$2=Yv,j2=_2,T2=en;function E2(e){return e&&e.length?$2(e,T2,j2):void 0}var C2=E2;const po=se(C2);var M2=zs,N2=Bt,k2=iv,I2=Ie;function D2(e,t){var r=I2(e)?M2:k2;return r(e,N2(t))}var R2=D2,L2=rv,B2=R2;function F2(e,t){return L2(B2(e,t),1)}var W2=F2;const z2=se(W2);var U2=nu;function H2(e,t){return U2(e,t)}var q2=H2;const vo=se(q2);
vendor: 62,937 bytes, lines 40-66
40var rn=1e9,G2={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Eu,de=!0,Ve="[DecimalError] ",rr=Ve+"Invalid argument: ",Tu=Ve+"Exponent out of range: ",nn=Math.floor,Xt=Math.pow,K2=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Fe,Se=1e7,fe=7,Zv=9007199254740991,sa=nn(Zv/fe),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)*fe;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 At(this,new this.constructor(e))};z.dividedToIntegerBy=z.idiv=function(e){var t=this,r=t.constructor;return oe(At(t,new r(e),0,1),r.precision)};z.equals=z.eq=function(e){return!this.cmp(e)};z.exponent=function(){return ge(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(Fe))throw Error(Ve+"NaN");if(r.s<1)throw Error(Ve+(r.s?"NaN":"-Infinity"));return r.eq(Fe)?new n(0):(de=!1,t=At(Dn(r,a),Dn(e,a),a),de=!0,oe(t,i))};z.minus=z.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ey(t,e):Jv(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(Ve+"NaN");return r.s?(de=!1,t=At(r,e,0,1).times(e),de=!0,r.minus(t)):oe(new n(r),i)};z.naturalExponential=z.exp=function(){return Qv(this)};z.naturalLogarithm=z.ln=function(){return Dn(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?Jv(t,e):ey(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(rr+e);if(t=ge(i)+1,n=i.d.length-1,r=n*fe+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,c=this,s=c.constructor;if(c.s<1){if(!c.s)return new s(0);throw Error(Ve+"NaN")}for(e=ge(c),de=!1,i=Math.sqrt(+c),i==0||i==1/0?(t=ct(c.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=nn((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(At(c,a,o+2)).times(.5),ct(a.d).slice(0,o)===(t=ct(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(oe(a,r+1,0),a.times(a).eq(c)){n=a;break}}else if(t!="9999")break;o+=4}return de=!0,oe(n,r)};z.times=z.mul=function(e){var t,r,n,i,a,o,c,s,u,f=this,l=f.constructor,d=f.d,h=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,s=d.length,u=h.length,s<u&&(a=d,d=h,h=a,o=s,s=u,u=o),a=[],o=s+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=s+n;i>n;)c=a[i]+h[n]*d[i-n-1]+t,a[i--]=c%Se|0,t=c/Se|0;a[i]=(a[i]+t)%Se|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,de?oe(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:(lt(e,0,rn),t===void 0?t=n.rounding:lt(t,0,8),oe(r,e+ge(r)+1,t))};z.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ir(n,!0):(lt(e,0,rn),t===void 0?t=i.rounding:lt(t,0,8),n=oe(new i(n),e+1,t),r=ir(n,!0,e+1)),r};z.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?ir(i):(lt(e,0,rn),t===void 0?t=a.rounding:lt(t,0,8),n=oe(new a(i),e+ge(i)+1,t),r=ir(n.abs(),!1,e+ge(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};z.toInteger=z.toint=function(){var e=this,t=e.constructor;return oe(new t(e),ge(e)+1,t.rounding)};z.toNumber=function(){return+this};z.toPower=z.pow=function(e){var t,r,n,i,a,o,c=this,s=c.constructor,u=12,f=+(e=new s(e));if(!e.s)return new s(Fe);if(c=new s(c),!c.s){if(e.s<1)throw Error(Ve+"Infinity");return c}if(c.eq(Fe))return c;if(n=s.precision,e.eq(Fe))return oe(c,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=c.s,o){if((r=f<0?-f:f)<=Zv){for(i=new s(Fe),t=Math.ceil(n/fe+4),de=!1;r%2&&(i=i.times(c),ld(i.d,t)),r=nn(r/2),r!==0;)c=c.times(c),ld(c.d,t);return de=!0,e.s<0?new s(Fe).div(i):oe(i,n)}}else if(a<0)throw Error(Ve+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,c.s=1,de=!1,i=e.times(Dn(c,n+u)),de=!0,i=Qv(i),i.s=a,i};z.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ge(i),n=ir(i,r<=a.toExpNeg||r>=a.toExpPos)):(lt(e,1,rn),t===void 0?t=a.rounding:lt(t,0,8),i=oe(new a(i),e,t),r=ge(i),n=ir(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):(lt(e,1,rn),t===void 0?t=n.rounding:lt(t,0,8)),oe(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=ge(e),r=e.constructor;return ir(e,t<=r.toExpNeg||t>=r.toExpPos)};function Jv(e,t){var r,n,i,a,o,c,s,u,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),de?oe(t,l):t;if(s=e.d,u=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,c=u.length):(n=u,i=o,c=s.length),o=Math.ceil(l/fe),c=o>c?o+1:c+1,a>c&&(a=c,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(c=s.length,a=u.length,c-a<0&&(a=c,n=u,u=s,s=n),r=0;a;)r=(s[--a]=s[a]+u[a]+r)/Se|0,s[a]%=Se;for(r&&(s.unshift(r),++i),c=s.length;s[--c]==0;)s.pop();return t.d=s,t.e=i,de?oe(t,l):t}function lt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(rr+e)}function ct(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=fe-n.length,r&&(a+=Nt(r)),a+=n;o=e[t],n=o+"",r=fe-n.length,r&&(a+=Nt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var At=function(){function e(n,i){var a,o=0,c=n.length;for(n=n.slice();c--;)a=n[c]*i+o,n[c]=a%Se|0,o=a/Se|0;return o&&n.unshift(o),n}function t(n,i,a,o){var c,s;if(a!=o)s=a>o?1:-1;else for(c=s=0;c<a;c++)if(n[c]!=i[c]){s=n[c]>i[c]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Se+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var c,s,u,f,l,d,h,p,v,y,b,x,w,m,g,O,S,A,T=n.constructor,C=n.s==i.s?1:-1,j=n.d,E=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(Ve+"Division by zero");for(s=n.e-i.e,S=E.length,g=j.length,h=new T(C),p=h.d=[],u=0;E[u]==(j[u]||0);)++u;if(E[u]>(j[u]||0)&&--s,a==null?x=a=T.precision:o?x=a+(ge(n)-ge(i))+1:x=a,x<0)return new T(0);if(x=x/fe+2|0,u=0,S==1)for(f=0,E=E[0],x++;(u<g||f)&&x--;u++)w=f*Se+(j[u]||0),p[u]=w/E|0,f=w%E|0;else{for(f=Se/(E[0]+1)|0,f>1&&(E=e(E,f),j=e(j,f),S=E.length,g=j.length),m=S,v=j.slice(0,S),y=v.length;y<S;)v[y++]=0;A=E.slice(),A.unshift(0),O=E[0],E[1]>=Se/2&&++O;do f=0,c=t(E,v,S,y),c<0?(b=v[0],S!=y&&(b=b*Se+(v[1]||0)),f=b/O|0,f>1?(f>=Se&&(f=Se-1),l=e(E,f),d=l.length,y=v.length,c=t(l,v,d,y),c==1&&(f--,r(l,S<d?A:E,d))):(f==0&&(c=f=1),l=E.slice()),d=l.length,d<y&&l.unshift(0),r(v,l,y),c==-1&&(y=v.length,c=t(E,v,S,y),c<1&&(f++,r(v,S<y?A:E,y))),y=v.length):c===0&&(f++,v=[0]),p[u++]=f,c&&v[0]?v[y++]=j[m]||0:(v=[j[m]],y=1);while((m++<g||v[0]!==void 0)&&x--)}return p[0]||p.shift(),h.e=s,oe(h,o?a+ge(h)+1:a)}}();function Qv(e,t){var r,n,i,a,o,c,s=0,u=0,f=e.constructor,l=f.precision;if(ge(e)>16)throw Error(Tu+ge(e));if(!e.s)return new f(Fe);for(t==null?(de=!1,c=l):c=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Xt(2,u))/Math.LN10*2+5|0,c+=n,r=i=a=new f(Fe),f.precision=c;;){if(i=oe(i.times(e),c),r=r.times(++s),o=a.plus(At(i,r,c)),ct(o.d).slice(0,c)===ct(a.d).slice(0,c)){for(;u--;)a=oe(a.times(a),c);return f.precision=l,t==null?(de=!0,oe(a,l)):a}a=o}}function ge(e){for(var t=e.e*fe,r=e.d[0];r>=10;r/=10)t++;return t}function Xo(e,t,r){if(t>e.LN10.sd())throw de=!0,r&&(e.precision=r),Error(Ve+"LN10 precision limit exceeded");return oe(new e(e.LN10),t)}function Nt(e){for(var t="";e--;)t+="0";return t}function Dn(e,t){var r,n,i,a,o,c,s,u,f,l=1,d=10,h=e,p=h.d,v=h.constructor,y=v.precision;if(h.s<1)throw Error(Ve+(h.s?"NaN":"-Infinity"));if(h.eq(Fe))return new v(0);if(t==null?(de=!1,u=y):u=t,h.eq(10))return t==null&&(de=!0),Xo(v,u);if(u+=d,v.precision=u,r=ct(p),n=r.charAt(0),a=ge(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=ct(h.d),n=r.charAt(0),l++;a=ge(h),n>1?(h=new v("0."+r),a++):h=new v(n+"."+r.slice(1))}else return s=Xo(v,u+2,y).times(a+""),h=Dn(new v(n+"."+r.slice(1)),u-d).plus(s),v.precision=y,t==null?(de=!0,oe(h,y)):h;for(c=o=h=At(h.minus(Fe),h.plus(Fe),u),f=oe(h.times(h),u),i=3;;){if(o=oe(o.times(f),u),s=c.plus(At(o,new v(i),u)),ct(s.d).slice(0,u)===ct(c.d).slice(0,u))return c=c.times(2),a!==0&&(c=c.plus(Xo(v,u+2,y).times(a+""))),c=At(c,new v(l),u),v.precision=y,t==null?(de=!0,oe(c,y)):c;c=s,i+=2}}function ud(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=nn(r/fe),e.d=[],n=(r+1)%fe,r<0&&(n+=fe),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=fe;n<i;)e.d.push(+t.slice(n,n+=fe));t=t.slice(n),n=fe-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),de&&(e.e>sa||e.e<-sa))throw Error(Tu+r)}else e.s=0,e.e=0,e.d=[0];return e}function oe(e,t,r){var n,i,a,o,c,s,u,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=fe,i=t,u=l[f=0];else{if(f=Math.ceil((n+1)/fe),a=l.length,f>=a)return e;for(u=a=l[f],o=1;a>=10;a/=10)o++;n%=fe,i=n-fe+o}if(r!==void 0&&(a=Xt(10,o-i-1),c=u/a%10|0,s=t<0||l[f+1]!==void 0||u%a,s=r<4?(c||s)&&(r==0||r==(e.s<0?3:2)):c>5||c==5&&(r==4||s||r==6&&(n>0?i>0?u/Xt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=ge(e),l.length=1,t=t-a-1,l[0]=Xt(10,(fe-t%fe)%fe),e.e=nn(-t/fe)||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,fe-n),l[f]=i>0?(u/Xt(10,o-i)%Xt(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==Se&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Se)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(de&&(e.e>sa||e.e<-sa))throw Error(Tu+ge(e));return e}function ey(e,t){var r,n,i,a,o,c,s,u,f,l,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),de?oe(t,h):t;if(s=e.d,l=t.d,n=t.e,u=e.e,s=s.slice(),o=u-n,o){for(f=o<0,f?(r=s,o=-o,c=l.length):(r=l,n=u,c=s.length),i=Math.max(Math.ceil(h/fe),c)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,c=l.length,f=i<c,f&&(c=i),i=0;i<c;i++)if(s[i]!=l[i]){f=s[i]<l[i];break}o=0}for(f&&(r=s,s=l,l=r,t.s=-t.s),c=s.length,i=l.length-c;i>0;--i)s[c++]=0;for(i=l.length;i>o;){if(s[--i]<l[i]){for(a=i;a&&s[--a]===0;)s[a]=Se-1;--s[a],s[i]+=Se}s[i]-=l[i]}for(;s[--c]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,de?oe(t,h):t):new d(0)}function ir(e,t,r){var n,i=ge(e),a=ct(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Nt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Nt(-i-1)+a,r&&(n=r-o)>0&&(a+=Nt(n))):i>=o?(a+=Nt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Nt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Nt(n))),e.s<0?"-"+a:a}function ld(e,t){if(e.length>t)return e.length=t,!0}function ty(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(rr+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 ud(o,a.toString())}else if(typeof a!="string")throw Error(rr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,K2.test(a))ud(o,a);else throw Error(rr+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=ty,i.config=i.set=X2,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 X2(e){if(!e||typeof e!="object")throw Error(Ve+"Object expected");var t,r,n,i=["precision",1,rn,"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(nn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(rr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(rr+r+": "+n);return this}var Eu=ty(G2);Fe=new Eu(1);const ae=Eu;function V2(e){return Q2(e)||J2(e)||Z2(e)||Y2()}function Y2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
41In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z2(e,t){if(e){if(typeof e=="string")return Wc(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 Wc(e,t)}}function J2(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Q2(e){if(Array.isArray(e))return Wc(e)}function Wc(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 eN=function(t){return t},ry={"@@functional/placeholder":!0},ny=function(t){return t===ry},fd=function(t){return function r(){return arguments.length===0||arguments.length===1&&ny(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},tN=function e(t,r){return t===1?r:fd(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(c){return c!==ry}).length;return o>=t?r.apply(void 0,i):e(t-o,fd(function(){for(var c=arguments.length,s=new Array(c),u=0;u<c;u++)s[u]=arguments[u];var f=i.map(function(l){return ny(l)?s.shift():l});return r.apply(void 0,V2(f).concat(s))}))})},yo=function(t){return tN(t.length,t)},zc=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},rN=yo(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),nN=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return eN;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(c,s){return s(c)},a.apply(void 0,arguments))}},Uc=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},iy=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(c,s){return c===r[s]})||(r=a,n=t.apply(void 0,a)),n}};function iN(e){var t;return e===0?t=1:t=Math.floor(new ae(e).abs().log(10).toNumber())+1,t}function aN(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 oN=yo(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),cN=yo(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),sN=yo(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const mo={rangeStep:aN,getDigitCount:iN,interpolateNumber:oN,uninterpolateNumber:cN,uninterpolateTruncation:sN};function Hc(e){return fN(e)||lN(e)||ay(e)||uN()}function uN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
42In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lN(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function fN(e){if(Array.isArray(e))return qc(e)}function Rn(e,t){return pN(e)||hN(e,t)||ay(e,t)||dN()}function dN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
43In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ay(e,t){if(e){if(typeof e=="string")return qc(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 qc(e,t)}}function qc(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 hN(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](),c;!(n=(c=o.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function pN(e){if(Array.isArray(e))return e}function oy(e){var t=Rn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function cy(e,t,r){if(e.lte(0))return new ae(0);var n=mo.getDigitCount(e.toNumber()),i=new ae(10).pow(n),a=e.div(i),o=n!==1?.05:.1,c=new ae(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=c.mul(i);return t?s:new ae(Math.ceil(s))}function vN(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(mo.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),c=nN(rN(function(s){return i.add(new ae(s-o).mul(n)).toNumber()}),zc);return c(0,t)}function sy(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=cy(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 c=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new ae(t).sub(o).div(a).toNumber()),u=c+s+1;return u>r?sy(e,t,r,n,i+1):(u<r&&(s=t>0?s+(r-u):s,c=t>0?c:c+(r-u)),{step:a,tickMin:o.sub(new ae(c).mul(a)),tickMax:o.add(new ae(s).mul(a))})}function yN(e){var t=Rn(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),c=oy([r,n]),s=Rn(c,2),u=s[0],f=s[1];if(u===-1/0||f===1/0){var l=f===1/0?[u].concat(Hc(zc(0,i-1).map(function(){return 1/0}))):[].concat(Hc(zc(0,i-1).map(function(){return-1/0})),[f]);return r>n?Uc(l):l}if(u===f)return vN(u,i,a);var d=sy(u,f,o,a),h=d.step,p=d.tickMin,v=d.tickMax,y=mo.rangeStep(p,v.add(new ae(.1).mul(h)),h);return r>n?Uc(y):y}function mN(e,t){var r=Rn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=oy([n,i]),c=Rn(o,2),s=c[0],u=c[1];if(s===-1/0||u===1/0)return[n,i];if(s===u)return[s];var f=Math.max(t,2),l=cy(new ae(u).sub(s).div(f-1),a,0),d=[].concat(Hc(mo.rangeStep(new ae(s),new ae(u).sub(new ae(.99).mul(l)),l)),[u]);return n>i?Uc(d):d}var gN=iy(yN),bN=iy(mN),xN="Invariant failed";function ar(e,t){throw new Error(xN)}var wN=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 ua(){return ua=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},ua.apply(this,arguments)}function ON(e,t){return _N(e)||AN(e,t)||PN(e,t)||SN()}function SN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
44In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PN(e,t){if(e){if(typeof e=="string")return dd(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 dd(e,t)}}function dd(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 AN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,c=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(f){u=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}function _N(e){if(Array.isArray(e))return e}function $N(e,t){if(e==null)return{};var r=jN(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 jN(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 TN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fy(n.key),n)}}function CN(e,t,r){return t&&EN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MN(e,t,r){return t=la(t),NN(e,uy()?Reflect.construct(t,r||[],la(e).constructor):t.apply(e,r))}function NN(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 kN(e)}function kN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uy=function(){return!!e})()}function la(e){return la=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},la(e)}function IN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gc(e,t)}function Gc(e,t){return Gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gc(e,t)}function ly(e,t,r){return t=fy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fy(e){var t=DN(e,"string");return Cr(t)=="symbol"?t:t+""}function DN(e,t){if(Cr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vi=function(e){function t(){return TN(this,t),MN(this,t,arguments)}return IN(t,e),CN(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,c=n.dataKey,s=n.data,u=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,d=$N(n,wN),h=ee(d,!1);this.props.direction==="x"&&f.type!=="number"&&ar();var p=s.map(function(v){var y=u(v,c),b=y.x,x=y.y,w=y.value,m=y.errorVal;if(!m)return null;var g=[],O,S;if(Array.isArray(m)){var A=ON(m,2);O=A[0],S=A[1]}else O=S=m;if(a==="vertical"){var T=f.scale,C=x+i,j=C+o,E=C-o,k=T(w-O),N=T(w+S);g.push({x1:N,y1:j,x2:N,y2:E}),g.push({x1:k,y1:C,x2:N,y2:C}),g.push({x1:k,y1:j,x2:k,y2:E})}else if(a==="horizontal"){var D=l.scale,I=b+i,L=I-o,B=I+o,U=D(w-O),K=D(w+S);g.push({x1:L,y1:K,x2:B,y2:K}),g.push({x1:I,y1:U,x2:I,y2:K}),g.push({x1:L,y1:U,x2:B,y2:U})}return _.createElement(ve,ua({className:"recharts-errorBar",key:"bar-".concat(g.map(function(q){return"".concat(q.x1,"-").concat(q.x2,"-").concat(q.y1,"-").concat(q.y2)}))},h),g.map(function(q){return _.createElement("line",ua({},q,{key:"line-".concat(q.x1,"-").concat(q.x2,"-").concat(q.y1,"-").concat(q.y2)}))}))});return _.createElement(ve,{className:"recharts-errorBars"},p)}}])}(_.Component);ly(vi,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});ly(vi,"displayName","ErrorBar");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 hd(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 qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hd(Object(r),!0).forEach(function(n){RN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RN(e,t,r){return t=LN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LN(e){var t=BN(e,"string");return Ln(t)=="symbol"?t:t+""}function BN(e,t){if(Ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dy=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Be(r,gr);if(!o)return null;var c=gr.defaultProps,s=c!==void 0?qt(qt({},c),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(f,l){var d=l.item,h=l.props,p=h.sectors||h.data||[];return f.concat(p.map(function(v){return{type:o.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):u=(n||[]).map(function(f){var l=f.item,d=l.type.defaultProps,h=d!==void 0?qt(qt({},d),l.props):{},p=h.dataKey,v=h.name,y=h.legendType,b=h.hide;return{inactive:b,dataKey:p,type:s.iconType||y||"square",color:Cu(l),value:v||p,payload:h}}),qt(qt(qt({},s),gr.getWithHeight(o,i)),{},{payload:u,item:o})};function Bn(e){"@babel/helpers - typeof";return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn(e)}function pd(e){return UN(e)||zN(e)||WN(e)||FN()}function FN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
45In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WN(e,t){if(e){if(typeof e=="string")return Kc(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 Kc(e,t)}}function zN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UN(e){if(Array.isArray(e))return Kc(e)}function Kc(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 vd(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 he(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vd(Object(r),!0).forEach(function(n){xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xr(e,t,r){return t=HN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HN(e){var t=qN(e,"string");return Bn(t)=="symbol"?t:t+""}function qN(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function We(e,t,r){return Q(e)||Q(t)?r:we(t)?Ke(e,t,r):J(t)?t(e):r}function xn(e,t,r,n){var i=z2(e,function(c){return We(c,t)});if(r==="number"){var a=i.filter(function(c){return F(c)||parseFloat(c)});return a.length?[po(a),ho(a)]:[1/0,-1/0]}var o=n?i.filter(function(c){return!Q(c)}):i;return o.map(function(c){return we(c)||c instanceof Date?c:""})}var GN=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,c=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(c<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,u=0;u<c;u++){var f=u>0?i[u-1].coordinate:i[c-1].coordinate,l=i[u].coordinate,d=u>=c-1?i[0].coordinate:i[u+1].coordinate,h=void 0;if(it(l-f)!==it(d-l)){var p=[];if(it(d-l)===it(s[1]-s[0])){h=d;var v=l+s[1]-s[0];p[0]=Math.min(v,(v+f)/2),p[1]=Math.max(v,(v+f)/2)}else{h=f;var y=d+s[1]-s[0];p[0]=Math.min(l,(y+l)/2),p[1]=Math.max(l,(y+l)/2)}var b=[Math.min(l,(h+l)/2),Math.max(l,(h+l)/2)];if(t>b[0]&&t<=b[1]||t>=p[0]&&t<=p[1]){o=i[u].index;break}}else{var x=Math.min(f,d),w=Math.max(f,d);if(t>(x+l)/2&&t<=(w+l)/2){o=i[u].index;break}}}else for(var m=0;m<c;m++)if(m===0&&t<=(n[m].coordinate+n[m+1].coordinate)/2||m>0&&m<c-1&&t>(n[m].coordinate+n[m-1].coordinate)/2&&t<=(n[m].coordinate+n[m+1].coordinate)/2||m===c-1&&t>(n[m].coordinate+n[m-1].coordinate)/2){o=n[m].index;break}return o},Cu=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,o=a.stroke,c=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:c;break;default:s=c;break}return s},KN=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},c=Object.keys(a),s=0,u=c.length;s<u;s++)for(var f=a[c[s]].stackGroups,l=Object.keys(f),d=0,h=l.length;d<h;d++){var p=f[l[d]],v=p.items,y=p.cateAxisId,b=v.filter(function(S){return Ot(S.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?he(he({},x),b[0].props):b[0].props,m=w.barSize,g=w[y];o[g]||(o[g]=[]);var O=Q(m)?r:m;o[g].push({item:b[0],stackList:b.slice(1),barSize:Q(O)?void 0:nr(O,n,0)})}}return o},XN=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,c=t.maxBarSize,s=o.length;if(s<1)return null;var u=nr(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/s,p=o.reduce(function(m,g){return m+g.barSize||0},0);p+=(s-1)*u,p>=i&&(p-=(s-1)*u,u=0),p>=i&&h>0&&(d=!0,h*=.9,p=s*h);var v=(i-p)/2>>0,y={offset:v-u,size:0};f=o.reduce(function(m,g){var O={item:g.item,position:{offset:y.offset+y.size+u,size:d?h:g.barSize}},S=[].concat(pd(m),[O]);return y=S[S.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:y})}),S},l)}else{var b=nr(n,i,0,!0);i-2*b-(s-1)*u<=0&&(u=0);var x=(i-2*b-(s-1)*u)/s;x>1&&(x>>=0);var w=c===+c?Math.min(x,c):x;f=o.reduce(function(m,g,O){var S=[].concat(pd(m),[{item:g.item,position:{offset:b+(x+u)*O+(x-w)/2,size:w}}]);return g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:S[S.length-1].position})}),S},l)}return f},VN=function(t,r,n,i){var a=n.children,o=n.width,c=n.margin,s=o-(c.left||0)-(c.right||0),u=dy({children:a,legendWidth:s});if(u){var f=i||{},l=f.width,d=f.height,h=u.align,p=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&p==="middle")&&h!=="center"&&F(t[h]))return he(he({},t),{},xr({},h,t[h]+(l||0)));if((v==="horizontal"||v==="vertical"&&h==="center")&&p!=="middle"&&F(t[p]))return he(he({},t),{},xr({},p,t[p]+(d||0)))}return t},YN=function(t,r,n){return Q(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},hy=function(t,r,n,i,a){var o=r.props.children,c=Xe(o,vi).filter(function(u){return YN(i,a,u.props.direction)});if(c&&c.length){var s=c.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var l=We(f,n);if(Q(l))return u;var d=Array.isArray(l)?[po(l),ho(l)]:[l,l],h=s.reduce(function(p,v){var y=We(f,v,0),b=d[0]-Math.abs(Array.isArray(y)?y[0]:y),x=d[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(b,p[0]),Math.max(x,p[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},ZN=function(t,r,n,i,a){var o=r.map(function(c){return hy(t,c,n,a,i)}).filter(function(c){return!Q(c)});return o&&o.length?o.reduce(function(c,s){return[Math.min(c[0],s[0]),Math.max(c[1],s[1])]},[1/0,-1/0]):null},py=function(t,r,n,i,a){var o=r.map(function(s){var u=s.props.dataKey;return n==="number"&&u&&hy(t,s,u,i)||xn(t,u,n,a)});if(n==="number")return o.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]);var c={};return o.reduce(function(s,u){for(var f=0,l=u.length;f<l;f++)c[u[f]]||(c[u[f]]=!0,s.push(u[f]));return s},[])},vy=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},yy=function(t,r,n,i){if(i)return t.map(function(s){return s.coordinate});var a,o,c=t.map(function(s){return s.coordinate===r&&(a=!0),s.coordinate===n&&(o=!0),s.coordinate});return a||c.push(r),o||c.push(n),c},wt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,c=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(u=t.axisType==="angleAxis"&&(c==null?void 0:c.length)>=2?it(c[0]-c[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var d=a?a.indexOf(l):l;return{coordinate:i(d)+u,value:l,offset:u}});return f.filter(function(l){return!si(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,d){return{coordinate:i(l)+u,value:l,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+u,value:l,offset:u}}):i.domain().map(function(l,d){return{coordinate:i(l)+u,value:a?a[l]:l,index:d,offset:u}})},Vo=new WeakMap,Ti=function(t,r){if(typeof r!="function")return t;Vo.has(t)||Vo.set(t,new WeakMap);var n=Vo.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},JN=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,c=t.axisType;if(i==="auto")return o==="radial"&&c==="radiusAxis"?{scale:Cn(),realScaleType:"band"}:o==="radial"&&c==="angleAxis"?{scale:ia(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:bn(),realScaleType:"point"}:a==="category"?{scale:Cn(),realScaleType:"band"}:{scale:ia(),realScaleType:"linear"};if(ci(i)){var s="scale".concat(Qa(i));return{scale:(sd[s]||bn)(),realScaleType:sd[s]?s:"point"}}return J(i)?{scale:i}:{scale:bn(),realScaleType:"point"}},yd=1e-4,QN=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])-yd,o=Math.max(i[0],i[1])+yd,c=t(r[0]),s=t(r[n-1]);(c<a||c>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},ek=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},tk=function(t,r){if(!r||r.length!==2||!F(r[0])||!F(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(!F(t[0])||t[0]<n)&&(a[0]=n),(!F(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},rk=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,c=0;c<r;++c){var s=si(t[c][n][1])?t[c][n][0]:t[c][n][1];s>=0?(t[c][n][0]=a,t[c][n][1]=a+s,a=t[c][n][1]):(t[c][n][0]=o,t[c][n][1]=o+s,o=t[c][n][1])}},nk=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 c=si(t[o][n][1])?t[o][n][0]:t[o][n][1];c>=0?(t[o][n][0]=a,t[o][n][1]=a+c,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},ik={sign:rk,expand:g1,none:Sr,silhouette:b1,wiggle:x1,positive:nk},ak=function(t,r,n){var i=r.map(function(c){return c.props.dataKey}),a=ik[n],o=m1().keys(i).value(function(c,s){return+We(c,s,0)}).order(gc).offset(a);return o(t)},ok=function(t,r,n,i,a,o){if(!t)return null;var c=o?r.reverse():r,s={},u=c.reduce(function(l,d){var h,p=(h=d.type)!==null&&h!==void 0&&h.defaultProps?he(he({},d.type.defaultProps),d.props):d.props,v=p.stackId,y=p.hide;if(y)return l;var b=p[n],x=l[b]||{hasStack:!1,stackGroups:{}};if(we(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(d),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[ui("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return he(he({},l),{},xr({},b,x))},s),f={};return Object.keys(u).reduce(function(l,d){var h=u[d];if(h.hasStack){var p={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(v,y){var b=h.stackGroups[y];return he(he({},v),{},xr({},y,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:ak(t,b.items,a)}))},p)}return he(he({},l),{},xr({},d,h))},f)},ck=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,c=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=gN(u,a,c);return t.domain([po(f),ho(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),d=bN(l,a,c);return{niceTicks:d}}return null};function md(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Q(i[t.dataKey])){var c=Ii(r,"value",i[t.dataKey]);if(c)return c.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=We(i,Q(o)?t.dataKey:o);return Q(s)?null:t.scale(s)}var gd=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,c=t.index;if(r.type==="category")return n[c]?n[c].coordinate+i:null;var s=We(o,r.dataKey,r.domain[c]);return Q(s)?null:r.scale(s)-a/2+i},sk=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]},uk=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(we(a)){var o=r[a];if(o){var c=o.items.indexOf(t);return c>=0?o.stackedData[c]:null}}return null},lk=function(t){return t.reduce(function(r,n){return[po(n.concat([r[0]]).filter(F)),ho(n.concat([r[1]]).filter(F))]},[1/0,-1/0])},my=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],c=o.stackedData,s=c.reduce(function(u,f){var l=lk(f.slice(r,n+1));return[Math.min(u[0],l[0]),Math.max(u[1],l[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},bd=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,xd=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Xc=function(t,r,n){if(J(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(F(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(bd.test(t[0])){var a=+bd.exec(t[0])[1];i[0]=r[0]-a}else J(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(F(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(xd.test(t[1])){var o=+xd.exec(t[1])[1];i[1]=r[1]+o}else J(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},fa=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=au(r,function(l){return l.coordinate}),o=1/0,c=1,s=a.length;c<s;c++){var u=a[c],f=a[c-1];o=Math.min((u.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},wd=function(t,r,n){return!t||!t.length||vo(t,Ke(n,"type.defaultProps.domain"))?r:t},gy=function(t,r){var n=t.type.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,c=n.formatter,s=n.tooltipType,u=n.chartType,f=n.hide;return he(he({},ee(t,!1)),{},{dataKey:i,unit:o,formatter:c,name:a||i,color:Cu(t),value:We(r,i),type:s,payload:r,chartType:u,hide:f})};function Fn(e){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fn(e)}function Od(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 Sd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Od(Object(r),!0).forEach(function(n){fk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Od(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fk(e,t,r){return t=dk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dk(e){var t=hk(e,"string");return Fn(t)=="symbol"?t:t+""}function hk(e,t){if(Fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var da=Math.PI/180,pk=function(t){return t*180/Math.PI},$e=function(t,r,n,i){return{x:t+Math.cos(-da*i)*n,y:r+Math.sin(-da*i)*n}},vk=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))},yk=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,c=vk({x:n,y:i},{x:a,y:o});if(c<=0)return{radius:c};var s=(n-a)/c,u=Math.acos(s);return i>o&&(u=2*Math.PI-u),{radius:c,angle:pk(u),angleInRadian:u}},mk=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}},gk=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),c=Math.min(a,o);return t+c*360},Pd=function(t,r){var n=t.x,i=t.y,a=yk({x:n,y:i},r),o=a.radius,c=a.angle,s=r.innerRadius,u=r.outerRadius;if(o<s||o>u)return!1;if(o===0)return!0;var f=mk(r),l=f.startAngle,d=f.endAngle,h=c,p;if(l<=d){for(;h>d;)h-=360;for(;h<l;)h+=360;p=h>=l&&h<=d}else{for(;h>l;)h-=360;for(;h<d;)h+=360;p=h>=d&&h<=l}return p?Sd(Sd({},r),{},{radius:o,angle:gk(h,r)}):null};function Wn(e){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(e)}var bk=["offset"];function xk(e){return Pk(e)||Sk(e)||Ok(e)||wk()}function wk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
46In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ok(e,t){if(e){if(typeof e=="string")return Vc(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 Vc(e,t)}}function Sk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pk(e){if(Array.isArray(e))return Vc(e)}function Vc(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 Ak(e,t){if(e==null)return{};var r=_k(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _k(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ad(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ad(Object(r),!0).forEach(function(n){$k(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ad(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $k(e,t,r){return t=jk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jk(e){var t=Tk(e,"string");return Wn(t)=="symbol"?t:t+""}function Tk(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wn(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 Ek=function(t){var r=t.value,n=t.formatter,i=Q(t.children)?r:t.children;return J(n)?n(i):i},Ck=function(t,r){var n=it(r-t),i=Math.min(Math.abs(r-t),360);return n*i},Mk=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,c=t.className,s=a,u=s.cx,f=s.cy,l=s.innerRadius,d=s.outerRadius,h=s.startAngle,p=s.endAngle,v=s.clockWise,y=(l+d)/2,b=Ck(h,p),x=b>=0?1:-1,w,m;i==="insideStart"?(w=h+x*o,m=v):i==="insideEnd"?(w=p-x*o,m=!v):i==="end"&&(w=p+x*o,m=v),m=b<=0?m:!m;var g=$e(u,f,y,w),O=$e(u,f,y,w+(m?1:-1)*359),S="M".concat(g.x,",").concat(g.y,`
47    A`).concat(y,",").concat(y,",0,1,").concat(m?0:1,`,
48    `).concat(O.x,",").concat(O.y),A=Q(t.id)?ui("recharts-radial-line-"):t.id;return _.createElement("text",zn({},n,{dominantBaseline:"central",className:re("recharts-radial-bar-label",c)}),_.createElement("defs",null,_.createElement("path",{id:A,d:S})),_.createElement("textPath",{xlinkHref:"#".concat(A)},r))},Nk=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,c=a.cy,s=a.innerRadius,u=a.outerRadius,f=a.startAngle,l=a.endAngle,d=(f+l)/2;if(i==="outside"){var h=$e(o,c,u+n,d),p=h.x,v=h.y;return{x:p,y:v,textAnchor:p>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:c,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:c,textAnchor:"middle",verticalAnchor:"end"};var y=(s+u)/2,b=$e(o,c,y,d),x=b.x,w=b.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},kk=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,c=o.x,s=o.y,u=o.width,f=o.height,l=f>=0?1:-1,d=l*i,h=l>0?"end":"start",p=l>0?"start":"end",v=u>=0?1:-1,y=v*i,b=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:c+u/2,y:s-l*i,textAnchor:"middle",verticalAnchor:h};return xe(xe({},w),n?{height:Math.max(s-n.y,0),width:u}:{})}if(a==="bottom"){var m={x:c+u/2,y:s+f+d,textAnchor:"middle",verticalAnchor:p};return xe(xe({},m),n?{height:Math.max(n.y+n.height-(s+f),0),width:u}:{})}if(a==="left"){var g={x:c-y,y:s+f/2,textAnchor:b,verticalAnchor:"middle"};return xe(xe({},g),n?{width:Math.max(g.x-n.x,0),height:f}:{})}if(a==="right"){var O={x:c+u+y,y:s+f/2,textAnchor:x,verticalAnchor:"middle"};return xe(xe({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:f}:{})}var S=n?{width:u,height:f}:{};return a==="insideLeft"?xe({x:c+y,y:s+f/2,textAnchor:x,verticalAnchor:"middle"},S):a==="insideRight"?xe({x:c+u-y,y:s+f/2,textAnchor:b,verticalAnchor:"middle"},S):a==="insideTop"?xe({x:c+u/2,y:s+d,textAnchor:"middle",verticalAnchor:p},S):a==="insideBottom"?xe({x:c+u/2,y:s+f-d,textAnchor:"middle",verticalAnchor:h},S):a==="insideTopLeft"?xe({x:c+y,y:s+d,textAnchor:x,verticalAnchor:p},S):a==="insideTopRight"?xe({x:c+u-y,y:s+d,textAnchor:b,verticalAnchor:p},S):a==="insideBottomLeft"?xe({x:c+y,y:s+f-d,textAnchor:x,verticalAnchor:h},S):a==="insideBottomRight"?xe({x:c+u-y,y:s+f-d,textAnchor:b,verticalAnchor:h},S):Xr(a)&&(F(a.x)||Yt(a.x))&&(F(a.y)||Yt(a.y))?xe({x:c+nr(a.x,u),y:s+nr(a.y,f),textAnchor:"end",verticalAnchor:"end"},S):xe({x:c+u/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},S)},Ik=function(t){return"cx"in t&&F(t.cx)};function Ee(e){var t=e.offset,r=t===void 0?5:t,n=Ak(e,bk),i=xe({offset:r},n),a=i.viewBox,o=i.position,c=i.value,s=i.children,u=i.content,f=i.className,l=f===void 0?"":f,d=i.textBreakAll;if(!a||Q(c)&&Q(s)&&!$.isValidElement(u)&&!J(u))return null;if($.isValidElement(u))return $.cloneElement(u,i);var h;if(J(u)){if(h=$.createElement(u,i),$.isValidElement(h))return h}else h=Ek(i);var p=Ik(a),v=ee(i,!0);if(p&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Mk(i,h,v);var y=p?Nk(i):kk(i);return _.createElement(Zi,zn({className:re("recharts-label",l)},v,y,{breakAll:d}),h)}Ee.displayName="Label";var by=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,c=t.r,s=t.radius,u=t.innerRadius,f=t.outerRadius,l=t.x,d=t.y,h=t.top,p=t.left,v=t.width,y=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(F(v)&&F(y)){if(F(l)&&F(d))return{x:l,y:d,width:v,height:y};if(F(h)&&F(p))return{x:h,y:p,width:v,height:y}}return F(l)&&F(d)?{x:l,y:d,width:0,height:0}:F(r)&&F(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:f||s||c||0,clockWise:b}:t.viewBox?t.viewBox:{}},Dk=function(t,r){return t?t===!0?_.createElement(Ee,{key:"label-implicit",viewBox:r}):we(t)?_.createElement(Ee,{key:"label-implicit",viewBox:r,value:t}):$.isValidElement(t)?t.type===Ee?$.cloneElement(t,{key:"label-implicit",viewBox:r}):_.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):J(t)?_.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):Xr(t)?_.createElement(Ee,zn({viewBox:r},t,{key:"label-implicit"})):null:null},Rk=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=by(t),o=Xe(i,Ee).map(function(s,u){return $.cloneElement(s,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var c=Dk(t.label,r||a);return[c].concat(xk(o))};Ee.parseViewBox=by;Ee.renderCallByParent=Rk;function Lk(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Bk=Lk;const Fk=se(Bk);function Un(e){"@babel/helpers - typeof";return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Un(e)}var Wk=["valueAccessor"],zk=["data","dataKey","clockWise","id","textBreakAll"];function Uk(e){return Kk(e)||Gk(e)||qk(e)||Hk()}function Hk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
49In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qk(e,t){if(e){if(typeof e=="string")return Yc(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 Yc(e,t)}}function Gk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kk(e){if(Array.isArray(e))return Yc(e)}function Yc(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 ha(){return ha=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},ha.apply(this,arguments)}function _d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $d(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_d(Object(r),!0).forEach(function(n){Xk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_d(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xk(e,t,r){return t=Vk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vk(e){var t=Yk(e,"string");return Un(t)=="symbol"?t:t+""}function Yk(e,t){if(Un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jd(e,t){if(e==null)return{};var r=Zk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Jk=function(t){return Array.isArray(t.value)?Fk(t.value):t.value};function Rt(e){var t=e.valueAccessor,r=t===void 0?Jk:t,n=jd(e,Wk),i=n.data,a=n.dataKey,o=n.clockWise,c=n.id,s=n.textBreakAll,u=jd(n,zk);return!i||!i.length?null:_.createElement(ve,{className:"recharts-label-list"},i.map(function(f,l){var d=Q(a)?r(f,l):We(f&&f.payload,a),h=Q(c)?{}:{id:"".concat(c,"-").concat(l)};return _.createElement(Ee,ha({},ee(f,!0),u,h,{parentViewBox:f.parentViewBox,value:d,textBreakAll:s,viewBox:Ee.parseViewBox(Q(o)?f:$d($d({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}Rt.displayName="LabelList";function Qk(e,t){return e?e===!0?_.createElement(Rt,{key:"labelList-implicit",data:t}):_.isValidElement(e)||J(e)?_.createElement(Rt,{key:"labelList-implicit",data:t,content:e}):Xr(e)?_.createElement(Rt,ha({data:t},e,{key:"labelList-implicit"})):null:null}function eI(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=Xe(n,Rt).map(function(o,c){return $.cloneElement(o,{data:t,key:"labelList-".concat(c)})});if(!r)return i;var a=Qk(e.label,t);return[a].concat(Uk(i))}Rt.renderCallByParent=eI;function Hn(e){"@babel/helpers - typeof";return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hn(e)}function Zc(){return Zc=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},Zc.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 Ed(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){tI(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 tI(e,t,r){return t=rI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rI(e){var t=nI(e,"string");return Hn(t)=="symbol"?t:t+""}function nI(e,t){if(Hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iI=function(t,r){var n=it(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Ei=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,c=t.isExternal,s=t.cornerRadius,u=t.cornerIsExternal,f=s*(c?1:-1)+i,l=Math.asin(s/f)/da,d=u?a:a+o*l,h=$e(r,n,f,d),p=$e(r,n,i,d),v=u?a-o*l:a,y=$e(r,n,f*Math.cos(l*da),v);return{center:h,circleTangency:p,lineTangency:y,theta:l}},xy=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,c=t.endAngle,s=iI(o,c),u=o+s,f=$e(r,n,a,o),l=$e(r,n,a,u),d="M ".concat(f.x,",").concat(f.y,`
50    A `).concat(a,",").concat(a,`,0,
51    `).concat(+(Math.abs(s)>180),",").concat(+(o>u),`,
52    `).concat(l.x,",").concat(l.y,`
53  `);if(i>0){var h=$e(r,n,i,o),p=$e(r,n,i,u);d+="L ".concat(p.x,",").concat(p.y,`
54            A `).concat(i,",").concat(i,`,0,
55            `).concat(+(Math.abs(s)>180),",").concat(+(o<=u),`,
56            `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},aI=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,c=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,l=it(f-u),d=Ei({cx:r,cy:n,radius:a,angle:u,sign:l,cornerRadius:o,cornerIsExternal:s}),h=d.circleTangency,p=d.lineTangency,v=d.theta,y=Ei({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),b=y.circleTangency,x=y.lineTangency,w=y.theta,m=s?Math.abs(u-f):Math.abs(u-f)-v-w;if(m<0)return c?"M ".concat(p.x,",").concat(p.y,`
57        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
58        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
59      `):xy({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f});var g="M ".concat(p.x,",").concat(p.y,`
60    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(h.x,",").concat(h.y,`
61    A`).concat(a,",").concat(a,",0,").concat(+(m>180),",").concat(+(l<0),",").concat(b.x,",").concat(b.y,`
62    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
63  `);if(i>0){var O=Ei({cx:r,cy:n,radius:i,angle:u,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),S=O.circleTangency,A=O.lineTangency,T=O.theta,C=Ei({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),j=C.circleTangency,E=C.lineTangency,k=C.theta,N=s?Math.abs(u-f):Math.abs(u-f)-T-k;if(N<0&&o===0)return"".concat(g,"L").concat(r,",").concat(n,"Z");g+="L".concat(E.x,",").concat(E.y,`
64      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(j.x,",").concat(j.y,`
65      A`).concat(i,",").concat(i,",0,").concat(+(N>180),",").concat(+(l>0),",").concat(S.x,",").concat(S.y,`
66      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(A.x,",").concat(A.y,"Z")}else g+="L".concat(r,",").concat(n,"Z");return g},oI={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},wy=function(t){var r=Ed(Ed({},oI),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,c=r.cornerRadius,s=r.forceCornerRadius,u=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,d=r.className;if(o<a||f===l)return null;var h=re("recharts-sector",d),p=o-a,v=nr(c,p,0,!0),y;return v>0&&Math.abs(f-l)<360?y=aI({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,p/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:f,endAngle:l}):y=xy({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),_.createElement("path",Zc({},ee(r,!0),{className:h,d:y,role:"img"}))};function qn(e){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(e)}function Jc(){return Jc=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},Jc.apply(this,arguments)}function Cd(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 Md(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cd(Object(r),!0).forEach(function(n){cI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cI(e,t,r){return t=sI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sI(e){var t=uI(e,"string");return qn(t)=="symbol"?t:t+""}function uI(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nd={curveBasisClosed:o1,curveBasisOpen:c1,curveBasis:a1,curveBumpX:qw,curveBumpY:Gw,curveLinearClosed:s1,curveLinear:to,curveMonotoneX:u1,curveMonotoneY:l1,curveNatural:f1,curveStep:d1,curveStepAfter:p1,curveStepBefore:h1},Ci=function(t){return t.x===+t.x&&t.y===+t.y},hn=function(t){return t.x},pn=function(t){return t.y},lI=function(t,r){if(J(t))return t;var n="curve".concat(Qa(t));return(n==="curveMonotone"||n==="curveBump")&&r?Nd["".concat(n).concat(r==="vertical"?"Y":"X")]:Nd[n]||to},fI=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,c=t.layout,s=t.connectNulls,u=s===void 0?!1:s,f=lI(n,c),l=u?a.filter(function(v){return Ci(v)}):a,d;if(Array.isArray(o)){var h=u?o.filter(function(v){return Ci(v)}):o,p=l.map(function(v,y){return Md(Md({},v),{},{base:h[y]})});return c==="vertical"?d=wi().y(pn).x1(hn).x0(function(v){return v.base.x}):d=wi().x(hn).y1(pn).y0(function(v){return v.base.y}),d.defined(Ci).curve(f),d(p)}return c==="vertical"&&F(o)?d=wi().y(pn).x1(hn).x0(o):F(o)?d=wi().x(hn).y1(pn).y0(o):d=wp().x(hn).y(pn),d.defined(Ci).curve(f),d(l)},Qc=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?fI(t):i;return _.createElement("path",Jc({},ee(t,!1),Di(t),{className:re("recharts-curve",r),d:o,ref:a}))},Oy={exports:{}},dI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",hI=dI,pI=hI;function Sy(){}function Py(){}Py.resetWarningCache=Sy;var vI=function(){function e(n,i,a,o,c,s){if(s!==pI){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
66:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Py,resetWarningCache:Sy};return r.PropTypes=r,r};Oy.exports=vI();var yI=Oy.exports;const Y=se(yI);var mI=Object.getOwnPropertyNames,gI=Object.getOwnPropertySymbols,bI=Object.prototype.hasOwnProperty;function kd(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Mi(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),c=a.get(n);if(o&&c)return o===n&&c===r;a.set(r,n),a.set(n,r);var s=e(r,n,i);return a.delete(r),a.delete(n),s}}function Id(e){return mI(e).concat(gI(e))}var Ay=Object.hasOwn||function(e,t){return bI.call(e,t)};function an(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var _y="_owner",Dd=Object.getOwnPropertyDescriptor,Rd=Object.keys;function xI(e,t,r){var 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 wI(e,t){return an(e.getTime(),t.getTime())}function Ld(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.entries(),a=0,o,c;(o=i.next())&&!o.done;){for(var s=t.entries(),u=!1,f=0;(c=s.next())&&!c.done;){var l=o.value,d=l[0],h=l[1],p=c.value,v=p[0],y=p[1];!u&&!n[f]&&(u=r.equals(d,v,a,f,e,t,r)&&r.equals(h,y,d,v,e,t,r))&&(n[f]=!0),f++}if(!u)return!1;a++}return!0}function OI(e,t,r){var n=Rd(e),i=n.length;if(Rd(t).length!==i)return!1;for(var a;i-- >0;)if(a=n[i],a===_y&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Ay(t,a)||!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function vn(e,t,r){var n=Id(e),i=n.length;if(Id(t).length!==i)return!1;for(var a,o,c;i-- >0;)if(a=n[i],a===_y&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Ay(t,a)||!r.equals(e[a],t[a],a,a,e,t,r)||(o=Dd(e,a),c=Dd(t,a),(o||c)&&(!o||!c||o.configurable!==c.configurable||o.enumerable!==c.enumerable||o.writable!==c.writable)))return!1;return!0}function SI(e,t){return an(e.valueOf(),t.valueOf())}function PI(e,t){return e.source===t.source&&e.flags===t.flags}function Bd(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.values(),a,o;(a=i.next())&&!a.done;){for(var c=t.values(),s=!1,u=0;(o=c.next())&&!o.done;)!s&&!n[u]&&(s=r.equals(a.value,o.value,a.value,o.value,e,t,r))&&(n[u]=!0),u++;if(!s)return!1}return!0}function AI(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var _I="[object Arguments]",$I="[object Boolean]",jI="[object Date]",TI="[object Map]",EI="[object Number]",CI="[object Object]",MI="[object RegExp]",NI="[object Set]",kI="[object String]",II=Array.isArray,Fd=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Wd=Object.assign,DI=Object.prototype.toString.call.bind(Object.prototype.toString);function RI(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,c=e.areSetsEqual,s=e.areTypedArraysEqual;return function(f,l,d){if(f===l)return!0;if(f==null||l==null||typeof f!="object"||typeof l!="object")return f!==f&&l!==l;var h=f.constructor;if(h!==l.constructor)return!1;if(h===Object)return i(f,l,d);if(II(f))return t(f,l,d);if(Fd!=null&&Fd(f))return s(f,l,d);if(h===Date)return r(f,l,d);if(h===RegExp)return o(f,l,d);if(h===Map)return n(f,l,d);if(h===Set)return c(f,l,d);var p=DI(f);return p===jI?r(f,l,d):p===MI?o(f,l,d):p===TI?n(f,l,d):p===NI?c(f,l,d):p===CI?typeof f.then!="function"&&typeof l.then!="function"&&i(f,l,d):p===_I?i(f,l,d):p===$I||p===EI||p===kI?a(f,l,d):!1}}function LI(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?vn:xI,areDatesEqual:wI,areMapsEqual:n?kd(Ld,vn):Ld,areObjectsEqual:n?vn:OI,arePrimitiveWrappersEqual:SI,areRegExpsEqual:PI,areSetsEqual:n?kd(Bd,vn):Bd,areTypedArraysEqual:n?vn:AI};if(r&&(i=Wd({},i,r(i))),t){var a=Mi(i.areArraysEqual),o=Mi(i.areMapsEqual),c=Mi(i.areObjectsEqual),s=Mi(i.areSetsEqual);i=Wd({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:c,areSetsEqual:s})}return i}function BI(e){return function(t,r,n,i,a,o,c){return e(t,r,c)}}function FI(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(s,u){var f=n(),l=f.cache,d=l===void 0?t?new WeakMap:void 0:l,h=f.meta;return r(s,u,{cache:d,equals:i,meta:h,strict:a})};if(t)return function(s,u){return r(s,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(s,u){return r(s,u,o)}}var WI=zt();zt({strict:!0});zt({circular:!0});zt({circular:!0,strict:!0});zt({createInternalComparator:function(){return an}});zt({strict:!0,createInternalComparator:function(){return an}});zt({circular:!0,createInternalComparator:function(){return an}});zt({circular:!0,createInternalComparator:function(){return an},strict:!0});function zt(e){e===void 0&&(e={});
vendor: 165,790 bytes, lines 66-95
66var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,c=LI(e),s=RI(c),u=n?n(s):BI(s);return FI({circular:r,comparator:s,createState:i,equals:u,strict:o})}function zI(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function zd(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):zI(i)};requestAnimationFrame(n)}function es(e){"@babel/helpers - typeof";return es=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},es(e)}function UI(e){return KI(e)||GI(e)||qI(e)||HI()}function HI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
67In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qI(e,t){if(e){if(typeof e=="string")return Ud(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 Ud(e,t)}}function Ud(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 GI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KI(e){if(Array.isArray(e))return e}function XI(){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,c=UI(o),s=c[0],u=c.slice(1);if(typeof s=="number"){zd(i.bind(null,u),s);return}i(s),zd(i.bind(null,u));return}es(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 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 Hd(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 qd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hd(Object(r),!0).forEach(function(n){$y(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $y(e,t,r){return t=VI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VI(e){var t=YI(e,"string");return Gn(t)==="symbol"?t:String(t)}function YI(e,t){if(Gn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZI=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},JI=function(t){return t},QI=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},wn=function(t,r){return Object.keys(r).reduce(function(n,i){return qd(qd({},n),{},$y({},i,t(i,r[i])))},{})},Gd=function(t,r,n){return t.map(function(i){return"".concat(QI(i)," ").concat(r,"ms ").concat(n)}).join(",")};function eD(e,t){return nD(e)||rD(e,t)||jy(e,t)||tD()}function tD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
68In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,c=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(f){u=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}function nD(e){if(Array.isArray(e))return e}function iD(e){return cD(e)||oD(e)||jy(e)||aD()}function aD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
69In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jy(e,t){if(e){if(typeof e=="string")return ts(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 ts(e,t)}}function oD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cD(e){if(Array.isArray(e))return ts(e)}function ts(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 pa=1e-4,Ty=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},Ey=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Kd=function(t,r){return function(n){var i=Ty(t,r);return Ey(i,n)}},sD=function(t,r){return function(n){var i=Ty(t,r),a=[].concat(iD(i.map(function(o,c){return o*c}).slice(1)),[0]);return Ey(a,n)}},Xd=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],c=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,c=1;break;case"ease":i=.25,a=.1,o=.25,c=1;break;case"ease-in":i=.42,a=0,o=1,c=1;break;case"ease-out":i=.42,a=0,o=.58,c=1;break;case"ease-in-out":i=0,a=0,o=.58,c=1;break;default:{var s=r[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var u=s[1].split(")")[0].split(",").map(function(y){return parseFloat(y)}),f=eD(u,4);i=f[0],a=f[1],o=f[2],c=f[3]}}}var l=Kd(i,o),d=Kd(a,c),h=sD(i,o),p=function(b){return b>1?1:b<0?0:b},v=function(b){for(var x=b>1?1:b,w=x,m=0;m<8;++m){var g=l(w)-x,O=h(w);if(Math.abs(g-x)<pa||O<pa)return d(w);w=p(w-g/O)}return d(w)};return v.isStepper=!1,v},uD=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,c=o===void 0?17:o,s=function(f,l,d){var h=-(f-l)*n,p=d*a,v=d+(h-p)*c/1e3,y=d*c/1e3+f;return Math.abs(y-l)<pa&&Math.abs(v)<pa?[l,0]:[y,v]};return s.isStepper=!0,s.dt=c,s},lD=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 Xd(i);case"spring":return uD();default:if(i.split("(")[0]==="cubic-bezier")return Xd(i)}return typeof i=="function"?i:null};function Kn(e){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(e)}function Vd(e){return hD(e)||dD(e)||Cy(e)||fD()}function fD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
70In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hD(e){if(Array.isArray(e))return ns(e)}function Yd(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?Yd(Object(r),!0).forEach(function(n){rs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rs(e,t,r){return t=pD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pD(e){var t=vD(e,"string");return Kn(t)==="symbol"?t:String(t)}function vD(e,t){if(Kn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Kn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yD(e,t){return bD(e)||gD(e,t)||Cy(e,t)||mD()}function mD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
71In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cy(e,t){if(e){if(typeof e=="string")return ns(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 ns(e,t)}}function ns(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 gD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,c=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(f){u=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}function bD(e){if(Array.isArray(e))return e}var va=function(t,r,n){return t+(r-t)*n},is=function(t){var r=t.from,n=t.to;return r!==n},xD=function e(t,r,n){var i=wn(function(a,o){if(is(o)){var c=t(o.from,o.to,o.velocity),s=yD(c,2),u=s[0],f=s[1];return _e(_e({},o),{},{from:u,velocity:f})}return o},r);return n<1?wn(function(a,o){return is(o)?_e(_e({},o),{},{velocity:va(o.velocity,i[a].velocity,n),from:va(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const wD=function(e,t,r,n,i){var a=ZI(e,t),o=a.reduce(function(y,b){return _e(_e({},y),{},rs({},b,[e[b],t[b]]))},{}),c=a.reduce(function(y,b){return _e(_e({},y),{},rs({},b,{from:e[b],velocity:0,to:t[b]}))},{}),s=-1,u,f,l=function(){return null},d=function(){return wn(function(b,x){return x.from},c)},h=function(){return!Object.values(c).filter(is).length},p=function(b){u||(u=b);var x=b-u,w=x/r.dt;c=xD(r,c,w),i(_e(_e(_e({},e),t),d())),u=b,h()||(s=requestAnimationFrame(l))},v=function(b){f||(f=b);var x=(b-f)/n,w=wn(function(g,O){return va.apply(void 0,Vd(O).concat([r(x)]))},o);if(i(_e(_e(_e({},e),t),w)),x<1)s=requestAnimationFrame(l);else{var m=wn(function(g,O){return va.apply(void 0,Vd(O).concat([r(1)]))},o);i(_e(_e(_e({},e),t),m))}};return l=r.isStepper?p:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}};function Mr(e){"@babel/helpers - typeof";return Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mr(e)}var OD=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function SD(e,t){if(e==null)return{};var r=PD(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 PD(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 Yo(e){return jD(e)||$D(e)||_D(e)||AD()}function AD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
72In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _D(e,t){if(e){if(typeof e=="string")return as(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 as(e,t)}}function $D(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jD(e){if(Array.isArray(e))return as(e)}function as(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 Zd(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 Qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zd(Object(r),!0).forEach(function(n){mn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mn(e,t,r){return t=My(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ED(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,My(n.key),n)}}function CD(e,t,r){return t&&ED(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function My(e){var t=MD(e,"string");return Mr(t)==="symbol"?t:String(t)}function MD(e,t){if(Mr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ND(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&os(e,t)}function os(e,t){return os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},os(e,t)}function kD(e){var t=ID();return function(){var n=ya(e),i;if(t){var a=ya(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return cs(this,i)}}function cs(e,t){if(t&&(Mr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ss(e)}function ss(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ID(){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 ya(e){return ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ya(e)}var Tt=function(e){ND(r,e);var t=kD(r);function r(n,i){var a;TD(this,r),a=t.call(this,n,i);var o=a.props,c=o.isActive,s=o.attributeName,u=o.from,f=o.to,l=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(ss(a)),a.changeStyle=a.changeStyle.bind(ss(a)),!c||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),cs(a);if(l&&l.length)a.state={style:l[0].style};else if(u){if(typeof d=="function")return a.state={style:u},cs(a);a.state={style:s?mn({},s,u):u}}else a.state={style:{}};return a}return CD(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,c=a.canBegin,s=a.attributeName,u=a.shouldReAnimate,f=a.to,l=a.from,d=this.state.style;if(c){if(!o){var h={style:s?mn({},s,f):f};this.state&&d&&(s&&d[s]!==f||!s&&d!==f)&&this.setState(h);return}if(!(WI(i.to,f)&&i.canBegin&&i.isActive)){var p=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=p||u?l:i.to;if(this.state&&d){var y={style:s?mn({},s,v):v};(s&&d[s]!==v||!s&&d!==v)&&this.setState(y)}this.runAnimation(Qe(Qe({},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,c=i.to,s=i.duration,u=i.easing,f=i.begin,l=i.onAnimationEnd,d=i.onAnimationStart,h=wD(o,c,lD(u),s,this.changeStyle),p=function(){a.stopJSAnimation=h()};this.manager.start([d,f,p,s,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,c=i.begin,s=i.onAnimationStart,u=o[0],f=u.style,l=u.duration,d=l===void 0?0:l,h=function(v,y,b){if(b===0)return v;var x=y.duration,w=y.easing,m=w===void 0?"ease":w,g=y.style,O=y.properties,S=y.onAnimationEnd,A=b>0?o[b-1]:y,T=O||Object.keys(g);if(typeof m=="function"||m==="spring")return[].concat(Yo(v),[a.runJSAnimation.bind(a,{from:A.style,to:g,duration:x,easing:m}),x]);var C=Gd(T,x,m),j=Qe(Qe(Qe({},A.style),g),{},{transition:C});return[].concat(Yo(v),[j,x,S]).filter(JI)};return this.manager.start([s].concat(Yo(o.reduce(h,[f,Math.max(d,c)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=XI());var a=i.begin,o=i.duration,c=i.attributeName,s=i.to,u=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,d=i.steps,h=i.children,p=this.manager;if(this.unSubscribe=p.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=c?mn({},c,s):s,y=Gd(Object.keys(v),o,u);p.start([f,a,Qe(Qe({},v),{},{transition:y}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var c=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=SD(i,OD),u=$.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!c||u===0||o<=0)return a;var l=function(h){var p=h.props,v=p.style,y=v===void 0?{}:v,b=p.className,x=$.cloneElement(h,Qe(Qe({},s),{},{style:Qe(Qe({},y),f),className:b}));return x};return u===1?l($.Children.only(a)):_.createElement("div",null,$.Children.map(a,function(d){return l(d)}))}}]),r}($.PureComponent);Tt.displayName="Animate";Tt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Tt.propTypes={from:Y.oneOfType([Y.object,Y.string]),to:Y.oneOfType([Y.object,Y.string]),attributeName:Y.string,duration:Y.number,begin:Y.number,easing:Y.oneOfType([Y.string,Y.func]),steps:Y.arrayOf(Y.shape({duration:Y.number.isRequired,style:Y.object.isRequired,easing:Y.oneOfType([Y.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Y.func]),properties:Y.arrayOf("string"),onAnimationEnd:Y.func})),children:Y.oneOfType([Y.node,Y.func]),isActive:Y.bool,canBegin:Y.bool,onAnimationEnd:Y.func,shouldReAnimate:Y.bool,onAnimationStart:Y.func,onAnimationReStart:Y.func};Y.object,Y.object,Y.object,Y.element;Y.object,Y.object,Y.object,Y.oneOfType([Y.array,Y.element]),Y.any;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 ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ma.apply(this,arguments)}function DD(e,t){return FD(e)||BD(e,t)||LD(e,t)||RD()}function RD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
73In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LD(e,t){if(e){if(typeof e=="string")return Jd(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 Jd(e,t)}}function Jd(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 BD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,c=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(f){u=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}function FD(e){if(Array.isArray(e))return e}function Qd(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 eh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qd(Object(r),!0).forEach(function(n){WD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WD(e,t,r){return t=zD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zD(e){var t=UD(e,"string");return Xn(t)=="symbol"?t:t+""}function UD(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var th=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),c=i>=0?1:-1,s=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],d=0,h=4;d<h;d++)l[d]=a[d]>o?o:a[d];f="M".concat(t,",").concat(r+c*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(u,",").concat(t+s*l[0],",").concat(r)),f+="L ".concat(t+n-s*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,`,
74        `).concat(t+n,",").concat(r+c*l[1])),f+="L ".concat(t+n,",").concat(r+i-c*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(u,`,
75        `).concat(t+n-s*l[2],",").concat(r+i)),f+="L ".concat(t+s*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(u,`,
76        `).concat(t,",").concat(r+i-c*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var p=Math.min(o,a);f="M ".concat(t,",").concat(r+c*p,`
77            A `).concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+s*p,",").concat(r,`
78            L `).concat(t+n-s*p,",").concat(r,`
79            A `).concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+n,",").concat(r+c*p,`
80            L `).concat(t+n,",").concat(r+i-c*p,`
81            A `).concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+n-s*p,",").concat(r+i,`
82            L `).concat(t+s*p,",").concat(r+i,`
83            A `).concat(p,",").concat(p,",0,0,").concat(u,",").concat(t,",").concat(r+i-c*p," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},HD=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,c=r.width,s=r.height;if(Math.abs(c)>0&&Math.abs(s)>0){var u=Math.min(a,a+c),f=Math.max(a,a+c),l=Math.min(o,o+s),d=Math.max(o,o+s);return n>=u&&n<=f&&i>=l&&i<=d}return!1},qD={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Mu=function(t){var r=eh(eh({},qD),t),n=$.useRef(),i=$.useState(-1),a=DD(i,2),o=a[0],c=a[1];$.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var m=n.current.getTotalLength();m&&c(m)}catch{}},[]);var s=r.x,u=r.y,f=r.width,l=r.height,d=r.radius,h=r.className,p=r.animationEasing,v=r.animationDuration,y=r.animationBegin,b=r.isAnimationActive,x=r.isUpdateAnimationActive;if(s!==+s||u!==+u||f!==+f||l!==+l||f===0||l===0)return null;var w=re("recharts-rectangle",h);return x?_.createElement(Tt,{canBegin:o>0,from:{width:f,height:l,x:s,y:u},to:{width:f,height:l,x:s,y:u},duration:v,animationEasing:p,isActive:x},function(m){var g=m.width,O=m.height,S=m.x,A=m.y;return _.createElement(Tt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,isActive:b,easing:p},_.createElement("path",ma({},ee(r,!0),{className:w,d:th(S,A,g,O,d),ref:n})))}):_.createElement("path",ma({},ee(r,!0),{className:w,d:th(s,u,f,l,d)}))};function us(){return us=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},us.apply(this,arguments)}var Nu=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=re("recharts-dot",a);return r===+r&&n===+n&&i===+i?_.createElement("circle",us({},ee(t,!1),Di(t),{className:o,cx:r,cy:n,r:i})):null};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)}var GD=["x","y","top","left","width","height","className"];function ls(){return ls=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},ls.apply(this,arguments)}function rh(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 KD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rh(Object(r),!0).forEach(function(n){XD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XD(e,t,r){return t=VD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VD(e){var t=YD(e,"string");return Vn(t)=="symbol"?t:t+""}function YD(e,t){if(Vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZD(e,t){if(e==null)return{};var r=JD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function JD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var QD=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},eR=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,c=o===void 0?0:o,s=t.left,u=s===void 0?0:s,f=t.width,l=f===void 0?0:f,d=t.height,h=d===void 0?0:d,p=t.className,v=ZD(t,GD),y=KD({x:n,y:a,top:c,left:u,width:l,height:h},v);return!F(n)||!F(a)||!F(l)||!F(h)||!F(c)||!F(u)?null:_.createElement("path",ls({},ee(y,!0),{className:re("recharts-cross",p),d:QD(n,a,l,h,c,u)}))},tR=qp,rR=tR(Object.getPrototypeOf,Object),nR=rR,iR=Et,aR=nR,oR=Ct,cR="[object Object]",sR=Function.prototype,uR=Object.prototype,Ny=sR.toString,lR=uR.hasOwnProperty,fR=Ny.call(Object);function dR(e){if(!oR(e)||iR(e)!=cR)return!1;var t=aR(e);if(t===null)return!0;var r=lR.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ny.call(r)==fR}var hR=dR;const pR=se(hR);var vR=Et,yR=Ct,mR="[object Boolean]";function gR(e){return e===!0||e===!1||yR(e)&&vR(e)==mR}var bR=gR;const xR=se(bR);function Yn(e){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(e)}function ga(){return ga=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},ga.apply(this,arguments)}function wR(e,t){return AR(e)||PR(e,t)||SR(e,t)||OR()}function OR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
84In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SR(e,t){if(e){if(typeof e=="string")return nh(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 nh(e,t)}}function nh(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 PR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,c=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(f){u=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}function AR(e){if(Array.isArray(e))return e}function ih(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ah(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ih(Object(r),!0).forEach(function(n){_R(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ih(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _R(e,t,r){return t=$R(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $R(e){var t=jR(e,"string");return Yn(t)=="symbol"?t:t+""}function jR(e,t){if(Yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oh=function(t,r,n,i,a){var o=n-i,c;return c="M ".concat(t,",").concat(r),c+="L ".concat(t+n,",").concat(r),c+="L ".concat(t+n-o/2,",").concat(r+a),c+="L ".concat(t+n-o/2-i,",").concat(r+a),c+="L ".concat(t,",").concat(r," Z"),c},TR={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ER=function(t){var r=ah(ah({},TR),t),n=$.useRef(),i=$.useState(-1),a=wR(i,2),o=a[0],c=a[1];$.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&c(w)}catch{}},[]);var s=r.x,u=r.y,f=r.upperWidth,l=r.lowerWidth,d=r.height,h=r.className,p=r.animationEasing,v=r.animationDuration,y=r.animationBegin,b=r.isUpdateAnimationActive;if(s!==+s||u!==+u||f!==+f||l!==+l||d!==+d||f===0&&l===0||d===0)return null;var x=re("recharts-trapezoid",h);return b?_.createElement(Tt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:u},to:{upperWidth:f,lowerWidth:l,height:d,x:s,y:u},duration:v,animationEasing:p,isActive:b},function(w){var m=w.upperWidth,g=w.lowerWidth,O=w.height,S=w.x,A=w.y;return _.createElement(Tt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,easing:p},_.createElement("path",ga({},ee(r,!0),{className:x,d:oh(S,A,m,g,O),ref:n})))}):_.createElement("g",null,_.createElement("path",ga({},ee(r,!0),{className:x,d:oh(s,u,f,l,d)})))},CR=["option","shapeType","propTransformer","activeClassName","isActive"];function Zn(e){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(e)}function MR(e,t){if(e==null)return{};var r=NR(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 NR(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 ch(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ba(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ch(Object(r),!0).forEach(function(n){kR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ch(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kR(e,t,r){return t=IR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IR(e){var t=DR(e,"string");return Zn(t)=="symbol"?t:t+""}function DR(e,t){if(Zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RR(e,t){return ba(ba({},t),e)}function LR(e,t){return e==="symbols"}function sh(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return _.createElement(Mu,r);case"trapezoid":return _.createElement(ER,r);case"sector":return _.createElement(wy,r);case"symbols":if(LR(t))return _.createElement(Zs,r);break;default:return null}}function BR(e){return $.isValidElement(e)?e.props:e}function FR(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?RR:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,c=e.isActive,s=MR(e,CR),u;if($.isValidElement(t))u=$.cloneElement(t,ba(ba({},s),BR(t)));else if(J(t))u=t(s);else if(pR(t)&&!xR(t)){var f=i(t,s);u=_.createElement(sh,{shapeType:r,elementProps:f})}else{var l=s;u=_.createElement(sh,{shapeType:r,elementProps:l})}return c?_.createElement(ve,{className:o},u):u}function go(e,t){return t!=null&&"trapezoids"in e.props}function bo(e,t){return t!=null&&"sectors"in e.props}function Jn(e,t){return t!=null&&"points"in e.props}function WR(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function zR(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function UR(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function HR(e,t){var r;return go(e,t)?r=WR:bo(e,t)?r=zR:Jn(e,t)&&(r=UR),r}function qR(e,t){var r;return go(e,t)?r="trapezoids":bo(e,t)?r="sectors":Jn(e,t)&&(r="points"),r}function GR(e,t){if(go(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(bo(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 Jn(e,t)?t.payload:{}}function KR(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=qR(r,t),a=GR(r,t),o=n.filter(function(s,u){var f=vo(a,s),l=r.props[i].filter(function(p){var v=HR(r,t);return v(p,t)}),d=r.props[i].indexOf(l[l.length-1]),h=u===d;return f&&h}),c=n.indexOf(o[o.length-1]);return c}var XR=Math.ceil,VR=Math.max;function YR(e,t,r,n){for(var i=-1,a=VR(XR((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var ZR=YR,JR=lv,uh=1/0,QR=17976931348623157e292;function eL(e){if(!e)return e===0?e:0;if(e=JR(e),e===uh||e===-uh){var t=e<0?-1:1;return t*QR}return e===e?e:0}var ky=eL,tL=ZR,rL=ao,Zo=ky;function nL(e){return function(t,r,n){return n&&typeof n!="number"&&rL(t,r,n)&&(r=n=void 0),t=Zo(t),r===void 0?(r=t,t=0):r=Zo(r),n=n===void 0?t<r?1:-1:Zo(n),tL(t,r,n,e)}}var iL=nL,aL=iL,oL=aL(),cL=oL;const xa=se(cL);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 lh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lh(Object(r),!0).forEach(function(n){Iy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Iy(e,t,r){return t=sL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sL(e){var t=uL(e,"string");return Qn(t)=="symbol"?t:t+""}function uL(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lL=["Webkit","Moz","O","ms"],fL=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=lL.reduce(function(a,o){return fh(fh({},a),{},Iy({},o+n,r))},{});return i[t]=r,i};function Nr(e){"@babel/helpers - typeof";return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nr(e)}function wa(){return wa=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},wa.apply(this,arguments)}function dh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dh(Object(r),!0).forEach(function(n){Le(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hh(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,Ry(n.key),n)}}function hL(e,t,r){return t&&hh(e.prototype,t),r&&hh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pL(e,t,r){return t=Oa(t),vL(e,Dy()?Reflect.construct(t,r||[],Oa(e).constructor):t.apply(e,r))}function vL(e,t){if(t&&(Nr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yL(e)}function yL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dy=function(){return!!e})()}function Oa(e){return Oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oa(e)}function mL(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&&fs(e,t)}function fs(e,t){return fs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fs(e,t)}function Le(e,t,r){return t=Ry(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ry(e){var t=gL(e,"string");return Nr(t)=="symbol"?t:t+""}function gL(e,t){if(Nr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bL=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,c=t.travellerWidth;if(!r||!r.length)return{};var s=r.length,u=bn().domain(xa(0,s)).range([a,a+o-c]),f=u.domain().map(function(l){return u(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:f}},ph=function(t){return t.changedTouches&&!!t.changedTouches.length},kr=function(e){function t(r){var n;return dL(this,t),n=pL(this,t,[r]),Le(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Le(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Le(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,c=i.startIndex;o==null||o({endIndex:a,startIndex:c})}),n.detachDragEndListener()}),Le(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Le(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Le(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Le(n,"handleSlideDragStart",function(i){var a=ph(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 mL(t,e),hL(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,c=this.props,s=c.gap,u=c.data,f=u.length-1,l=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(o,l),p=t.getIndexInRange(o,d);return{startIndex:h-h%s,endIndex:p===f?f:p-p%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,c=i.dataKey,s=We(a[n],c,n);return J(o)?o(s,n):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,c=i.endX,s=this.props,u=s.x,f=s.width,l=s.travellerWidth,d=s.startIndex,h=s.endIndex,p=s.onChange,v=n.pageX-a;v>0?v=Math.min(v,u+f-l-c,u+f-l-o):v<0&&(v=Math.max(v,u-o,u-c));var y=this.getIndex({startX:o+v,endX:c+v});(y.startIndex!==d||y.endIndex!==h)&&p&&p(y),this.setState({startX:o+v,endX:c+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=ph(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,c=i.endX,s=i.startX,u=this.state[o],f=this.props,l=f.x,d=f.width,h=f.travellerWidth,p=f.onChange,v=f.gap,y=f.data,b={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+d-h-u):x<0&&(x=Math.max(x,l-u)),b[o]=u+x;var w=this.getIndex(b),m=w.startIndex,g=w.endIndex,O=function(){var A=y.length-1;return o==="startX"&&(c>s?m%v===0:g%v===0)||c<s&&g===A||o==="endX"&&(c>s?g%v===0:m%v===0)||c>s&&g===A};this.setState(Le(Le({},o,u+x),"brushMoveStartX",n.pageX),function(){p&&O()&&p(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,c=o.scaleValues,s=o.startX,u=o.endX,f=this.state[i],l=c.indexOf(f);if(l!==-1){var d=l+n;if(!(d===-1||d>=c.length)){var h=c[d];i==="startX"&&h>=u||i==="endX"&&h<=s||this.setState(Le({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,c=n.height,s=n.fill,u=n.stroke;return _.createElement("rect",{stroke:u,fill:s,x:i,y:a,width:o,height:c})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,c=n.height,s=n.data,u=n.children,f=n.padding,l=$.Children.only(u);return l?_.cloneElement(l,{x:i,y:a,width:o,height:c,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,c=this,s=this.props,u=s.y,f=s.travellerWidth,l=s.height,d=s.traveller,h=s.ariaLabel,p=s.data,v=s.startIndex,y=s.endIndex,b=Math.max(n,this.props.x),x=Jo(Jo({},ee(this.props,!1)),{},{x:b,y:u,width:f,height:l}),w=h||"Min value: ".concat((a=p[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=p[y])===null||o===void 0?void 0:o.name);return _.createElement(ve,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(g){["ArrowLeft","ArrowRight"].includes(g.key)&&(g.preventDefault(),g.stopPropagation(),c.handleTravellerMoveKeyboard(g.key==="ArrowRight"?1:-1,i))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,c=a.height,s=a.stroke,u=a.travellerWidth,f=Math.min(n,i)+u,l=Math.max(Math.abs(i-n)-u,0);return _.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:l,height:c})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,c=n.height,s=n.travellerWidth,u=n.stroke,f=this.state,l=f.startX,d=f.endX,h=5,p={pointerEvents:"none",fill:u};return _.createElement(ve,{className:"recharts-brush-texts"},_.createElement(Zi,wa({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,d)-h,y:o+c/2},p),this.getTextOfTick(i)),_.createElement(Zi,wa({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,d)+s+h,y:o+c/2},p),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,c=n.x,s=n.y,u=n.width,f=n.height,l=n.alwaysShowText,d=this.state,h=d.startX,p=d.endX,v=d.isTextActive,y=d.isSlideMoving,b=d.isTravellerMoving,x=d.isTravellerFocused;if(!i||!i.length||!F(c)||!F(s)||!F(u)||!F(f)||u<=0||f<=0)return null;var w=re("recharts-brush",a),m=_.Children.count(o)===1,g=fL("userSelect","none");return _.createElement(ve,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(h,p),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(p,"endX"),(v||y||b||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,c=n.height,s=n.stroke,u=Math.floor(a+c/2)-1;return _.createElement(_.Fragment,null,_.createElement("rect",{x:i,y:a,width:o,height:c,fill:s,stroke:"none"}),_.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),_.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return _.isValidElement(n)?a=_.cloneElement(n,i):J(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,c=n.x,s=n.travellerWidth,u=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return Jo({prevData:a,prevTravellerWidth:s,prevUpdateId:u,prevX:c,prevWidth:o},a&&a.length?bL({data:a,width:o,x:c,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||c!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([c,c+o-s]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:u,prevX:c,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,c=a-1;c-o>1;){var s=Math.floor((o+c)/2);n[s]>i?c=s:o=s}return i>=n[c]?c:o}}])}($.PureComponent);Le(kr,"displayName","Brush");Le(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 xL=iu;function wL(e,t){var r;return xL(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var OL=wL,SL=Rp,PL=Bt,AL=OL,_L=Ie,$L=ao;function jL(e,t,r){var n=_L(e)?SL:AL;return r&&$L(e,t,r)&&(t=void 0),n(e,PL(t))}var TL=jL;const EL=se(TL);var ut=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},vh=av;function CL(e,t,r){t=="__proto__"&&vh?vh(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var ML=CL,NL=ML,kL=nv,IL=Bt;function DL(e,t){var r={};return t=IL(t),kL(e,function(n,i,a){NL(r,i,t(n,i,a))}),r}var RL=DL;const LL=se(RL);function BL(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var FL=BL,WL=iu;function zL(e,t){var r=!0;return WL(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var UL=zL,HL=FL,qL=UL,GL=Bt,KL=Ie,XL=ao;function VL(e,t,r){var n=KL(e)?HL:qL;return r&&XL(e,t,r)&&(t=void 0),n(e,GL(t))}var YL=VL;const Ly=se(YL);var ZL=["x","y"];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 ds(){return ds=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},ds.apply(this,arguments)}function yh(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 yn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yh(Object(r),!0).forEach(function(n){JL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JL(e,t,r){return t=QL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QL(e){var t=eB(e,"string");return ei(t)=="symbol"?t:t+""}function eB(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tB(e,t){if(e==null)return{};var r=rB(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 rB(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 nB(e,t){var r=e.x,n=e.y,i=tB(e,ZL),a="".concat(r),o=parseInt(a,10),c="".concat(n),s=parseInt(c,10),u="".concat(t.height||i.height),f=parseInt(u,10),l="".concat(t.width||i.width),d=parseInt(l,10);return yn(yn(yn(yn(yn({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function mh(e){return _.createElement(FR,ds({shapeType:"rectangle",propTransformer:nB,activeClassName:"recharts-active-bar"},e))}var iB=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=typeof n=="number";return a?t(n,i):(a||ar(),r)}},aB=["value","background"],By;function Ir(e){"@babel/helpers - typeof";return Ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ir(e)}function oB(e,t){if(e==null)return{};var r=cB(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 cB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sa.apply(this,arguments)}function gh(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?gh(Object(r),!0).forEach(function(n){It(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bh(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,Wy(n.key),n)}}function uB(e,t,r){return t&&bh(e.prototype,t),r&&bh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function lB(e,t,r){return t=Pa(t),fB(e,Fy()?Reflect.construct(t,r||[],Pa(e).constructor):t.apply(e,r))}function fB(e,t){if(t&&(Ir(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dB(e)}function dB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fy=function(){return!!e})()}function Pa(e){return Pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pa(e)}function hB(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&&hs(e,t)}function hs(e,t){return hs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hs(e,t)}function It(e,t,r){return t=Wy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wy(e){var t=pB(e,"string");return Ir(t)=="symbol"?t:t+""}function pB(e,t){if(Ir(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ir(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yi=function(e){function t(){var r;sB(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=lB(this,t,[].concat(i)),It(r,"state",{isAnimationFinished:!1}),It(r,"id",ui("recharts-bar-")),It(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),It(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return hB(t,e),uB(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,c=a.dataKey,s=a.activeIndex,u=a.activeBar,f=ee(this.props,!1);return n&&n.map(function(l,d){var h=d===s,p=h?u:o,v=me(me(me({},f),l),{},{isActive:h,option:p,index:d,dataKey:c,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return _.createElement(ve,Sa({className:"recharts-bar-rectangle"},Ri(i.props,l,d),{key:"rectangle-".concat(l==null?void 0:l.x,"-").concat(l==null?void 0:l.y,"-").concat(l==null?void 0:l.value)}),_.createElement(mh,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,c=i.isAnimationActive,s=i.animationBegin,u=i.animationDuration,f=i.animationEasing,l=i.animationId,d=this.state.prevData;return _.createElement(Tt,{begin:s,duration:u,isActive:c,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var p=h.t,v=a.map(function(y,b){var x=d&&d[b];if(x){var w=rt(x.x,y.x),m=rt(x.y,y.y),g=rt(x.width,y.width),O=rt(x.height,y.height);return me(me({},y),{},{x:w(p),y:m(p),width:g(p),height:O(p)})}if(o==="horizontal"){var S=rt(0,y.height),A=S(p);return me(me({},y),{},{y:y.y+y.height-A,height:A})}var T=rt(0,y.width),C=T(p);return me(me({},y),{},{width:C})});return _.createElement(ve,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||!vo(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,c=i.activeIndex,s=ee(this.props.background,!1);return a.map(function(u,f){u.value;var l=u.background,d=oB(u,aB);if(!l)return null;var h=me(me(me(me(me({},d),{},{fill:"#eee"},l),s),Ri(n.props,u,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return _.createElement(mh,Sa({key:"background-bar-".concat(f),option:n.props.background,isActive:f===c},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,c=a.xAxis,s=a.yAxis,u=a.layout,f=a.children,l=Xe(f,vi);if(!l)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,h=function(y,b){var x=Array.isArray(y.value)?y.value[1]:y.value;return{x:y.x,y:y.y,value:x,errorVal:We(y,b)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return _.createElement(ve,p,l.map(function(v){return _.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:c,yAxis:s,layout:u,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,c=n.xAxis,s=n.yAxis,u=n.left,f=n.top,l=n.width,d=n.height,h=n.isAnimationActive,p=n.background,v=n.id;if(i||!a||!a.length)return null;var y=this.state.isAnimationFinished,b=re("recharts-bar",o),x=c&&c.allowDataOverflow,w=s&&s.allowDataOverflow,m=x||w,g=Q(v)?this.id:v;return _.createElement(ve,{className:b},x||w?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(g)},_.createElement("rect",{x:x?u:u-l/2,y:w?f:f-d/2,width:x?l:l*2,height:w?d:d*2}))):null,_.createElement(ve,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(g,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,g),(!h||y)&&Rt.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}}])}($.PureComponent);By=yi;It(yi,"displayName","Bar");It(yi,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Pt.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});It(yi,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,c=e.xAxisTicks,s=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,h=ek(n,r);if(!h)return null;var p=t.layout,v=r.type.defaultProps,y=v!==void 0?me(me({},v),r.props):r.props,b=y.dataKey,x=y.children,w=y.minPointSize,m=p==="horizontal"?o:a,g=u?m.scale.domain():null,O=sk({numericAxis:m}),S=Xe(x,dv),A=l.map(function(T,C){var j,E,k,N,D,I;u?j=tk(u[f+C],g):(j=We(T,b),Array.isArray(j)||(j=[O,j]));var L=iB(w,By.defaultProps.minPointSize)(j[1],C);if(p==="horizontal"){var B,U=[o.scale(j[0]),o.scale(j[1])],K=U[0],q=U[1];E=gd({axis:a,ticks:c,bandSize:i,offset:h.offset,entry:T,index:C}),k=(B=q??K)!==null&&B!==void 0?B:void 0,N=h.size;var H=K-q;if(D=Number.isNaN(H)?0:H,I={x:E,y:o.y,width:N,height:o.height},Math.abs(L)>0&&Math.abs(D)<Math.abs(L)){var X=it(D||L)*(Math.abs(L)-Math.abs(D));k-=X,D+=X}}else{var ue=[a.scale(j[0]),a.scale(j[1])],Ae=ue[0],ht=ue[1];if(E=Ae,k=gd({axis:o,ticks:s,bandSize:i,offset:h.offset,entry:T,index:C}),N=ht-Ae,D=h.size,I={x:a.x,y:k,width:a.width,height:D},Math.abs(L)>0&&Math.abs(N)<Math.abs(L)){var je=it(N||L)*(Math.abs(L)-Math.abs(N));N+=je}}return me(me(me({},T),{},{x:E,y:k,width:N,height:D,value:u?j:j[1],payload:T,background:I},S&&S[C]&&S[C].props),{},{tooltipPayload:[gy(r,T)],tooltipPosition:{x:E+N/2,y:k+D/2}})});return me({data:A,layout:p},d)});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 vB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xh(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,zy(n.key),n)}}function yB(e,t,r){return t&&xh(e.prototype,t),r&&xh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wh(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?wh(Object(r),!0).forEach(function(n){xo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xo(e,t,r){return t=zy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zy(e){var t=mB(e,"string");return ti(t)=="symbol"?t:t+""}function mB(e,t){if(ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gB=function(t,r,n,i,a){var o=t.width,c=t.height,s=t.layout,u=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:c-n.bottom,bottomMirror:c-n.bottom},d=!!Be(u,yi);return f.reduce(function(h,p){var v=r[p],y=v.orientation,b=v.domain,x=v.padding,w=x===void 0?{}:x,m=v.mirror,g=v.reversed,O="".concat(y).concat(m?"Mirror":""),S,A,T,C,j;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var E=b[1]-b[0],k=1/0,N=v.categoricalDomain.sort();if(N.forEach(function(ue,Ae){Ae>0&&(k=Math.min((ue||0)-(N[Ae-1]||0),k))}),Number.isFinite(k)){var D=k/E,I=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(S=D*I/2),v.padding==="no-gap"){var L=nr(t.barCategoryGap,D*I),B=D*I/2;S=B-L-(B-L)/I*L}}}i==="xAxis"?A=[n.left+(w.left||0)+(S||0),n.left+n.width-(w.right||0)-(S||0)]:i==="yAxis"?A=s==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(S||0),n.top+n.height-(w.bottom||0)-(S||0)]:A=v.range,g&&(A=[A[1],A[0]]);var U=JN(v,a,d),K=U.scale,q=U.realScaleType;K.domain(b).range(A),QN(K);var H=ck(K,et(et({},v),{},{realScaleType:q}));i==="xAxis"?(j=y==="top"&&!m||y==="bottom"&&m,T=n.left,C=l[O]-j*v.height):i==="yAxis"&&(j=y==="left"&&!m||y==="right"&&m,T=l[O]-j*v.width,C=n.top);var X=et(et(et({},v),H),{},{realScaleType:q,x:T,y:C,scale:K,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=fa(X,H),!v.hide&&i==="xAxis"?l[O]+=(j?-1:1)*X.height:v.hide||(l[O]+=(j?-1:1)*X.width),et(et({},h),{},xo({},p,X))},{})},Uy=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},bB=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Uy({x:r,y:n},{x:i,y:a})},Hy=function(){function e(t){vB(this,e),this.scale=t}return yB(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 c=this.bandwidth?this.bandwidth():0;return this.scale(r)+c}default:return this.scale(r)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();xo(Hy,"EPS",1e-4);var ku=function(t){var r=Object.keys(t).reduce(function(n,i){return et(et({},n),{},xo({},i,Hy.create(t[i])))},{});return et(et({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,c=a.position;return LL(i,function(s,u){return r[u].apply(s,{bandAware:o,position:c})})},isInRange:function(i){return Ly(i,function(a,o){return r[o].isInRange(a)})}})};function xB(e){return(e%180+180)%180}var wB=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=xB(i),o=a*Math.PI/180,c=Math.atan(n/r),s=o>c&&o<Math.PI-c?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},OB=Bt,SB=li,PB=no;function AB(e){return function(t,r,n){var i=Object(t);if(!SB(t)){var a=OB(r);t=PB(t),r=function(c){return a(i[c],c,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var _B=AB,$B=ky;function jB(e){var t=$B(e),r=t%1;return t===t?r?t-r:t:0}var TB=jB,EB=Zp,CB=Bt,MB=TB,NB=Math.max;function kB(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:MB(r);return i<0&&(i=NB(n+i,0)),EB(e,CB(t),i)}var IB=kB,DB=_B,RB=IB,LB=DB(RB),BB=LB;const FB=se(BB);var WB=R0(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("")}),Iu=$.createContext(void 0),Du=$.createContext(void 0),qy=$.createContext(void 0),Gy=$.createContext({}),Ky=$.createContext(void 0),Xy=$.createContext(0),Vy=$.createContext(0),Oh=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,c=t.children,s=t.width,u=t.height,f=WB(a);return _.createElement(Iu.Provider,{value:n},_.createElement(Du.Provider,{value:i},_.createElement(Gy.Provider,{value:a},_.createElement(qy.Provider,{value:f},_.createElement(Ky.Provider,{value:o},_.createElement(Xy.Provider,{value:u},_.createElement(Vy.Provider,{value:s},c)))))))},zB=function(){return $.useContext(Ky)},Yy=function(t){var r=$.useContext(Iu);r==null&&ar();var n=r[t];return n==null&&ar(),n},UB=function(){var t=$.useContext(Iu);return kt(t)},HB=function(){var t=$.useContext(Du),r=FB(t,function(n){return Ly(n.domain,Number.isFinite)});return r||kt(t)},Zy=function(t){var r=$.useContext(Du);r==null&&ar();var n=r[t];return n==null&&ar(),n},qB=function(){var t=$.useContext(qy);return t},GB=function(){return $.useContext(Gy)},Ru=function(){return $.useContext(Vy)},Lu=function(){return $.useContext(Xy)};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 KB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qy(n.key),n)}}function VB(e,t,r){return t&&XB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YB(e,t,r){return t=Aa(t),ZB(e,Jy()?Reflect.construct(t,r||[],Aa(e).constructor):t.apply(e,r))}function ZB(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 JB(e)}function JB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jy=function(){return!!e})()}function Aa(e){return Aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Aa(e)}function QB(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&&ps(e,t)}function ps(e,t){return ps=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ps(e,t)}function Sh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ph(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sh(Object(r),!0).forEach(function(n){Bu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bu(e,t,r){return t=Qy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qy(e){var t=eF(e,"string");return Dr(t)=="symbol"?t:t+""}function eF(e,t){if(Dr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tF(e,t){return aF(e)||iF(e,t)||nF(e,t)||rF()}function rF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
85In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nF(e,t){if(e){if(typeof e=="string")return Ah(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 Ah(e,t)}}function Ah(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 iF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,c=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(f){u=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}function aF(e){if(Array.isArray(e))return e}function vs(){return vs=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},vs.apply(this,arguments)}var oF=function(t,r){var n;return _.isValidElement(t)?n=_.cloneElement(t,r):J(t)?n=t(r):n=_.createElement("line",vs({},r,{className:"recharts-reference-line-line"})),n},cF=function(t,r,n,i,a,o,c,s,u){var f=a.x,l=a.y,d=a.width,h=a.height;if(n){var p=u.y,v=t.y.apply(p,{position:o});if(ut(u,"discard")&&!t.y.isInRange(v))return null;var y=[{x:f+d,y:v},{x:f,y:v}];return s==="left"?y.reverse():y}if(r){var b=u.x,x=t.x.apply(b,{position:o});if(ut(u,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+h},{x,y:l}];return c==="top"?w.reverse():w}if(i){var m=u.segment,g=m.map(function(O){return t.apply(O,{position:o})});return ut(u,"discard")&&EL(g,function(O){return!t.isInRange(O)})?null:g}return null};function sF(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,c=e.className,s=e.alwaysShow,u=zB(),f=Yy(i),l=Zy(a),d=qB();if(!u||!d)return null;St(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=ku({x:f.scale,y:l.scale}),p=we(t),v=we(r),y=n&&n.length===2,b=cF(h,p,v,y,d,e.position,f.orientation,l.orientation,e);if(!b)return null;var x=tF(b,2),w=x[0],m=w.x,g=w.y,O=x[1],S=O.x,A=O.y,T=ut(e,"hidden")?"url(#".concat(u,")"):void 0,C=Ph(Ph({clipPath:T},ee(e,!0)),{},{x1:m,y1:g,x2:S,y2:A});return _.createElement(ve,{className:re("recharts-reference-line",c)},oF(o,C),Ee.renderCallByParent(e,bB({x1:m,y1:g,x2:S,y2:A})))}var Fu=function(e){function t(){return KB(this,t),YB(this,t,arguments)}return QB(t,e),VB(t,[{key:"render",value:function(){return _.createElement(sF,this.props)}}])}(_.Component);Bu(Fu,"displayName","ReferenceLine");Bu(Fu,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function ys(){return ys=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},ys.apply(this,arguments)}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 _h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $h(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_h(Object(r),!0).forEach(function(n){wo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_h(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tm(n.key),n)}}function fF(e,t,r){return t&&lF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dF(e,t,r){return t=_a(t),hF(e,em()?Reflect.construct(t,r||[],_a(e).constructor):t.apply(e,r))}function hF(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 pF(e)}function pF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function em(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(em=function(){return!!e})()}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_a(e)}function vF(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&&ms(e,t)}function ms(e,t){return ms=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ms(e,t)}function wo(e,t,r){return t=tm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tm(e){var t=yF(e,"string");return Rr(t)=="symbol"?t:t+""}function yF(e,t){if(Rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mF=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=ku({x:i.scale,y:a.scale}),c=o.apply({x:r,y:n},{bandAware:!0});return ut(t,"discard")&&!o.isInRange(c)?null:c},Oo=function(e){function t(){return uF(this,t),dF(this,t,arguments)}return vF(t,e),fF(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,c=n.alwaysShow,s=n.clipPathId,u=we(i),f=we(a);if(St(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var l=mF(this.props);if(!l)return null;var d=l.x,h=l.y,p=this.props,v=p.shape,y=p.className,b=ut(this.props,"hidden")?"url(#".concat(s,")"):void 0,x=$h($h({clipPath:b},ee(this.props,!0)),{},{cx:d,cy:h});return _.createElement(ve,{className:re("recharts-reference-dot",y)},t.renderDot(v,x),Ee.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])}(_.Component);wo(Oo,"displayName","ReferenceDot");wo(Oo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});wo(Oo,"renderDot",function(e,t){var r;return _.isValidElement(e)?r=_.cloneElement(e,t):J(e)?r=e(t):r=_.createElement(Nu,ys({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function gs(){return gs=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},gs.apply(this,arguments)}function Lr(e){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lr(e)}function jh(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 Th(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jh(Object(r),!0).forEach(function(n){So(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nm(n.key),n)}}function xF(e,t,r){return t&&bF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wF(e,t,r){return t=$a(t),OF(e,rm()?Reflect.construct(t,r||[],$a(e).constructor):t.apply(e,r))}function OF(e,t){if(t&&(Lr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SF(e)}function SF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rm=function(){return!!e})()}function $a(e){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$a(e)}function PF(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&&bs(e,t)}function bs(e,t){return bs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bs(e,t)}function So(e,t,r){return t=nm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nm(e){var t=AF(e,"string");return Lr(t)=="symbol"?t:t+""}function AF(e,t){if(Lr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _F=function(t,r,n,i,a){var o=a.x1,c=a.x2,s=a.y1,u=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var d=ku({x:f.scale,y:l.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},p={x:r?d.x.apply(c,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return ut(a,"discard")&&(!d.isInRange(h)||!d.isInRange(p))?null:Uy(h,p)},Po=function(e){function t(){return gF(this,t),wF(this,t,arguments)}return PF(t,e),xF(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,c=n.y2,s=n.className,u=n.alwaysShow,f=n.clipPathId;St(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=we(i),d=we(a),h=we(o),p=we(c),v=this.props.shape;if(!l&&!d&&!h&&!p&&!v)return null;var y=_F(l,d,h,p,this.props);if(!y&&!v)return null;var b=ut(this.props,"hidden")?"url(#".concat(f,")"):void 0;return _.createElement(ve,{className:re("recharts-reference-area",s)},t.renderRect(v,Th(Th({clipPath:b},ee(this.props,!0)),y)),Ee.renderCallByParent(this.props,y))}}])}(_.Component);So(Po,"displayName","ReferenceArea");So(Po,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});So(Po,"renderRect",function(e,t){var r;return _.isValidElement(e)?r=_.cloneElement(e,t):J(e)?r=e(t):r=_.createElement(Mu,gs({},t,{className:"recharts-reference-area-rect"})),r});function im(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function $F(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return wB(n,r)}function jF(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,c=e.height;return t===1?{start:n?i:a,end:n?i+o:a+c}:{start:n?i+o:a+c,end:n?i:a}}function ja(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 TF(e,t){return im(e,t+1)}function EF(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,c=t.end,s=0,u=1,f=o,l=function(){var p=n==null?void 0:n[s];if(p===void 0)return{v:im(n,u)};var v=s,y,b=function(){return y===void 0&&(y=r(p,v)),y},x=p.coordinate,w=s===0||ja(e,x,b,f,c);w||(s=0,f=o,u+=1),w&&(f=x+e*(b()/2+i),s+=u)},d;u<=a.length;)if(d=l(),d)return d.v;return[]}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 Eh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eh(Object(r),!0).forEach(function(n){CF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CF(e,t,r){return t=MF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MF(e){var t=NF(e,"string");return ri(t)=="symbol"?t:t+""}function NF(e,t){if(ri(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kF(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,c=t.start,s=t.end,u=function(d){var h=a[d],p,v=function(){return p===void 0&&(p=r(h,d)),p};if(d===o-1){var y=e*(h.coordinate+e*v()/2-s);a[d]=h=Te(Te({},h),{},{tickCoord:y>0?h.coordinate-y*e:h.coordinate})}else a[d]=h=Te(Te({},h),{},{tickCoord:h.coordinate});var b=ja(e,h.tickCoord,v,c,s);b&&(s=h.tickCoord-e*(v()/2+i),a[d]=Te(Te({},h),{},{isShow:!0}))},f=o-1;f>=0;f--)u(f);return a}function IF(e,t,r,n,i,a){var o=(n||[]).slice(),c=o.length,s=t.start,u=t.end;if(a){var f=n[c-1],l=r(f,c-1),d=e*(f.coordinate+e*l/2-u);o[c-1]=f=Te(Te({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var h=ja(e,f.tickCoord,function(){return l},s,u);h&&(u=f.tickCoord-e*(l/2+i),o[c-1]=Te(Te({},f),{},{isShow:!0}))}for(var p=a?c-1:c,v=function(x){var w=o[x],m,g=function(){return m===void 0&&(m=r(w,x)),m};if(x===0){var O=e*(w.coordinate-e*g()/2-s);o[x]=w=Te(Te({},w),{},{tickCoord:O<0?w.coordinate-O*e:w.coordinate})}else o[x]=w=Te(Te({},w),{},{tickCoord:w.coordinate});var S=ja(e,w.tickCoord,g,s,u);S&&(s=w.tickCoord+e*(g()/2+i),o[x]=Te(Te({},w),{},{isShow:!0}))},y=0;y<p;y++)v(y);return o}function Wu(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,c=e.orientation,s=e.interval,u=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(F(s)||Pt.isSsr)return TF(i,typeof s=="number"&&F(s)?s:0);var d=[],h=c==="top"||c==="bottom"?"width":"height",p=f&&h==="width"?gn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,m){var g=J(u)?u(w.value,m):w.value;return h==="width"?$F(gn(g,{fontSize:t,letterSpacing:r}),p,l):gn(g,{fontSize:t,letterSpacing:r})[h]},y=i.length>=2?it(i[1].coordinate-i[0].coordinate):1,b=jF(a,y,h);return s==="equidistantPreserveStart"?EF(y,b,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?d=IF(y,b,v,i,o,s==="preserveStartEnd"):d=kF(y,b,v,i,o),d.filter(function(x){return x.isShow}))}var DF=["viewBox"],RF=["viewBox"],LF=["ticks"];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 yr(){return yr=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},yr.apply(this,arguments)}function Ch(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ch(Object(r),!0).forEach(function(n){zu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ch(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qo(e,t){if(e==null)return{};var r=BF(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 BF(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 FF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,om(n.key),n)}}function WF(e,t,r){return t&&Mh(e.prototype,t),r&&Mh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zF(e,t,r){return t=Ta(t),UF(e,am()?Reflect.construct(t,r||[],Ta(e).constructor):t.apply(e,r))}function UF(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 HF(e)}function HF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function am(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(am=function(){return!!e})()}function Ta(e){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ta(e)}function qF(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&&xs(e,t)}function xs(e,t){return xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xs(e,t)}function zu(e,t,r){return t=om(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function om(e){var t=GF(e,"string");return Br(t)=="symbol"?t:t+""}function GF(e,t){if(Br(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var on=function(e){function t(r){var n;return FF(this,t),n=zF(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return qF(t,e),WF(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Qo(n,DF),c=this.props,s=c.viewBox,u=Qo(c,RF);return!mr(a,s)||!mr(o,u)||!mr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,c=i.width,s=i.height,u=i.orientation,f=i.tickSize,l=i.mirror,d=i.tickMargin,h,p,v,y,b,x,w=l?-1:1,m=n.tickSize||f,g=F(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":h=p=n.coordinate,y=o+ +!l*s,v=y-w*m,x=v-w*d,b=g;break;case"left":v=y=n.coordinate,p=a+ +!l*c,h=p-w*m,b=h-w*d,x=g;break;case"right":v=y=n.coordinate,p=a+ +l*c,h=p+w*m,b=h+w*d,x=g;break;default:h=p=n.coordinate,y=o+ +l*s,v=y+w*m,x=v+w*d,b=g;break}return{line:{x1:h,y1:v,x2:p,y2:y},tick:{x:b,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,c=n.height,s=n.orientation,u=n.mirror,f=n.axisLine,l=Me(Me(Me({},ee(this.props,!1)),ee(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var d=+(s==="top"&&!u||s==="bottom"&&u);l=Me(Me({},l),{},{x1:i,y1:a+d*c,x2:i+o,y2:a+d*c})}else{var h=+(s==="left"&&!u||s==="right"&&u);l=Me(Me({},l),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+c})}return _.createElement("line",yr({},l,{className:re("recharts-cartesian-axis-line",Ke(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,c=this.props,s=c.tickLine,u=c.stroke,f=c.tick,l=c.tickFormatter,d=c.unit,h=Wu(Me(Me({},this.props),{},{ticks:n}),i,a),p=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),y=ee(this.props,!1),b=ee(f,!1),x=Me(Me({},y),{},{fill:"none"},ee(s,!1)),w=h.map(function(m,g){var O=o.getTickLineCoord(m),S=O.line,A=O.tick,T=Me(Me(Me(Me({textAnchor:p,verticalAnchor:v},y),{},{stroke:"none",fill:u},b),A),{},{index:g,payload:m,visibleTicksCount:h.length,tickFormatter:l});return _.createElement(ve,yr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(m.value,"-").concat(m.coordinate,"-").concat(m.tickCoord)},Ri(o.props,m,g)),s&&_.createElement("line",yr({},x,S,{className:re("recharts-cartesian-axis-tick-line",Ke(s,"className"))})),f&&t.renderTickItem(f,T,"".concat(J(l)?l(m.value,g):m.value).concat(d||"")))});return _.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,c=i.height,s=i.ticksGenerator,u=i.className,f=i.hide;if(f)return null;var l=this.props,d=l.ticks,h=Qo(l,LF),p=d;return J(s)&&(p=d&&d.length>0?s(this.props):s(h)),o<=0||c<=0||!p||!p.length?null:_.createElement(ve,{className:re("recharts-cartesian-axis",u),ref:function(y){n.layerReference=y}},a&&this.renderAxisLine(),this.renderTicks(p,this.state.fontSize,this.state.letterSpacing),Ee.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return _.isValidElement(n)?o=_.cloneElement(n,i):J(n)?o=n(i):o=_.createElement(Zi,yr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}($.Component);zu(on,"displayName","CartesianAxis");zu(on,"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 KF=["x1","y1","x2","y2","key"],XF=["offset"];function or(e){"@babel/helpers - typeof";return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or(e)}function Nh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nh(Object(r),!0).forEach(function(n){VF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VF(e,t,r){return t=YF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YF(e){var t=ZF(e,"string");return or(t)=="symbol"?t:t+""}function ZF(e,t){if(or(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(or(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qt(){return Qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qt.apply(this,arguments)}function kh(e,t){if(e==null)return{};var r=JF(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 JF(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 QF=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,c=t.height,s=t.ry;return _.createElement("rect",{x:i,y:a,ry:s,width:o,height:c,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function cm(e,t){var r;if(_.isValidElement(e))r=_.cloneElement(e,t);else if(J(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,c=t.key,s=kh(t,KF),u=ee(s,!1);u.offset;var f=kh(u,XF);r=_.createElement("line",Qt({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:c}))}return r}function e3(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(c,s){var u=Ce(Ce({},e),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(s),index:s});return cm(i,u)});return _.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function t3(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(c,s){var u=Ce(Ce({},e),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(s),index:s});return cm(i,u)});return _.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function r3(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,c=e.horizontalPoints,s=e.horizontal,u=s===void 0?!0:s;if(!u||!t||!t.length)return null;var f=c.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==f[0]&&f.unshift(0);var l=f.map(function(d,h){var p=!f[h+1],v=p?i+o-d:f[h+1]-d;if(v<=0)return null;var y=h%t.length;return _.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:v,width:a,stroke:"none",fill:t[y],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function n3(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,c=e.width,s=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var f=u.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==f[0]&&f.unshift(0);var l=f.map(function(d,h){var p=!f[h+1],v=p?a+c-d:f[h+1]-d;if(v<=0)return null;var y=h%n.length;return _.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:v,height:s,stroke:"none",fill:n[y],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var i3=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return yy(Wu(Ce(Ce(Ce({},on.defaultProps),n),{},{ticks:wt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},a3=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return yy(Wu(Ce(Ce(Ce({},on.defaultProps),n),{},{ticks:wt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},hr={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Uu(e){var t,r,n,i,a,o,c=Ru(),s=Lu(),u=GB(),f=Ce(Ce({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:hr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:hr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:hr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:hr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:hr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:hr.verticalFill,x:F(e.x)?e.x:u.left,y:F(e.y)?e.y:u.top,width:F(e.width)?e.width:u.width,height:F(e.height)?e.height:u.height}),l=f.x,d=f.y,h=f.width,p=f.height,v=f.syncWithTicks,y=f.horizontalValues,b=f.verticalValues,x=UB(),w=HB();if(!F(h)||h<=0||!F(p)||p<=0||!F(l)||l!==+l||!F(d)||d!==+d)return null;var m=f.verticalCoordinatesGenerator||i3,g=f.horizontalCoordinatesGenerator||a3,O=f.horizontalPoints,S=f.verticalPoints;if((!O||!O.length)&&J(g)){var A=y&&y.length,T=g({yAxis:w?Ce(Ce({},w),{},{ticks:A?y:w.ticks}):void 0,width:c,height:s,offset:u},A?!0:v);St(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(or(T),"]")),Array.isArray(T)&&(O=T)}if((!S||!S.length)&&J(m)){var C=b&&b.length,j=m({xAxis:x?Ce(Ce({},x),{},{ticks:C?b:x.ticks}):void 0,width:c,height:s,offset:u},C?!0:v);St(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(or(j),"]")),Array.isArray(j)&&(S=j)}return _.createElement("g",{className:"recharts-cartesian-grid"},_.createElement(QF,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),_.createElement(e3,Qt({},f,{offset:u,horizontalPoints:O,xAxis:x,yAxis:w})),_.createElement(t3,Qt({},f,{offset:u,verticalPoints:S,xAxis:x,yAxis:w})),_.createElement(r3,Qt({},f,{horizontalPoints:O})),_.createElement(n3,Qt({},f,{verticalPoints:S})))}Uu.displayName="CartesianGrid";var o3=["type","layout","connectNulls","ref"],c3=["key"];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 Ih(e,t){if(e==null)return{};var r=s3(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 s3(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 On(){return On=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},On.apply(this,arguments)}function Dh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dh(Object(r),!0).forEach(function(n){tt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pr(e){return d3(e)||f3(e)||l3(e)||u3()}function u3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
86In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l3(e,t){if(e){if(typeof e=="string")return ws(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 ws(e,t)}}function f3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function d3(e){if(Array.isArray(e))return ws(e)}function ws(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 h3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rh(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,um(n.key),n)}}function p3(e,t,r){return t&&Rh(e.prototype,t),r&&Rh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function v3(e,t,r){return t=Ea(t),y3(e,sm()?Reflect.construct(t,r||[],Ea(e).constructor):t.apply(e,r))}function y3(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 m3(e)}function m3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sm=function(){return!!e})()}function Ea(e){return Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ea(e)}function g3(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&&Os(e,t)}function Os(e,t){return Os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Os(e,t)}function tt(e,t,r){return t=um(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function um(e){var t=b3(e,"string");return Fr(t)=="symbol"?t:t+""}function b3(e,t){if(Fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cr=function(e){function t(){var r;h3(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=v3(this,t,[].concat(i)),tt(r,"state",{isAnimationFinished:!0,totalLength:0}),tt(r,"generateSimpleStrokeDasharray",function(o,c){return"".concat(c,"px ").concat(o-c,"px")}),tt(r,"getStrokeDasharray",function(o,c,s){var u=s.reduce(function(b,x){return b+x});if(!u)return r.generateSimpleStrokeDasharray(c,o);for(var f=Math.floor(o/u),l=o%u,d=c-o,h=[],p=0,v=0;p<s.length;v+=s[p],++p)if(v+s[p]>l){h=[].concat(pr(s.slice(0,p)),[l-v]);break}var y=h.length%2===0?[0,d]:[d];return[].concat(pr(t.repeat(s,f)),pr(h),y).map(function(b){return"".concat(b,"px")}).join(", ")}),tt(r,"id",ui("recharts-line-")),tt(r,"pathRef",function(o){r.mainCurve=o}),tt(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),tt(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return g3(t,e),p3(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,c=a.xAxis,s=a.yAxis,u=a.layout,f=a.children,l=Xe(f,vi);if(!l)return null;var d=function(v,y){return{x:v.x,y:v.y,value:v.value,errorVal:We(v.payload,y)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return _.createElement(ve,h,l.map(function(p){return _.cloneElement(p,{key:"bar-".concat(p.props.dataKey),data:o,xAxis:c,yAxis:s,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var c=this.props,s=c.dot,u=c.points,f=c.dataKey,l=ee(this.props,!1),d=ee(s,!0),h=u.map(function(v,y){var b=Re(Re(Re({key:"dot-".concat(y),r:3},l),d),{},{value:v.value,dataKey:f,cx:v.x,cy:v.y,index:y,payload:v.payload});return t.renderDotItem(s,b)}),p={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return _.createElement(ve,On({className:"recharts-line-dots",key:"dots"},p),h)}},{key:"renderCurveStatically",value:function(n,i,a,o){var c=this.props,s=c.type,u=c.layout,f=c.connectNulls;c.ref;var l=Ih(c,o3),d=Re(Re(Re({},ee(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:s,layout:u,connectNulls:f});return _.createElement(Qc,On({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,c=o.points,s=o.strokeDasharray,u=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,d=o.animationEasing,h=o.animationId,p=o.animateNewValues,v=o.width,y=o.height,b=this.state,x=b.prevPoints,w=b.totalLength;return _.createElement(Tt,{begin:f,duration:l,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(m){var g=m.t;if(x){var O=x.length/c.length,S=c.map(function(E,k){var N=Math.floor(k*O);if(x[N]){var D=x[N],I=rt(D.x,E.x),L=rt(D.y,E.y);return Re(Re({},E),{},{x:I(g),y:L(g)})}if(p){var B=rt(v*2,E.x),U=rt(y/2,E.y);return Re(Re({},E),{},{x:B(g),y:U(g)})}return Re(Re({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(S,n,i)}var A=rt(0,w),T=A(g),C;if(s){var j="".concat(s).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});C=a.getStrokeDasharray(T,w,j)}else C=a.generateSimpleStrokeDasharray(w,T);return a.renderCurveStatically(c,n,i,{strokeDasharray:C})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,c=a.isAnimationActive,s=this.state,u=s.prevPoints,f=s.totalLength;return c&&o&&o.length&&(!u&&f>0||!vo(u,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,c=i.points,s=i.className,u=i.xAxis,f=i.yAxis,l=i.top,d=i.left,h=i.width,p=i.height,v=i.isAnimationActive,y=i.id;if(a||!c||!c.length)return null;var b=this.state.isAnimationFinished,x=c.length===1,w=re("recharts-line",s),m=u&&u.allowDataOverflow,g=f&&f.allowDataOverflow,O=m||g,S=Q(y)?this.id:y,A=(n=ee(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,C=T===void 0?3:T,j=A.strokeWidth,E=j===void 0?2:j,k=zx(o)?o:{},N=k.clipDot,D=N===void 0?!0:N,I=C*2+E;return _.createElement(ve,{className:w},m||g?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(S)},_.createElement("rect",{x:m?d:d-h/2,y:g?l:l-p/2,width:m?h:h*2,height:g?p:p*2})),!D&&_.createElement("clipPath",{id:"clipPath-dots-".concat(S)},_.createElement("rect",{x:d-I/2,y:l-I/2,width:h+I,height:p+I}))):null,!x&&this.renderCurve(O,S),this.renderErrorBar(O,S),(x||o)&&this.renderDots(O,D,S),(!v||b)&&Rt.renderCallByParent(this.props,c))}}],[{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(pr(n),[0]):n,o=[],c=0;c<i;++c)o=[].concat(pr(o),pr(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(_.isValidElement(n))a=_.cloneElement(n,i);else if(J(n))a=n(i);else{var o=i.key,c=Ih(i,c3),s=re("recharts-line-dot",typeof n!="boolean"?n.className:"");a=_.createElement(Nu,On({key:o},c,{className:s}))}return a}}])}($.PureComponent);tt(cr,"displayName","Line");tt(cr,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Pt.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});tt(cr,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,c=e.bandSize,s=e.displayedData,u=e.offset,f=t.layout,l=s.map(function(d,h){var p=We(d,o);return f==="horizontal"?{x:md({axis:r,ticks:i,bandSize:c,entry:d,index:h}),y:Q(p)?null:n.scale(p),value:p,payload:d}:{x:Q(p)?null:r.scale(p),y:md({axis:n,ticks:a,bandSize:c,entry:d,index:h}),value:p,payload:d}});return Re({points:l,layout:f},u)});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 x3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w3(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,dm(n.key),n)}}function O3(e,t,r){return t&&w3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function S3(e,t,r){return t=Ca(t),P3(e,lm()?Reflect.construct(t,r||[],Ca(e).constructor):t.apply(e,r))}function P3(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 A3(e)}function A3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lm=function(){return!!e})()}function Ca(e){return Ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ca(e)}function _3(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&&Ss(e,t)}function Ss(e,t){return Ss=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ss(e,t)}function fm(e,t,r){return t=dm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dm(e){var t=$3(e,"string");return Wr(t)=="symbol"?t:t+""}function $3(e,t){if(Wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ps(){return Ps=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},Ps.apply(this,arguments)}function j3(e){var t=e.xAxisId,r=Ru(),n=Lu(),i=Yy(t);return i==null?null:_.createElement(on,Ps({},i,{className:re("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return wt(o,!0)}}))}var mi=function(e){function t(){return x3(this,t),S3(this,t,arguments)}return _3(t,e),O3(t,[{key:"render",value:function(){return _.createElement(j3,this.props)}}])}(_.Component);fm(mi,"displayName","XAxis");fm(mi,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function zr(e){"@babel/helpers - typeof";return zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zr(e)}function T3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vm(n.key),n)}}function C3(e,t,r){return t&&E3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function M3(e,t,r){return t=Ma(t),N3(e,hm()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}function N3(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 k3(e)}function k3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hm=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ma(e)}function I3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&As(e,t)}function As(e,t){return As=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},As(e,t)}function pm(e,t,r){return t=vm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vm(e){var t=D3(e,"string");return zr(t)=="symbol"?t:t+""}function D3(e,t){if(zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _s(){return _s=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},_s.apply(this,arguments)}var R3=function(t){var r=t.yAxisId,n=Ru(),i=Lu(),a=Zy(r);return a==null?null:_.createElement(on,_s({},a,{className:re("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(c){return wt(c,!0)}}))},gi=function(e){function t(){return T3(this,t),M3(this,t,arguments)}return I3(t,e),C3(t,[{key:"render",value:function(){return _.createElement(R3,this.props)}}])}(_.Component);pm(gi,"displayName","YAxis");pm(gi,"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 Lh(e){return W3(e)||F3(e)||B3(e)||L3()}function L3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
87In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B3(e,t){if(e){if(typeof e=="string")return $s(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 $s(e,t)}}function F3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function W3(e){if(Array.isArray(e))return $s(e)}function $s(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 js=function(t,r,n,i,a){var o=Xe(t,Fu),c=Xe(t,Oo),s=[].concat(Lh(o),Lh(c)),u=Xe(t,Po),f="".concat(i,"Id"),l=i[0],d=r;if(s.length&&(d=s.reduce(function(v,y){if(y.props[f]===n&&ut(y.props,"extendDomain")&&F(y.props[l])){var b=y.props[l];return[Math.min(v[0],b),Math.max(v[1],b)]}return v},d)),u.length){var h="".concat(l,"1"),p="".concat(l,"2");d=u.reduce(function(v,y){if(y.props[f]===n&&ut(y.props,"extendDomain")&&F(y.props[h])&&F(y.props[p])){var b=y.props[h],x=y.props[p];return[Math.min(v[0],b,x),Math.max(v[1],b,x)]}return v},d)}return a&&a.length&&(d=a.reduce(function(v,y){return F(y)?[Math.min(v[0],y),Math.max(v[1],y)]:v},d)),d},ym={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,u,f){this.fn=s,this.context=u,this.once=f||!1}function a(s,u,f,l,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new i(f,l||s,d),p=r?r+u:u;return s._events[p]?s._events[p].fn?s._events[p]=[s._events[p],h]:s._events[p].push(h):(s._events[p]=h,s._eventsCount++),s}function o(s,u){--s._eventsCount===0?s._events=new n:delete s._events[u]}function c(){this._events=new n,this._eventsCount=0}c.prototype.eventNames=function(){var u=[],f,l;if(this._eventsCount===0)return u;for(l in f=this._events)t.call(f,l)&&u.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},c.prototype.listeners=function(u){var f=r?r+u:u,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var d=0,h=l.length,p=new Array(h);d<h;d++)p[d]=l[d].fn;return p},c.prototype.listenerCount=function(u){var f=r?r+u:u,l=this._events[f];return l?l.fn?1:l.length:0},c.prototype.emit=function(u,f,l,d,h,p){var v=r?r+u:u;if(!this._events[v])return!1;var y=this._events[v],b=arguments.length,x,w;if(y.fn){switch(y.once&&this.removeListener(u,y.fn,void 0,!0),b){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,f),!0;case 3:return y.fn.call(y.context,f,l),!0;case 4:return y.fn.call(y.context,f,l,d),!0;case 5:return y.fn.call(y.context,f,l,d,h),!0;case 6:return y.fn.call(y.context,f,l,d,h,p),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];y.fn.apply(y.context,x)}else{var m=y.length,g;for(w=0;w<m;w++)switch(y[w].once&&this.removeListener(u,y[w].fn,void 0,!0),b){case 1:y[w].fn.call(y[w].context);break;case 2:y[w].fn.call(y[w].context,f);break;case 3:y[w].fn.call(y[w].context,f,l);break;case 4:y[w].fn.call(y[w].context,f,l,d);break;default:if(!x)for(g=1,x=new Array(b-1);g<b;g++)x[g-1]=arguments[g];y[w].fn.apply(y[w].context,x)}}return!0},c.prototype.on=function(u,f,l){return a(this,u,f,l,!1)},c.prototype.once=function(u,f,l){return a(this,u,f,l,!0)},c.prototype.removeListener=function(u,f,l,d){var h=r?r+u:u;if(!this._events[h])return this;if(!f)return o(this,h),this;var p=this._events[h];if(p.fn)p.fn===f&&(!d||p.once)&&(!l||p.context===l)&&o(this,h);else{for(var v=0,y=[],b=p.length;v<b;v++)(p[v].fn!==f||d&&!p[v].once||l&&p[v].context!==l)&&y.push(p[v]);y.length?this._events[h]=y.length===1?y[0]:y:o(this,h)}return this},c.prototype.removeAllListeners=function(u){var f;return u?(f=r?r+u:u,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,e.exports=c})(ym);var z3=ym.exports;const U3=se(z3);var ec=new U3,tc="recharts.syncMouseEvents";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 H3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mm(n.key),n)}}function G3(e,t,r){return t&&q3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rc(e,t,r){return t=mm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mm(e){var t=K3(e,"string");return ni(t)=="symbol"?t:t+""}function K3(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 String(e)}var X3=function(){function e(){H3(this,e),rc(this,"activeIndex",0),rc(this,"coordinateList",[]),rc(this,"layout","horizontal")}return G3(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,c=o===void 0?null:o,s=r.layout,u=s===void 0?null:s,f=r.offset,l=f===void 0?null:f,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=c??this.container,this.layout=u??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,c=i.height,s=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+s+u,d=o+this.offset.top+c/2+f;this.mouseHandlerCallback({pageX:l,pageY:d})}}}])}();function V3(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&F(n)&&F(i))return!0}return!1}function Y3(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function gm(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=$e(t,r,n,i),c=$e(t,r,n,a);return{points:[o,c],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function Z3(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 c=t.cx,s=t.cy,u=t.innerRadius,f=t.outerRadius,l=t.angle,d=$e(c,s,u,l),h=$e(c,s,f,l);n=d.x,i=d.y,a=h.x,o=h.y}else return gm(t);return[{x:n,y:i},{x:a,y:o}]}function ii(e){"@babel/helpers - typeof";return ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ii(e)}function Bh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ni(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bh(Object(r),!0).forEach(function(n){J3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J3(e,t,r){return t=Q3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q3(e){var t=eW(e,"string");return ii(t)=="symbol"?t:t+""}function eW(e,t){if(ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tW(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,c=e.activePayload,s=e.offset,u=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var p,v=Qc;if(d==="ScatterChart")p=o,v=eR;else if(d==="BarChart")p=Y3(l,o,s,f),v=Mu;else if(l==="radial"){var y=gm(o),b=y.cx,x=y.cy,w=y.radius,m=y.startAngle,g=y.endAngle;p={cx:b,cy:x,startAngle:m,endAngle:g,innerRadius:w,outerRadius:w},v=wy}else p={points:Z3(l,o,s)},v=Qc;var O=Ni(Ni(Ni(Ni({stroke:"#ccc",pointerEvents:"none"},s),p),ee(h,!1)),{},{payload:c,payloadIndex:u,className:re("recharts-tooltip-cursor",h.className)});return $.isValidElement(h)?$.cloneElement(h,O):$.createElement(v,O)}var rW=["item"],nW=["children","className","width","height","style","compact","title","desc"];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 Sn(){return Sn=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},Sn.apply(this,arguments)}function Fh(e,t){return oW(e)||aW(e,t)||xm(e,t)||iW()}function iW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
88In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,c=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(f){u=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}function oW(e){if(Array.isArray(e))return e}function Wh(e,t){if(e==null)return{};var r=cW(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 cW(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 sW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wm(n.key),n)}}function lW(e,t,r){return t&&uW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fW(e,t,r){return t=Na(t),dW(e,bm()?Reflect.construct(t,r||[],Na(e).constructor):t.apply(e,r))}function dW(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 hW(e)}function hW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bm=function(){return!!e})()}function Na(e){return Na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Na(e)}function pW(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&&Ts(e,t)}function Ts(e,t){return Ts=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ts(e,t)}function Hr(e){return mW(e)||yW(e)||xm(e)||vW()}function vW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
89In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xm(e,t){if(e){if(typeof e=="string")return Es(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 Es(e,t)}}function yW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mW(e){if(Array.isArray(e))return Es(e)}function Es(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 zh(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 M(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zh(Object(r),!0).forEach(function(n){G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G(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=gW(e,"string");return Ur(t)=="symbol"?t:t+""}function gW(e,t){if(Ur(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bW={xAxis:["bottom","top"],yAxis:["left","right"]},xW={width:"100%",height:"100%"},Om={x:0,y:0};function ki(e){return e}var wW=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},OW=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,c=i.radius;return M(M(M({},i),$e(i.cx,i.cy,c,o)),{},{angle:o,radius:c})}var s=a.coordinate,u=i.angle;return M(M(M({},i),$e(i.cx,i.cy,s,u)),{},{angle:u,radius:s})}return Om},Ao=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(c,s){var u=s.props.data;return u&&u.length?[].concat(Hr(c),Hr(u)):c},[]);return o.length>0?o:t&&t.length&&F(i)&&F(a)?t.slice(i,a+1):[]};function Sm(e){return e==="number"?[0,"auto"]:void 0}var Cs=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,c=Ao(r,t);return n<0||!a||!a.length||n>=c.length?null:a.reduce(function(s,u){var f,l=(f=u.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=l===void 0?c:l;d=Ii(h,o.dataKey,i)}else d=l&&l[n]||c[n];return d?[].concat(Hr(s),[gy(u,d)]):s},[])},Uh=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=wW(a,n),c=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,f=GN(o,c,u,s);if(f>=0&&u){var l=u[f]&&u[f].value,d=Cs(t,r,f,l),h=OW(n,c,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:d,activeCoordinate:h}}return null},SW=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,c=r.stackGroups,s=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,l=t.children,d=t.stackOffset,h=vy(f,a);return n.reduce(function(p,v){var y,b=v.type.defaultProps!==void 0?M(M({},v.type.defaultProps),v.props):v.props,x=b.type,w=b.dataKey,m=b.allowDataOverflow,g=b.allowDuplicatedCategory,O=b.scale,S=b.ticks,A=b.includeHidden,T=b[o];if(p[T])return p;var C=Ao(t.data,{graphicalItems:i.filter(function(H){var X,ue=o in H.props?H.props[o]:(X=H.type.defaultProps)===null||X===void 0?void 0:X[o];return ue===T}),dataStartIndex:s,dataEndIndex:u}),j=C.length,E,k,N;V3(b.domain,m,x)&&(E=Xc(b.domain,null,m),h&&(x==="number"||O!=="auto")&&(N=xn(C,w,"category")));var D=Sm(x);if(!E||E.length===0){var I,L=(I=b.domain)!==null&&I!==void 0?I:D;if(w){if(E=xn(C,w,x),x==="category"&&h){var B=Nx(E);g&&B?(k=E,E=xa(0,j)):g||(E=wd(L,E,v).reduce(function(H,X){return H.indexOf(X)>=0?H:[].concat(Hr(H),[X])},[]))}else if(x==="category")g?E=E.filter(function(H){return H!==""&&!Q(H)}):E=wd(L,E,v).reduce(function(H,X){return H.indexOf(X)>=0||X===""||Q(X)?H:[].concat(Hr(H),[X])},[]);else if(x==="number"){var U=ZN(C,i.filter(function(H){var X,ue,Ae=o in H.props?H.props[o]:(X=H.type.defaultProps)===null||X===void 0?void 0:X[o],ht="hide"in H.props?H.props.hide:(ue=H.type.defaultProps)===null||ue===void 0?void 0:ue.hide;return Ae===T&&(A||!ht)}),w,a,f);U&&(E=U)}h&&(x==="number"||O!=="auto")&&(N=xn(C,w,"category"))}else h?E=xa(0,j):c&&c[T]&&c[T].hasStack&&x==="number"?E=d==="expand"?[0,1]:my(c[T].stackGroups,s,u):E=py(C,i.filter(function(H){var X=o in H.props?H.props[o]:H.type.defaultProps[o],ue="hide"in H.props?H.props.hide:H.type.defaultProps.hide;return X===T&&(A||!ue)}),x,f,!0);if(x==="number")E=js(l,E,T,a,S),L&&(E=Xc(L,E,m));else if(x==="category"&&L){var K=L,q=E.every(function(H){return K.indexOf(H)>=0});q&&(E=K)}}return M(M({},p),{},G({},T,M(M({},b),{},{axisType:a,domain:E,categoricalDomain:N,duplicateDomain:k,originalDomain:(y=b.domain)!==null&&y!==void 0?y:D,isCategorical:h,layout:f})))},{})},PW=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,c=r.stackGroups,s=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,l=t.children,d=Ao(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:u}),h=d.length,p=vy(f,a),v=-1;return n.reduce(function(y,b){var x=b.type.defaultProps!==void 0?M(M({},b.type.defaultProps),b.props):b.props,w=x[o],m=Sm("number");if(!y[w]){v++;var g;return p?g=xa(0,h):c&&c[w]&&c[w].hasStack?(g=my(c[w].stackGroups,s,u),g=js(l,g,w,a)):(g=Xc(m,py(d,n.filter(function(O){var S,A,T=o in O.props?O.props[o]:(S=O.type.defaultProps)===null||S===void 0?void 0:S[o],C="hide"in O.props?O.props.hide:(A=O.type.defaultProps)===null||A===void 0?void 0:A.hide;return T===w&&!C}),"number",f),i.defaultProps.allowDataOverflow),g=js(l,g,w,a)),M(M({},y),{},G({},w,M(M({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ke(bW,"".concat(a,".").concat(v%2),null),domain:g,originalDomain:m,isCategorical:p,layout:f})))}return y},{})},AW=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,c=r.stackGroups,s=r.dataStartIndex,u=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),d=Xe(f,a),h={};return d&&d.length?h=SW(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:c,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(h=PW(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:c,dataStartIndex:s,dataEndIndex:u})),h},_W=function(t){var r=kt(t),n=wt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:au(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:fa(r,n)}},Hh=function(t){var r=t.children,n=t.defaultShowTooltip,i=Be(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}},$W=function(t){return!t||!t.length?!1:t.some(function(r){var n=Ot(r&&r.type);return n&&n.indexOf("Bar")>=0})},qh=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"}},jW=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,c=t.yAxisMap,s=c===void 0?{}:c,u=n.width,f=n.height,l=n.children,d=n.margin||{},h=Be(l,kr),p=Be(l,gr),v=Object.keys(s).reduce(function(g,O){var S=s[O],A=S.orientation;return!S.mirror&&!S.hide?M(M({},g),{},G({},A,g[A]+S.width)):g},{left:d.left||0,right:d.right||0}),y=Object.keys(o).reduce(function(g,O){var S=o[O],A=S.orientation;return!S.mirror&&!S.hide?M(M({},g),{},G({},A,Ke(g,"".concat(A))+S.height)):g},{top:d.top||0,bottom:d.bottom||0}),b=M(M({},y),v),x=b.bottom;h&&(b.bottom+=h.props.height||kr.defaultProps.height),p&&r&&(b=VN(b,i,n,r));var w=u-b.left-b.right,m=f-b.top-b.bottom;return M(M({brushBottom:x},b),{},{width:Math.max(w,0),height:Math.max(m,0)})},TW=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},EW=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,c=o===void 0?["axis"]:o,s=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,d=function(y,b){var x=b.graphicalItems,w=b.stackGroups,m=b.offset,g=b.updateId,O=b.dataStartIndex,S=b.dataEndIndex,A=y.barSize,T=y.layout,C=y.barGap,j=y.barCategoryGap,E=y.maxBarSize,k=qh(T),N=k.numericAxisName,D=k.cateAxisName,I=$W(x),L=[];return x.forEach(function(B,U){var K=Ao(y.data,{graphicalItems:[B],dataStartIndex:O,dataEndIndex:S}),q=B.type.defaultProps!==void 0?M(M({},B.type.defaultProps),B.props):B.props,H=q.dataKey,X=q.maxBarSize,ue=q["".concat(N,"Id")],Ae=q["".concat(D,"Id")],ht={},je=s.reduce(function(Ut,Ht){var jo=b["".concat(Ht.axisType,"Map")],Yu=q["".concat(Ht.axisType,"Id")];jo&&jo[Yu]||Ht.axisType==="zAxis"||ar();var Zu=jo[Yu];return M(M({},Ut),{},G(G({},Ht.axisType,Zu),"".concat(Ht.axisType,"Ticks"),wt(Zu)))},ht),pt=je[D],W=je["".concat(D,"Ticks")],V=w&&w[ue]&&w[ue].hasStack&&uk(B,w[ue].stackGroups),Z=Ot(B.type).indexOf("Bar")>=0,R=fa(pt,W),pe=[],te=I&&KN({barSize:A,stackGroups:w,totalSize:TW(je,D)});if(Z){var be,ye,De=Q(X)?E:X,vt=(be=(ye=fa(pt,W,!0))!==null&&ye!==void 0?ye:De)!==null&&be!==void 0?be:0;pe=XN({barGap:C,barCategoryGap:j,bandSize:vt!==R?vt:R,sizeList:te[Ae],maxBarSize:De}),vt!==R&&(pe=pe.map(function(Ut){return M(M({},Ut),{},{position:M(M({},Ut.position),{},{offset:Ut.position.offset-vt/2})})}))}var bi=B&&B.type&&B.type.getComposedData;bi&&L.push({props:M(M({},bi(M(M({},je),{},{displayedData:K,props:y,dataKey:H,item:B,bandSize:R,barPosition:pe,offset:m,stackedData:V,layout:T,dataStartIndex:O,dataEndIndex:S}))),{},G(G(G({key:B.key||"item-".concat(U)},N,je[N]),D,je[D]),"animationId",g)),childIndex:qx(B,y.children),item:B})}),L},h=function(y,b){var x=y.props,w=y.dataStartIndex,m=y.dataEndIndex,g=y.updateId;if(!hl({props:x}))return null;var O=x.children,S=x.layout,A=x.stackOffset,T=x.data,C=x.reverseStackOrder,j=qh(S),E=j.numericAxisName,k=j.cateAxisName,N=Xe(O,n),D=ok(T,N,"".concat(E,"Id"),"".concat(k,"Id"),A,C),I=s.reduce(function(q,H){var X="".concat(H.axisType,"Map");return M(M({},q),{},G({},X,AW(x,M(M({},H),{},{graphicalItems:N,stackGroups:H.axisType===E&&D,dataStartIndex:w,dataEndIndex:m}))))},{}),L=jW(M(M({},I),{},{props:x,graphicalItems:N}),b==null?void 0:b.legendBBox);Object.keys(I).forEach(function(q){I[q]=f(x,I[q],L,q.replace("Map",""),r)});var B=I["".concat(k,"Map")],U=_W(B),K=d(x,M(M({},I),{},{dataStartIndex:w,dataEndIndex:m,updateId:g,graphicalItems:N,stackGroups:D,offset:L}));return M(M({formattedGraphicalItems:K,graphicalItems:N,offset:L,stackGroups:D},U),I)},p=function(v){function y(b){var x,w,m;return sW(this,y),m=fW(this,y,[b]),G(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),G(m,"accessibilityManager",new X3),G(m,"handleLegendBBoxUpdate",function(g){if(g){var O=m.state,S=O.dataStartIndex,A=O.dataEndIndex,T=O.updateId;m.setState(M({legendBBox:g},h({props:m.props,dataStartIndex:S,dataEndIndex:A,updateId:T},M(M({},m.state),{},{legendBBox:g}))))}}),G(m,"handleReceiveSyncEvent",function(g,O,S){if(m.props.syncId===g){if(S===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(O)}}),G(m,"handleBrushChange",function(g){var O=g.startIndex,S=g.endIndex;if(O!==m.state.dataStartIndex||S!==m.state.dataEndIndex){var A=m.state.updateId;m.setState(function(){return M({dataStartIndex:O,dataEndIndex:S},h({props:m.props,dataStartIndex:O,dataEndIndex:S,updateId:A},m.state))}),m.triggerSyncEvent({dataStartIndex:O,dataEndIndex:S})}}),G(m,"handleMouseEnter",function(g){var O=m.getMouseInfo(g);if(O){var S=M(M({},O),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var A=m.props.onMouseEnter;J(A)&&A(S,g)}}),G(m,"triggeredAfterMouseMove",function(g){var O=m.getMouseInfo(g),S=O?M(M({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var A=m.props.onMouseMove;J(A)&&A(S,g)}),G(m,"handleItemMouseEnter",function(g){m.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),G(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),G(m,"handleMouseMove",function(g){g.persist(),m.throttleTriggeredAfterMouseMove(g)}),G(m,"handleMouseLeave",function(g){m.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};m.setState(O),m.triggerSyncEvent(O);var S=m.props.onMouseLeave;J(S)&&S(O,g)}),G(m,"handleOuterEvent",function(g){var O=Hx(g),S=Ke(m.props,"".concat(O));if(O&&J(S)){var A,T;/.*touch.*/i.test(O)?T=m.getMouseInfo(g.changedTouches[0]):T=m.getMouseInfo(g),S((A=T)!==null&&A!==void 0?A:{},g)}}),G(m,"handleClick",function(g){var O=m.getMouseInfo(g);if(O){var S=M(M({},O),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var A=m.props.onClick;J(A)&&A(S,g)}}),G(m,"handleMouseDown",function(g){var O=m.props.onMouseDown;if(J(O)){var S=m.getMouseInfo(g);O(S,g)}}),G(m,"handleMouseUp",function(g){var O=m.props.onMouseUp;if(J(O)){var S=m.getMouseInfo(g);O(S,g)}}),G(m,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),G(m,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseDown(g.changedTouches[0])}),G(m,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseUp(g.changedTouches[0])}),G(m,"triggerSyncEvent",function(g){m.props.syncId!==void 0&&ec.emit(tc,m.props.syncId,g,m.eventEmitterSymbol)}),G(m,"applySyncEvent",function(g){var O=m.props,S=O.layout,A=O.syncMethod,T=m.state.updateId,C=g.dataStartIndex,j=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)m.setState(M({dataStartIndex:C,dataEndIndex:j},h({props:m.props,dataStartIndex:C,dataEndIndex:j,updateId:T},m.state)));else if(g.activeTooltipIndex!==void 0){var E=g.chartX,k=g.chartY,N=g.activeTooltipIndex,D=m.state,I=D.offset,L=D.tooltipTicks;if(!I)return;if(typeof A=="function")N=A(L,g);else if(A==="value"){N=-1;for(var B=0;B<L.length;B++)if(L[B].value===g.activeLabel){N=B;break}}var U=M(M({},I),{},{x:I.left,y:I.top}),K=Math.min(E,U.x+U.width),q=Math.min(k,U.y+U.height),H=L[N]&&L[N].value,X=Cs(m.state,m.props.data,N),ue=L[N]?{x:S==="horizontal"?L[N].coordinate:K,y:S==="horizontal"?q:L[N].coordinate}:Om;m.setState(M(M({},g),{},{activeLabel:H,activeCoordinate:ue,activePayload:X,activeTooltipIndex:N}))}else m.setState(g)}),G(m,"renderCursor",function(g){var O,S=m.state,A=S.isTooltipActive,T=S.activeCoordinate,C=S.activePayload,j=S.offset,E=S.activeTooltipIndex,k=S.tooltipAxisBandSize,N=m.getTooltipEventType(),D=(O=g.props.active)!==null&&O!==void 0?O:A,I=m.props.layout,L=g.key||"_recharts-cursor";return _.createElement(tW,{key:L,activeCoordinate:T,activePayload:C,activeTooltipIndex:E,chartName:r,element:g,isActive:D,layout:I,offset:j,tooltipAxisBandSize:k,tooltipEventType:N})}),G(m,"renderPolarAxis",function(g,O,S){var A=Ke(g,"type.axisType"),T=Ke(m.state,"".concat(A,"Map")),C=g.type.defaultProps,j=C!==void 0?M(M({},C),g.props):g.props,E=T&&T[j["".concat(A,"Id")]];return $.cloneElement(g,M(M({},E),{},{className:re(A,E.className),key:g.key||"".concat(O,"-").concat(S),ticks:wt(E,!0)}))}),G(m,"renderPolarGrid",function(g){var O=g.props,S=O.radialLines,A=O.polarAngles,T=O.polarRadius,C=m.state,j=C.radiusAxisMap,E=C.angleAxisMap,k=kt(j),N=kt(E),D=N.cx,I=N.cy,L=N.innerRadius,B=N.outerRadius;return $.cloneElement(g,{polarAngles:Array.isArray(A)?A:wt(N,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(T)?T:wt(k,!0).map(function(U){return U.coordinate}),cx:D,cy:I,innerRadius:L,outerRadius:B,key:g.key||"polar-grid",radialLines:S})}),G(m,"renderLegend",function(){var g=m.state.formattedGraphicalItems,O=m.props,S=O.children,A=O.width,T=O.height,C=m.props.margin||{},j=A-(C.left||0)-(C.right||0),E=dy({children:S,formattedGraphicalItems:g,legendWidth:j,legendContent:u});if(!E)return null;var k=E.item,N=Wh(E,rW);return $.cloneElement(k,M(M({},N),{},{chartWidth:A,chartHeight:T,margin:C,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),G(m,"renderTooltip",function(){var g,O=m.props,S=O.children,A=O.accessibilityLayer,T=Be(S,ot);if(!T)return null;var C=m.state,j=C.isTooltipActive,E=C.activeCoordinate,k=C.activePayload,N=C.activeLabel,D=C.offset,I=(g=T.props.active)!==null&&g!==void 0?g:j;return $.cloneElement(T,{viewBox:M(M({},D),{},{x:D.left,y:D.top}),active:I,label:N,payload:I?k:[],coordinate:E,accessibilityLayer:A})}),G(m,"renderBrush",function(g){var O=m.props,S=O.margin,A=O.data,T=m.state,C=T.offset,j=T.dataStartIndex,E=T.dataEndIndex,k=T.updateId;return $.cloneElement(g,{key:g.key||"_recharts-brush",onChange:Ti(m.handleBrushChange,g.props.onChange),data:A,x:F(g.props.x)?g.props.x:C.left,y:F(g.props.y)?g.props.y:C.top+C.height+C.brushBottom-(S.bottom||0),width:F(g.props.width)?g.props.width:C.width,startIndex:j,endIndex:E,updateId:"brush-".concat(k)})}),G(m,"renderReferenceElement",function(g,O,S){if(!g)return null;var A=m,T=A.clipPathId,C=m.state,j=C.xAxisMap,E=C.yAxisMap,k=C.offset,N=g.type.defaultProps||{},D=g.props,I=D.xAxisId,L=I===void 0?N.xAxisId:I,B=D.yAxisId,U=B===void 0?N.yAxisId:B;return $.cloneElement(g,{key:g.key||"".concat(O,"-").concat(S),xAxis:j[L],yAxis:E[U],viewBox:{x:k.left,y:k.top,width:k.width,height:k.height},clipPathId:T})}),G(m,"renderActivePoints",function(g){var O=g.item,S=g.activePoint,A=g.basePoint,T=g.childIndex,C=g.isRange,j=[],E=O.props.key,k=O.item.type.defaultProps!==void 0?M(M({},O.item.type.defaultProps),O.item.props):O.item.props,N=k.activeDot,D=k.dataKey,I=M(M({index:T,dataKey:D,cx:S.x,cy:S.y,r:4,fill:Cu(O.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},ee(N,!1)),Di(N));return j.push(y.renderActiveDot(N,I,"".concat(E,"-activePoint-").concat(T))),A?j.push(y.renderActiveDot(N,M(M({},I),{},{cx:A.x,cy:A.y}),"".concat(E,"-basePoint-").concat(T))):C&&j.push(null),j}),G(m,"renderGraphicChild",function(g,O,S){var A=m.filterFormatItem(g,O,S);if(!A)return null;var T=m.getTooltipEventType(),C=m.state,j=C.isTooltipActive,E=C.tooltipAxis,k=C.activeTooltipIndex,N=C.activeLabel,D=m.props.children,I=Be(D,ot),L=A.props,B=L.points,U=L.isRange,K=L.baseLine,q=A.item.type.defaultProps!==void 0?M(M({},A.item.type.defaultProps),A.item.props):A.item.props,H=q.activeDot,X=q.hide,ue=q.activeBar,Ae=q.activeShape,ht=!!(!X&&j&&I&&(H||ue||Ae)),je={};T!=="axis"&&I&&I.props.trigger==="click"?je={onClick:Ti(m.handleItemMouseEnter,g.props.onClick)}:T!=="axis"&&(je={onMouseLeave:Ti(m.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:Ti(m.handleItemMouseEnter,g.props.onMouseEnter)});var pt=$.cloneElement(g,M(M({},A.props),je));function W(Ht){return typeof E.dataKey=="function"?E.dataKey(Ht.payload):null}if(ht)if(k>=0){var V,Z;if(E.dataKey&&!E.allowDuplicatedCategory){var R=typeof E.dataKey=="function"?W:"payload.".concat(E.dataKey.toString());V=Ii(B,R,N),Z=U&&K&&Ii(K,R,N)}else V=B==null?void 0:B[k],Z=U&&K&&K[k];if(Ae||ue){var pe=g.props.activeIndex!==void 0?g.props.activeIndex:k;return[$.cloneElement(g,M(M(M({},A.props),je),{},{activeIndex:pe})),null,null]}if(!Q(V))return[pt].concat(Hr(m.renderActivePoints({item:A,activePoint:V,basePoint:Z,childIndex:k,isRange:U})))}else{var te,be=(te=m.getItemByXY(m.state.activeCoordinate))!==null&&te!==void 0?te:{graphicalItem:pt},ye=be.graphicalItem,De=ye.item,vt=De===void 0?g:De,bi=ye.childIndex,Ut=M(M(M({},A.props),je),{},{activeIndex:bi});return[$.cloneElement(vt,Ut),null,null]}return U?[pt,null,null]:[pt,null]}),G(m,"renderCustomized",function(g,O,S){return $.cloneElement(g,M(M({key:"recharts-customized-".concat(S)},m.props),m.state))}),G(m,"renderMap",{CartesianGrid:{handler:ki,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:ki},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:ki},YAxis:{handler:ki},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((x=b.id)!==null&&x!==void 0?x:ui("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=fv(m.triggeredAfterMouseMove,(w=b.throttleDelay)!==null&&w!==void 0?w:1e3/60),m.state={},m}return pW(y,v),lW(y,[{key:"componentDidMount",value:function(){var x,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,w=x.children,m=x.data,g=x.height,O=x.layout,S=Be(w,ot);if(S){var A=S.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var T=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,C=Cs(this.state,m,A,T),j=this.state.tooltipTicks[A].coordinate,E=(this.state.offset.top+g)/2,k=O==="horizontal",N=k?{x:j,y:E}:{y:j,x:E},D=this.state.formattedGraphicalItems.find(function(L){var B=L.item;return B.type.name==="Scatter"});D&&(N=M(M({},N),D.props.points[A].tooltipPosition),C=D.props.points[A].tooltipPayload);var I={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:T,activePayload:C,activeCoordinate:N};this.setState(I),this.renderCursor(S),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var m,g;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0}})}return null}},{key:"componentDidUpdate",value:function(x){uc([Be(x.children,ot)],[Be(this.props.children,ot)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Be(this.props.children,ot);if(x&&typeof x.props.shared=="boolean"){var w=x.props.shared?"axis":"item";return c.indexOf(w)>=0?w:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var w=this.container,m=w.getBoundingClientRect(),g=gE(m),O={chartX:Math.round(x.pageX-g.left),chartY:Math.round(x.pageY-g.top)},S=m.width/w.offsetWidth||1,A=this.inRange(O.chartX,O.chartY,S);if(!A)return null;var T=this.state,C=T.xAxisMap,j=T.yAxisMap,E=this.getTooltipEventType();if(E!=="axis"&&C&&j){var k=kt(C).scale,N=kt(j).scale,D=k&&k.invert?k.invert(O.chartX):null,I=N&&N.invert?N.invert(O.chartY):null;return M(M({},O),{},{xValue:D,yValue:I})}var L=Uh(this.state,this.props.data,this.props.layout,A);return L?M(M({},O),L):null}},{key:"inRange",value:function(x,w){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,O=x/m,S=w/m;if(g==="horizontal"||g==="vertical"){var A=this.state.offset,T=O>=A.left&&O<=A.left+A.width&&S>=A.top&&S<=A.top+A.height;return T?{x:O,y:S}:null}var C=this.state,j=C.angleAxisMap,E=C.radiusAxisMap;if(j&&E){var k=kt(j);return Pd({x:O,y:S},k)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,w=this.getTooltipEventType(),m=Be(x,ot),g={};m&&w==="axis"&&(m.props.trigger==="click"?g={onClick:this.handleClick}:g={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var O=Di(this.props,this.handleOuterEvent);return M(M({},O),g)}},{key:"addListener",value:function(){ec.on(tc,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ec.removeListener(tc,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,w,m){for(var g=this.state.formattedGraphicalItems,O=0,S=g.length;O<S;O++){var A=g[O];if(A.item===x||A.props.key===x.key||w===Ot(A.item.type)&&m===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,w=this.state.offset,m=w.left,g=w.top,O=w.height,S=w.width;return _.createElement("defs",null,_.createElement("clipPath",{id:x},_.createElement("rect",{x:m,y:g,height:O,width:S})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(w,m){var g=Fh(m,2),O=g[0],S=g[1];return M(M({},w),{},G({},O,S.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(w,m){var g=Fh(m,2),O=g[0],S=g[1];return M(M({},w),{},G({},O,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(x){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(x){var w=this.state,m=w.formattedGraphicalItems,g=w.activeItem;if(m&&m.length)for(var O=0,S=m.length;O<S;O++){var A=m[O],T=A.props,C=A.item,j=C.type.defaultProps!==void 0?M(M({},C.type.defaultProps),C.props):C.props,E=Ot(C.type);if(E==="Bar"){var k=(T.data||[]).find(function(L){return HD(x,L)});if(k)return{graphicalItem:A,payload:k}}else if(E==="RadialBar"){var N=(T.data||[]).find(function(L){return Pd(x,L)});if(N)return{graphicalItem:A,payload:N}}else if(go(A,g)||bo(A,g)||Jn(A,g)){var D=KR({graphicalItem:A,activeTooltipItem:g,itemData:j.data}),I=j.activeIndex===void 0?D:j.activeIndex;return{graphicalItem:M(M({},A),{},{childIndex:I}),payload:Jn(A,g)?j.data[D]:A.props.data[D]}}}return null}},{key:"render",value:function(){var x=this;if(!hl(this))return null;var w=this.props,m=w.children,g=w.className,O=w.width,S=w.height,A=w.style,T=w.compact,C=w.title,j=w.desc,E=Wh(w,nW),k=ee(E,!1);if(T)return _.createElement(Oh,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},_.createElement(fc,Sn({},k,{width:O,height:S,title:C,desc:j}),this.renderClipPath(),vl(m,this.renderMap)));if(this.props.accessibilityLayer){var N,D;k.tabIndex=(N=this.props.tabIndex)!==null&&N!==void 0?N:0,k.role=(D=this.props.role)!==null&&D!==void 0?D:"application",k.onKeyDown=function(L){x.accessibilityManager.keyboardEvent(L)},k.onFocus=function(){x.accessibilityManager.focus()}}var I=this.parseEventsOfWrapper();return _.createElement(Oh,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},_.createElement("div",Sn({className:re("recharts-wrapper",g),style:M({position:"relative",cursor:"default",width:O,height:S},A)},I,{ref:function(B){x.container=B}}),_.createElement(fc,Sn({},k,{width:O,height:S,title:C,desc:j,style:xW}),this.renderClipPath(),vl(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}($.Component);return G(p,"displayName",r),G(p,"defaultProps",M({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),G(p,"getDerivedStateFromProps",function(v,y){var b=v.dataKey,x=v.data,w=v.children,m=v.width,g=v.height,O=v.layout,S=v.stackOffset,A=v.margin,T=y.dataStartIndex,C=y.dataEndIndex;if(y.updateId===void 0){var j=Hh(v);return M(M(M({},j),{},{updateId:0},h(M(M({props:v},j),{},{updateId:0}),y)),{},{prevDataKey:b,prevData:x,prevWidth:m,prevHeight:g,prevLayout:O,prevStackOffset:S,prevMargin:A,prevChildren:w})}if(b!==y.prevDataKey||x!==y.prevData||m!==y.prevWidth||g!==y.prevHeight||O!==y.prevLayout||S!==y.prevStackOffset||!mr(A,y.prevMargin)){var E=Hh(v),k={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},N=M(M({},Uh(y,x,O)),{},{updateId:y.updateId+1}),D=M(M(M({},E),k),N);return M(M(M({},D),h(M({props:v},D),y)),{},{prevDataKey:b,prevData:x,prevWidth:m,prevHeight:g,prevLayout:O,prevStackOffset:S,prevMargin:A,prevChildren:w})}if(!uc(w,y.prevChildren)){var I,L,B,U,K=Be(w,kr),q=K&&(I=(L=K.props)===null||L===void 0?void 0:L.startIndex)!==null&&I!==void 0?I:T,H=K&&(B=(U=K.props)===null||U===void 0?void 0:U.endIndex)!==null&&B!==void 0?B:C,X=q!==T||H!==C,ue=!Q(x),Ae=ue&&!X?y.updateId:y.updateId+1;return M(M({updateId:Ae},h(M(M({props:v},y),{},{updateId:Ae,dataStartIndex:q,dataEndIndex:H}),y)),{},{prevChildren:w,dataStartIndex:q,dataEndIndex:H})}return null}),G(p,"renderActiveDot",function(v,y,b){var x;return $.isValidElement(v)?x=$.cloneElement(v,y):J(v)?x=v(y):x=_.createElement(Nu,y),_.createElement(ve,{className:"recharts-active-dot",key:b},x)}),function(y){return _.createElement(p,y)}},Pm=EW({chartName:"LineChart",GraphicalChild:cr,axisComponents:[{axisType:"xAxis",AxisComp:mi},{axisType:"yAxis",AxisComp:gi}],formatAxisMap:gB});const CW={light:"",dark:".dark"},Am=$.createContext(null);function _m(){const e=$.useContext(Am);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const Hu=$.forwardRef(({id:e,className:t,children:r,config:n,...i},a)=>{const o=$.useId(),c=`chart-${e||o.replace(/:/g,"")}`;return P.jsx(Am.Provider,{value:{config:n},children:P.jsxs("div",{"data-chart":c,ref:a,className:qe("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...i,children:[P.jsx(MW,{id:c,config:n}),P.jsx(fE,{children:r})]})})});Hu.displayName="Chart";const MW=({id:e,config:t})=>{const r=Object.entries(t).filter(([n,i])=>i.theme||i.color);return r.length?P.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(CW).map(([n,i])=>`
90${i} [data-chart=${e}] {
91${r.map(([a,o])=>{var s;const c=((s=o.theme)==null?void 0:s[n])||o.color;return c?`  --color-${a}: ${c};`:null}).join(`
92`)}
93}
94`).join(`
95`)}}):null},$m=ot,qu=$.forwardRef(({active:e,payload:t,className:r,indicator:n="dot",hideLabel:i=!1,hideIndicator:a=!1,label:o,labelFormatter:c,labelClassName:s,formatter:u,color:f,nameKey:l,labelKey:d},h)=>{const{config:p}=_m(),v=$.useMemo(()=>{var g;if(i||!(t!=null&&t.length))return null;const[b]=t,x=`${d||b.dataKey||b.name||"value"}`,w=Ms(p,b,x),m=!d&&typeof o=="string"?((g=p[o])==null?void 0:g.label)||o:w==null?void 0:w.label;return c?P.jsx("div",{className:qe("font-medium",s),children:c(m,t)}):m?P.jsx("div",{className:qe("font-medium",s),children:m}):null},[o,c,t,i,s,p,d]);if(!e||!(t!=null&&t.length))return null;const y=t.length===1&&n!=="dot";return P.jsxs("div",{ref:h,className:qe("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[y?null:v,P.jsx("div",{className:"grid gap-1.5",children:t.map((b,x)=>{const w=`${l||b.name||b.dataKey||"value"}`,m=Ms(p,b,w),g=f||b.payload.fill||b.color;return P.jsx("div",{className:qe("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",n==="dot"&&"items-center"),children:u&&(b==null?void 0:b.value)!==void 0&&b.name?u(b.value,b.name,b,x,b.payload):P.jsxs(P.Fragment,{children:[m!=null&&m.icon?P.jsx(m.icon,{}):!a&&P.jsx("div",{className:qe("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":y&&n==="dashed"}),style:{"--color-bg":g,"--color-border":g}}),P.jsxs("div",{className:qe("flex flex-1 justify-between leading-none",y?"items-end":"items-center"),children:[P.jsxs("div",{className:"grid gap-1.5",children:[y?v:null,P.jsx("span",{className:"text-muted-foreground",children:(m==null?void 0:m.label)||b.name})]}),b.value&&P.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:b.value.toLocaleStr
95ing()})]})]})},b.dataKey)})})]})});qu.displayName="ChartTooltip";const NW=$.forwardRef(({className:e,hideIcon:t=!1,payload:r,verticalAlign:n="bottom",nameKey:i},a)=>{const{config:o}=_m();return r!=null&&r.length?P.jsx("div",{ref:a,className:qe("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",e),children:r.map(c=>{const s=`${i||c.dataKey||"value"}`,u=Ms(o,c,s);return P.jsxs("div",{className:qe("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[u!=null&&u.icon&&!t?P.jsx(u.icon,{}):P.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:c.color}}),u==null?void 0:u.label]},c.value)})}):null});NW.displayName="ChartLegend";function Ms(e,t,r){if(typeof t!="object"||t===null)return;const n="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let i=r;return r in t&&typeof t[r]=="string"?i=t[r]:n&&r in n&&typeof n[r]=="string"&&(i=n[r]),i in e?e[i]:e[r]}function kW({onSearch:e,currentPrice:t,stockData:r}){const[n,i]=$.useState(""),[a,o]=$.useState(!1),[c,s]=$.useState([]);$.useEffect(()=>{if(r){const l=[],d=r.price;for(let h=6;h>=0;h--){const p=(Math.random()-.5)*.1;l.push({time:new Date(Date.now()-h*24*60*60*1e3).toLocaleDateString(),price:d*(1+p)})}s(l)}},[r]);const u=async()=>{n.trim()&&(o(!0),e(n.toUpperCase()),o(!1))},f=l=>{l.key==="Enter"&&u()};return P.jsxs(mt,{className:"shadow-card border-0 bg-gradient-to-br from-card to-muted/30",children:[P.jsxs(wr,{className:"pb-4",children:[P.jsxs(Or,{className:"flex items-center gap-2 text-xl",children:[P.jsx(ic,{className:"h-5 w-5 text-primary"}),"Stock Search"]}),P.jsx(Gm,{children:"Search for any stock symbol (e.g., AAPL, TSLA, MSFT)"})]}),P.jsxs(gt,{className:"space-y-4",children:[P.jsxs("div",{className:"flex gap-2",children:[P.jsx(ac,{placeholder:"Enter stock symbol...",value:n,onChange:l=>i(l.target.value),onKeyPress:f,className:"text-lg border-2 focus:border-primary transition-colors"}),P.jsx(Is,{onClick:u,disabled:a||!n.trim(),className:"bg-gradient-primary hover:scale-105 transition-all duration-200 shadow-finance",children:a?P.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}):P.jsx(Qm,{className:"h-4 w-4"})})]}),t&&P.jsxs("div",{className:"p-3 bg-primary/10 rounded-lg border border-primary/20",children:[P.jsx("div",{className:"text-sm text-muted-foreground",children:"Live Price Preview"}),P.jsxs("div",{className:"text-2xl font-bold text-primary animate-pulse-glow",children:["$",t.toFixed(2)]})]}),r&&c.length>0&&P.jsxs("div",{className:"mt-4",children:[P.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Price Chart (7 Days)"}),P.jsx(Hu,{config:{price:{label:"Price",color:"hsl(var(--primary))"}},className:"h-[200px]",children:P.jsxs(Pm,{data:c,children:[P.jsx(Uu,{strokeDasharray:"3 3"}),P.jsx(mi,{dataKey:"time"}),P.jsx(gi,{}),P.jsx($m,{content:P.jsx(qu,{})}),P.jsx(cr,{type:"monotone",dataKey:"price",stroke:"var(--color-price)",strokeWidth:2,dot:{fill:"var(--color-price)"}})]})})]})]})]})}function IW({stock:e,loading:t,error:r}){if(t)return P.jsx(mt,{className:"shadow-card border-0 bg-gradient-to-br from-card to-muted/30",children:P.jsx(gt,{className:"flex items-center justify-center h-48",children:P.jsxs("div",{className:"text-center",children:[P.jsx("div",{className:"w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin mx-auto mb-2"}),P.jsx("p",{className:"text-muted-foreground",children:"Loading stock data..."})]})})});if(r)return P.jsx(mt,{className:"shadow-card border-0 bg-gradient-to-br from-card to-muted/30",children:P.jsx(gt,{className:"flex items-center justify-center h-48",children:P.jsx("div",{className:"text-center text-destructive",children:P.jsxs("p",{children:["Error: ",r]})})})});if(!e)return P.jsx(mt,{className:"shadow-card border-0 bg-gradient-to-br from-card to-muted/30",children:P.jsx(gt,{className:"flex items-center justify-center h-48",children:P.jsxs("div",{className:"text-center text-muted-foreground",children:[P.jsx(ic,{className:"h-12 w-12 mx-auto mb-2 opacity-50"}),P.jsx("p",{children:"Search for a stock to view information"})]})})});const n=e.change>=0;return P.jsxs(mt,{className:"shadow-card border-0 bg-gradient-to-br from-card to-muted/30 animate-fade-in",children:[P.jsx(wr,{className:"pb-4",children:P.jsxs(Or,{className:"flex items-center justify-between",children:[P.jsx("span",{className:"text-2xl font-bold",children:e.symbol}),P.jsx(Xh,{sentiment:e.sentiment})]})}),P.jsxs(gt,{className:"space-y-4",children:[P.jsxs("div",{className:"text-center",children:[P.jsxs("div",{className:"text-4xl font-bold text-primary mb-2",children:["$",e.price.toFixed(2)]}),P.jsxs("div",{className:`flex items-center justify-center gap-1 text-lg ${n?"text-finance-positive":"text-finance-negative"}`,children:[n?P.jsx(ic,{className:"h-4 w-4"}):P.jsx(eg,{className:"h-4 w-4"}),P.jsxs("span",{children:[n?"+":"",e.change.toFixed(2)]}),P.jsxs("span",{children:["(",n?"+":"",e.changePercent.toFixed(2),"%)"]})]})]}),P.jsx("div",{className:"border-t pt-4",children:P.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[P.jsx(Vh,{
vendor: 1,829 bytes, lines 95-101
95className:"h-4 w-4"}),P.jsxs("span",{children:["Last updated: ",e.lastUpdated]})]})}),P.jsx("div",{className:"h-16 bg-muted/50 rounded-lg flex items-center justify-center",children:P.jsx("div",{className:"flex items-end gap-1 h-8",children:Array.from({length:12}).map((i,a)=>P.jsx("div",{className:"w-2 bg-gradient-primary rounded-sm animate-fade-in",style:{height:`${Math.random()*100+20}%`,animationDelay:`${a*50}ms`}},a))})})]})]})}function DW(e,t){return $.useReducer((r,n)=>t[r][n]??r,e)}var Gu="ScrollArea",[jm,lz]=Um(Gu),[RW,Je]=jm(Gu),Tm=$.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:i,scrollHideDelay:a=600,...o}=e,[c,s]=$.useState(null),[u,f]=$.useState(null),[l,d]=$.useState(null),[h,p]=$.useState(null),[v,y]=$.useState(null),[b,x]=$.useState(0),[w,m]=$.useState(0),[g,O]=$.useState(!1),[S,A]=$.useState(!1),T=Gr(t,j=>s(j)),C=Ym(i);return P.jsx(RW,{scope:r,type:n,dir:C,scrollHideDelay:a,scrollArea:c,viewport:u,onViewportChange:f,content:l,onContentChange:d,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:g,onScrollbarXEnabledChange:O,scrollbarY:v,onScrollbarYChange:y,scrollbarYEnabled:S,onScrollbarYEnabledChange:A,onCornerWidthChange:x,onCornerHeightChange:m,children:P.jsx(ai.div,{dir:C,...o,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});Tm.displayName=Gu;var Em="ScrollAreaViewport",Cm=$.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,asChild:i,nonce:a,...o}=e,c=Je(Em,r),s=$.useRef(null),u=Gr(t,s,c.onViewportChange);return P.jsxs(P.Fragment,{children:[P.jsx("style",{dangerouslySetInnerHTML:{__html:`
96[data-radix-scroll-area-viewport] {
97  scrollbar-width: none;
98  -ms-overflow-style: none;
99  -webkit-overflow-scrolling: touch;
100}
101[data-radix-scroll-area-viewport]::-webkit-scrollbar {
102  display: none;
103}
104:where([data-radix-scroll-area-viewport]) {
105  display: flex;
106  flex-direction: column;
107  align-items: stretch;
108}
109:where([data-radix-scroll-area-content]) {
110  flex-grow: 1;
111}
112`},nonce:a}),P.jsx(ai.div,{"data-radix-scroll-area-viewport":"",...o,asChild:i,ref:u,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:KW({asChild:i,children:n},f=>P.jsx("div",{"data-radix-scroll-area-content":"",ref:c.onContentChange,style:{minWidth:c.scrollbarXEnabled?"fit-content":void 0},children:f}))})]})});Cm.displayName=Em;var dt="ScrollAreaScrollbar",Ku=$.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=Je(dt,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,c=e.orientation==="horizontal";return $.useEffect(()=>(c?a(!0):o(!0),()=>{c?a(!1):o(!1)}),[c,a,o]),i.type==="hover"?P.jsx(LW,{...n,ref:t,forceMount:r}):i.type==="scroll"?P.jsx(BW,{...n,ref:t,forceMount:r}):i.type==="auto"?P.jsx(Mm,{...n,ref:t,forceMount:r}):i.type==="always"?P.jsx(Xu,{...n,ref:t}):null});Ku.displayName=dt;var LW=$.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=Je(dt,e.__scopeScrollArea),[a,o]=$.useState(!1);return $.useEffect(()=>{const c=i.scrollArea;let s=0;if(c){const u=()=>{window.clearTimeout(s),o(!0)},f=()=>{s=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return c.addEventListener("pointerenter",u),c.addEventListener("pointerleave",f),()=>{window.clearTimeout(s),c.removeEventListener("pointerenter",u),c.removeEventListener("pointerleave",f)}}},[i.scrollArea,i.scrollHideDelay]),P.jsx(Ra,{present:r||a,children:P.jsx(Mm,{"data-state":a?"visible":"hidden",...n,ref:t})})}),BW=$.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=Je(dt,e.__scopeScrollArea),a=e.orientation==="horizontal",o=$o(()=>s("SCROLL_END"),100),[c,s]=DW("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return $.useEffect(()=>{if(c==="idle"){const u=window.setTimeout(()=>s("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(u)}},[c,i.scrollHideDelay,s]),$.useEffect(()=>{const u=i.viewport,f=a?"scrollLeft":"scrollTop";if(u){let l=u[f];const d=()=>{const h=u[f];l!==h&&(s("SCROLL"),o()),l=h};return u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[i.viewport,a,s,o]),P.jsx(Ra,{present:r||c!=="hidden",children:P.jsx(Xu,{"data-state":c==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:er(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:er(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),Mm=$.forwardRef((e,t)=>{const r=Je(dt,e.__scopeScrollArea),{forceMount:n,...i}=e,[a,o]=$.useState(!1),c=e.orientation==="horizontal",s=$o(()=>{if(r.viewport){const u=r.viewport.offsetWidth<r.viewport.scrollWidth,f=r.viewport.offsetHeight<r.viewport.scrollHeight;o(c?u:f)}},10);return qr(r.viewport,s),qr(r.content,s),P.jsx(Ra,{present:n||a,children:P.jsx(Xu,{"data-state":a?"visible":"hidden",...i,ref:t})})}),Xu=$.forwardRef((e,t)=>{const{orientation:r="vertical",...n}=e,i=Je(dt,e.__scopeScrollArea),a=$.useRef(null),o=$.useRef(0),[c,s]=$.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Rm(c.viewport,c.content),f={...n,sizes:c,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:d=>a.current=d,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:d=>o.current=d};function l(d,h){return qW(d,o.current,c,h)}return r==="horizontal"?P.jsx(FW,{...f,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const d=i.viewport.scrollLeft,h=Gh(d,c,i.dir);a.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:d=>{i.viewport&&(i.viewport.scrollLeft=d)},onDragScroll:d=>{i.viewport&&(i.viewport.scrollLeft=l(d,i.dir))}}):r==="vertical"?P.jsx(WW,{...f,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const d=i.viewport.scrollTop,h=Gh(d,c);a.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:d=>{i.viewport&&(i.viewport.scrollTop=d)},onDragScroll:d=>{i.viewport&&(i.viewport.scrollTop=l(d))}}):null}),FW=$.forwardRef((e,t)=>
vendor: 5,958 bytes, line 112
112{const{sizes:r,onSizesChange:n,...i}=e,a=Je(dt,e.__scopeScrollArea),[o,c]=$.useState(),s=$.useRef(null),u=Gr(t,s,a.onScrollbarXChange);return $.useEffect(()=>{s.current&&c(getComputedStyle(s.current))},[s]),P.jsx(km,{"data-orientation":"horizontal",...i,ref:u,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":_o(r)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,l)=>{if(a.viewport){const d=a.viewport.scrollLeft+f.deltaX;e.onWheelScroll(d),Bm(d,l)&&f.preventDefault()}},onResize:()=>{s.current&&a.viewport&&o&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Ia(o.paddingLeft),paddingEnd:Ia(o.paddingRight)}})}})}),WW=$.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...i}=e,a=Je(dt,e.__scopeScrollArea),[o,c]=$.useState(),s=$.useRef(null),u=Gr(t,s,a.onScrollbarYChange);return $.useEffect(()=>{s.current&&c(getComputedStyle(s.current))},[s]),P.jsx(km,{"data-orientation":"vertical",...i,ref:u,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":_o(r)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,l)=>{if(a.viewport){const d=a.viewport.scrollTop+f.deltaY;e.onWheelScroll(d),Bm(d,l)&&f.preventDefault()}},onResize:()=>{s.current&&a.viewport&&o&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Ia(o.paddingTop),paddingEnd:Ia(o.paddingBottom)}})}})}),[zW,Nm]=jm(dt),km=$.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:c,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:f,onResize:l,...d}=e,h=Je(dt,r),[p,v]=$.useState(null),y=Gr(t,T=>v(T)),b=$.useRef(null),x=$.useRef(""),w=h.viewport,m=n.content-n.viewport,g=Vt(f),O=Vt(s),S=$o(l,10);function A(T){if(b.current){const C=T.clientX-b.current.left,j=T.clientY-b.current.top;u({x:C,y:j})}}return $.useEffect(()=>{const T=C=>{const j=C.target;(p==null?void 0:p.contains(j))&&g(C,m)};return document.addEventListener("wheel",T,{passive:!1}),()=>document.removeEventListener("wheel",T,{passive:!1})},[w,p,m,g]),$.useEffect(O,[n,O]),qr(p,S),qr(h.content,S),P.jsx(zW,{scope:r,scrollbar:p,hasThumb:i,onThumbChange:Vt(a),onThumbPointerUp:Vt(o),onThumbPositionChange:O,onThumbPointerDown:Vt(c),children:P.jsx(ai.div,{...d,ref:y,style:{position:"absolute",...d.style},onPointerDown:er(e.onPointerDown,T=>{T.button===0&&(T.target.setPointerCapture(T.pointerId),b.current=p.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),A(T))}),onPointerMove:er(e.onPointerMove,A),onPointerUp:er(e.onPointerUp,T=>{const C=T.target;C.hasPointerCapture(T.pointerId)&&C.releasePointerCapture(T.pointerId),document.body.style.webkitUserSelect=x.current,h.viewport&&(h.viewport.style.scrollBehavior=""),b.current=null})})})}),ka="ScrollAreaThumb",Im=$.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=Nm(ka,e.__scopeScrollArea);return P.jsx(Ra,{present:r||i.hasThumb,children:P.jsx(UW,{ref:t,...n})})}),UW=$.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...i}=e,a=Je(ka,r),o=Nm(ka,r),{onThumbPositionChange:c}=o,s=Gr(t,l=>o.onThumbChange(l)),u=$.useRef(),f=$o(()=>{u.current&&(u.current(),u.current=void 0)},100);return $.useEffect(()=>{const l=a.viewport;if(l){const d=()=>{if(f(),!u.current){const h=GW(l,c);u.current=h,c()}};return c(),l.addEventListener("scroll",d),()=>l.removeEventListener("scroll",d)}},[a.viewport,f,c]),P.jsx(ai.div,{"data-state":o.hasThumb?"visible":"hidden",...i,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:er(e.onPointerDownCapture,l=>{const h=l.target.getBoundingClientRect(),p=l.clientX-h.left,v=l.clientY-h.top;o.onThumbPointerDown({x:p,y:v})}),onPointerUp:er(e.onPointerUp,o.onThumbPointerUp)})});Im.displayName=ka;var Vu="ScrollAreaCorner",Dm=$.forwardRef((e,t)=>{const r=Je(Vu,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?P.jsx(HW,{...e,ref:t}):null});Dm.displayName=Vu;var HW=$.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,i=Je(Vu,r),[a,o]=$.useState(0),[c,s]=$.useState(0),u=!!(a&&c);return qr(i.scrollbarX,()=>{var l;const f=((l=i.scrollbarX)==null?void 0:l.offsetHeight)||0;i.onCornerHeightChange(f),s(f)}),qr(i.scrollbarY,()=>{var l;const f=((l=i.scrollbarY)==null?void 0:l.offsetWidth)||0;i.onCornerWidthChange(f),o(f)}),u?P.jsx(ai.div,{...n,ref:t,style:{width:a,height:c,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Ia(e){return e?parseInt(e,10):0}function Rm(e,t){const r=e/t;return isNaN(r)?0:r}function _o(e){const t=Rm(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function qW(e,t,r,n="ltr"){const i=_o(r),a=i/2,o=t||a,c=i-o,s=r.scrollbar.paddingStart+o,u=r.scrollbar.size-r.scrollbar.paddingEnd-c,f=r.content-r.viewport,l=n==="ltr"?[0,f]:[f*-1,0];return Lm([s,u],l)(e)}function Gh(e,t,r="ltr"){const n=_o(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,c=a-n,s=r==="ltr"?[0,o]:[o*-1,0],u=Zm(e,s);return Lm([0,o],[0,c])(u)}function Lm(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Bm(e,t){return e>0&&e<t}var GW=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function i(){const a={left:e.scrollLeft,top:e.scrollTop},o=r.left!==a.left,c=r.top!==a.top;
112(o||c)&&t(),r=a,n=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(n)};function $o(e,t){const r=Vt(e),n=$.useRef(0);return $.useEffect(()=>()=>window.clearTimeout(n.current),[]),$.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function qr(e,t){const r=Vt(t);Hm(()=>{let n=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return i.observe(e),()=>{window.cancelAnimationFrame(n),i.unobserve(e)}}},[e,r])}function KW(e,t){const{asChild:r,children:n}=e;if(!r)return typeof t=="function"?t(n):t;const i=$.Children.only(n);return $.cloneElement(i,{children:typeof t=="function"?t(i.props.children):t})}var Fm=Tm,XW=Cm,VW=Dm;const Wm=$.forwardRef(({className:e,children:t,...r},n)=>P.jsxs(Fm,{ref:n,className:qe("relative overflow-hidden",e),...r,children:[P.jsx(XW,{className:"h-full w-full rounded-[inherit]",children:t}),P.jsx(zm,{}),P.jsx(VW,{})]}));Wm.displayName=Fm.displayName;const zm=$.forwardRef(({className:e,orientation:t="vertical",...r},n)=>P.jsx(Ku,{ref:n,orientation:t,className:qe("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:P.jsx(Im,{className:"relative flex-1 rounded-full bg-border"})}));zm.displayName=Ku.displayName;const YW="8ced36f60a0b4446aa14fd7a1d1a9b4e";async function Kh(e,t="business"){try{const r=e?`${e} stock`:"stock market",n=await fetch(`https://newsapi.org/v2/everything?q=${encodeURIComponent(r)}&language=en&sortBy=publishedAt&pageSize=10&apiKey=${YW}`);if(!n.ok)return nc(e);const i=await n.json();return i.status==="error"||!i.articles?nc(e):i.articles.map((a,o)=>{var c;return{id:`${a.url}-${o}`,title:a.title||"No title available",description:a.description||"No description available",url:a.url,source:((c=a.source)==null?void 0:c.name)||"Unknown Source",publishedAt:a.publishedAt||new Date().toISOString(),sentiment:ZW()}})}catch(r){return console.error("Error fetching news:",r),nc(e)}}function nc(e){return[{id:"1",title:e?`${e} Stock Shows Strong Performance`:"Stock Market Opens Higher",description:e?`Analysis shows ${e} continues to attract investor interest.`:"Major indices show positive momentum in early trading.",url:"#",source:"Financial Times",publishedAt:new Date(Date.now()-18e5).toISOString(),sentiment:"positive"},{id:"2",title:e?`${e} Quarterly Earnings Preview`:"Market Volatility Expected This Week",description:e?`Investors await ${e} earnings report scheduled for next week.`:"Economic indicators suggest potential market fluctuations.",url:"#",source:"Bloomberg",publishedAt:new Date(Date.now()-72e5).toISOString(),sentiment:"neutral"},{id:"3",title:e?`Analysts Update ${e} Price Targets`:"Tech Stocks Rally Continues",description:e?`Several major investment firms have revised their ${e} price targets.`:"Technology sector leads market gains for the third consecutive day.",url:"#",source:"Reuters",publishedAt:new Date(Date.now()-216e5).toISOString(),sentiment:"positive"},{id:"4",title:e?`${e} Trading Volume Increases`:"Federal Reserve Meeting This Week",description:e?`${e} sees increased trading activity amid market speculation.`:"Investors prepare for potential policy changes following Fed meeting.",url:"#",source:"MarketWatch",publishedAt:new Date(Date.now()-432e5).toISOString(),sentiment:"neutral"},{id:"5",title:e?`${e} Stock Analysis Report`:"Global Markets Mixed",description:e?`Comprehensive analysis of ${e} fundamentals and technical indicators.`:"International markets show mixed performance amid economic uncertainty.",url:"#",source:"CNBC",publishedAt:new Date(Date.now()-864e5).toISOString(),sentiment:"neutral"}]}function ZW(){const e=["positive","negative","neutral"];return e[Math.floor(Math.random()*e.length)]}function JW({symbol:e}){const[t,r]=$.useState([]),[n,i]=$.useState(!1),{toast:a}=ks(),o=async()=>{i(!0);try{const c=await Kh(e,"business");r(c)}catch{a({title:"Error",description:"Failed to fetch news. Showing sample articles.",variant:"destructive"});const s=await Kh(e,"business");r(s)}finally{i(!1)}};return $.useEffect(()=>{o()},[e]),P.jsxs(mt,{className:"shadow-card border-0 bg-gradient-to-br from-card to-muted/30",children:[P.jsx(wr,{className:"pb-4",children:P.jsxs(Or,{className:"flex items-center justify-between",children:[P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsx(Qu,{className:"h-5 w-5 text-primary"}),e?`${e}
112 News`:"Business News"]}),P.jsxs(Is,{size:"sm",variant:"outline",onClick:o,disabled:n,className:"gap-2",children:[P.jsx(Ju,{className:`h-4 w-4 ${n?"animate-spin":""}`}),"Refresh"]})]})}),P.jsx(gt,{children:P.jsx(Wm,{className:"h-80",children:P.jsx("div",{className:"space-y-3",children:n?P.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[P.jsx(Ju,{className:"h-8 w-8 mx-auto mb-2 animate-spin"}),P.jsx("p",{children:"Loading news..."})]}):t.length===0?P.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[P.jsx(Qu,{className:"h-12 w-12 mx-auto mb-2 opacity-50"}),P.jsx("p",{children:"No news articles found"}),P.jsx("p",{className:"text-sm",children:"Try refreshing or searching for a different stock"})]}):t.map((c,s)=>P.jsx("div",{className:"p-4 border border-border rounded-lg hover:shadow-md transition-all duration-200 animate-slide-in",style:{animationDelay:`${s*100}ms`},children:P.jsxs("div",{className:"flex items-start justify-between gap-3",children:[P.jsxs("div",{className:"flex-1 min-w-0",children:[P.jsx("h3",{className:"font-medium text-sm line-clamp-2 mb-2",children:c.title}),P.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[P.jsx("span",{className:"font-medium",children:c.source}),P.jsx("span",{children:"•"}),P.jsxs("div",{className:"flex items-center gap-1",children:[P.jsx(Vh,{className:"h-3 w-3"}),c.publishedAt]})]})]}),P.jsxs("div",{className:"flex flex-col items-end gap-2",children:[P.jsx(Xh,{sentiment:c.sentiment}),P.jsx("a",{href:c.url,className:"text-primary hover:text-primary/80 transition-colors",target:"_blank",rel:"noopener noreferrer",children:P.jsx(Jm,{className:"h-4 w-4"})})]})]})},c.id))})})})]})}const QW=qm("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ns({className:e,variant:t,...r}){return P.jsx("div",{className:qe(QW({variant:t}),e),...r})}function ez(){const[e,t]=$.useState(""),[r,n]=$.useState(""),[i,a]=$.useState(null),[o,c]=$.useState(!1),{toast:s}=ks(),u=async()=>{if(!e.trim()||!r.trim()){s({title:"Error",description:"Please enter both stock symbols",variant:"destructive"});return}c(!0);try{const[d,h]=await Promise.all([oc(e.toUpperCase()),oc(r.toUpperCase())]),p={stock1:{symbol:d.symbol,price:d.price,change:d.change,changePercent:d.changePercent,volume:d.volume,high:d.high,low:d.low,financialRatios:d.financialRatios},stock2:{symbol:h.symbol,price:h.price,change:h.change,changePercent:h.changePercent,volume:h.volume,high:h.high,low:h.low,financialRatios:h.financialRatios}};a(p),s({title:"Comparison Ready",description:`Comparing ${e.toUpperCase()} vs ${r.toUpperCase()}`})}catch(d){s({title:"Error",description:d instanceof Error?d.message:"Failed to fetch comparison data",variant:"destructive"})}finally{c(!1)}},f=i?[{metric:"Price",[i.stock1.symbol]:i.stock1.price,[i.stock2.symbol]:i.stock2.price},{metric:"High",[i.stock1.symbol]:i.stock1.high,[i.stock2.symbol]:i.stock2.high},{metric:"Low",[i.stock1.symbol]:i.stock1.low,[i.stock2.symbol]:i.stock2.low}]:[],l=i?{[i.stock1.symbol]:{label:i.stock1.symbol,color:"hsl(var(--chart-1))"},[i.stock2.symbol]:{label:i.stock2.symbol,color:"hsl(var(--chart-2))"}}:{};return P.jsxs(mt,{className:"shadow-card border-0 bg-gradient-to-br from-card to-muted/30",children:[P.jsx(wr,{className:"pb-4",children:P.jsxs(Or,{className:"flex items-center gap-2 text-xl",children:[P.jsx(Km,{className:"h-5 w-5 text-primary"}),"Stock Comparison"]})}),P.jsxs(gt,{className:"space-y-4",children:[P.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[P.jsx(ac,{placeholder:"First stock (e.g., AAPL)",value:e,onCh
112ange:d=>t(d.target.value)}),P.jsx(ac,{placeholder:"Second stock (e.g., TSLA)",value:r,onChange:d=>n(d.target.value)})]}),P.jsx(Is,{onClick:u,disabled:o||!e.trim()||!r.trim(),className:"w-full bg-gradient-primary hover:scale-105 transition-all duration-200",children:o?P.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}):"Compare Stocks"}),i&&P.jsxs("div",{className:"space-y-4",children:[P.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[P.jsxs("div",{className:"p-4 bg-chart-1/10 rounded-lg border border-chart-1/20",children:[P.jsx("h3",{className:"font-bold text-lg",children:i.stock1.symbol}),P.jsxs("p",{className:"text-2xl font-bold",children:["$",i.stock1.price.toFixed(2)]}),P.jsxs("p",{className:`text-sm ${i.stock1.change>=0?"text-green-600":"text-red-600"}`,children:[i.stock1.change>=0?"+":"",i.stock1.change.toFixed(2),"(",i.stock1.changePercent>=0?"+":"",i.stock1.changePercent.toFixed(2),"%)"]})]}),P.jsxs("div",{className:"p-4 bg-chart-2/10 rounded-lg border border-chart-2/20",children:[P.jsx("h3",{className:"font-bold text-lg",children:i.stock2.symbol}),P.jsxs("p",{className:"text-2xl font-bold",children:["$",i.stock2.price.toFixed(2)]}),P.jsxs("p",{className:`text-sm ${i.stock2.change>=0?"text-green-600":"text-red-600"}`,children:[i.stock2.change>=0?"+":"",i.stock2.change.toFixed(2),"(",i.stock2.changePercent>=0?"+":"",i.stock2.changePercent.toFixed(2),"%)"]})]})]}),P.jsx(Hu,{config:l,className:"min-h-[300px]",children:P.jsxs(Pm,{data:f,children:[P.jsx(Uu,{strokeDasharray:"3 3"}),P.jsx(mi,{dataKey:"metric"}),P.jsx(gi,{}),P.jsx($m,{content:P.jsx(qu,{})}),P.jsx(cr,{type:"monotone",dataKey:i.stock1.symbol,stroke:`var(--color-${i.stock1.symbol})`,strokeWidth:2}),P.jsx(cr,{type:"monotone",dataKey:i.stock2.symbol,stroke:`var(--color-${i.stock2.symbol})`,strokeWidth:2})]})}),(i.stock1.financialRatios||i.stock2.financialRatios)&&P.jsxs("div",{className:"space-y-4",children:[P.jsx("h4",{className:"font-semibold text-lg",children:"Financial Ratios Comparison"}),P.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[{label:"P/E Ratio",key:"peRatio"},{label:"P/B Ratio",key:"pbRatio"},{label:"ROE",key:"returnOnEquity",isPercentage:!0},{label:"ROA",key:"returnOnAssets",isPercentage:!0},{label:"Debt/Equity",key:"debtToEquity"},{label:"Current Ratio",key:"currentRatio"}].map(d=>{var h,p,v,y,b,x,w,m;return P.jsxs("div",{className:"p-3 bg-muted/30 rounded-lg",children:[P.jsx("div",{className:"text-sm font-medium mb-2",children:d.label}),P.jsxs("div",{className:"flex justify-between items-center",children:[P.jsxs("div",{className:"text-center",children:[P.jsx("div",{className:"text-xs text-muted-foreground",children:i.stock1.symbol}),P.jsx(Ns,{variant:"outline",className:"mt-1",children:((h=i.stock1.financialRatios)==null?void 0:h[d.key])!==null?d.isPercentage?`${(((p=i.stock1.financialRatios)==null?void 0:p[d.key])*100).toFixed(2)}%`:(y=(v=i.stock1.financialRatios)==null?void 0:v[d.key])==null?void 0:y.toFixed(2):"N/A"})]}),P.jsx("div",{className:"text-vs text-muted-foreground",children:"vs"}),P.jsxs("div",{className:"text-center",children:[P.jsx("div",{className:"text-xs text-muted-foreground",children:i.stock2.symbol}),P.jsx(Ns,{variant:"outline",className:"mt-1",children:((b=i.stock2.financialRatios)==null?void 0:b[d.key])!==null?d.isPercentage?`${(((x=i.stock2.financialRatios)==null?void 0:x[d.key])*100).toFixed(2)}%`:(m=(w=i.stock2.financialRatios)==null?void 0:w[d.key])==null?void 0:m.toFixed(2):"N/A"})]})]})]},d.key)})})]})]})]})]})}const tz=(e,t=!1,r=!1)=>e==null?"N/A":r&&e>1e9?`$${(e/1e9).toFixed(2)}B`:r&&e>1e6?`$${(e/1e6).toFixed(2)}M`:t?`${(e*100).toFixed(2)}%`:e.toFixed(2),rz=(e,t)=>{if(e===null)return"secondary";switch(t){case"pe":return e<15?"default":e<25?"secondary":"destructive";case"debt":return e<.3?"default":e<.6?"secondary":"destructive";case"roe":case"roa":return e>.15?"default":e>.1?"secondary":"destructive";case"margin":return e>.2?"default":e>.1?"secondary":"destructive";case"current":return e>2?"default":e>1.5?"secondary":"destructive";default:return"secondary"}};
112function nz({ratios:e,symbol:t}){if(!e)return P.jsxs(mt,{children:[P.jsx(wr,{children:P.jsx(Or,{children:"Financial Ratios"})}),P.jsx(gt,{children:P.jsxs("p",{className:"text-muted-foreground",children:["Financial ratios not available for ",t]})})]});const r=[{title:"Valuation",ratios:[{label:"P/E Ratio",value:e.peRatio,type:"pe"},{label:"PEG Ratio",value:e.pegRatio,type:"default"},{label:"P/B Ratio",value:e.pbRatio,type:"default"},{label:"P/S Ratio",value:e.priceToSales,type:"default"}]},{title:"Profitability",ratios:[{label:"ROE",value:e.returnOnEquity,type:"roe",isPercentage:!0},{label:"ROA",value:e.returnOnAssets,type:"roa",isPercentage:!0},{label:"Profit Margin",value:e.profitMargin,type:"margin",isPercentage:!0},{label:"Operating Margin",value:e.operatingMargin,type:"margin",isPercentage:!0}]},{title:"Liquidity & Debt",ratios:[{label:"Current Ratio",value:e.currentRatio,type:"current"},{label:"Quick Ratio",value:e.quickRatio,type:"current"},{label:"Debt/Equity",value:e.debtToEquity,type:"debt"},{label:"Beta",value:e.beta,type:"default"}]},{title:"Key Metrics",ratios:[{label:"EPS",value:e.eps,type:"default",isCurrency:!0},{label:"Dividend Yield",value:e.dividendYield,type:"default",isPercentage:!0},{label:"Market Cap",value:e.marketCap,type:"default",isCurrency:!0}]}];return P.jsxs(mt,{children:[P.jsx(wr,{children:P.jsxs(Or,{children:["Financial Ratios - ",t]})}),P.jsx(gt,{className:"space-y-6",children:r.map(n=>P.jsxs("div",{children:[P.jsx("h4",{className:"font-semibold mb-3 text-sm text-muted-foreground uppercase tracking-wider",children:n.title}),P.jsx("div",{className:"grid grid-cols-2 gap-3",children:n.ratios.map(i=>P.jsxs("div",{className:"flex justify-between items-center",children:[P.jsxs("span",{className:"text-sm",children:[i.label,":"]}),P.jsx(Ns,{variant:rz(i.value,i.type),children:tz(i.value,i.isPercentage,i.isCurrency)})]},i.label))})]},n.title))})]})}function iz(){const[e,t]=$.useState(null),[r,n]=$.useState(!1),[i,a]=$.useState(null),{toast:o}=ks();return{stockData:e,loading:r,error:i,fetchStock:async s=>{n(!0),a(null);try{const u=await oc(s);t(u)}catch(u){const f=u instanceof Error?u.message:"Network error occurred";a(f),o({title:"Error",description:f,variant:"destructive"})}finally{n(!1)}}}}function az(e,{enabled:t=!0,interval:r=5e3,maxRefreshCount:n=2}={}){const i=$.useRef(),[a,o]=$.useState(0);return $.useEffect(()=>{i.current=e},[e]),$.useEffect(()=>{if(!t||a>=n)return;function s(){i.current&&a<n&&(i.current(),o(f=>f+1))}const u=setInterval(s,r);return()=>clearInterval(u)},[t,r,a,n]),{refreshCount:a,resetRefreshCount:()=>o(0)}}function fz(){const[e,t]=$.useState(""),{stockData:r,loading:n,error:i,fetchStock:a}=iz(),{marketTime:o,isMarketOpen:c}=Xm(),s=async u=>{t(u),await a(u)};return az(()=>{e&&a(e)},{enabled:!!e,interval:2e3}),P.jsx(Vm,{children:P.jsxs("div",{className:"space-y-6",children:[P.jsxs("div",{className:"bg-gradient-to-r from-primary/10 to-finance-gold/10 rounded-lg p-6 border border-primary/20",children:[P.jsx("h1",{className:"text-3xl font-bold bg-gradient-primary bg-clip-text text-transparent mb-2",children:"AI Market Sentiment Analyzer"}),P.jsx("p",{className:"text-muted-foreground",children:"Get real-time sentiment analysis and market insights powered by AI"}),P.jsxs("div",{className:"flex flex-wrap gap-3 mt-3",children:[e&&P.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-primary/10 text-primary rounded-full text-sm",children:[P.jsx("div",{className:"w-2 h-2 bg-primary rounded-full animate-pulse"}),"Auto-refreshing ",e," data every 2 seconds"]}),P.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-secondary/10 text-secondary-foreground rounded-full text-sm",children:[P.jsx("div",{className:`w-2 h-2 rounded-full ${c?"bg-green-500":"bg-red-500"}`}),"US Market ",o," (",c?"Open":"Closed",")"]})]})]}),P.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[P.jsxs("div",{className:"space-y-6",children:[P.jsx(kW,{onSearch:s,currentPrice:r==null?void 0:r.price,stockData:r}),P.jsx(ez,{}),P.jsx(IW,{stock:r,loading:n,error:i}),r&&P.jsx(nz,{ratios:r.financialRatios,symbol:r.symbol})]}),P.jsx("div",{className:"space-y-6",children:P.jsx(JW,{symbol:e})})]})]})})}export{fz as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.