vendor: 4,633 bytes, line 1
1import{c as ee}from"./vendor-ui-helpers-BA9Ou6yF.js";import{c as Gn,b as se,r as N,f as Bx,R as T}from"./vendor-react-BDlPBQ8H.js";import{I as nh,P as re}from"./vendor-misc-BcNut0Sq.js";var La,ih;function $e(){if(ih)return La;ih=1;var e=Array.isArray;return La=e,La}var Fa,ah;function $g(){if(ah)return Fa;ah=1;var e=typeof Gn=="object"&&Gn&&Gn.Object===Object&&Gn;return Fa=e,Fa}var Ua,oh;function it(){if(oh)return Ua;oh=1;var e=$g(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ua=r,Ua}var Wa,uh;function kn(){if(uh)return Wa;uh=1;var e=it(),t=e.Symbol;return Wa=t,Wa}var za,ch;function Lx(){if(ch)return za;ch=1;var e=kn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),c=o[i];try{o[i]=void 0;var s=!0}catch{}var f=n.call(o);return s&&(u?o[i]=c:delete o[i]),f}return za=a,za}var Ha,sh;function Fx(){if(sh)return Ha;sh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ha=r,Ha}var Ga,lh;function vt(){if(lh)return Ga;lh=1;var e=kn(),t=Lx(),r=Fx(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return Ga=o,Ga}var Ka,fh;function yt(){if(fh)return Ka;fh=1;function e(t){return t!=null&&typeof t=="object"}return Ka=e,Ka}var Xa,hh;function jr(){if(hh)return Xa;hh=1;var e=vt(),t=yt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Xa=n,Xa}var Va,ph;function tf(){if(ph)return Va;ph=1;var e=$e(),t=jr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return Va=i,Va}var Ya,dh;function _t(){if(dh)return Ya;dh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Ya=e,Ya}var Za,vh;function rf(){if(vh)return Za;vh=1;var e=vt(),t=_t(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var c=e(u);return c==n||c==i||c==r||c==a}return Za=o,Za}var Ja,yh;function Ux(){if(yh)return Ja;yh=1;var e=it(),t=e["__core-js_shared__"];return Ja=t,Ja}var Qa,mh;function Wx(){if(mh)return Qa;mh=1;var e=Ux(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Qa=r,Qa}var eo,gh;function Ig(){if(gh)return eo;gh=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return eo=r,eo}var to,bh;function zx(){if(bh)return to;bh=1;var e=rf(),t=Wx(),r=_t(),n=Ig(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,c=o.toString,s=u.hasOwnProperty,f=RegExp("^"+c.call(s).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!r(h)||t(h))return!1;var p=e(h)?f:a;return p.test(n(h))}return to=l,to}var ro,xh;function Hx(){if(xh)return ro;xh=1;function e(t,r){return t==null?void 0:t[r]}return ro=e,ro}var no,wh;function Ht(){if(wh)return no;wh=1;var e=zx(),t=Hx();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return no=r,no}var io,Oh;function ia(){if(Oh)return io;Oh=1;var e=Ht(),t=e(Object,"create");return io=t,io}var ao,_h;function Gx(){if(_h)return ao;_h=1;var e=ia();function t(){this.__data__=e?e(null):{},this.size=0}return ao=t,ao}var oo,Sh;function Kx(){if(Sh)return oo;Sh=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return oo=e,oo}var uo,Ah;function Xx(){if(Ah)return uo;Ah=1;var e=ia(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return uo=i,uo}var co,Ph;function Vx(){if(Ph)return co;Ph=1;var e=ia(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return co=n,co}var so,Th;function Yx(){if(Th)return so;Th=1;var e=ia(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return so=r,so}var lo,Eh;function Zx(){if(Eh)return lo;Eh=1;var e=Gx(),t=Kx(),r=Xx(),n=Vx(),i=Yx();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,lo=a,lo}var fo,jh;function Jx(){if(jh)return fo;
vendor: 4,918 bytes, line 1
1jh=1;function e(){this.__data__=[],this.size=0}return fo=e,fo}var ho,Mh;function nf(){if(Mh)return ho;Mh=1;function e(t,r){return t===r||t!==t&&r!==r}return ho=e,ho}var po,Ch;function aa(){if(Ch)return po;Ch=1;var e=nf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return po=t,po}var vo,$h;function Qx(){if($h)return vo;$h=1;var e=aa(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return vo=n,vo}var yo,Ih;function ew(){if(Ih)return yo;Ih=1;var e=aa();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return yo=t,yo}var mo,Dh;function tw(){if(Dh)return mo;Dh=1;var e=aa();function t(r){return e(this.__data__,r)>-1}return mo=t,mo}var go,Rh;function rw(){if(Rh)return go;Rh=1;var e=aa();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return go=t,go}var bo,kh;function oa(){if(kh)return bo;kh=1;var e=Jx(),t=Qx(),r=ew(),n=tw(),i=rw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,bo=a,bo}var xo,Nh;function af(){if(Nh)return xo;Nh=1;var e=Ht(),t=it(),r=e(t,"Map");return xo=r,xo}var wo,qh;function nw(){if(qh)return wo;qh=1;var e=Zx(),t=oa(),r=af();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return wo=n,wo}var Oo,Bh;function iw(){if(Bh)return Oo;Bh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Oo=e,Oo}var _o,Lh;function ua(){if(Lh)return _o;Lh=1;var e=iw();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return _o=t,_o}var So,Fh;function aw(){if(Fh)return So;Fh=1;var e=ua();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return So=t,So}var Ao,Uh;function ow(){if(Uh)return Ao;Uh=1;var e=ua();function t(r){return e(this,r).get(r)}return Ao=t,Ao}var Po,Wh;function uw(){if(Wh)return Po;Wh=1;var e=ua();function t(r){return e(this,r).has(r)}return Po=t,Po}var To,zh;function cw(){if(zh)return To;zh=1;var e=ua();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return To=t,To}var Eo,Hh;function of(){if(Hh)return Eo;Hh=1;var e=nw(),t=aw(),r=ow(),n=uw(),i=cw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Eo=a,Eo}var jo,Gh;function Dg(){if(Gh)return jo;Gh=1;var e=of(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],c=a.cache;if(c.has(u))return c.get(u);var s=n.apply(this,o);return a.cache=c.set(u,s)||c,s};return a.cache=new(r.Cache||e),a}return r.Cache=e,jo=r,jo}var Mo,Kh;function sw(){if(Kh)return Mo;Kh=1;var e=Dg(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Mo=r,Mo}var Co,Xh;function lw(){if(Xh)return Co;Xh=1;var e=sw(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,c,s){a.push(c?s.replace(r,"$1"):u||o)}),a});return Co=n,Co}var $o,Vh;function uf(){if(Vh)return $o;Vh=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return $o=e,$o}var Io,Yh;function fw(){if(Yh)return Io;Yh=1;var e=kn(),t=uf(),r=$e(),n=jr(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return Io=o,Io}var Do,Zh;function Rg(){if(Zh)return Do;Zh=1;var e=fw();function t(r){return r==null?"":e(r)}return Do=t,Do}var Ro,Jh;function kg(){if(Jh)return Ro;Jh=1;var e=$e(),t=tf(),r=lw(),n=Rg();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Ro=i,Ro}var ko,Qh;function ca(){if(Qh)return ko;Qh=1;var e=jr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return ko=t,ko}var No,ep;function cf(){if(ep)return No;ep=1;var e=kg(),t=ca();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return No=r,No}var qo,tp;function Ng(){if(tp)return qo;tp=1;var e=cf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return qo=t,qo}var hw=Ng();const We=se(hw);var Bo,rp;function pw(){if(rp)return Bo;rp=1;function e(t){return t==null}return Bo=e,Bo}var dw=pw();const Y=se(dw);var Lo,np;function vw(){if(np)return Lo;np=1;var e=vt(),t=$e(),r=yt(),n="[object String]";
vendor: 6,270 bytes, line 1
1function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Lo=i,Lo}var yw=vw();const Ft=se(yw);var mw=rf();const Z=se(mw);var gw=_t();const Mr=se(gw);var Fo,ip;function qg(){if(ip)return Fo;ip=1;var e=vt(),t=yt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Fo=n,Fo}var Uo,ap;function bw(){if(ap)return Uo;ap=1;var e=qg();function t(r){return e(r)&&r!=+r}return Uo=t,Uo}var xw=bw();const Nn=se(xw);var ww=qg();const Ow=se(ww);var Je=function(t){return t===0?0:t>0?1:-1},Dt=function(t){return Ft(t)&&t.indexOf("%")===t.length-1},B=function(t){return Ow(t)&&!Nn(t)},_w=function(t){return Y(t)},xe=function(t){return B(t)||Ft(t)},Sw=0,qn=function(t){var r=++Sw;return"".concat(t||"").concat(r)},Ut=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(!B(t)&&!Ft(t))return n;var a;if(Dt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Nn(a)&&(a=n),i&&a>r&&(a=r),a},Qt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Aw=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},Ye=function(t,r){return B(t)&&B(r)?function(n){return t+n*(r-t)}:function(){return r}};function oi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):We(n,t))===r})}var Pw=function(t,r){return B(t)&&B(r)?t-r:Ft(t)&&Ft(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function nr(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 Ns(e){"@babel/helpers - typeof";return Ns=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},Ns(e)}var Tw=["viewBox","children"],Ew=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],op=["points","pathLength"],Wo={svg:Tw,polygon:op,polyline:op},sf=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
1ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],ui=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(N.isValidElement(t)&&(n=t.props),!Mr(n))return null;var i={};return Object.keys(n).forEach(function(a){sf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},jw=function(t,r,n){return function(i){return t(r,n,i),null}},ci=function(t,r,n){if(!Mr(t)||Ns(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];sf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=jw(o,r,n))}),i},Mw=["children"],Cw=["children"];function up(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 qs(e){"@babel/helpers - typeof";return qs=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},qs(e)}var cp={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"}
vendor: 7,581 bytes, line 1
1,st=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},sp=null,zo=null,lf=function e(t){if(t===sp&&Array.isArray(zo))return zo;var r=[];return N.Children.forEach(t,function(n){Y(n)||(Bx.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),zo=r,sp=t,r};function ze(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return st(i)}):n=[st(t)],lf(e).forEach(function(i){var a=We(i,"type.displayName")||We(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function ke(e,t){var r=ze(e,t);return r&&r[0]}var lp=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!B(n)||n<=0||!B(i)||i<=0)},Iw=["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"],Dw=function(t){return t&&t.type&&Ft(t.type)&&Iw.indexOf(t.type)>=0},Rw=function(t){return t&&qs(t)==="object"&&"clipDot"in t},kw=function(t,r,n,i){var a,o=(a=Wo==null?void 0:Wo[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Z(t)&&(i&&o.includes(r)||Ew.includes(r))||n&&sf.includes(r)},J=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(N.isValidElement(t)&&(i=t.props),!Mr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;kw((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Bs=function e(t,r){if(t===r)return!0;var n=N.Children.count(t);if(n!==N.Children.count(r))return!1;if(n===0)return!0;if(n===1)return fp(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(!fp(a,o))return!1}return!0},fp=function(t,r){if(Y(t)&&Y(r))return!0;if(!Y(t)&&!Y(r)){var n=t.props||{},i=n.children,a=up(n,Mw),o=r.props||{},u=o.children,c=up(o,Cw);return i&&u?nr(a,c)&&Bs(i,u):!i&&!u?nr(a,c):!1}return!1},hp=function(t,r){var n=[],i={};return lf(t).forEach(function(a,o){if(Dw(a))n.push(a);else if(a){var u=st(a.type),c=r[u]||{},s=c.handler,f=c.once;if(s&&(!f||!i[u])){var l=s(a,u,o);n.push(l),i[u]=!0}}}),n},Nw=function(t){var r=t&&t.type;return r&&cp[r]?cp[r]:null},qw=function(t,r){return lf(r).indexOf(t)},Bw=["children","width","height","viewBox","className","style","title","desc"];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 Lw(e,t){if(e==null)return{};var r=Fw(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 Fw(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 Fs(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,c=e.desc,s=Lw(e,Bw),f=i||{width:r,height:n,x:0,y:0},l=ee("recharts-surface",a);return T.createElement("svg",Ls({},J(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),T.createElement("title",null,u),T.createElement("desc",null,c),t)}var Uw=["children","className"];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)}function Ww(e,t){if(e==null)return{};var r=zw(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 zw(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 he=T.forwardRef(function(e,t){var r=e.children,n=e.className,i=Ww(e,Uw),a=ee("recharts-layer",n);return T.createElement("g",Us({className:a},J(i,!0),{ref:t}),r)}),qt=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]},Ho,pp;function Hw(){if(pp)return Ho;pp=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Ho=e,Ho}var Go,dp;function Gw(){if(dp)return Go;dp=1;var e=Hw();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return Go=t,Go}var Ko,vp;function Bg(){if(vp)return Ko;vp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function c(s){return u.test(s)}return Ko=c,Ko}var Xo,yp;function Kw(){if(yp)return Xo;yp=1;function e(t){return t.split("")}return Xo=e,Xo}var Vo,mp;function Xw(){if(mp)return Vo;mp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",s="(?:"+u+"|"+c+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=s+"?",v="["+a+"]?",d="(?:"+p+"(?:"+[f,l,h].join("|")+")"+v+y+")*",b=v+y+d,x="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(c+"(?="+c+")|"+x+b,"g");function O(m){return m.match(w)||[]}return Vo=O,Vo}var Yo,gp;function Vw(){if(gp)return Yo;gp=1;var e=Kw(),t=Bg(),r=Xw();function n(i){return t(i)?r(i):e(i)}return Yo=n,Yo}var Zo,bp;function Yw(){if(bp)return Zo;bp=1;var e=Gw(),t=Bg(),r=Vw(),n=Rg();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,c=u?u[0]:o.charAt(0),s=u?e(u,1).join(""):o.slice(1);return c[a]()+s}}return Zo=i,Zo}var Jo,xp;function Zw(){if(xp)return Jo;xp=1;var e=Yw(),t=e("toUpperCase");return Jo=t,Jo}var Jw=Zw();const sa=se(Jw);function ae(e){return function(){return e}}const Lg=Math.cos,si=Math.sin,Qe=Math.sqrt,li=Math.PI,la=2*li,Ws=Math.PI,zs=2*Ws,$t=1e-6,Qw=zs-$t;function Fg(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function eO(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Fg;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 tO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Fg:eO(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n}
1,${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,c=n-t,s=i-r,f=o-t,l=u-r,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>$t)if(!(Math.abs(l*c-s*f)>$t)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-u,v=c*c+s*s,d=p*p+y*y,b=Math.sqrt(v),x=Math.sqrt(h),w=a*Math.tan((Ws-Math.acos((v+h-d)/(2*b*x)))/2),O=w/x,m=w/b;Math.abs(O-1)>$t&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*p>f*y)},${this._x1=t+m*c},${this._y1=r+m*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),s=t+u,f=r+c,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>$t||Math.abs(this._y1-f)>$t)&&this._append`L${s},${f}`,n&&(h<0&&(h=h%zs+zs),h>Qw?this._append`A${n},${n},0,1,${l},${t-u},${r-c}A${n},${n},0,1,${l},${this._x1=s},${this._y1=f}`:h>$t&&this._append`A${n},${n},0,${+(h>=Ws)},${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 ff(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 tO(t)}function hf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Ug(e){this._context=e}Ug.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 fa(e){return new Ug(e)}function Wg(e){return e[0]}function zg(e){return e[1]}function Hg(e,t){var r=ae(!0),n=null,i=fa,a=null,o=ff(u);e=typeof e=="function"?e:e===void 0?Wg:ae(e),t=typeof t=="function"?t:t===void 0?zg:ae(t);function u(c){var s,f=(c=hf(c)).length,l,h=!1,p;for(n==null&&(a=i(p=o())),s=0;s<=f;++s)!(s<f&&r(l=c[s],s,c))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,s,c),+t(l,s,c));if(p)return a=null,p+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:ae(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:ae(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:ae(!!c),u):r},u.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),u):i},u.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),u):n},u}function Kn(e,t,r){var n=null,i=ae(!0),a=null,o=fa,u=null,c=ff(s);e=typeof e=="function"?e:e===void 0?Wg:ae(+e),t=typeof t=="function"?t:ae(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?zg:ae(+r);function s(l){var h,p,y,v=(l=hf(l)).length,d,b=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=c())),h=0;h<=v;++h){if(!(h<v&&i(d=l[h],h,l))===b)if(b=!b)p=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=h-1;y>=p;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}b&&(w[h]=+e(d,h,l),O[h]=+t(d,h,l),u.point(n?+n(d,h,l):w[h],r?+r(d,h,l):O[h]))}if(x)return u=null,x+""||null}function f(){return Hg().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:ae(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:ae(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:ae(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:ae(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:ae(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ae(+l),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(l){return arguments.length?(i=typeof l=="function"?l:ae(!!l),s):i},s.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),s):o},s.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),s):a},s}class Gg{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 rO(e){return new Gg(e,!0)}function nO(e){return new Gg(e,!1)}const pf={draw(e,t){const r=Qe(t/li);e.moveTo(r,0),e.arc(0,0,r,0,la)}},iO={draw(e,t){const r=Qe(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Kg=Qe(1/3),aO=Kg*2,oO={draw(e,t){const r=Qe(t/aO),n=r*Kg;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},uO={draw(e,t){const r=Qe(t),n=-r/2;e.rect(n,n,r,r)}},cO=.8908130915292852,Xg=si(li/10)/si(7*li/10),sO=si(la/10)*Xg,lO=-Lg(la/10)*Xg,fO={draw(e,t){const r=Qe(t*cO),n=sO*r,i=lO*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=la*a/5,u=Lg(o),c=si(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},Qo=Qe(3),hO={draw(e,t){const r=-Qe(t/(Qo*3));e.moveTo(0,r*2),e.lineTo(-Qo*r,-r),e.lineTo(Qo*r,-r),e.closePath()}},Be=-.5,Le=Qe(3)/2,Hs=1/Qe(12),pO=(Hs/2+1)*3,dO={draw(e,t){const r=Qe(t/pO),n=r/2,i=r*Hs,a=n,o=r*Hs+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Be*n-Le*i,Le*n+Be*i),e.lineTo(Be*a-Le*o,Le*a+Be*o),e.lineTo(Be*u-Le*c,Le*u+Be*c),e.lineTo(Be*n+Le*i,Be*i-Le*n),e.lineTo(Be*a+Le*o,Be*o-Le*a),e.lineTo(Be*u+Le*c,Be*c-Le*u),e.closePath()}};function vO(e,t){let r=null,n=ff(i);e=typeof e=="function"?e:ae(e||pf),t=typeof t=="function"?t:ae(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:ae(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ae(+a),i):t}
vendor: 6,361 bytes, line 1
1,i.context=function(a){return arguments.length?(r=a??null,i):r},i}function fi(){}function hi(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Vg(e){this._context=e}Vg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:hi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:hi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yO(e){return new Vg(e)}function Yg(e){this._context=e}Yg.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:hi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mO(e){return new Yg(e)}function Zg(e){this._context=e}Zg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:hi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gO(e){return new Zg(e)}function Jg(e){this._context=e}Jg.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 bO(e){return new Jg(e)}function wp(e){return e<0?-1:1}function Op(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(wp(a)+wp(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function _p(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function eu(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function pi(e){this._context=e}pi.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:eu(this,this._t0,_p(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,eu(this,_p(this,r=Op(this,e,t)),r);break;default:eu(this,this._t0,r=Op(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Qg(e){this._context=new eb(e)}(Qg.prototype=Object.create(pi.prototype)).point=function(e,t){pi.prototype.point.call(this,t,e)};function eb(e){this._context=e}eb.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 xO(e){return new pi(e)}function wO(e){return new Qg(e)}function tb(e){this._context=e}tb.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=Sp(e),i=Sp(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 Sp(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 OO(e){return new tb(e)}function ha(e,t){this._context=e,this._t=t}ha.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: 16,273 bytes, lines 1-4
1default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function _O(e){return new ha(e,.5)}function SO(e){return new ha(e,0)}function AO(e){return new ha(e,1)}function ur(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Gs(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function PO(e,t){return e[t]}function TO(e){const t=[];return t.key=e,t}function EO(){var e=ae([]),t=Gs,r=ur,n=PO;function i(a){var o=Array.from(e.apply(this,arguments),TO),u,c=o.length,s=-1,f;for(const l of a)for(u=0,++s;u<c;++u)(o[u][s]=[0,+n(l,o[u].key,s,a)]).data=l;for(u=0,f=hf(t(o));u<c;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ae(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ae(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Gs:typeof a=="function"?a:ae(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??ur,i):r},i}function jO(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}ur(e,t)}}function MO(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}ur(e,t)}}function CO(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,c=0,s=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,h=f[n-1][1]||0,p=(l-h)/2,y=0;y<u;++y){var v=e[t[y]],d=v[n][1]||0,b=v[n-1][1]||0;p+=d-b}c+=l,s+=p*l}i[n-1][1]+=i[n-1][0]=r,c&&(r-=s/c)}i[n-1][1]+=i[n-1][0]=r,ur(e,t)}}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)}var $O=["type","size","sizeType"];function Ks(){return Ks=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},Ks.apply(this,arguments)}function Ap(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 Pp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ap(Object(r),!0).forEach(function(n){IO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ap(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IO(e,t,r){return t=DO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DO(e){var t=RO(e,"string");return en(t)=="symbol"?t:t+""}function RO(e,t){if(en(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(en(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kO(e,t){if(e==null)return{};var r=NO(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 NO(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 rb={symbolCircle:pf,symbolCross:iO,symbolDiamond:oO,symbolSquare:uO,symbolStar:fO,symbolTriangle:hO,symbolWye:dO},qO=Math.PI/180,BO=function(t){var r="symbol".concat(sa(t));return rb[r]||pf},LO=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*qO;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}},FO=function(t,r){rb["symbol".concat(sa(t))]=r},df=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,c=kO(t,$O),s=Pp(Pp({},c),{},{type:n,size:a,sizeType:u}),f=function(){var d=BO(n),b=vO().type(d).size(LO(a,u,n));return b()},l=s.className,h=s.cx,p=s.cy,y=J(s,!0);return h===+h&&p===+p&&a===+a?T.createElement("path",Ks({},y,{className:ee("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};df.registerSymbol=FO;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 Xs(){return Xs=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},Xs.apply(this,arguments)}function Tp(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 UO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tp(Object(r),!0).forEach(function(n){tn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zO(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,ib(n.key),n)}}function HO(e,t,r){return t&&zO(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GO(e,t,r){return t=di(t),KO(e,nb()?Reflect.construct(t,r||[],di(e).constructor):t.apply(e,r))}function KO(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 XO(e)}function XO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nb=function(){return!!e})()}function di(e){return di=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},di(e)}function VO(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&&Vs(e,t)}function Vs(e,t){return Vs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vs(e,t)}function tn(e,t,r){return t=ib(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ib(e){var t=YO(e,"string");return cr(t)=="symbol"?t:t+""}function YO(e,t){if(cr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fe=32,vf=(function(e){function t(){return WO(this,t),GO(this,t,arguments)}return VO(t,e),HO(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Fe/2,o=Fe/6,u=Fe/3,c=n.inactive?i:n.color;if(n.type==="plainline")return T.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Fe,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return T.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,` 2 A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,` 3 H`).concat(Fe,"M").concat(2*u,",").concat(a,` 4 A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return T.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Fe/8,"h").concat(Fe,"v").concat(Fe*3/4,"h").concat(-Fe,"z"),className:"recharts-legend-icon"});if(T.isValidElement(n.legendIcon)){var s=UO({},n);return delete s.legendIcon,T.cloneElement(n.legendIcon,s)}return T.createElement(df,{fill:c,cx:a,cy:a,size:Fe,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,c=i.formatter,s=i.inactiveColor,f={x:0,y:0,width:Fe,height:Fe},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var v=p.formatter||c,d=ee(tn(tn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var b=Z(p.value)?null:p.value;qt(!Z(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=p.inactive?s:p.color;return T.createElement("li",Xs({className:d,style:l,key:"legend-item-".concat(y)},ci(n.props,p,y)),T.createElement(Fs,{width:o,height:o,viewBox:f,style:h},n.renderIcon(p)),T.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(b,p,y):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return T.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(N.PureComponent);tn(vf,"displayName","Legend");tn(vf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var tu,Ep;function ZO(){if(Ep)return tu;Ep=1;var e=oa();function t(){this.__data__=new e,this.size=0}return tu=t,tu}var ru,jp;function JO(){if(jp)return ru;jp=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return ru=e,ru}var nu,Mp;function QO(){if(Mp)return nu;Mp=1;function e(t){return this.__data__.get(t)}return nu=e,nu}var iu,Cp;function e1(){if(Cp)return iu;Cp=1;function e(t){return this.__data__.has(t)}return iu=e,iu}var au,$p;function t1(){if($p)return au;$p=1;var e=oa(),t=af(),r=of(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var c=u.__data__;if(!t||c.length<n-1)return c.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(c)}return u.set(a,o),this.size=u.size,this}return au=i,au}var ou,Ip;function ab(){if(Ip)return ou;Ip=1;var e=oa(),t=ZO(),r=JO(),n=QO(),i=e1(),a=t1();function o(u){var c=this.__data__=new e(u);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,ou=o,ou}var uu,Dp;function r1(){if(Dp)return uu;Dp=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return uu=t,uu}var cu,Rp;function n1(){if(Rp)return cu;Rp=1;function e(t){return this.__data__.has(t)}return cu=e,cu}var su,kp;function ob(){if(kp)return su;kp=1;var e=of(),t=r1(),r=n1();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,su=n,su}var lu,Np;function ub(){if(Np)return lu;Np=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return lu=e,lu}var fu,qp;function cb(){if(qp)return fu;qp=1;function e(t,r){return t.has(r)}return fu=e,fu}var hu,Bp;function sb(){if(Bp)return hu;Bp=1;var e=ob(),t=ub(),r=cb(),n=1,i=2;function a(o,u,c,s,f,l){var h=c&n,p=o.length,y=u.length;if(p!=y&&!(h&&y>p))return!1;var v=l.get(o),d=l.get(u);if(v&&d)return v==u&&d==o;var b=-1,x=!0,w=c&i?new e:void 0;for(l.set(o,u),l.set(u,o);++b<p;){var O=o[b],m=u[b];if(s)var g=h?s(m,O,b,u,o,l):s(O,m,b,o,u,l);if(g!==void 0){if(g)continue;x=!1;break}if(w){if(!t(u,function(_,S){if(!r(w,S)&&(O===_||f(O,_,c,s,l)))return w.push(S)})){x=!1;break}}else if(!(O===m||f(O,m,c,s,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return hu=a,hu}var pu,Lp;function i1(){if(Lp)return pu;Lp=1;var e=it(),t=e.Uint8Array;return pu=t,pu}var du,Fp;function a1(){if(Fp)return du;Fp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return du=e,du}var vu,Up;function yf(){if(Up)return vu;Up=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return vu=e,vu}var yu,Wp;function o1(){if(Wp)return yu;Wp=1;var e=kn(),t=i1(),r=nf(),n=sb(),i=a1(),a=yf(),o=1,u=2,c="[object Boolean]",s="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",v="[object String]",d="[object Symbol]",b="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function m(g,_,S,A,$,E,P){switch(S){case x:if(g.byteLength!=_.byteLength||g.byteOffset!=_.byteOffset)return!1;g=g.buffer,_=_.buffer;case b:return!(g.byteLength!=_.byteLength||!E(new t(g),new t(_)));case c:case s:case h:return r(+g,+_);case f:return g.name==_.name&&g.message==_.message;case p:case v:return g==_+"";case l:var j=i;case y:var C=A&o;if(j||(j=a),g.size!=_.size&&!C)return!1;var M=P.get(g);if(M)return M==_;A|=u,P.set(g,_);var D=n(j(g),j(_),A,$,E,P);return P.delete(g),D;case d:if(O)return O.call(g)==O.call(_)}return!1}return yu=m,yu}var mu,zp;function lb(){if(zp)return mu;zp=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return mu=e,mu}var gu,Hp;function u1(){if(Hp)return gu;Hp=1;var e=lb(),t=$e();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return gu=r,gu}var bu,Gp;function c1(){if(Gp)return bu;Gp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return bu=e,bu}var xu,Kp;function s1(){if(Kp)return xu;Kp=1;function e(){return[]}return xu=e,xu}var wu,Xp;function l1(){if(Xp)return wu;Xp=1;var e=c1(),t=s1(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return wu=a,wu}var Ou,Vp;function f1(){if(Vp)return Ou;Vp=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Ou=e,Ou}var _u,Yp;function h1(){if(Yp)return _u;Yp=1;var e=vt(),t=yt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return _u=n,_u}var Su,Zp;function mf(){if(Zp)return Su;Zp=1;var e=h1(),t=yt(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Su=a,Su}var Gr={exports:{}},Au,Jp;function p1(){if(Jp)return Au;Jp=1;function e(){return!1}return Au=e,Au}Gr.exports;var Qp;function fb(){return Qp||(Qp=1,(function(e,t){var r=it(),n=p1(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,c=u?u.isBuffer:void 0,s=c||n;e.exports=s})(Gr,Gr.exports)),Gr.exports}var Pu,ed;function gf(){if(ed)return Pu;ed=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Pu=r,Pu}var Tu,td;function bf(){if(td)return Tu;td=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Tu=t,Tu}var Eu,rd;function d1(){if(rd)return Eu;rd=1;var e=vt(),t=bf(),r=yt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",c="[object Function]",s="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",v="[object WeakMap]",d="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array
4]",O="[object Int8Array]",m="[object Int16Array]",g="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",A="[object Uint16Array]",$="[object Uint32Array]",E={};E[x]=E[w]=E[O]=E[m]=E[g]=E[_]=E[S]=E[A]=E[$]=!0,E[n]=E[i]=E[d]=E[a]=E[b]=E[o]=E[u]=E[c]=E[s]=E[f]=E[l]=E[h]=E[p]=E[y]=E[v]=!1;function P(j){return r(j)&&t(j.length)&&!!E[e(j)]}return Eu=P,Eu}var ju,nd;function hb(){if(nd)return ju;nd=1;function e(t){return function(r){return t(r)}}return ju=e,ju}var Kr={exports:{}};Kr.exports;var id;function v1(){return id||(id=1,(function(e,t){var r=$g(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(Kr,Kr.exports)),Kr.exports}var Mu,ad;function pb(){if(ad)return Mu;ad=1;var e=d1(),t=hb(),r=v1(),n=r&&r.isTypedArray,i=n?t(n):e;return Mu=i,Mu}var Cu,od;function y1(){if(od)return Cu;od=1;var e=f1(),t=mf(),r=$e(),n=fb(),i=gf(),a=pb(),o=Object.prototype,u=o.hasOwnProperty;
vendor: 3,245 bytes, line 4
4function c(s,f){var l=r(s),h=!l&&t(s),p=!l&&!h&&n(s),y=!l&&!h&&!p&&a(s),v=l||h||p||y,d=v?e(s.length,String):[],b=d.length;for(var x in s)(f||u.call(s,x))&&!(v&&(x=="length"||p&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,b)))&&d.push(x);return d}return Cu=c,Cu}var $u,ud;function m1(){if(ud)return $u;ud=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return $u=t,$u}var Iu,cd;function db(){if(cd)return Iu;cd=1;function e(t,r){return function(n){return t(r(n))}}return Iu=e,Iu}var Du,sd;function g1(){if(sd)return Du;sd=1;var e=db(),t=e(Object.keys,Object);return Du=t,Du}var Ru,ld;function b1(){if(ld)return Ru;ld=1;var e=m1(),t=g1(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return Ru=i,Ru}var ku,fd;function Bn(){if(fd)return ku;fd=1;var e=rf(),t=bf();function r(n){return n!=null&&t(n.length)&&!e(n)}return ku=r,ku}var Nu,hd;function pa(){if(hd)return Nu;hd=1;var e=y1(),t=b1(),r=Bn();function n(i){return r(i)?e(i):t(i)}return Nu=n,Nu}var qu,pd;function x1(){if(pd)return qu;pd=1;var e=u1(),t=l1(),r=pa();function n(i){return e(i,r,t)}return qu=n,qu}var Bu,dd;function w1(){if(dd)return Bu;dd=1;var e=x1(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,c,s,f){var l=u&t,h=e(a),p=h.length,y=e(o),v=y.length;if(p!=v&&!l)return!1;for(var d=p;d--;){var b=h[d];if(!(l?b in o:n.call(o,b)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var m=l;++d<p;){b=h[d];var g=a[b],_=o[b];if(c)var S=l?c(_,g,b,o,a,f):c(g,_,b,a,o,f);if(!(S===void 0?g===_||s(g,_,u,c,f):S)){O=!1;break}m||(m=b=="constructor")}if(O&&!m){var A=a.constructor,$=o.constructor;A!=$&&"constructor"in a&&"constructor"in o&&!(typeof A=="function"&&A instanceof A&&typeof $=="function"&&$ instanceof $)&&(O=!1)}return f.delete(a),f.delete(o),O}return Bu=i,Bu}var Lu,vd;function O1(){if(vd)return Lu;vd=1;var e=Ht(),t=it(),r=e(t,"DataView");return Lu=r,Lu}var Fu,yd;function _1(){if(yd)return Fu;yd=1;var e=Ht(),t=it(),r=e(t,"Promise");return Fu=r,Fu}var Uu,md;function vb(){if(md)return Uu;md=1;var e=Ht(),t=it(),r=e(t,"Set");return Uu=r,Uu}var Wu,gd;function S1(){if(gd)return Wu;gd=1;var e=Ht(),t=it(),r=e(t,"WeakMap");return Wu=r,Wu}var zu,bd;function A1(){if(bd)return zu;bd=1;var e=O1(),t=af(),r=_1(),n=vb(),i=S1(),a=vt(),o=Ig(),u="[object Map]",c="[object Object]",s="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",p=o(e),y=o(t),v=o(r),d=o(n),b=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=h||t&&x(new t)!=u||r&&x(r.resolve())!=s||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),m=O==c?w.constructor:void 0,g=m?o(m):"";if(g)switch(g){case p:return h;case y:return u;case v:return s;case d:return f;case b:return l}return O}),zu=x,zu}var Hu,xd;function P1(){if(xd)return Hu;xd=1;var e=ab(),t=sb(),r=o1(),n=w1(),i=A1(),a=$e(),o=fb(),u=pb(),c=1,s="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(v,d,b,x,w,O){var m=a(v),g=a(d),_=m?f:i(v),S=g?f:i(d);_=_==s?l:_,S=S==s?l:S;var A=_==l,$=S==l,E=_==S;
vendor: 44,157 bytes, lines 4-11
4if(E&&o(v)){if(!o(d))return!1;m=!0,A=!1}if(E&&!A)return O||(O=new e),m||u(v)?t(v,d,b,x,w,O):r(v,d,_,b,x,w,O);if(!(b&c)){var P=A&&p.call(v,"__wrapped__"),j=$&&p.call(d,"__wrapped__");if(P||j){var C=P?v.value():v,M=j?d.value():d;return O||(O=new e),w(C,M,b,x,O)}}return E?(O||(O=new e),n(v,d,b,x,w,O)):!1}return Hu=y,Hu}var Gu,wd;function xf(){if(wd)return Gu;wd=1;var e=P1(),t=yt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return Gu=r,Gu}var Ku,Od;function T1(){if(Od)return Ku;Od=1;var e=ab(),t=xf(),r=1,n=2;function i(a,o,u,c){var s=u.length,f=s,l=!c;if(a==null)return!f;for(a=Object(a);s--;){var h=u[s];if(l&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++s<f;){h=u[s];var p=h[0],y=a[p],v=h[1];if(l&&h[2]){if(y===void 0&&!(p in a))return!1}else{var d=new e;if(c)var b=c(y,v,p,a,o,d);if(!(b===void 0?t(v,y,r|n,c,d):b))return!1}}return!0}return Ku=i,Ku}var Xu,_d;function yb(){if(_d)return Xu;_d=1;var e=_t();function t(r){return r===r&&!e(r)}return Xu=t,Xu}var Vu,Sd;function E1(){if(Sd)return Vu;Sd=1;var e=yb(),t=pa();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return Vu=r,Vu}var Yu,Ad;function mb(){if(Ad)return Yu;Ad=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Yu=e,Yu}var Zu,Pd;function j1(){if(Pd)return Zu;Pd=1;var e=T1(),t=E1(),r=mb();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return Zu=n,Zu}var Ju,Td;function M1(){if(Td)return Ju;Td=1;function e(t,r){return t!=null&&r in Object(t)}return Ju=e,Ju}var Qu,Ed;function C1(){if(Ed)return Qu;Ed=1;var e=kg(),t=mf(),r=$e(),n=gf(),i=bf(),a=ca();function o(u,c,s){c=e(c,u);for(var f=-1,l=c.length,h=!1;++f<l;){var p=a(c[f]);if(!(h=u!=null&&s(u,p)))break;u=u[p]}return h||++f!=l?h:(l=u==null?0:u.length,!!l&&i(l)&&n(p,l)&&(r(u)||t(u)))}return Qu=o,Qu}var ec,jd;function $1(){if(jd)return ec;jd=1;var e=M1(),t=C1();function r(n,i){return n!=null&&t(n,i,e)}return ec=r,ec}var tc,Md;function I1(){if(Md)return tc;Md=1;var e=xf(),t=Ng(),r=$1(),n=tf(),i=yb(),a=mb(),o=ca(),u=1,c=2;function s(f,l){return n(f)&&i(l)?a(o(f),l):function(h){var p=t(h,f);return p===void 0&&p===l?r(h,f):e(l,p,u|c)}}return tc=s,tc}var rc,Cd;function Cr(){if(Cd)return rc;Cd=1;function e(t){return t}return rc=e,rc}var nc,$d;function D1(){if($d)return nc;$d=1;function e(t){return function(r){return r==null?void 0:r[t]}}return nc=e,nc}var ic,Id;function R1(){if(Id)return ic;Id=1;var e=cf();function t(r){return function(n){return e(n,r)}}return ic=t,ic}var ac,Dd;function k1(){if(Dd)return ac;Dd=1;var e=D1(),t=R1(),r=tf(),n=ca();function i(a){return r(a)?e(n(a)):t(a)}return ac=i,ac}var oc,Rd;function St(){if(Rd)return oc;Rd=1;var e=j1(),t=I1(),r=Cr(),n=$e(),i=k1();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return oc=a,oc}var uc,kd;function gb(){if(kd)return uc;kd=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return uc=e,uc}var cc,Nd;function N1(){if(Nd)return cc;Nd=1;function e(t){return t!==t}return cc=e,cc}var sc,qd;function q1(){if(qd)return sc;qd=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return sc=e,sc}var lc,Bd;function B1(){if(Bd)return lc;Bd=1;var e=gb(),t=N1(),r=q1();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return lc=n,lc}var fc,Ld;function L1(){if(Ld)return fc;Ld=1;var e=B1();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return fc=t,fc}var hc,Fd;function F1(){if(Fd)return hc;Fd=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return hc=e,hc}var pc,Ud;function U1(){if(Ud)return pc;Ud=1;function e(){}return pc=e,pc}var dc,Wd;function W1(){if(Wd)return dc;Wd=1;var e=vb(),t=U1(),r=yf(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return dc=i,dc}var vc,zd;function z1(){if(zd)return vc;zd=1;var e=ob(),t=L1(),r=F1(),n=cb(),i=W1(),a=yf(),o=200;function u(c,s,f){var l=-1,h=t,p=c.length,y=!0,v=[],d=v;if(f)y=!1,h=r;else if(p>=o){var b=s?null:i(c);if(b)return a(b);y=!1,h=n,d=new e}else d=s?[]:v;e:for(;++l<p;){var x=c[l],w=s?s(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=d.length;O--;)if(d[O]===w)continue e;s&&d.push(w),v.push(x)}else h(d,w,f)||(d!==v&&d.push(w),v.push(x))}return v}return vc=u,vc}var yc,Hd;function H1(){if(Hd)return yc;Hd=1;var e=St(),t=z1();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return yc=r,yc}var G1=H1();const Gd=se(G1);function bb(e,t,r){return t===!0?Gd(e,r):Z(t)?Gd(e,t):e}function sr(e){"@babel/helpers - typeof";return sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sr(e)}var K1=["ref"];function Kd(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 at(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kd(Object(r),!0).forEach(function(n){da(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wb(n.key),n)}}function V1(e,t,r){return t&&Xd(e.prototype,t),r&&Xd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y1(e,t,r){return t=vi(t),Z1(e,xb()?Reflect.construct(t,r||[],vi(e).constructor):t.apply(e,r))}function Z1(e,t){if(t&&(sr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J1(e)}function J1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xb=function(){return!!e})()}function vi(e){return vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vi(e)}function Q1(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&&Ys(e,t)}function Ys(e,t){return Ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ys(e,t)}function da(e,t,r){return t=wb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wb(e){var t=e_(e,"string");return sr(t)=="symbol"?t:t+""}function e_(e,t){if(sr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function t_(e,t){if(e==null)return{};var r=r_(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function r_(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function n_(e){return e.value}function i_(e,t){if(T.isValidElement(e))return T.cloneElement(e,t);if(typeof e=="function")return T.createElement(e,t);t.ref;var r=t_(t,K1);return T.createElement(vf,r)}var Vd=1,ir=(function(e){function t(){var r;X1(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Y1(this,t,[].concat(i)),da(r,"lastBoundingBox",{width:-1,height:-1}),r}return Q1(t,e),V1(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)>Vd||Math.abs(i.height-this.lastBoundingBox.height)>Vd)&&(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?at({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,c=i.margin,s=i.chartWidth,f=i.chartHeight,l,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();l={left:((s||0)-p.width)/2}}else l=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();h={top:((f||0)-y.height)/2}}else h=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return at(at({},l),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,c=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,l=at(at({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return T.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(p){n.wrapperNode=p}},i_(a,at(at({},this.props),{},{payload:bb(f,s,n_)})))}}],[{key:"getWithHeight",value:function(n,i){var a=at(at({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&B(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(N.PureComponent);da(ir,"displayName","Legend");da(ir,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var mc,Yd;function a_(){if(Yd)return mc;Yd=1;var e=kn(),t=mf(),r=$e(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return mc=i,mc}var gc,Zd;function Ob(){if(Zd)return gc;Zd=1;var e=lb(),t=a_();function r(n,i,a,o,u){var c=-1,s=n.length;for(a||(a=t),u||(u=[]);++c<s;){var f=n[c];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return gc=r,gc}var bc,Jd;function o_(){if(Jd)return bc;Jd=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),c=u.length;c--;){var s=u[t?c:++a];if(n(o[s],s,o)===!1)break}return r}}return bc=e,bc}var xc,Qd;function u_(){if(Qd)return xc;Qd=1;var e=o_(),t=e();return xc=t,xc}var wc,ev;function _b(){if(ev)return wc;ev=1;var e=u_(),t=pa();function r(n,i){return n&&e(n,i,t)}return wc=r,wc}var Oc,tv;function c_(){if(tv)return Oc;tv=1;var e=Bn();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,c=Object(i);(n?u--:++u<o)&&a(c[u],u,c)!==!1;);return i}}return Oc=t,Oc}var _c,rv;function wf(){if(rv)return _c;rv=1;var e=_b(),t=c_(),r=t(e);return _c=r,_c}var Sc,nv;function Sb(){if(nv)return Sc;nv=1;var e=wf(),t=Bn();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,c,s){o[++a]=i(u,c,s)}),o}return Sc=r,Sc}var Ac,iv;function s_(){if(iv)return Ac;iv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Ac=e,Ac}var Pc,av;function l_(){if(av)return Pc;av=1;var e=jr();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),c=n!==void 0,s=n===null,f=n===n,l=e(n);if(!s&&!l&&!u&&r>n||u&&c&&f&&!s&&!l||a&&c&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||s&&i&&o||!c&&o||!f)return-1}return 0}return Pc=t,Pc}var Tc,ov;function f_(){if(ov)return Tc;ov=1;var e=l_();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,c=o.length,s=i.length;++a<c;){var f=e(o[a],u[a]);if(f){if(a>=s)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return Tc=t,Tc}var Ec,uv;function h_(){if(uv)return Ec;uv=1;var e=uf(),t=cf(),r=St(),n=Sb(),i=s_(),a=hb(),o=f_(),u=Cr(),c=$e();function s(f,l,h){l.length?l=e(l,function(v){return c(v)?function(d){return t(d,v.length===1?v[0]:v)}:v}):l=[u];var p=-1;l=e(l,a(r));var y=n(f,function(v,d,b){var x=e(l,function(w){return w(v)});return{criteria:x,index:++p,value:v}});return i(y,function(v,d){return o(v,d,h)})}return Ec=s,Ec}var jc,cv;function p_(){if(cv)return jc;cv=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return jc=e,jc}var Mc,sv;function d_(){if(sv)return Mc;sv=1;var e=p_(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,c=t(o.length-i,0),s=Array(c);++u<c;)s[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(s),e(n,this,f)}}return Mc=r,Mc}var Cc,lv;function v_(){if(lv)return Cc;lv=1;function e(t){return function(){return t}}return Cc=e,Cc}var $c,fv;function Ab(){if(fv)return $c;fv=1;var e=Ht(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return $c=t,$c}var Ic,hv;function y_(){if(hv)return Ic;hv=1;var e=v_(),t=Ab(),r=Cr(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Ic=n,Ic}var Dc,pv;function m_(){if(pv)return Dc;pv=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),c=t-(u-o);if(o=u,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Dc=n,Dc}var Rc,dv;function g_(){if(dv)return Rc;dv=1;var e=y_(),t=m_(),r=t(e);return Rc=r,Rc}var kc,vv;function b_(){if(vv)return kc;vv=1;var e=Cr(),t=d_(),r=g_();function n(i,a){return r(t(i,a,e),i+"")}return kc=n,kc}var Nc,yv;function va(){if(yv)return Nc;yv=1;var e=nf(),t=Bn(),r=gf(),n=_t();function i(a,o,u){if(!n(u))return!1;var c=typeof o;return(c=="number"?t(u)&&r(o,u.length):c=="string"&&o in u)?e(u[o],a):!1}return Nc=i,Nc}var qc,mv;function x_(){if(mv)return qc;mv=1;var e=Ob(),t=h_(),r=b_(),n=va(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return qc=i,qc}var w_=x_();const Of=se(w_);function rn(e){"@babel/helpers - typeof";return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rn(e)}function Zs(){return Zs=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},Zs.apply(this,arguments)}function O_(e,t){return P_(e)||A_(e,t)||S_(e,t)||__()}function __(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S_(e,t){if(e){if(typeof e=="string")return gv(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 gv(e,t)}}function gv(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 A_(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function P_(e){if(Array.isArray(e))return e}function bv(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 Bc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bv(Object(r),!0).forEach(function(n){T_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function T_(e,t,r){return t=E_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E_(e){var t=j_(e,"string");return rn(t)=="symbol"?t:t+""}function j_(e,t){if(rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M_(e){return Array.isArray(e)&&xe(e[0])&&xe(e[1])?e.join(" ~ "):e}var C_=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,c=t.labelStyle,s=c===void 0?{}:c,f=t.payload,l=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,v=t.label,d=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,w=function(){if(f&&f.length){var P={padding:0,margin:0},j=(h?Of(f,h):f).map(function(C,M){if(C.type==="none")return null;var D=Bc({display:"block",paddingTop:4,paddingBottom:4,color:C.color||"#000"},u),R=C.formatter||l||M_,q=C.value,L=C.name,z=q,G=L;if(R&&z!=null&&G!=null){var U=R(q,L,C,M,f);if(Array.isArray(U)){var K=O_(U,2);z=K[0],G=K[1]}else z=U}return T.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(M),style:D},xe(G)?T.createElement("span",{className:"recharts-tooltip-item-name"},G):null,xe(G)?T.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,T.createElement("span",{className:"recharts-tooltip-item-value"},z),T.createElement("span",{className:"recharts-tooltip-item-unit"},C.unit||""))});return T.createElement("ul",{className:"recharts-tooltip-item-list",style:P},j)}return null},O=Bc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=Bc({margin:0},s),g=!Y(v),_=g?v:"",S=ee("recharts-default-tooltip",p),A=ee("recharts-tooltip-label",y);g&&d&&f!==void 0&&f!==null&&(_=d(v,f));var $=x?{role:"status","aria-live":"assertive"}:{};return T.createElement("div",Zs({className:S,style:O},$),T.createElement("p",{className:A,style:m},T.isValidElement(_)?_:"".concat(_)),w())};function nn(e){"@babel/helpers - typeof";return nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nn(e)}function Xn(e,t,r){return t=$_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $_(e){var t=I_(e,"string");return nn(t)=="symbol"?t:t+""}function I_(e,t){if(nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nr="recharts-tooltip-wrapper",D_={visibility:"hidden"};function R_(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ee(Nr,Xn(Xn(Xn(Xn({},"".concat(Nr,"-right"),B(r)&&t&&B(t.x)&&r>=t.x),"".concat(Nr,"-left"),B(r)&&t&&B(t.x)&&r<t.x),"".concat(Nr,"-bottom"),B(n)&&t&&B(t.y)&&n>=t.y),"".concat(Nr,"-top"),B(n)&&t&&B(t.y)&&n<t.y))}function xv(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,c=e.viewBox,s=e.viewBoxDimension;if(a&&B(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var h=f,p=c[n];return h<p?Math.max(l,c[n]):Math.max(f,c[n])}var y=l+u,v=c[n]+s;return y>v?Math.max(f,c[n]):Math.max(l,c[n])}function k_(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 N_(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,c=e.viewBox,s,f,l;return o.height>0&&o.width>0&&r?(f=xv({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=xv({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=k_({translateX:f,translateY:l,useTranslate3d:u})):s=D_,{cssProperties:s,cssClasses:R_({translateX:f,translateY:l,coordinate:r})}}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 wv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ov(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wv(Object(r),!0).forEach(function(n){Qs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B_(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tb(n.key),n)}}function L_(e,t,r){return t&&B_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function F_(e,t,r){return t=yi(t),U_(e,Pb()?Reflect.construct(t,r||[],yi(e).constructor):t.apply(e,r))}function U_(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 W_(e)}function W_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pb=function(){return!!e})()}function yi(e){return yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yi(e)}function z_(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&&Js(e,t)}function Js(e,t){return Js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Js(e,t)}function Qs(e,t,r){return t=Tb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tb(e){var t=H_(e,"string");return lr(t)=="symbol"?t:t+""}function H_(e,t){if(lr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _v=1,G_=(function(e){function t(){var r;q_(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=F_(this,t,[].concat(i)),Qs(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Qs(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,c,s,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&u!==void 0?u:0,y:(s=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&s!==void 0?s:0}})}}),r}return z_(t,e),L_(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>_v||Math.abs(n.height-this.state.lastBoundingBox.height)>_v)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.children,f=i.coordinate,l=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,v=i.reverseDirection,d=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,w=N_({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:b}),O=w.cssClasses,m=w.cssProperties,g=Ov(Ov({transition:h&&a?"transform ".concat(u,"ms ").concat(c):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return T.createElement("div",{tabIndex:-1,className:O,style:g,ref:function(S){n.wrapperNode=S}},s)}}])})(N.PureComponent),K_=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},$r={isSsr:K_()};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 Sv(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 Av(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sv(Object(r),!0).forEach(function(n){_f(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V_(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,jb(n.key),n)}}function Y_(e,t,r){return t&&V_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z_(e,t,r){return t=mi(t),J_(e,Eb()?Reflect.construct(t,r||[],mi(e).constructor):t.apply(e,r))}function J_(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 Q_(e)}function Q_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Eb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Eb=function(){return!!e})()}function mi(e){return mi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mi(e)}function eS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&el(e,t)}function el(e,t){return el=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},el(e,t)}function _f(e,t,r){return t=jb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jb(e){var t=tS(e,"string");return fr(t)=="symbol"?t:t+""}function tS(e,t){if(fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function rS(e){return e.dataKey}function nS(e,t){return T.isValidElement(e)?T.cloneElement(e,t):typeof e=="function"?T.createElement(e,t):T.createElement(C_,t)}var ot=(function(e){function t(){return X_(this,t),Z_(this,t,arguments)}return eS(t,e),Y_(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.content,f=i.coordinate,l=i.filterNull,h=i.isAnimationActive,p=i.offset,y=i.payload,v=i.payloadUniqBy,d=i.position,b=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=bb(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,rS));var g=m.length>0;return T.createElement(G_,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:h,active:a,coordinate:f,hasPayload:g,offset:p,position:d,reverseDirection:b,useTranslate3d:x,viewBox:w,wrapperStyle:O},nS(s,Av(Av({},this.props),{},{payload:m})))}}])})(N.PureComponent);_f(ot,"displayName","Tooltip");_f(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:!$r.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 Lc,Pv;function iS(){if(Pv)return Lc;Pv=1;var e=it(),t=function(){return e.Date.now()};return Lc=t,Lc}var Fc,Tv;function aS(){if(Tv)return Fc;Tv=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Fc=t,Fc}var Uc,Ev;function oS(){if(Ev)return Uc;Ev=1;var e=aS(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Uc=r,Uc}var Wc,jv;function Mb(){if(jv)return Wc;jv=1;var e=oS(),t=_t(),r=jr(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function c(s){if(typeof s=="number")return s;if(r(s))return n;if(t(s)){var f=typeof s.valueOf=="function"?s.valueOf():s;s=t(f)?f+"":f}if(typeof s!="string")return s===0?s:+s;s=e(s);var l=a.test(s);return l||o.test(s)?u(s.slice(2),l?2:8):i.test(s)?n:+s}return Wc=c,Wc}var zc,Mv;function uS(){if(Mv)return zc;Mv=1;var e=_t(),t=iS(),r=Mb(),n="Expected a function",i=Math.max,a=Math.min;function o(u,c,s){var f,l,h,p,y,v,d=0,b=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);c=r(c)||0,e(s)&&(b=!!s.leading,x="maxWait"in s,h=x?i(r(s.maxWait)||0,c):h,w="trailing"in s?!!s.trailing:w);function O(j){var C=f,M=l;return f=l=void 0,d=j,p=u.apply(M,C),p}function m(j){return d=j,y=setTimeout(S,c),b?O(j):p}function g(j){var C=j-v,M=j-d,D=c-C;return x?a(D,h-M):D}function _(j){var C=j-v,M=j-d;return v===void 0||C>=c||C<0||x&&M>=h}function S(){var j=t();if(_(j))return A(j);y=setTimeout(S,g(j))}function A(j){return y=void 0,w&&f?O(j):(f=l=void 0,p)}function $(){y!==void 0&&clearTimeout(y),d=0,f=v=l=y=void 0}function E(){return y===void 0?p:A(t())}function P(){var j=t(),C=_(j);if(f=arguments,l=this,v=j,C){if(y===void 0)return m(v);if(x)return clearTimeout(y),y=setTimeout(S,c),O(v)}return y===void 0&&(y=setTimeout(S,c)),p}return P.cancel=$,P.flush=E,P}return zc=o,zc}var Hc,Cv;function cS(){if(Cv)return Hc;Cv=1;var e=uS(),t=_t(),r="Expected a function";function n(i,a,o){var u=!0,c=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,c="trailing"in o?!!o.trailing:c),e(i,a,{leading:u,maxWait:a,trailing:c})}return Hc=n,Hc}var sS=cS();const Cb=se(sS);function an(e){"@babel/helpers - typeof";return an=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},an(e)}function $v(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 Vn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$v(Object(r),!0).forEach(function(n){lS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$v(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lS(e,t,r){return t=fS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fS(e){var t=hS(e,"string");return an(t)=="symbol"?t:t+""}function hS(e,t){if(an(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(an(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pS(e,t){return mS(e)||yS(e,t)||vS(e,t)||dS()}function dS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 6In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vS(e,t){if(e){if(typeof e=="string")return Iv(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 Iv(e,t)}}function Iv(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 yS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function mS(e){if(Array.isArray(e))return e}var pk=N.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,c=u===void 0?"100%":u,s=e.minWidth,f=s===void 0?0:s,l=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,v=y===void 0?0:y,d=e.id,b=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,m=N.useRef(null),g=N.useRef();g.current=x,N.useImperativeHandle(t,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var _=N.useState({containerWidth:i.width,containerHeight:i.height}),S=pS(_,2),A=S[0],$=S[1],E=N.useCallback(function(j,C){$(function(M){var D=Math.round(j),R=Math.round(C);return M.containerWidth===D&&M.containerHeight===R?M:{containerWidth:D,containerHeight:R}})},[]);N.useEffect(function(){var j=function(L){var z,G=L[0].contentRect,U=G.width,K=G.height;E(U,K),(z=g.current)===null||z===void 0||z.call(g,U,K)};v>0&&(j=Cb(j,v,{trailing:!0,leading:!1}));var C=new ResizeObserver(j),M=m.current.getBoundingClientRect(),D=M.width,R=M.height;return E(D,R),C.observe(m.current),function(){C.disconnect()}},[E,v]);var P=N.useMemo(function(){var j=A.containerWidth,C=A.containerHeight;if(j<0||C<0)return null;qt(Dt(o)||Dt(c),`The width(%s) and height(%s) are both fixed numbers, 7 maybe you don't need to use a ResponsiveContainer.`,o,c),qt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var M=Dt(o)?j:o,D=Dt(c)?C:c;r&&r>0&&(M?D=M/r:D&&(M=D*r),h&&D>h&&(D=h)),qt(M>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0, 8 please check the style of container, or the props width(%s) and height(%s), 9 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 10 height and width.`,M,D,o,c,f,l,r);var R=!Array.isArray(p)&&st(p.type).endsWith("Chart");return T.Children.map(p,function(q){return T.isValidElement(q)?N.cloneElement(q,Vn({width:M,height:D},R?{style:Vn({height:"100%",width:"100%",maxHeight:D,maxWidth:M},q.props.style)}:{})):q})},[r,p,c,h,l,f,A,o]);return T.createElement("div",{id:d?"".concat(d):void 0,className:ee("recharts-responsive-container",b),style:Vn(Vn({},O),{},{width:o,height:c,minWidth:f,minHeight:l,maxHeight:h}),ref:m},P)}),$b=function(t){return null};$b.displayName="Cell";function on(e){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(e)}function Dv(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 tl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dv(Object(r),!0).forEach(function(n){gS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gS(e,t,r){return t=bS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bS(e){var t=xS(e,"string");return on(t)=="symbol"?t:t+""}function xS(e,t){if(on(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(on(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yt={widthCache:{},cacheCount:0},wS=2e3,OS={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Rv="recharts_measurement_span";function _S(e){var t=tl({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Vr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||$r.isSsr)return{width:0,height:0};var n=_S(r),i=JSON.stringify({text:t,copyStyle:n});if(Yt.widthCache[i])return Yt.widthCache[i];try{var a=document.getElementById(Rv);a||(a=document.createElement("span"),a.setAttribute("id",Rv),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=tl(tl({},OS),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return Yt.widthCache[i]=c,++Yt.cacheCount>wS&&(Yt.cacheCount=0,Yt.widthCache={}),c}catch{return{width:0,height:0}}},SS=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(e)}function gi(e,t){return ES(e)||TS(e,t)||PS(e,t)||AS()}function AS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 11In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PS(e,t){if(e){if(typeof e=="string")return kv(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 kv(e,t)}}function kv(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 TS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function ES(e){if(Array.isArray(e))return e}function jS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,CS(n.key),n)}}function MS(e,t,r){return t&&Nv(e.prototype,t),r&&Nv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function CS(e){var t=$S(e,"string");return un(t)=="symbol"?t:t+""}function $S(e,t){if(un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Bv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,IS=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,DS=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Ib={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},RS=Object.keys(Ib),er="NaN";function kS(e,t){return e*Ib[t]}var Yn=(function(){function e(t,r){jS(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!IS.test(r)&&(this.num=NaN,this.unit=""),RS.includes(r)&&(this.num=kS(t,r),this.unit="px")}return MS(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=DS.exec(r))!==null&&n!==void 0?n:[],a=gi(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function Db(e){if(e.includes(er))return er;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=qv.exec(t))!==null&&r!==void 0?r:[],i=gi(n,4),a=i[1],o=i[2],u=i[3],c=Yn.parse(a??""),s=Yn.parse(u??""),f=o==="*"?c.multiply(s):c.divide(s);if(f.isNaN())return er;t=t.replace(qv,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=Bv.exec(t))!==null&&l!==void 0?l:[],p=gi(h,4),y=p[1],v=p[2],d=p[3],b=Yn.parse(y??""),x=Yn.parse(d??""),w=v==="+"?b.add(x):b.subtract(x);if(w.isNaN())return er;t=t.replace(Bv,w.toString())}return t}var Lv=/\(([^()]*)\)/;function NS(e){for(var t=e;t.includes("(");){var r=Lv.exec(t),n=gi(r,2),i=n[1];t=t.replace(Lv,Db(i))}return t}function qS(e){var t=e.replace(/\s+/g,"");return t=NS(t),t=Db(t),t}function BS(e){try{return qS(e)}catch{return er}}function Gc(e){var t=BS(e.slice(5,-1));return t===er?"":t}var LS=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],FS=["dx","dy","angle","className","breakAll"];function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
11for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rl.apply(this,arguments)}function Fv(e,t){if(e==null)return{};var r=US(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 US(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 Uv(e,t){return GS(e)||HS(e,t)||zS(e,t)||WS()}function WS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 12In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zS(e,t){if(e){if(typeof e=="string")return Wv(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 Wv(e,t)}}function Wv(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 HS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function GS(e){if(Array.isArray(e))return e}var Rb=/[ \f\n\r\t\v\u2028\u2029]+/,kb=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Y(r)||(n?a=r.toString().split(""):a=r.toString().split(Rb));var o=a.map(function(c){return{word:c,width:Vr(c,i).width}}),u=n?0:Vr(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},KS=function(t,r,n,i,a){var o=t.maxLines,u=t.children,c=t.style,s=t.breakAll,f=B(o),l=u,h=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function(D,R){var q=R.word,L=R.width,z=D[D.length-1];if(z&&(i==null||a||z.width+L+n<Number(i)))z.words.push(q),z.width+=L+n;else{var G={words:[q],width:L};D.push(G)}return D},[])},p=h(r),y=function(M){return M.reduce(function(D,R){return D.width>R.width?D:R})};if(!f)return p;for(var v="…",d=function(M){var D=l.slice(0,M),R=kb({breakAll:s,style:c,children:D+v}).wordsWithComputedWidth,q=h(R),L=q.length>o||y(q).width>Number(i);return[L,q]},b=0,x=l.length-1,w=0,O;b<=x&&w<=l.length-1;){var m=Math.floor((b+x)/2),g=m-1,_=d(g),S=Uv(_,2),A=S[0],$=S[1],E=d(m),P=Uv(E,1),j=P[0];if(!A&&!j&&(b=m+1),A&&j&&(x=m-1),!A&&j){O=$;break}w++}return O||p},zv=function(t){var r=Y(t)?[]:t.toString().split(Rb);return[{words:r}]},XS=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!$r.isSsr){var c,s,f=kb({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;c=l,s=h}else return zv(i);return KS({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return zv(i)},Hv="#808080",bi=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,c=t.capHeight,s=c===void 0?"0.71em":c,f=t.scaleToFit,l=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,v=y===void 0?"end":y,d=t.fill,b=d===void 0?Hv:d,x=Fv(t,LS),w=N.useMemo(function(){return XS({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),O=x.dx,m=x.dy,g=x.angle,_=x.className,S=x.breakAll,A=Fv(x,FS);if(!xe(n)||!xe(a))return null;var $=n+(B(O)?O:0),E=a+(B(m)?m:0),P;switch(v){case"start":P=Gc("calc(".concat(s,")"));break;case"middle":P=Gc("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:P=Gc("calc(".concat(w.length-1," * -").concat(u,")"));break}var j=[];if(l){var C=w[0].width,M=x.width;j.push("scale(".concat((B(M)?M/C:1)/C,")"))}return g&&j.push("rotate(".concat(g,", ").concat($,", ").concat(E,")")),j.length&&(A.transform=j.join(" ")),T.createElement("text",rl({},J(A,!0),{x:$,y:E,className:ee("recharts-text",_),textAnchor:p,fill:b.includes("url")?Hv:b}),w.map(function(D,R){var q=D.words.join(S?"":" ");return T.createElement("tspan",{x:$,dy:R===0?P:u,key:"".concat(q,"-").concat(R)},q)}))};function wt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function VS(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Sf(e){let t,r,n;e.length!==2?(t=wt,r=(u,c)=>wt(e(u),c),n=(u,c)=>e(u)-c):(t=e===wt||e===VS?e:YS,r=e,n=e);function i(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<0?s=l+1:f=l}while(s<f)}return s}function a(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<=0?s=l+1:f=l}while(s<f)}return s}function o(u,c,s=0,f=u.length){const l=i(u,c,s,f-1);return l>s&&n(u[l-1],c)>-n(u[l],c)?l-1:l}return{left:i,center:o,right:a}}function YS(){return 0}function Nb(e){return e===null?NaN:+e}function*ZS(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const JS=Sf(wt),Ln=JS.right;Sf(Nb).center;function QS(e=wt){if(e===wt)return qb;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function qb(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const eA=Math.sqrt(50),tA=Math.sqrt(10),rA=Math.sqrt(2);function xi(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>=eA?10:a>=tA?5:a>=rA?2:1;let u,c,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),c=Math.round(t*s),u/s<e&&++u,c/s>t&&--c,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),c=Math.round(t/s),u*s<e&&++u,c*s>t&&--c),c<u&&.5<=r&&r<2?xi(e,t,r*2):[u,c,s]}function nl(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?xi(t,e,r):xi(e,t,r);if(!(a>=i))return[];const u=a-i+1,c=new Array(u);if(n)if(o<0)for(let s=0;s<u;++s)c[s]=(a-s)/-o;else for(let s=0;s<u;++s)c[s]=(a-s)*o;else if(o<0)for(let s=0;s<u;++s)c[s]=(i+s)/-o;else for(let s=0;s<u;++s)c[s]=(i+s)*o;return c}function il(e,t,r){return t=+t,e=+e,r=+r,xi(e,t,r)[2]}function al(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?il(t,e,r):il(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Gv(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Kv(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}
12function Bb(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?qb:QS(i);n>r;){if(n-r>600){const c=n-r+1,s=t-r+1,f=Math.log(c),l=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*l*(c-l)/c)*(s-c/2<0?-1:1),p=Math.max(r,Math.floor(t-s*l/c+h)),y=Math.min(n,Math.floor(t+(c-s)*l/c+h));Bb(e,t,p,y,i)}const a=e[t];let o=r,u=n;for(qr(e,r,t),i(e[n],a)>0&&qr(e,r,n);o<u;){for(qr(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?qr(e,r,u):(++u,qr(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function qr(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function nA(e,t,r){if(e=Float64Array.from(ZS(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Kv(e);if(t>=1)return Gv(e);var n,i=(n-1)*t,a=Math.floor(i),o=Gv(Bb(e,a).subarray(0,a+1)),u=Kv(e.subarray(a+1));return o+(u-o)*(i-a)}}function iA(e,t,r=Nb){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function aA(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Ge(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function 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 ol=Symbol("implicit");function Af(){var e=new nh,t=[],r=[],n=ol;function i(a){let o=e.get(a);if(o===void 0){if(n!==ol)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 nh;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 Af(t,r).unknown(n)},Ge.apply(i,arguments),i}function cn(){var e=Af().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,c=0,s=0,f=.5;delete e.unknown;function l(){var h=t().length,p=i<n,y=p?i:n,v=p?n:i;a=(v-y)/Math.max(1,h-c+s*2),u&&(a=Math.floor(a)),y+=(v-y-a*(h-c))*f,o=a*(1-c),u&&(y=Math.round(y),o=Math.round(o));var d=aA(h).map(function(b){return y+a*b});return r(p?d.reverse():d)}return e.domain=function(h){return arguments.length?(t(h),l()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(u=!!h,l()):u},e.padding=function(h){return arguments.length?(c=Math.min(1,s=+h),l()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),l()):c},e.paddingOuter=function(h){return arguments.length?(s=+h,l()):s},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},e.copy=function(){return cn(t(),[n,i]).round(u).paddingInner(c).paddingOuter(s).align(f)},Ge.apply(l(),arguments)}function Lb(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Lb(t())},e}function Yr(){return Lb(cn.apply(null,arguments).paddingInner(1))}function Pf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Fb(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Fn(){}var sn=.7,wi=1/sn,ar="\\s*([+-]?\\d+)\\s*",ln="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",oA=/^#([0-9a-f]{3,8})$/,uA=new RegExp(`^rgb\\(${ar},${ar},${ar}\\)$`),cA=new RegExp(`^rgb\\(${tt},${tt},${tt}\\)$`),sA=new RegExp(`^rgba\\(${ar},${ar},${ar},${ln}\\)$`),lA=new RegExp(`^rgba\\(${tt},${tt},${tt},${ln}\\)$`),fA=new RegExp(`^hsl\\(${ln},${tt},${tt}\\)$`),hA=new RegExp(`^hsla\\(${ln},${tt},${tt},${ln}\\)$`),Xv={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};Pf(Fn,fn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Vv,formatHex:Vv,formatHex8:pA,formatHsl:dA,formatRgb:Yv,toString:Yv});function Vv(){return this.rgb().formatHex()}function pA(){return this.rgb().formatHex8()}function dA(){return Ub(this).formatHsl()}function Yv(){return this.rgb().formatRgb()}function fn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=oA.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Zv(t):r===3?new Ce(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Zn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Zn(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=uA.exec(e))?new Ce(t[1],t[2],t[3],1):(t=cA.exec(e))?new Ce(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=sA.exec(e))?Zn(t[1],t[2],t[3],t[4]):(t=lA.exec(e))?Zn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=fA.exec(e))?ey(t[1],t[2]/100,t[3]/100,1):(t=hA.exec(e))?ey(t[1],t[2]/100,t[3]/100,t[4]):Xv.hasOwnProperty(e)?Zv(Xv[e]):e==="transparent"?new Ce(NaN,NaN,NaN,0):null}function Zv(e){return new Ce(e>>16&255,e>>8&255,e&255,1)}function Zn(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ce(e,t,r,n)}function vA(e){return e instanceof Fn||(e=fn(e)),e?(e=e.rgb(),new Ce(e.r,e.g,e.b,e.opacity)):new Ce}function ul(e,t,r,n){return arguments.length===1?vA(e):new Ce(e,t,r,n??1)}function Ce(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Pf(Ce,ul,Fb(Fn,{brighter(e){return e=e==null?wi:Math.pow(wi,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?sn:Math.pow(sn,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ce(Bt(this.r),Bt(this.g),Bt(this.b),Oi(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:Jv,formatHex:Jv,formatHex8:yA,formatRgb:Qv,toString:Qv}));function Jv(){return`#${Rt(this.r)}${Rt(this.g)}${Rt(this.b)}`}function yA(){return`#${Rt(this.r)}${Rt(this.g)}${Rt(this.b)}${Rt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Qv(){const e=Oi(this.opacity);return`${e===1?"rgb(":"rgba("}${Bt(this.r)}, ${Bt(this.g)}, ${Bt(this.b)}${e===1?")":`, ${e})`}`}function Oi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Bt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Rt(e){return e=Bt(e),(e<16?"0":"")+e.toString(16)}function ey(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ze(e,t,r,n)}function Ub(e){if(e instanceof Ze)return new Ze(e.h,e.s,e.l,e.opacity);if(e instanceof Fn||(e=fn(e)),!e)return new Ze;if(e instanceof Ze)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,c=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=c<.5?a+i:2-a-i,o*=60):u=c>0&&c<1?0:o,new Ze(o,u,c,e.opacity)}function mA(e,t,r,n){return arguments.length===1?Ub(e):new Ze(e,t,r,n??1)}function Ze(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Pf(Ze,mA,Fb(Fn,{brighter(e){return e=e==null?wi:Math.pow(wi,e),new Ze(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?sn:Math.pow(sn,e),new Ze(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 Ce(Kc(e>=240?e-240:e+120,i,n),Kc(e,i,n),Kc(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ze(ty(this.h),Jn(this.s),Jn(this.l),Oi(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=Oi(this.opacity);return`${e===1?"hsl(":"hsla("}${ty(this.h)}, ${Jn(this.s)*100}%, ${Jn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ty(e){return e=(e||0)%360,e<0?e+360:e}function Jn(e){return Math.max(0,Math.min(1,e||0))}function Kc(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 Tf=e=>()=>e;function gA(e,t){return function(r){return e+r*t}}function bA(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)}}
vendor: 8,517 bytes, line 12
12function xA(e){return(e=+e)==1?Wb:function(t,r){return r-t?bA(t,r,e):Tf(isNaN(t)?r:t)}}function Wb(e,t){var r=t-e;return r?gA(e,r):Tf(isNaN(e)?t:e)}const ry=(function e(t){var r=xA(t);function n(i,a){var o=r((i=ul(i)).r,(a=ul(a)).r),u=r(i.g,a.g),c=r(i.b,a.b),s=Wb(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=c(f),i.opacity=s(f),i+""}}return n.gamma=e,n})(1);function wA(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 OA(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function _A(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]=Ir(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function SA(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function _i(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function AA(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]=Ir(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var cl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xc=new RegExp(cl.source,"g");function PA(e){return function(){return e}}function TA(e){return function(t){return e(t)+""}}function EA(e,t){var r=cl.lastIndex=Xc.lastIndex=0,n,i,a,o=-1,u=[],c=[];for(e=e+"",t=t+"";(n=cl.exec(e))&&(i=Xc.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,c.push({i:o,x:_i(n,i)})),r=Xc.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?TA(c[0].x):PA(t):(t=c.length,function(s){for(var f=0,l;f<t;++f)u[(l=c[f]).i]=l.x(s);return u.join("")})}function Ir(e,t){var r=typeof t,n;return t==null||r==="boolean"?Tf(t):(r==="number"?_i:r==="string"?(n=fn(t))?(t=n,ry):EA:t instanceof fn?ry:t instanceof Date?SA:OA(t)?wA:Array.isArray(t)?_A:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?AA:_i)(e,t)}function Ef(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function jA(e,t){t===void 0&&(t=e,e=Ir);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function MA(e){return function(){return e}}function Si(e){return+e}var ny=[0,1];function Ee(e){return e}function sl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:MA(isNaN(t)?NaN:.5)}function CA(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function $A(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=sl(i,n),a=r(o,a)):(n=sl(n,i),a=r(a,o)),function(u){return a(n(u))}}function IA(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]=sl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var c=Ln(e,u,1,n)-1;return a[c](i[c](u))}}function Un(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ya(){var e=ny,t=ny,r=Ir,n,i,a,o=Ee,u,c,s;function f(){var h=Math.min(e.length,t.length);return o!==Ee&&(o=CA(e[0],e[h-1])),u=h>2?IA:$A,c=s=null,l}function l(h){return h==null||isNaN(h=+h)?a:(c||(c=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((s||(s=u(t,e.map(n),_i)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Si),f()):e.slice()},l.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},l.rangeRound=function(h){return t=Array.from(h),r=Ef,f()},l.clamp=function(h){return arguments.length?(o=h?!0:Ee,f()):o!==Ee},l.interpolate=function(h){return arguments.length?(r=h,f()):r},l.unknown=function(h){return arguments.length?(a=h,l):a},function(h,p){return n=h,i=p,f()}}function jf(){return ya()(Ee,Ee)}function DA(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ai(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function hr(e){return e=Ai(Math.abs(e)),e?e[1]:NaN}function RA(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),a.push(r.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function kA(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var NA=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hn(e){if(!(t=NA.exec(e)))throw new Error("invalid format: "+e);var t;return new Mf({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]})}hn.prototype=Mf.prototype;function Mf(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+""}Mf.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 qA(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 Pi;function BA(e,t){var r=Ai(e,t);if(!r)return Pi=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Pi=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")+Ai(e,Math.max(0,t+a-1))[0]}function iy(e,t){var r=Ai(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 ay={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:DA,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)=>iy(e*100,t),r:iy,s:BA,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function oy(e){return e}var uy=Array.prototype.map,cy=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function LA(e){var t=e.grouping===void 0||e.thousands===void 0?oy:RA(uy.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?oy:kA(uy.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function s(l,h){l=hn(l);var p=l.fill,y=l.align,v=l.sign,d=l.symbol,b=l.zero,x=l.width,w=l.comma,O=l.precision,m=l.trim,g=l.type;g==="n"?(w=!0,g="g"):ay[g]||(O===void 0&&(O=12),m=!0,g="g"),(b||p==="0"&&y==="=")&&(b=!0,p="0",y="=");var _=(h&&h.prefix!==void 0?h.prefix:"")+(d==="$"?r:d==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():""),S=(d==="$"?n:/[%p]/.test(g)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),A=ay[g],$=/[defgprs%]/.test(g);O=O===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function E(P){var j=_,C=S,M,D,R;if(g==="c")C=A(P)+C,P="";else{P=+P;var q=P<0||1/P<0;if(P=isNaN(P)?c:A(Math.abs(P),O),m&&(P=qA(P)),q&&+P==0&&v!=="+"&&(q=!1),j=(q?v==="("?v:u:v==="-"||v==="("?"":v)+j,C=(g==="s"&&!isNaN(P)&&Pi!==void 0?cy[8+Pi/3]:"")+C+(q&&v==="("?")":""),$){for(M=-1,D=P.length;++M<D;)if(R=P.charCodeAt(M),48>R||R>57){C=(R===46?i+P.slice(M+1):P.slice(M))+C,P=P.slice(0,M);break}}}w&&!b&&(P=t(P,1/0));var L=j.length+P.length+C.length,z=L<x?new Array(x-L+1).join(p):"";switch(w&&b&&(P=t(z+P,z.length?x-C.length:1/0),z=""),y){case"<":P=j+P+C+z;break;case"=":P=j+z+P+C;break;case"^":P=z.slice(0,L=z.length>>1)+j+P+C+z.slice(L);break;default:P=z+j+P+C;break}return a(P)}return E.toString=function(){return l+""},E}function f(l,h){var p=Math.max(-8,Math.min(8,Math.floor(hr(h)/3)))*3,y=Math.pow(10,-p),v=s((l=hn(l),l.type="f",l),{suffix:cy[8+p/3]});return function(d){return v(y*d)}}return{format:s,formatPrefix:f}}var Qn,Cf,zb;
12FA({thousands:",",grouping:[3],currency:["$",""]});function FA(e){return Qn=LA(e),Cf=Qn.format,zb=Qn.formatPrefix,Qn}function UA(e){return Math.max(0,-hr(Math.abs(e)))}function WA(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(hr(t)/3)))*3-hr(Math.abs(e)))}function zA(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,hr(t)-hr(e))+1}function Hb(e,t,r,n){var i=al(e,t,r),a;switch(n=hn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=WA(i,o))&&(n.precision=a),zb(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=zA(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=UA(i))&&(n.precision=a-(n.type==="%")*2);break}}return Cf(n)}function At(e){var t=e.domain;return e.ticks=function(r){var n=t();return nl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Hb(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],c,s,f=10;for(u<o&&(s=o,o=u,u=s,s=i,i=a,a=s);f-- >0;){if(s=il(o,u,r),s===c)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;c=s}return e},e}function Ti(){var e=jf();return e.copy=function(){return Un(e,Ti())},Ge.apply(e,arguments),At(e)}function Gb(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,Si),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Gb(e).unknown(t)},e=arguments.length?Array.from(e,Si):[0,1],At(r)}function Kb(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 sy(e){return Math.log(e)}function ly(e){return Math.exp(e)}function HA(e){return-Math.log(-e)}function GA(e){return-Math.exp(-e)}function KA(e){return isFinite(e)?+("1e"+e):e<0?0:e}function XA(e){return e===10?KA:e===Math.E?Math.exp:t=>Math.pow(e,t)}function VA(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 fy(e){return(t,r)=>-e(-t,r)}function $f(e){const t=e(sy,ly),r=t.domain;let n=10,i,a;function o(){return i=VA(n),a=XA(n),r()[0]<0?(i=fy(i),a=fy(a),e(HA,GA)):e(sy,ly),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const c=r();let s=c[0],f=c[c.length-1];const l=f<s;l&&([s,f]=[f,s]);let h=i(s),p=i(f),y,v;const d=u==null?10:+u;let b=[];if(!(n%1)&&p-h<d){if(h=Math.floor(h),p=Math.ceil(p),s>0){for(;h<=p;++h)for(y=1;y<n;++y)if(v=h<0?y/a(-h):y*a(h),!(v<s)){if(v>f)break;b.push(v)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(v=h>0?y/a(-h):y*a(h),!(v<s)){if(v>f)break;b.push(v)}b.length*2<d&&(b=nl(s,f,d))}else b=nl(h,p,Math.min(p-h,d)).map(a);return l?b.reverse():b},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=hn(c)).precision==null&&(c.trim=!0),c=Cf(c)),u===1/0)return c;const s=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=s?c(f):""}},t.nice=()=>r(Kb(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function Xb(){const e=$f(ya()).domain([1,10]);return e.copy=()=>Un(e,Xb()).base(e.base()),Ge.apply(e,arguments),e}function hy(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function py(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function If(e){var t=1,r=e(hy(t),py(t));return r.constant=function(n){return arguments.length?e(hy(t=+n),py(t)):t},At(r)}function Vb(){var e=If(ya());return e.copy=function(){return Un(e,Vb()).constant(e.constant())},Ge.apply(e,arguments)}function dy(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function YA(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ZA(e){return e<0?-e*e:e*e}function Df(e){var t=e(Ee,Ee),r=1;function n(){return r===1?e(Ee,Ee):r===.5?e(YA,ZA):e(dy(r),dy(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},At(t)}function Rf(){var e=Df(ya());return e.copy=function(){return Un(e,Rf()).exponent(e.exponent())},Ge.apply(e,arguments),e}function JA(){return Rf.apply(null,arguments).exponent(.5)}function vy(e){return Math.sign(e)*e*e}function QA(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Yb(){var e=jf(),t=[0,1],r=!1,n;function i(a){var o=QA(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(vy(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,Si)).map(vy)),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 Yb(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ge.apply(i,arguments),At(i)}function Zb(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=iA(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Ln(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]}
vendor: 1,025 bytes, line 12
12,a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(wt),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 Zb().domain(e).range(t).unknown(n)},Ge.apply(a,arguments)}function Jb(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[Ln(n,c,0,r)]:a}function u(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,u()):[e,t]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,u()):i.slice()},o.invertExtent=function(c){var s=i.indexOf(c);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Jb().domain([e,t]).range(i).unknown(a)}
vendor: 4,268 bytes, line 12
12,Ge.apply(At(o),arguments)}function Qb(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Ln(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 Qb().domain(e).range(t).unknown(r)},Ge.apply(i,arguments)}const Vc=new Date,Yc=new Date;function we(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const c=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return c;let s;do c.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return c},i.filter=a=>we(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Vc.setTime(+a),Yc.setTime(+o),e(Vc),e(Yc),Math.floor(r(Vc,Yc))),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 Ei=we(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ei.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?we(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ei);Ei.range;const ut=1e3,Ue=ut*60,ct=Ue*60,ft=ct*24,kf=ft*7,yy=ft*30,Zc=ft*365,kt=we(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ut)},(e,t)=>(t-e)/ut,e=>e.getUTCSeconds());kt.range;const Nf=we(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ut)},(e,t)=>{e.setTime(+e+t*Ue)},(e,t)=>(t-e)/Ue,e=>e.getMinutes());Nf.range;const qf=we(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ue)},(e,t)=>(t-e)/Ue,e=>e.getUTCMinutes());qf.range;const Bf=we(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ut-e.getMinutes()*Ue)},(e,t)=>{e.setTime(+e+t*ct)},(e,t)=>(t-e)/ct,e=>e.getHours());Bf.range;const Lf=we(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ct)},(e,t)=>(t-e)/ct,e=>e.getUTCHours());Lf.range;const Wn=we(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ue)/ft,e=>e.getDate()-1);Wn.range;const ma=we(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ft,e=>e.getUTCDate()-1);ma.range;const e0=we(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ft,e=>Math.floor(e/ft));e0.range;function Gt(e){return we(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())*Ue)/kf)}const ga=Gt(0),ji=Gt(1),eP=Gt(2),tP=Gt(3),pr=Gt(4),rP=Gt(5),nP=Gt(6);ga.range;ji.range;eP.range;tP.range;pr.range;rP.range;nP.range;function Kt(e){return we(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)/kf)}const ba=Kt(0),Mi=Kt(1),iP=Kt(2),aP=Kt(3),dr=Kt(4),oP=Kt(5),uP=Kt(6);ba.range;Mi.range;iP.range;aP.range;dr.range;oP.range;uP.range;const Ff=we(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());Ff.range;const Uf=we(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());Uf.range;const ht=we(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());ht.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:we(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)});ht.range;const pt=we(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());pt.every=e=>
vendor: 9,568 bytes, line 12
12!isFinite(e=Math.floor(e))||!(e>0)?null:we(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});pt.range;function t0(e,t,r,n,i,a){const o=[[kt,1,ut],[kt,5,5*ut],[kt,15,15*ut],[kt,30,30*ut],[a,1,Ue],[a,5,5*Ue],[a,15,15*Ue],[a,30,30*Ue],[i,1,ct],[i,3,3*ct],[i,6,6*ct],[i,12,12*ct],[n,1,ft],[n,2,2*ft],[r,1,kf],[t,1,yy],[t,3,3*yy],[e,1,Zc]];function u(s,f,l){const h=f<s;h&&([s,f]=[f,s]);const p=l&&typeof l.range=="function"?l:c(s,f,l),y=p?p.range(s,+f+1):[];return h?y.reverse():y}function c(s,f,l){const h=Math.abs(f-s)/l,p=Sf(([,,d])=>d).right(o,h);if(p===o.length)return e.every(al(s/Zc,f/Zc,l));if(p===0)return Ei.every(Math.max(al(s,f,l),1));const[y,v]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(v)}return[u,c]}const[cP,sP]=t0(pt,Uf,ba,e0,Lf,qf),[lP,fP]=t0(ht,Ff,ga,Wn,Bf,Nf);function Jc(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 Qc(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 Br(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function hP(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,c=e.shortMonths,s=Lr(i),f=Fr(i),l=Lr(a),h=Fr(a),p=Lr(o),y=Fr(o),v=Lr(u),d=Fr(u),b=Lr(c),x=Fr(c),w={a:R,A:q,b:L,B:z,c:null,d:Oy,e:Oy,f:RP,g:HP,G:KP,H:$P,I:IP,j:DP,L:r0,m:kP,M:NP,p:G,q:U,Q:Ay,s:Py,S:qP,u:BP,U:LP,V:FP,w:UP,W:WP,x:null,X:null,y:zP,Y:GP,Z:XP,"%":Sy},O={a:K,A:oe,b:pe,B:Ie,c:null,d:_y,e:_y,f:JP,g:cT,G:lT,H:VP,I:YP,j:ZP,L:i0,m:QP,M:eT,p:Et,q:je,Q:Ay,s:Py,S:tT,u:rT,U:nT,V:iT,w:aT,W:oT,x:null,X:null,y:uT,Y:sT,Z:fT,"%":Sy},m={a:$,A:E,b:P,B:j,c:C,d:xy,e:xy,f:EP,g:by,G:gy,H:wy,I:wy,j:SP,L:TP,m:_P,M:AP,p:A,q:OP,Q:MP,s:CP,S:PP,u:mP,U:gP,V:bP,w:yP,W:xP,x:M,X:D,y:by,Y:gy,Z:wP,"%":jP};w.x=g(r,w),w.X=g(n,w),w.c=g(t,w),O.x=g(r,O),O.X=g(n,O),O.c=g(t,O);function g(F,X){return function(V){var k=[],le=-1,Q=0,ye=F.length,me,Me,gt;for(V instanceof Date||(V=new Date(+V));++le<ye;)F.charCodeAt(le)===37&&(k.push(F.slice(Q,le)),(Me=my[me=F.charAt(++le)])!=null?me=F.charAt(++le):Me=me==="e"?" ":"0",(gt=X[me])&&(me=gt(V,Me)),k.push(me),Q=le+1);return k.push(F.slice(Q,le)),k.join("")}}function _(F,X){return function(V){var k=Br(1900,void 0,1),le=S(k,F,V+="",0),Q,ye;if(le!=V.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(X&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(Q=Qc(Br(k.y,0,1)),ye=Q.getUTCDay(),Q=ye>4||ye===0?Mi.ceil(Q):Mi(Q),Q=ma.offset(Q,(k.V-1)*7),k.y=Q.getUTCFullYear(),k.m=Q.getUTCMonth(),k.d=Q.getUTCDate()+(k.w+6)%7):(Q=Jc(Br(k.y,0,1)),ye=Q.getDay(),Q=ye>4||ye===0?ji.ceil(Q):ji(Q),Q=Wn.offset(Q,(k.V-1)*7),k.y=Q.getFullYear(),k.m=Q.getMonth(),k.d=Q.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),ye="Z"in k?Qc(Br(k.y,0,1)).getUTCDay():Jc(Br(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(ye+5)%7:k.w+k.U*7-(ye+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,Qc(k)):Jc(k)}}function S(F,X,V,k){for(var le=0,Q=X.length,ye=V.length,me,Me;le<Q;){if(k>=ye)return-1;if(me=X.charCodeAt(le++),me===37){if(me=X.charAt(le++),Me=m[me in my?X.charAt(le++):me],!Me||(k=Me(F,V,k))<0)return-1}else if(me!=V.charCodeAt(k++))return-1}return k}function A(F,X,V){var k=s.exec(X.slice(V));return k?(F.p=f.get(k[0].toLowerCase()),V+k[0].length):-1}function $(F,X,V){var k=p.exec(X.slice(V));return k?(F.w=y.get(k[0].toLowerCase()),V+k[0].length):-1}function E(F,X,V){var k=l.exec(X.slice(V));return k?(F.w=h.get(k[0].toLowerCase()),V+k[0].length):-1}function P(F,X,V){var k=b.exec(X.slice(V));return k?(F.m=x.get(k[0].toLowerCase()),V+k[0].length):-1}function j(F,X,V){var k=v.exec(X.slice(V));return k?(F.m=d.get(k[0].toLowerCase()),V+k[0].length):-1}function C(F,X,V){return S(F,t,X,V)}function M(F,X,V){return S(F,r,X,V)}function D(F,X,V){return S(F,n,X,V)}function R(F){return o[F.getDay()]}function q(F){return a[F.getDay()]}function L(F){return c[F.getMonth()]}function z(F){return u[F.getMonth()]}function G(F){return i[+(F.getHours()>=12)]}function U(F){return 1+~~(F.getMonth()/3)}function K(F){return o[F.getUTCDay()]}function oe(F){return a[F.getUTCDay()]}function pe(F){return c[F.getUTCMonth()]}function Ie(F){return u[F.getUTCMonth()]}function Et(F){return i[+(F.getUTCHours()>=12)]}function je(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var X=g(F+="",w);return X.toString=function(){return F},X},parse:function(F){var X=_(F+="",!1);return X.toString=function(){return F},X},utcFormat:function(F){var X=g(F+="",O);return X.toString=function(){return F},X},utcParse:function(F){var X=_(F+="",!0);return X.toString=function(){return F},X}}}var my={"-":"",_:" ",0:"0"},_e=/^\s*\d+/,pP=/^%/,dP=/[\\^$*+?|[\]().{}]/g;function te(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function vP(e){return e.replace(dP,"\\$&")}function Lr(e){return new RegExp("^(?:"+e.map(vP).join("|")+")","i")}function Fr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function yP(e,t,r){var n=_e.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function mP(e,t,r){var n=_e.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function gP(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function bP(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function xP(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function gy(e,t,r){var n=_e.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function by(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function wP(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 OP(e,t,r){var n=_e.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function _P(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function xy(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function SP(e,t,r){var n=_e.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function wy(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function AP(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function PP(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function TP(e,t,r){var n=_e.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function EP(e,t,r){var n=_e.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function jP(e,t,r){var n=pP.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function MP(e,t,r){var n=_e.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function CP(e,t,r){var n=_e.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Oy(e,t){return te(e.getDate(),t,2)}function $P(e,t){return te(e.getHours(),t,2)}function IP(e,t){return te(e.getHours()%12||12,t,2)}function DP(e,t){return te(1+Wn.count(ht(e),e),t,3)}function r0(e,t){return te(e.getMilliseconds(),t,3)}function RP(e,t){return r0(e,t)+"000"}function kP(e,t){return te(e.getMonth()+1,t,2)}function NP(e,t){return te(e.getMinutes(),t,2)}function qP(e,t){return te(e.getSeconds(),t,2)}function BP(e){var t=e.getDay();return t===0?7:t}function LP(e,t){return te(ga.count(ht(e)-1,e),t,2)}function n0(e){var t=e.getDay();return t>=4||t===0?pr(e):pr.ceil(e)}function FP(e,t){return e=n0(e),te(pr.count(ht(e),e)+(ht(e).getDay()===4),t,2)}function UP(e){return e.getDay()}function WP(e,t){return te(ji.count(ht(e)-1,e),t,2)}function zP(e,t){return te(e.getFullYear()%100,t,2)}function HP(e,t){return e=n0(e),te(e.getFullYear()%100,t,2)}function GP(e,t){return te(e.getFullYear()%1e4,t,4)}function KP(e,t){var r=e.getDay();return e=r>=4||r===0?pr(e):pr.ceil(e),te(e.getFullYear()%1e4,t,4)}function XP(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+te(t/60|0,"0",2)+te(t%60,"0",2)}function _y(e,t){return te(e.getUTCDate(),t,2)}function VP(e,t){return te(e.getUTCHours(),t,2)}function YP(e,t){return te(e.getUTCHours()%12||12,t,2)}function ZP(e,t){return te(1+ma.count(pt(e),e),t,3)}function i0(e,t){return te(e.getUTCMilliseconds(),t,3)}function JP(e,t){return i0(e,t)+"000"}function QP(e,t){return te(e.getUTCMonth()+1,t,2)}function eT(e,t){return te(e.getUTCMinutes(),t,2)}function tT(e,t){return te(e.getUTCSeconds(),t,2)}function rT(e){var t=e.getUTCDay();return t===0?7:t}function nT(e,t){return te(ba.count(pt(e)-1,e),t,2)}function a0(e){var t=e.getUTCDay();return t>=4||t===0?dr(e):dr.ceil(e)}function iT(e,t){return e=a0(e),te(dr.count(pt(e),e)+(pt(e).getUTCDay()===4),t,2)}function aT(e){return e.getUTCDay()}function oT(e,t){return te(Mi.count(pt(e)-1,e),t,2)}function uT(e,t){return te(e.getUTCFullYear()%100,t,2)}function cT(e,t){return e=a0(e),te(e.getUTCFullYear()%100,t,2)}function sT(e,t){return te(e.getUTCFullYear()%1e4,t,4)}function lT(e,t){var r=e.getUTCDay();return e=r>=4||r===0?dr(e):dr.ceil(e),te(e.getUTCFullYear()%1e4,t,4)}function fT(){return"+0000"}function Sy(){return"%"}function Ay(e){return+e}function Py(e){return Math.floor(+e/1e3)}var Zt,o0,u0;hT({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
12ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function hT(e){return Zt=hP(e),o0=Zt.format,Zt.parse,u0=Zt.utcFormat,Zt.utcParse,Zt}function pT(e){return new Date(e)}function dT(e){return e instanceof Date?+e:+new Date(+e)}function Wf(e,t,r,n,i,a,o,u,c,s){var f=jf(),l=f.invert,h=f.domain,p=s(".%L"),y=s(":%S"),v=s("%I:%M"),d=s("%I %p"),b=s("%a %d"),x=s("%b %d"),w=s("%B"),O=s("%Y");function m(g){return(c(g)<g?p:u(g)<g?y:o(g)<g?v:a(g)<g?d:n(g)<g?i(g)<g?b:x:r(g)<g?w:O)(g)}return f.invert=function(g){return new Date(l(g))},f.domain=function(g){return arguments.length?h(Array.from(g,dT)):h().map(pT)},f.ticks=function(g){var _=h();return e(_[0],_[_.length-1],g??10)},f.tickFormat=function(g,_){return _==null?m:s(_)},f.nice=function(g){var _=h();return(!g||typeof g.range!="function")&&(g=t(_[0],_[_.length-1],g??10)),g?h(Kb(_,g)):f},f.copy=function(){return Un(f,Wf(e,t,r,n,i,a,o,u,c,s))},f}function vT(){return Ge.apply(Wf(lP,fP,ht,Ff,ga,Wn,Bf,Nf,kt,o0).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function yT(){return Ge.apply(Wf(cP,sP,pt,Uf,ba,ma,Lf,qf,kt,u0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function xa(){var e=0,t=1,r,n,i,a,o=Ee,u=!1,c;function s(l){return l==null||isNaN(l=+l)?c:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}s.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(l){return arguments.length?(u=!!l,s):u},s.interpolator=function(l){return arguments.length?(o=l,s):o};function f(l){return function(h){var p,y;return arguments.length?([p,y]=h,o=l(p,y),s):[o(0),o(1)]}}return s.range=f(Ir),s.rangeRound=f(Ef),s.unknown=function(l){return arguments.length?(c=l,s):c},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),s}}function Pt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function c0(){var e=At(xa()(Ee));return e.copy=function(){return Pt(e,c0())},mt.apply(e,arguments)}function s0(){var e=$f(xa()).domain([1,10]);return e.copy=function(){return Pt(e,s0()).base(e.base())},mt.apply(e,arguments)}function l0(){var e=If(xa());return e.copy=function(){return Pt(e,l0()).constant(e.constant())},mt.apply(e,arguments)}function zf(){var e=Df(xa());return e.copy=function(){return Pt(e,zf()).exponent(e.exponent())},mt.apply(e,arguments)}function mT(){return zf.apply(null,arguments).exponent(.5)}function f0(){var e=[],t=Ee;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ln(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(wt),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)=>nA(e,a/n))},r.copy=function(){return f0(t).domain(e)},mt.apply(r,arguments)}function wa(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,s=Ee,f,l=!1,h;function p(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:c),s(l?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(v){return arguments.length?(l=!!v,p):l},p.interpolator=function(v){return arguments.length?(s=v,p):s};function y(v){return function(d){var b,x,w;return arguments.length?([b,x,w]=d,s=jA(v,[b,x,w]),p):[s(0),s(.5),s(1)]}}return p.range=y(Ir),p.rangeRound=y(Ef),p.unknown=function(v){return arguments.length?(h=v,p):h},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function h0(){var e=At(wa()(Ee));return e.copy=function(){return Pt(e,h0())},mt.apply(e,arguments)}function p0(){var e=$f(wa()).domain([.1,1,10]);return e.copy=function(){return Pt(e,p0()).base(e.base())},mt.apply(e,arguments)}function d0(){var e=If(wa());return e.copy=function(){return Pt(e,d0()).constant(e.constant())},mt.apply(e,arguments)}function Hf(){var e=Df(wa());return e.copy=function(){return Pt(e,Hf()).exponent(e.exponent())},mt.apply(e,arguments)}function gT(){return Hf.apply(null,arguments).exponent(.5)}const Ty=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:cn,scaleDiverging:h0,scaleDivergingLog:p0,scaleDivergingPow:Hf,scaleDivergingSqrt:gT,scaleDivergingSymlog:d0,scaleIdentity:Gb,scaleImplicit:ol,scaleLinear:Ti,scaleLog:Xb,scaleOrdinal:Af,scalePoint:Yr,scalePow:Rf,scaleQuantile:Zb,scaleQuantize:Jb,scaleRadial:Yb,scaleSequential:c0,scaleSequentialLog:s0,scaleSequentialPow:zf,scaleSequentialQuantile:f0,scaleSequentialSqrt:mT,scaleSequentialSymlog:l0,scaleSqrt:JA,scaleSymlog:Vb,scaleThreshold:Qb,scaleTime:vT,scaleUtc:yT,tickFormat:Hb},Symbol.toStringTag,{value:"Module"}));var es,Ey;function v0(){if(Ey)return es;Ey=1;var e=jr();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],c=n(u);if(c!=null&&(s===void 0?c===c&&!e(c):i(c,s)))var s=c,f=u}return f}return es=t,es}var ts,jy;function bT(){if(jy)return ts;jy=1;function e(t,r){return t>r}return ts=e,ts}
vendor: 66,347 bytes, lines 12-38
12var rs,My;function xT(){if(My)return rs;My=1;var e=v0(),t=bT(),r=Cr();function n(i){return i&&i.length?e(i,r,t):void 0}return rs=n,rs}var wT=xT();const Oa=se(wT);var ns,Cy;function OT(){if(Cy)return ns;Cy=1;function e(t,r){return t<r}return ns=e,ns}var is,$y;function _T(){if($y)return is;$y=1;var e=v0(),t=OT(),r=Cr();function n(i){return i&&i.length?e(i,r,t):void 0}return is=n,is}var ST=_T();const _a=se(ST);var as,Iy;function AT(){if(Iy)return as;Iy=1;var e=uf(),t=St(),r=Sb(),n=$e();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return as=i,as}var os,Dy;function PT(){if(Dy)return os;Dy=1;var e=Ob(),t=AT();function r(n,i){return e(t(n,i),1)}return os=r,os}var TT=PT();const ET=se(TT);var us,Ry;function jT(){if(Ry)return us;Ry=1;var e=xf();function t(r,n){return e(r,n)}return us=t,us}var MT=jT();const Sa=se(MT);var Dr=1e9,CT={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Kf,ce=!0,He="[DecimalError] ",Lt=He+"Invalid argument: ",Gf=He+"Exponent out of range: ",Rr=Math.floor,It=Math.pow,$T=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ne,Oe=1e7,ue=7,y0=9007199254740991,Ci=Rr(y0/ue),W={};W.absoluteValue=W.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};W.comparedTo=W.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};W.decimalPlaces=W.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ue;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};W.dividedBy=W.div=function(e){return lt(this,new this.constructor(e))};W.dividedToIntegerBy=W.idiv=function(e){var t=this,r=t.constructor;return ie(lt(t,new r(e),0,1),r.precision)};W.equals=W.eq=function(e){return!this.cmp(e)};W.exponent=function(){return ve(this)};W.greaterThan=W.gt=function(e){return this.cmp(e)>0};W.greaterThanOrEqualTo=W.gte=function(e){return this.cmp(e)>=0};W.isInteger=W.isint=function(){return this.e>this.d.length-2};W.isNegative=W.isneg=function(){return this.s<0};W.isPositive=W.ispos=function(){return this.s>0};W.isZero=function(){return this.s===0};W.lessThan=W.lt=function(e){return this.cmp(e)<0};W.lessThanOrEqualTo=W.lte=function(e){return this.cmp(e)<1};W.logarithm=W.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ne))throw Error(He+"NaN");if(r.s<1)throw Error(He+(r.s?"NaN":"-Infinity"));return r.eq(Ne)?new n(0):(ce=!1,t=lt(pn(r,a),pn(e,a),a),ce=!0,ie(t,i))};W.minus=W.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?b0(t,e):m0(t,(e.s=-e.s,e))};W.modulo=W.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(He+"NaN");return r.s?(ce=!1,t=lt(r,e,0,1).times(e),ce=!0,r.minus(t)):ie(new n(r),i)};W.naturalExponential=W.exp=function(){return g0(this)};W.naturalLogarithm=W.ln=function(){return pn(this)};W.negated=W.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};W.plus=W.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?m0(t,e):b0(t,(e.s=-e.s,e))};W.precision=W.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Lt+e);if(t=ve(i)+1,n=i.d.length-1,r=n*ue+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};W.squareRoot=W.sqrt=function(){var e,t,r,n,i,a,o,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(He+"NaN")}for(e=ve(u),ce=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=et(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Rr((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(lt(u,a,o+2)).times(.5),et(a.d).slice(0,o)===(t=et(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ie(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return ce=!0,ie(n,r)};W.times=W.mul=function(e){var t,r,n,i,a,o,u,c,s,f=this,l=f.constructor,h=f.d,p=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,c=h.length,s=p.length,c<s&&(a=h,h=p,p=a,o=c,c=s,s=o),a=[],o=c+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=c+n;i>n;)u=a[i]+p[n]*h[i-n-1]+t,a[i--]=u%Oe|0,t=u/Oe|0;a[i]=(a[i]+t)%Oe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ce?ie(e,l.precision):e};W.toDecimalPlaces=W.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(nt(e,0,Dr),t===void 0?t=n.rounding:nt(t,0,8),ie(r,e+ve(r)+1,t))};W.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Wt(n,!0):(nt(e,0,Dr),t===void 0?t=i.rounding:nt(t,0,8),n=ie(new i(n),e+1,t),r=Wt(n,!0,e+1)),r};W.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Wt(i):(nt(e,0,Dr),t===void 0?t=a.rounding:nt(t,0,8),n=ie(new a(i),e+ve(i)+1,t),r=Wt(n.abs(),!1,e+ve(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};W.toInteger=W.toint=function(){var e=this,t=e.constructor;return ie(new t(e),ve(e)+1,t.rounding)};W.toNumber=function(){return+this};W.toPower=W.pow=function(e){var t,r,n,i,a,o,u=this,c=u.constructor,s=12,f=+(e=new c(e));if(!e.s)return new c(Ne);if(u=new c(u),!u.s){if(e.s<1)throw Error(He+"Infinity");return u}if(u.eq(Ne))return u;if(n=c.precision,e.eq(Ne))return ie(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=y0){for(i=new c(Ne),t=Math.ceil(n/ue+4),ce=!1;r%2&&(i=i.times(u),Ny(i.d,t)),r=Rr(r/2),r!==0;)u=u.times(u),Ny(u.d,t);return ce=!0,e.s<0?new c(Ne).div(i):ie(i,n)}}else if(a<0)throw Error(He+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,ce=!1,i=e.times(pn(u,n+s)),ce=!0,i=g0(i),i.s=a,i};W.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ve(i),n=Wt(i,r<=a.toExpNeg||r>=a.toExpPos)):(nt(e,1,Dr),t===void 0?t=a.rounding:nt(t,0,8),i=ie(new a(i),e,t),r=ve(i),n=Wt(i,e<=r||r<=a.toExpNeg,e)),n};W.toSignificantDigits=W.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(nt(e,1,Dr),t===void 0?t=n.rounding:nt(t,0,8)),ie(new n(r),e,t)};W.toString=W.valueOf=W.val=W.toJSON=W[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ve(e),r=e.constructor;return Wt(e,t<=r.toExpNeg||t>=r.toExpPos)};function m0(e,t){var r,n,i,a,o,u,c,s,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),ce?ie(t,l):t;if(c=e.d,s=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,u=s.length):(n=s,i=o,u=c.length),o=Math.ceil(l/ue),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=c.length,a=s.length,u-a<0&&(a=u,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/Oe|0,c[a]%=Oe;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,ce?ie(t,l):t}function nt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Lt+e)}function et(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=ue-n.length,r&&(a+=bt(r)),a+=n;o=e[t],n=o+"",r=ue-n.length,r&&(a+=bt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var lt=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%Oe|0,o=a/Oe|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,c;if(a!=o)c=a>o?1:-1;else for(u=c=0;u<a;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Oe+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,c,s,f,l,h,p,y,v,d,b,x,w,O,m,g,_,S,A=n.constructor,$=n.s==i.s?1:-1,E=n.d,P=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(He+"Division by zero");for(c=n.e-i.e,_=P.length,m=E.length,p=new A($),y=p.d=[],s=0;P[s]==(E[s]||0);)++s;if(P[s]>(E[s]||0)&&--c,a==null?x=a=A.precision:o?x=a+(ve(n)-ve(i))+1:x=a,x<0)return new A(0);if(x=x/ue+2|0,s=0,_==1)for(f=0,P=P[0],x++;(s<m||f)&&x--;s++)w=f*Oe+(E[s]||0),y[s]=w/P|0,f=w%P|0;else{for(f=Oe/(P[0]+1)|0,f>1&&(P=e(P,f),E=e(E,f),_=P.length,m=E.length),O=_,v=E.slice(0,_),d=v.length;d<_;)v[d++]=0;S=P.slice(),S.unshift(0),g=P[0],P[1]>=Oe/2&&++g;do f=0,u=t(P,v,_,d),u<0?(b=v[0],_!=d&&(b=b*Oe+(v[1]||0)),f=b/g|0,f>1?(f>=Oe&&(f=Oe-1),l=e(P,f),h=l.length,d=v.length,u=t(l,v,h,d),u==1&&(f--,r(l,_<h?S:P,h))):(f==0&&(u=f=1),l=P.slice()),h=l.length,h<d&&l.unshift(0),r(v,l,d),u==-1&&(d=v.length,u=t(P,v,_,d),u<1&&(f++,r(v,_<d?S:P,d))),d=v.length):u===0&&(f++,v=[0]),y[s++]=f,u&&v[0]?v[d++]=E[O]||0:(v=[E[O]],d=1);while((O++<m||v[0]!==void 0)&&x--)}return y[0]||y.shift(),p.e=c,ie(p,o?a+ve(p)+1:a)}})();function g0(e,t){var r,n,i,a,o,u,c=0,s=0,f=e.constructor,l=f.precision;if(ve(e)>16)throw Error(Gf+ve(e));if(!e.s)return new f(Ne);for(ce=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(It(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Ne),f.precision=u;;){if(i=ie(i.times(e),u),r=r.times(++c),o=a.plus(lt(i,r,u)),et(o.d).slice(0,u)===et(a.d).slice(0,u)){for(;s--;)a=ie(a.times(a),u);return f.precision=l,t==null?(ce=!0,ie(a,l)):a}a=o}}function ve(e){for(var t=e.e*ue,r=e.d[0];r>=10;r/=10)t++;return t}function cs(e,t,r){if(t>e.LN10.sd())throw ce=!0,r&&(e.precision=r),Error(He+"LN10 precision limit exceeded");return ie(new e(e.LN10),t)}function bt(e){for(var t="";e--;)t+="0";return t}function pn(e,t){var r,n,i,a,o,u,c,s,f,l=1,h=10,p=e,y=p.d,v=p.constructor,d=v.precision;if(p.s<1)throw Error(He+(p.s?"NaN":"-Infinity"));if(p.eq(Ne))return new v(0);if(t==null?(ce=!1,s=d):s=t,p.eq(10))return t==null&&(ce=!0),cs(v,s);if(s+=h,v.precision=s,r=et(y),n=r.charAt(0),a=ve(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=et(p.d),n=r.charAt(0),l++;a=ve(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return c=cs(v,s+2,d).times(a+""),p=pn(new v(n+"."+r.slice(1)),s-h).plus(c),v.precision=d,t==null?(ce=!0,ie(p,d)):p;for(u=o=p=lt(p.minus(Ne),p.plus(Ne),s),f=ie(p.times(p),s),i=3;;){if(o=ie(o.times(f),s),c=u.plus(lt(o,new v(i),s)),et(c.d).slice(0,s)===et(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(cs(v,s+2,d).times(a+""))),u=lt(u,new v(l),s),v.precision=d,t==null?(ce=!0,ie(u,d)):u;u=c,i+=2}}function ky(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Rr(r/ue),e.d=[],n=(r+1)%ue,r<0&&(n+=ue),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ue;n<i;)e.d.push(+t.slice(n,n+=ue));t=t.slice(n),n=ue-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ce&&(e.e>Ci||e.e<-Ci))throw Error(Gf+r)}else e.s=0,e.e=0,e.d=[0];return e}function ie(e,t,r){var n,i,a,o,u,c,s,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=ue,i=t,s=l[f=0];else{if(f=Math.ceil((n+1)/ue),a=l.length,f>=a)return e;for(s=a=l[f],o=1;a>=10;a/=10)o++;n%=ue,i=n-ue+o}if(r!==void 0&&(a=It(10,o-i-1),u=s/a%10|0,c=t<0||l[f+1]!==void 0||s%a,c=r<4?(u||c)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?s/It(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return c?(a=ve(e),l.length=1,t=t-a-1,l[0]=It(10,(ue-t%ue)%ue),e.e=Rr(-t/ue)||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=It(10,ue-n),l[f]=i>0?(s/It(10,o-i)%It(10,i)|0)*a:0),c)for(;;)if(f==0){(l[0]+=a)==Oe&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Oe)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(ce&&(e.e>Ci||e.e<-Ci))throw Error(Gf+ve(e));return e}function b0(e,t){var r,n,i,a,o,u,c,s,f,l,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),ce?ie(t,p):t;if(c=e.d,l=t.d,n=t.e,s=e.e,c=c.slice(),o=s-n,o){for(f=o<0,f?(r=c,o=-o,u=l.length):(r=l,n=s,u=c.length),i=Math.max(Math.ceil(p/ue),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(c[i]!=l[i]){f=c[i]<l[i];break}o=0}for(f&&(r=c,c=l,l=r,t.s=-t.s),u=c.length,i=l.length-u;i>0;--i)c[u++]=0;for(i=l.length;i>o;){if(c[--i]<l[i]){for(a=i;a&&c[--a]===0;)c[a]=Oe-1;--c[a],c[i]+=Oe}c[i]-=l[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,ce?ie(t,p):t):new h(0)}function Wt(e,t,r){var n,i=ve(e),a=et(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+bt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+bt(-i-1)+a,r&&(n=r-o)>0&&(a+=bt(n))):i>=o?(a+=bt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+bt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=bt(n))),e.s<0?"-"+a:a}function Ny(e,t){if(e.length>t)return e.length=t,!0}function x0(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(Lt+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return ky(o,a.toString())}else if(typeof a!="string")throw Error(Lt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,$T.test(a))ky(o,a);else throw Error(Lt+a)}if(i.prototype=W,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=x0,i.config=i.set=IT,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 IT(e){if(!e||typeof e!="object")throw Error(He+"Object expected");var t,r,n,i=["precision",1,Dr,"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(Rr(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Lt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Lt+r+": "+n);return this}var Kf=x0(CT);Ne=new Kf(1);const ne=Kf;function DT(e){return qT(e)||NT(e)||kT(e)||RT()}function RT(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kT(e,t){if(e){if(typeof e=="string")return ll(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 ll(e,t)}}function NT(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function qT(e){if(Array.isArray(e))return ll(e)}function ll(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 BT=function(t){return t},w0={},O0=function(t){return t===w0},qy=function(t){return function r(){return arguments.length===0||arguments.length===1&&O0(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},LT=function e(t,r){return t===1?r:qy(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==w0}).length;return o>=t?r.apply(void 0,i):e(t-o,qy(function(){for(var u=arguments.length,c=new Array(u),s=0;s<u;s++)c[s]=arguments[s];var f=i.map(function(l){return O0(l)?c.shift():l});return r.apply(void 0,DT(f).concat(c))}))})},Aa=function(t){return LT(t.length,t)},fl=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},FT=Aa(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),UT=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return BT;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,c){return c(u)},a.apply(void 0,arguments))}},hl=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},_0=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,c){return u===r[c]})||(r=a,n=t.apply(void 0,a)),n}};function WT(e){var t;return e===0?t=1:t=Math.floor(new ne(e).abs().log(10).toNumber())+1,t}function zT(e,t,r){for(var n=new ne(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var HT=Aa(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),GT=Aa(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),KT=Aa(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Pa={rangeStep:zT,getDigitCount:WT,interpolateNumber:HT,uninterpolateNumber:GT,uninterpolateTruncation:KT};function pl(e){return YT(e)||VT(e)||S0(e)||XT()}function XT(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 14In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VT(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function YT(e){if(Array.isArray(e))return dl(e)}function dn(e,t){return QT(e)||JT(e,t)||S0(e,t)||ZT()}function ZT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 15In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S0(e,t){if(e){if(typeof e=="string")return dl(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 dl(e,t)}}function dl(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 JT(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function QT(e){if(Array.isArray(e))return e}function A0(e){var t=dn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function P0(e,t,r){if(e.lte(0))return new ne(0);var n=Pa.getDigitCount(e.toNumber()),i=new ne(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ne(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new ne(Math.ceil(c))}function eE(e,t,r){var n=1,i=new ne(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ne(10).pow(Pa.getDigitCount(e)-1),i=new ne(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ne(Math.floor(e)))}else e===0?i=new ne(Math.floor((t-1)/2)):r||(i=new ne(Math.floor(e)));var o=Math.floor((t-1)/2),u=UT(FT(function(c){return i.add(new ne(c-o).mul(n)).toNumber()}),fl);return u(0,t)}function T0(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 ne(0),tickMin:new ne(0),tickMax:new ne(0)};var a=P0(new ne(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ne(0):(o=new ne(e).add(t).div(2),o=o.sub(new ne(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ne(t).sub(o).div(a).toNumber()),s=u+c+1;return s>r?T0(e,t,r,n,i+1):(s<r&&(c=t>0?c+(r-s):c,u=t>0?u:u+(r-s)),{step:a,tickMin:o.sub(new ne(u).mul(a)),tickMax:o.add(new ne(c).mul(a))})}function tE(e){var t=dn(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=A0([r,n]),c=dn(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(pl(fl(0,i-1).map(function(){return 1/0}))):[].concat(pl(fl(0,i-1).map(function(){return-1/0})),[f]);return r>n?hl(l):l}if(s===f)return eE(s,i,a);var h=T0(s,f,o,a),p=h.step,y=h.tickMin,v=h.tickMax,d=Pa.rangeStep(y,v.add(new ne(.1).mul(p)),p);return r>n?hl(d):d}function rE(e,t){var r=dn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=A0([n,i]),u=dn(o,2),c=u[0],s=u[1];if(c===-1/0||s===1/0)return[n,i];if(c===s)return[c];var f=Math.max(t,2),l=P0(new ne(s).sub(c).div(f-1),a,0),h=[].concat(pl(Pa.rangeStep(new ne(c),new ne(s).sub(new ne(.99).mul(l)),l)),[s]);return n>i?hl(h):h}var nE=_0(tE),iE=_0(rE),aE="Invariant failed";function zt(e,t){throw new Error(aE)}var oE=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function vr(e){"@babel/helpers - typeof";return vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vr(e)}function $i(){return $i=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},$i.apply(this,arguments)}function uE(e,t){return fE(e)||lE(e,t)||sE(e,t)||cE()}function cE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 16In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sE(e,t){if(e){if(typeof e=="string")return By(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 By(e,t)}}function By(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 lE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function fE(e){if(Array.isArray(e))return e}function hE(e,t){if(e==null)return{};var r=pE(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 pE(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 dE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vE(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,M0(n.key),n)}}function yE(e,t,r){return t&&vE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mE(e,t,r){return t=Ii(t),gE(e,E0()?Reflect.construct(t,r||[],Ii(e).constructor):t.apply(e,r))}function gE(e,t){if(t&&(vr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bE(e)}function bE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E0=function(){return!!e})()}function Ii(e){return Ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ii(e)}function xE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vl(e,t)}function vl(e,t){return vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vl(e,t)}function j0(e,t,r){return t=M0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M0(e){var t=wE(e,"string");return vr(t)=="symbol"?t:t+""}function wE(e,t){if(vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zn=(function(e){function t(){return dE(this,t),mE(this,t,arguments)}return xE(t,e),yE(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,c=n.data,s=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,h=hE(n,oE),p=J(h,!1);this.props.direction==="x"&&f.type!=="number"&&zt();var y=c.map(function(v){var d=s(v,u),b=d.x,x=d.y,w=d.value,O=d.errorVal;if(!O)return null;var m=[],g,_;if(Array.isArray(O)){var S=uE(O,2);g=S[0],_=S[1]}else g=_=O;if(a==="vertical"){var A=f.scale,$=x+i,E=$+o,P=$-o,j=A(w-g),C=A(w+_);m.push({x1:C,y1:E,x2:C,y2:P}),m.push({x1:j,y1:$,x2:C,y2:$}),m.push({x1:j,y1:E,x2:j,y2:P})}else if(a==="horizontal"){var M=l.scale,D=b+i,R=D-o,q=D+o,L=M(w-g),z=M(w+_);m.push({x1:R,y1:z,x2:q,y2:z}),m.push({x1:D,y1:L,x2:D,y2:z}),m.push({x1:R,y1:L,x2:q,y2:L})}return T.createElement(he,$i({className:"recharts-errorBar",key:"bar-".concat(m.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},p),m.map(function(G){return T.createElement("line",$i({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return T.createElement(he,{className:"recharts-errorBars"},y)}}])})(T.Component);j0(zn,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});j0(zn,"displayName","ErrorBar");function vn(e){"@babel/helpers - typeof";return vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(e)}function Ly(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 Ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ly(Object(r),!0).forEach(function(n){OE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ly(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OE(e,t,r){return t=_E(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _E(e){var t=SE(e,"string");return vn(t)=="symbol"?t:t+""}function SE(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var C0=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=ke(r,ir);if(!o)return null;var u=ir.defaultProps,c=u!==void 0?Ct(Ct({},u),o.props):{},s;return o.props&&o.props.payload?s=o.props&&o.props.payload:a==="children"?s=(n||[]).reduce(function(f,l){var h=l.item,p=l.props,y=p.sectors||p.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):s=(n||[]).map(function(f){var l=f.item,h=l.type.defaultProps,p=h!==void 0?Ct(Ct({},h),l.props):{},y=p.dataKey,v=p.name,d=p.legendType,b=p.hide;return{inactive:b,dataKey:y,type:c.iconType||d||"square",color:Xf(l),value:v||y,payload:p}}),Ct(Ct(Ct({},c),ir.getWithHeight(o,i)),{},{payload:s,item:o})};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 Fy(e){return EE(e)||TE(e)||PE(e)||AE()}function AE(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 17In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PE(e,t){if(e){if(typeof e=="string")return yl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yl(e,t)}}function TE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EE(e){if(Array.isArray(e))return yl(e)}function yl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Uy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uy(Object(r),!0).forEach(function(n){or(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function or(e,t,r){return t=jE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jE(e){var t=ME(e,"string");return yn(t)=="symbol"?t:t+""}function ME(e,t){if(yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qe(e,t,r){return Y(e)||Y(t)?r:xe(t)?We(e,t,r):Z(t)?t(e):r}function Zr(e,t,r,n){var i=ET(e,function(u){return qe(u,t)});if(r==="number"){var a=i.filter(function(u){return B(u)||parseFloat(u)});return a.length?[_a(a),Oa(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Y(u)}):i;return o.map(function(u){return xe(u)||u instanceof Date?u:""})}var CE=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,s=0;s<u;s++){var f=s>0?i[s-1].coordinate:i[u-1].coordinate,l=i[s].coordinate,h=s>=u-1?i[0].coordinate:i[s+1].coordinate,p=void 0;if(Je(l-f)!==Je(h-l)){var y=[];if(Je(h-l)===Je(c[1]-c[0])){p=h;var v=l+c[1]-c[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{p=f;var d=h+c[1]-c[0];y[0]=Math.min(l,(d+l)/2),y[1]=Math.max(l,(d+l)/2)}var b=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[s].index;break}}else{var x=Math.min(f,h),w=Math.max(f,h);if(t>(x+l)/2&&t<=(w+l)/2){o=i[s].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Xf=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?fe(fe({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:u;break;default:c=u;break}return c},$E=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),c=0,s=u.length;c<s;c++)for(var f=a[u[c]].stackGroups,l=Object.keys(f),h=0,p=l.length;h<p;h++){var y=f[l[h]],v=y.items,d=y.cateAxisId,b=v.filter(function(_){return st(_.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?fe(fe({},x),b[0].props):b[0].props,O=w.barSize,m=w[d];o[m]||(o[m]=[]);var g=Y(O)?r:O;o[m].push({item:b[0],stackList:b.slice(1),barSize:Y(g)?void 0:Ut(g,n,0)})}}return o},IE=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,c=o.length;if(c<1)return null;var s=Ut(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/c,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(c-1)*s,y>=i&&(y-=(c-1)*s,s=0),y>=i&&p>0&&(h=!0,p*=.9,y=c*p);var v=(i-y)/2>>0,d={offset:v-s,size:0};f=o.reduce(function(O,m){var g={item:m.item,position:{offset:d.offset+d.size+s,size:h?p:m.barSize}},_=[].concat(Fy(O),[g]);return d=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){_.push({item:S,position:d})}),_},l)}else{var b=Ut(n,i,0,!0);i-2*b-(c-1)*s<=0&&(s=0);var x=(i-2*b-(c-1)*s)/c;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,g){var _=[].concat(Fy(O),[{item:m.item,position:{offset:b+(x+s)*g+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){_.push({item:S,position:_[_.length-1].position})}),_},l)}return f},DE=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=C0({children:a,legendWidth:c});if(s){var f=i||{},l=f.width,h=f.height,p=s.align,y=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&p!=="center"&&B(t[p]))return fe(fe({},t),{},or({},p,t[p]+(l||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&y!=="middle"&&B(t[y]))return fe(fe({},t),{},or({},y,t[y]+(h||0)))}return t},RE=function(t,r,n){return Y(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},$0=function(t,r,n,i,a){var o=r.props.children,u=ze(o,zn).filter(function(s){return RE(i,a,s.props.direction)});if(u&&u.length){var c=u.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var l=qe(f,n);if(Y(l))return s;var h=Array.isArray(l)?[_a(l),Oa(l)]:[l,l],p=c.reduce(function(y,v){var d=qe(f,v,0),b=h[0]-Math.abs(Array.isArray(d)?d[0]:d),x=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(b,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(p[0],s[0]),Math.max(p[1],s[1])]},[1/0,-1/0])}return null},kE=function(t,r,n,i,a){var o=r.map(function(u){return $0(t,u,n,a,i)}).filter(function(u){return!Y(u)});return o&&o.length?o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},I0=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&$0(t,c,s,i)||Zr(t,s,n,a)});if(n==="number")return o.reduce(function(c,s){return[Math.min(c[0],s[0]),Math.max(c[1],s[1])]},[1/0,-1/0]);var u={};return o.reduce(function(c,s){for(var f=0,l=s.length;f<l;f++)u[s[f]]||(u[s[f]]=!0,c.push(s[f]));return c},[])},D0=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Nt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,s=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(s=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?Je(u[0]-u[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var h=a?a.indexOf(l):l;return{coordinate:i(h)+s,value:l,offset:s}});return f.filter(function(l){return!Nn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+s,value:l,index:h,offset:s}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+s,value:l,offset:s}}):i.domain().map(function(l,h){return{coordinate:i(l)+s,value:a?a[l]:l,index:h,offset:s}})},ss=new WeakMap,ei=function(t,r){if(typeof r!="function")return t;ss.has(t)||ss.set(t,new WeakMap);var n=ss.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},NE=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:cn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Ti(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Yr(),realScaleType:"point"}:a==="category"?{scale:cn(),realScaleType:"band"}:{scale:Ti(),realScaleType:"linear"};if(Ft(i)){var c="scale".concat(sa(i));return{scale:(Ty[c]||Yr)(),realScaleType:Ty[c]?c:"point"}}return Z(i)?{scale:i}:{scale:Yr(),realScaleType:"point"}},Wy=1e-4,qE=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])-Wy,o=Math.max(i[0],i[1])+Wy,u=t(r[0]),c=t(r[n-1]);(u<a||u>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},BE=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},LE=function(t,r){if(!r||r.length!==2||!B(r[0])||!B(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(!B(t[0])||t[0]<n)&&(a[0]=n),(!B(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},FE=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var c=Nn(t[u][n][1])?t[u][n][0]:t[u][n][1];c>=0?(t[u][n][0]=a,t[u][n][1]=a+c,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+c,o=t[u][n][1])}},UE=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=Nn(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},WE={sign:FE,expand:jO,none:ur,silhouette:MO,wiggle:CO,positive:UE},zE=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=WE[n],o=EO().keys(i).value(function(u,c){return+qe(u,c,0)}).order(Gs).offset(a);return o(t)},HE=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,c={},s=u.reduce(function(l,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?fe(fe({},h.type.defaultProps),h.props):h.props,v=y.stackId,d=y.hide;if(d)return l;var b=y[n],x=l[b]||{hasStack:!1,stackGroups:{}};if(xe(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[qn("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return fe(fe({},l),{},or({},b,x))},c),f={};return Object.keys(s).reduce(function(l,h){var p=s[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,d){var b=p.stackGroups[d];return fe(fe({},v),{},or({},d,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:zE(t,b.items,a)}))},y)}return fe(fe({},l),{},or({},h,p))},f)},GE=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=nE(s,a,u);return t.domain([_a(f),Oa(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=iE(l,a,u);return{niceTicks:h}}return null};function zy(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Y(i[t.dataKey])){var u=oi(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=qe(i,Y(o)?t.dataKey:o);return Y(c)?null:t.scale(c)}var Hy=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var c=qe(o,r.dataKey,r.domain[u]);return Y(c)?null:r.scale(c)-a/2+i},KE=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]},XE=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?fe(fe({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(xe(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},VE=function(t){return t.reduce(function(r,n){return[_a(n.concat([r[0]]).filter(B)),Oa(n.concat([r[1]]).filter(B))]},[1/0,-1/0])},R0=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,c=u.reduce(function(s,f){var l=VE(f.slice(r,n+1));return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Gy=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ky=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ml=function(t,r,n){if(Z(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(B(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Gy.test(t[0])){var a=+Gy.exec(t[0])[1];i[0]=r[0]-a}else Z(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(B(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Ky.test(t[1])){var o=+Ky.exec(t[1])[1];i[1]=r[1]+o}else Z(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Di=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=Of(r,function(l){return l.coordinate}),o=1/0,u=1,c=a.length;u<c;u++){var s=a[u],f=a[u-1];o=Math.min((s.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Xy=function(t,r,n){return!t||!t.length||Sa(t,We(n,"type.defaultProps.domain"))?r:t},k0=function(t,r){var n=t.type.defaultProps?fe(fe({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,c=n.tooltipType,s=n.chartType,f=n.hide;return fe(fe({},J(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Xf(t),value:qe(r,i),type:c,payload:r,chartType:s,hide:f})};function mn(e){"@babel/helpers - typeof";return mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mn(e)}function Vy(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 Yy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vy(Object(r),!0).forEach(function(n){YE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YE(e,t,r){return t=ZE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZE(e){var t=JE(e,"string");return mn(t)=="symbol"?t:t+""}function JE(e,t){if(mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ri=Math.PI/180,QE=function(t){return t*180/Math.PI},Ae=function(t,r,n,i){return{x:t+Math.cos(-Ri*i)*n,y:r+Math.sin(-Ri*i)*n}},ej=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},tj=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=ej({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var c=(n-a)/u,s=Math.acos(c);return i>o&&(s=2*Math.PI-s),{radius:u,angle:QE(s),angleInRadian:s}},rj=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}},nj=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},Zy=function(t,r){var n=t.x,i=t.y,a=tj({x:n,y:i},r),o=a.radius,u=a.angle,c=r.innerRadius,s=r.outerRadius;if(o<c||o>s)return!1;if(o===0)return!0;var f=rj(r),l=f.startAngle,h=f.endAngle,p=u,y;if(l<=h){for(;p>h;)p-=360;for(;p<l;)p+=360;y=p>=l&&p<=h}else{for(;p>l;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=l}return y?Yy(Yy({},r),{},{radius:o,angle:nj(p,r)}):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)}var ij=["offset"];function aj(e){return sj(e)||cj(e)||uj(e)||oj()}function oj(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uj(e,t){if(e){if(typeof e=="string")return gl(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 gl(e,t)}}function cj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sj(e){if(Array.isArray(e))return gl(e)}function gl(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 lj(e,t){if(e==null)return{};var r=fj(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 fj(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 Jy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jy(Object(r),!0).forEach(function(n){hj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hj(e,t,r){return t=pj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pj(e){var t=dj(e,"string");return gn(t)=="symbol"?t:t+""}function dj(e,t){if(gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bn(){return bn=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},bn.apply(this,arguments)}var vj=function(t){var r=t.value,n=t.formatter,i=Y(t.children)?r:t.children;return Z(n)?n(i):i},yj=function(t,r){var n=Je(r-t),i=Math.min(Math.abs(r-t),360);return n*i},mj=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,c=a,s=c.cx,f=c.cy,l=c.innerRadius,h=c.outerRadius,p=c.startAngle,y=c.endAngle,v=c.clockWise,d=(l+h)/2,b=yj(p,y),x=b>=0?1:-1,w,O;i==="insideStart"?(w=p+x*o,O=v):i==="insideEnd"?(w=y-x*o,O=!v):i==="end"&&(w=y+x*o,O=v),O=b<=0?O:!O;var m=Ae(s,f,d,w),g=Ae(s,f,d,w+(O?1:-1)*359),_="M".concat(m.x,",").concat(m.y,` 19 A`).concat(d,",").concat(d,",0,1,").concat(O?0:1,`, 20 `).concat(g.x,",").concat(g.y),S=Y(t.id)?qn("recharts-radial-line-"):t.id;return T.createElement("text",bn({},n,{dominantBaseline:"central",className:ee("recharts-radial-bar-label",u)}),T.createElement("defs",null,T.createElement("path",{id:S,d:_})),T.createElement("textPath",{xlinkHref:"#".concat(S)},r))},gj=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,s=a.outerRadius,f=a.startAngle,l=a.endAngle,h=(f+l)/2;if(i==="outside"){var p=Ae(o,u,s+n,h),y=p.x,v=p.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var d=(c+s)/2,b=Ae(o,u,d,h),x=b.x,w=b.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},bj=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,c=o.y,s=o.width,f=o.height,l=f>=0?1:-1,h=l*i,p=l>0?"end":"start",y=l>0?"start":"end",v=s>=0?1:-1,d=v*i,b=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+s/2,y:c-l*i,textAnchor:"middle",verticalAnchor:p};return be(be({},w),n?{height:Math.max(c-n.y,0),width:s}:{})}if(a==="bottom"){var O={x:u+s/2,y:c+f+h,textAnchor:"middle",verticalAnchor:y};return be(be({},O),n?{height:Math.max(n.y+n.height-(c+f),0),width:s}:{})}if(a==="left"){var m={x:u-d,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return be(be({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var g={x:u+s+d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return be(be({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:f}:{})}var _=n?{width:s,height:f}:{};return a==="insideLeft"?be({x:u+d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?be({x:u+s-d,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideTop"?be({x:u+s/2,y:c+h,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?be({x:u+s/2,y:c+f-h,textAnchor:"middle",verticalAnchor:p},_):a==="insideTopLeft"?be({x:u+d,y:c+h,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?be({x:u+s-d,y:c+h,textAnchor:b,verticalAnchor:y},_):a==="insideBottomLeft"?be({x:u+d,y:c+f-h,textAnchor:x,verticalAnchor:p},_):a==="insideBottomRight"?be({x:u+s-d,y:c+f-h,textAnchor:b,verticalAnchor:p},_):Mr(a)&&(B(a.x)||Dt(a.x))&&(B(a.y)||Dt(a.y))?be({x:u+Ut(a.x,s),y:c+Ut(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):be({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},xj=function(t){return"cx"in t&&B(t.cx)};function Te(e){var t=e.offset,r=t===void 0?5:t,n=lj(e,ij),i=be({offset:r},n),a=i.viewBox,o=i.position,u=i.value,c=i.children,s=i.content,f=i.className,l=f===void 0?"":f,h=i.textBreakAll;if(!a||Y(u)&&Y(c)&&!N.isValidElement(s)&&!Z(s))return null;if(N.isValidElement(s))return N.cloneElement(s,i);var p;if(Z(s)){if(p=N.createElement(s,i),N.isValidElement(p))return p}else p=vj(i);var y=xj(a),v=J(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return mj(i,p,v);var d=y?gj(i):bj(i);return T.createElement(bi,bn({className:ee("recharts-label",l)},v,d,{breakAll:h}),p)}Te.displayName="Label";var N0=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,c=t.radius,s=t.innerRadius,f=t.outerRadius,l=t.x,h=t.y,p=t.top,y=t.left,v=t.width,d=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(B(v)&&B(d)){if(B(l)&&B(h))return{x:l,y:h,width:v,height:d};if(B(p)&&B(y))return{x:p,y,width:v,height:d}}return B(l)&&B(h)?{x:l,y:h,width:0,height:0}:B(r)&&B(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||c||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},wj=function(t,r){return t?t===!0?T.createElement(Te,{key:"label-implicit",viewBox:r}):xe(t)?T.createElement(Te,{key:"label-implicit",viewBox:r,value:t}):N.isValidElement(t)?t.type===Te?N.cloneElement(t,{key:"label-implicit",viewBox:r}):T.createElement(Te,{key:"label-implicit",content:t,viewBox:r}):Z(t)?T.createElement(Te,{key:"label-implicit",content:t,viewBox:r}):Mr(t)?T.createElement(Te,bn({viewBox:r},t,{key:"label-implicit"})):null:null},Oj=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=N0(t),o=ze(i,Te).map(function(c,s){return N.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=wj(t.label,r||a);return[u].concat(aj(o))};Te.parseViewBox=N0;Te.renderCallByParent=Oj;var ls,Qy;function _j(){if(Qy)return ls;Qy=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return ls=e,ls}var Sj=_j();const Aj=se(Sj);function xn(e){"@babel/helpers - typeof";return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(e)}var Pj=["valueAccessor"],Tj=["data","dataKey","clockWise","id","textBreakAll"];function Ej(e){return $j(e)||Cj(e)||Mj(e)||jj()}function jj(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mj(e,t){if(e){if(typeof e=="string")return bl(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 bl(e,t)}}function Cj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $j(e){if(Array.isArray(e))return bl(e)}function bl(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 ki(){return ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ki.apply(this,arguments)}function em(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 tm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?em(Object(r),!0).forEach(function(n){Ij(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):em(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ij(e,t,r){return t=Dj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dj(e){var t=Rj(e,"string");return xn(t)=="symbol"?t:t+""}function Rj(e,t){if(xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rm(e,t){if(e==null)return{};var r=kj(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 kj(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 Nj=function(t){return Array.isArray(t.value)?Aj(t.value):t.value};function Ot(e){var t=e.valueAccessor,r=t===void 0?Nj:t,n=rm(e,Pj),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=rm(n,Tj);return!i||!i.length?null:T.createElement(he,{className:"recharts-label-list"},i.map(function(f,l){var h=Y(a)?r(f,l):qe(f&&f.payload,a),p=Y(u)?{}:{id:"".concat(u,"-").concat(l)};return T.createElement(Te,ki({},J(f,!0),s,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:Te.parseViewBox(Y(o)?f:tm(tm({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}Ot.displayName="LabelList";function qj(e,t){return e?e===!0?T.createElement(Ot,{key:"labelList-implicit",data:t}):T.isValidElement(e)||Z(e)?T.createElement(Ot,{key:"labelList-implicit",data:t,content:e}):Mr(e)?T.createElement(Ot,ki({data:t},e,{key:"labelList-implicit"})):null:null}function Bj(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=ze(n,Ot).map(function(o,u){return N.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=qj(e.label,t);return[a].concat(Ej(i))}Ot.renderCallByParent=Bj;function wn(e){"@babel/helpers - typeof";return wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wn(e)}function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xl.apply(this,arguments)}function nm(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 im(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nm(Object(r),!0).forEach(function(n){Lj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lj(e,t,r){return t=Fj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fj(e){var t=Uj(e,"string");return wn(t)=="symbol"?t:t+""}function Uj(e,t){if(wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wj=function(t,r){var n=Je(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ti=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,c=t.cornerRadius,s=t.cornerIsExternal,f=c*(u?1:-1)+i,l=Math.asin(c/f)/Ri,h=s?a:a+o*l,p=Ae(r,n,f,h),y=Ae(r,n,i,h),v=s?a-o*l:a,d=Ae(r,n,f*Math.cos(l*Ri),v);return{center:p,circleTangency:y,lineTangency:d,theta:l}},q0=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,c=Wj(o,u),s=o+c,f=Ae(r,n,a,o),l=Ae(r,n,a,s),h="M ".concat(f.x,",").concat(f.y,` 22 A `).concat(a,",").concat(a,`,0, 23 `).concat(+(Math.abs(c)>180),",").concat(+(o>s),`, 24 `).concat(l.x,",").concat(l.y,` 25 `);if(i>0){var p=Ae(r,n,i,o),y=Ae(r,n,i,s);h+="L ".concat(y.x,",").concat(y.y,` 26 A `).concat(i,",").concat(i,`,0, 27 `).concat(+(Math.abs(c)>180),",").concat(+(o<=s),`, 28 `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},zj=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,c=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,l=Je(f-s),h=ti({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),p=h.circleTangency,y=h.lineTangency,v=h.theta,d=ti({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),b=d.circleTangency,x=d.lineTangency,w=d.theta,O=c?Math.abs(s-f):Math.abs(s-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,` 29 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 30 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 31 `):q0({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,` 32 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,` 33 A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(b.x,",").concat(b.y,` 34 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,` 35 `);if(i>0){var g=ti({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),_=g.circleTangency,S=g.lineTangency,A=g.theta,$=ti({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),E=$.circleTangency,P=$.lineTangency,j=$.theta,C=c?Math.abs(s-f):Math.abs(s-f)-A-j;if(C<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(P.x,",").concat(P.y,` 36 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(E.x,",").concat(E.y,` 37 A`).concat(i,",").concat(i,",0,").concat(+(C>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,` 38 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},Hj={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},B0=function(t){var r=im(im({},Hj),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,c=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,h=r.className;if(o<a||f===l)return null;var p=ee("recharts-sector",h),y=o-a,v=Ut(u,y,0,!0),d;return v>0&&Math.abs(f-l)<360?d=zj({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):d=q0({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),T.createElement("path",xl({},J(r,!0),{className:p,d,role:"img"}))};function On(e){"@babel/helpers - typeof";return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}function wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wl.apply(this,arguments)}function am(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 om(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?am(Object(r),!0).forEach(function(n){Gj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):am(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gj(e,t,r){return t=Kj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kj(e){var t=Xj(e,"string");return On(t)=="symbol"?t:t+""}function Xj(e,t){if(On(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(On(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var um={curveBasisClosed:mO,curveBasisOpen:gO,curveBasis:yO,curveBumpX:rO,curveBumpY:nO,curveLinearClosed:bO,curveLinear:fa,curveMonotoneX:xO,curveMonotoneY:wO,curveNatural:OO,curveStep:_O,curveStepAfter:AO,curveStepBefore:SO},ri=function(t){return t.x===+t.x&&t.y===+t.y},Ur=function(t){return t.x},Wr=function(t){return t.y},Vj=function(t,r){if(Z(t))return t;var n="curve".concat(sa(t));return(n==="curveMonotone"||n==="curveBump")&&r?um["".concat(n).concat(r==="vertical"?"Y":"X")]:um[n]||fa},Yj=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,c=t.connectNulls,s=c===void 0?!1:c,f=Vj(n,u),l=s?a.filter(function(v){return ri(v)}):a,h;if(Array.isArray(o)){var p=s?o.filter(function(v){return ri(v)}):o,y=l.map(function(v,d){return om(om({},v),{},{base:p[d]})});return u==="vertical"?h=Kn().y(Wr).x1(Ur).x0(function(v){return v.base.x}):h=Kn().x(Ur).y1(Wr).y0(function(v){return v.base.y}),h.defined(ri).curve(f),h(y)}return u==="vertical"&&B(o)?h=Kn().y(Wr).x1(Ur).x0(o):B(o)?h=Kn().x(Ur).y1(Wr).y0(o):h=Hg().x(Ur).y(Wr),h.defined(ri).curve(f),h(l)},Ol=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?Yj(t):i;return N.createElement("path",wl({},J(t,!1),ui(t),{className:ee("recharts-curve",r),d:o,ref:a}))};const{getOwnPropertyNames:Zj,getOwnPropertySymbols:Jj}=Object,{hasOwnProperty:Qj}=Object.prototype;function fs(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function ni(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);const c=e(r,n,i);return a.delete(r),a.delete(n),c}}function eM(e){return e!=null?e[Symbol.toStringTag]:void 0}function cm(e){return Zj(e).concat(Jj(e))}const tM=Object.hasOwn||((e,t)=>Qj.call(e,t));function Xt(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const rM="__v",nM="__o",iM="_owner",{getOwnPropertyDescriptor:sm,keys:lm}=Object;function aM(e,t){return e.byteLength===t.byteLength&&Ni(new Uint8Array(e),new Uint8Array(t))}function oM(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function uM(e,t){return e.byteLength===t.byteLength&&Ni(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function cM(e,t){return Xt(e.getTime(),t.getTime())}function sM(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function lM(e,t){return e===t}function fm(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,u,c=0;for(;(o=a.next())&&!o.done;){const s=t.entries();let f=!1,l=0;for(;(u=s.next())&&!u.done;){if(i[l]){l++;continue}const h=o.value,p=u.value;if(r.equals(h[0],p[0],c,l,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;c++}return!0}const fM=Xt;function hM(e,t,r){const n=lm(e);let i=n.length;if(lm(t).length!==i)return!1;for(;i-- >0;)if(!L0(e,t,r,n[i]))return!1;return!0}function zr(e,t,r){const n=cm(e);let i=n.length;if(cm(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!L0(e,t,r,a)||(o=sm(e,a),u=sm(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function pM(e,t){return Xt(e.valueOf(),t.valueOf())}function dM(e,t){return e.source===t.source&&e.flags===t.flags}function hm(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,u;for(;(o=a.next())&&!o.done;){const c=t.values();let s=!1,f=0;for(;(u=c.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function Ni(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function vM(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function L0(e,t,r,n){return(n===iM||n===nM||n===rM)&&(e.$$typeof||t.$$typeof)?!0:tM(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const yM="[object ArrayBuffer]",mM="[object Arguments]",gM="[object Boolean]",bM="[object DataView]",xM="[object Date]",wM="[object Error]",OM="[object Map]",_M="[object Number]",SM="[object Object]",AM="[object RegExp]",PM="[object Set]",TM="[object String]",EM={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array
38]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},jM="[object URL]",MM=Object.prototype.toString;function CM({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:c,arePrimitiveWrappersEqual:s,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:y}){return function(d,b,x){if(d===b)return!0;if(d==null||b==null)return!1;const w=typeof d;if(w!==typeof b)return!1;if(w!=="object")return w==="number"?u(d,b,x):w==="function"?a(d,b,x):!1;const O=d.constructor;if(O!==b.constructor)return!1;if(O===Object)return c(d,b,x);if(Array.isArray(d))return t(d,b,x);if(O===Date)return n(d,b,x);if(O===RegExp)return f(d,b,x);if(O===Map)return o(d,b,x);if(O===Set)return l(d,b,x);const m=MM.call(d);if(m===xM)return n(d,b,x);if(m===AM)return f(d,b,x);if(m===OM)return o(d,b,x);if(m===PM)return l(d,b,x);if(m===SM)return typeof d.then!="function"&&typeof b.then!="function"&&c(d,b,x);if(m===jM)return p(d,b,x);if(m===wM)return i(d,b,x);if(m===mM)return c(d,b,x);if(EM[m])return h(d,b,x);if(m===yM)return e(d,b,x);if(m===bM)return r(d,b,x);if(m===gM||m===_M||m===TM)return s(d,b,x);if(y){let g=y[m];if(!g){const _=eM(d);_&&(g=y[_])}if(g)return g(d,b,x)}return!1}}function $M({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:aM,areArraysEqual:r?zr:oM,areDataViewsEqual:uM,areDatesEqual:cM,areErrorsEqual:sM,areFunctionsEqual:lM,areMapsEqual:r?fs(fm,zr):fm,areNumbersEqual:fM,areObjectsEqual:r?zr:hM,arePrimitiveWrappersEqual:pM,areRegExpsEqual:dM,areSetsEqual:r?fs(hm,zr):hm,areTypedArraysEqual:r?fs(Ni,zr):Ni,areUrlsEqual:vM,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=ni(n.areArraysEqual),a=ni(n.areMapsEqual),o=ni(n.areObjectsEqual),u=ni(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function IM(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function DM({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,c){const{cache:s=e?new WeakMap:void 0,meta:f}=r();return t(u,c,{cache:s,equals:n,meta:f,strict:i})};if(e)return function(u,c){return t(u,c,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(u,c){return t(u,c,a)}}const RM=Tt();Tt({strict:!0});Tt({circular:!0});Tt({circular:!0,strict:!0});Tt({createInternalComparator:()=>Xt});Tt({strict:!0,createInternalComparator:()=>Xt});Tt({circular:!0,createInternalComparator:()=>Xt});Tt({circular:!0,createInternalComparator:()=>Xt,strict:!0});function Tt(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=$M(e),o=CM(a),u=r?r(o):IM(o);return DM({circular:t,comparator:o,createState:n,equals:u,strict:i})}function kM(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function pm(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):kM(i)};requestAnimationFrame(n)}function _l(e){"@babel/helpers - typeof";return _l=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},_l(e)}function NM(e){return FM(e)||LM(e)||BM(e)||qM()}function qM(){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 BM(e,t){if(e){if(typeof e=="string")return dm(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 dm(e,t)}}function dm(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 LM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function FM(e){if(Array.isArray(e))return e}function UM(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=NM(o),c=u[0],s=u.slice(1);if(typeof c=="number"){pm(i.bind(null,s),c);return}i(c),pm(i.bind(null,s));return}_l(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 _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 vm(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 ym(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 154,279 bytes, lines 39-61
39t%2?vm(Object(r),!0).forEach(function(n){F0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F0(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=zM(e,"string");return _n(t)==="symbol"?t:String(t)}function zM(e,t){if(_n(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_n(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HM=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},GM=function(t){return t},KM=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Jr=function(t,r){return Object.keys(r).reduce(function(n,i){return ym(ym({},n),{},F0({},i,t(i,r[i])))},{})},mm=function(t,r,n){return t.map(function(i){return"".concat(KM(i)," ").concat(r,"ms ").concat(n)}).join(",")};function XM(e,t){return ZM(e)||YM(e,t)||U0(e,t)||VM()}function VM(){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 YM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function ZM(e){if(Array.isArray(e))return e}function JM(e){return tC(e)||eC(e)||U0(e)||QM()}function QM(){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 U0(e,t){if(e){if(typeof e=="string")return Sl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sl(e,t)}}function eC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tC(e){if(Array.isArray(e))return Sl(e)}function Sl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var qi=1e-4,W0=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},z0=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},gm=function(t,r){return function(n){var i=W0(t,r);return z0(i,n)}},rC=function(t,r){return function(n){var i=W0(t,r),a=[].concat(JM(i.map(function(o,u){return o*u}).slice(1)),[0]);return z0(a,n)}},bm=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var s=c[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),f=XM(s,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=gm(i,o),h=gm(a,u),p=rC(i,o),y=function(b){return b>1?1:b<0?0:b},v=function(b){for(var x=b>1?1:b,w=x,O=0;O<8;++O){var m=l(w)-x,g=p(w);if(Math.abs(m-x)<qi||g<qi)return h(w);w=y(w-m/g)}return h(w)};return v.isStepper=!1,v},nC=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,c=function(f,l,h){var p=-(f-l)*n,y=h*a,v=h+(p-y)*u/1e3,d=h*u/1e3+f;return Math.abs(d-l)<qi&&Math.abs(v)<qi?[l,0]:[d,v]};return c.isStepper=!0,c.dt=u,c},iC=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 bm(i);case"spring":return nC();default:if(i.split("(")[0]==="cubic-bezier")return bm(i)}return typeof i=="function"?i:null};function Sn(e){"@babel/helpers - typeof";return Sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sn(e)}function xm(e){return uC(e)||oC(e)||H0(e)||aC()}function aC(){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 oC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uC(e){if(Array.isArray(e))return Pl(e)}function wm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wm(Object(r),!0).forEach(function(n){Al(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Al(e,t,r){return t=cC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cC(e){var t=sC(e,"string");return Sn(t)==="symbol"?t:String(t)}function sC(e,t){if(Sn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lC(e,t){return pC(e)||hC(e,t)||H0(e,t)||fC()}function fC(){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 H0(e,t){if(e){if(typeof e=="string")return Pl(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 Pl(e,t)}}function Pl(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 hC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function pC(e){if(Array.isArray(e))return e}var Bi=function(t,r,n){return t+(r-t)*n},Tl=function(t){var r=t.from,n=t.to;return r!==n},dC=function e(t,r,n){var i=Jr(function(a,o){if(Tl(o)){var u=t(o.from,o.to,o.velocity),c=lC(u,2),s=c[0],f=c[1];return Se(Se({},o),{},{from:s,velocity:f})}return o},r);return n<1?Jr(function(a,o){return Tl(o)?Se(Se({},o),{},{velocity:Bi(o.velocity,i[a].velocity,n),from:Bi(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const vC=(function(e,t,r,n,i){var a=HM(e,t),o=a.reduce(function(d,b){return Se(Se({},d),{},Al({},b,[e[b],t[b]]))},{}),u=a.reduce(function(d,b){return Se(Se({},d),{},Al({},b,{from:e[b],velocity:0,to:t[b]}))},{}),c=-1,s,f,l=function(){return null},h=function(){return Jr(function(b,x){return x.from},u)},p=function(){return!Object.values(u).filter(Tl).length},y=function(b){s||(s=b);var x=b-s,w=x/r.dt;u=dC(r,u,w),i(Se(Se(Se({},e),t),h())),s=b,p()||(c=requestAnimationFrame(l))},v=function(b){f||(f=b);var x=(b-f)/n,w=Jr(function(m,g){return Bi.apply(void 0,xm(g).concat([r(x)]))},o);if(i(Se(Se(Se({},e),t),w)),x<1)c=requestAnimationFrame(l);else{var O=Jr(function(m,g){return Bi.apply(void 0,xm(g).concat([r(1)]))},o);i(Se(Se(Se({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(c)}}});function yr(e){"@babel/helpers - typeof";return yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yr(e)}var yC=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function mC(e,t){if(e==null)return{};var r=gC(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gC(e,t){if(e==null)return{};var r={},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 hs(e){return OC(e)||wC(e)||xC(e)||bC()}function bC(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 44In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xC(e,t){if(e){if(typeof e=="string")return El(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 El(e,t)}}function wC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OC(e){if(Array.isArray(e))return El(e)}function El(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 Om(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Om(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Om(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xr(e,t,r){return t=G0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SC(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,G0(n.key),n)}}function AC(e,t,r){return t&&SC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function G0(e){var t=PC(e,"string");return yr(t)==="symbol"?t:String(t)}function PC(e,t){if(yr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jl(e,t)}function jl(e,t){return jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jl(e,t)}function EC(e){var t=jC();return function(){var n=Li(e),i;if(t){var a=Li(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Ml(this,i)}}function Ml(e,t){if(t&&(yr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cl(e)}function Cl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jC(){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 Li(e){return Li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Li(e)}var dt=(function(e){TC(r,e);var t=EC(r);function r(n,i){var a;_C(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,s=o.from,f=o.to,l=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Cl(a)),a.changeStyle=a.changeStyle.bind(Cl(a)),!u||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),Ml(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof h=="function")return a.state={style:s},Ml(a);a.state={style:c?Xr({},c,s):s}}else a.state={style:{}};return a}return AC(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,c=a.attributeName,s=a.shouldReAnimate,f=a.to,l=a.from,h=this.state.style;if(u){if(!o){var p={style:c?Xr({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(p);return}if(!(RM(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||s?l:i.to;if(this.state&&h){var d={style:c?Xr({},c,v):v};(c&&h[c]!==v||!c&&h!==v)&&this.setState(d)}this.runAnimation(Ke(Ke({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,c=i.duration,s=i.easing,f=i.begin,l=i.onAnimationEnd,h=i.onAnimationStart,p=vC(o,u,iC(s),c,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,f,y,c,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,c=i.onAnimationStart,s=o[0],f=s.style,l=s.duration,h=l===void 0?0:l,p=function(v,d,b){if(b===0)return v;var x=d.duration,w=d.easing,O=w===void 0?"ease":w,m=d.style,g=d.properties,_=d.onAnimationEnd,S=b>0?o[b-1]:d,A=g||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(hs(v),[a.runJSAnimation.bind(a,{from:S.style,to:m,duration:x,easing:O}),x]);var $=mm(A,x,O),E=Ke(Ke(Ke({},S.style),m),{},{transition:$});return[].concat(hs(v),[E,x,_]).filter(GM)};return this.manager.start([c].concat(hs(o.reduce(p,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=UM());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,s=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof s=="function"||typeof p=="function"||s==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=u?Xr({},u,c):c,d=mm(Object.keys(v),o,s);y.start([f,a,Ke(Ke({},v),{},{transition:d}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=mC(i,yC),s=N.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||s===0||o<=0)return a;var l=function(p){var y=p.props,v=y.style,d=v===void 0?{}:v,b=y.className,x=N.cloneElement(p,Ke(Ke({},c),{},{style:Ke(Ke({},d),f),className:b}));return x};return s===1?l(N.Children.only(a)):T.createElement("div",null,N.Children.map(a,function(h){return l(h)}))}}]),r})(N.PureComponent);dt.displayName="Animate";dt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};dt.propTypes={from:re.oneOfType([re.object,re.string]),to:re.oneOfType([re.object,re.string]),attributeName:re.string,duration:re.number,begin:re.number,easing:re.oneOfType([re.string,re.func]),steps:re.arrayOf(re.shape({duration:re.number.isRequired,style:re.object.isRequired,easing:re.oneOfType([re.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),re.func]),properties:re.arrayOf("string"),onAnimationEnd:re.func})),children:re.oneOfType([re.node,re.func]),isActive:re.bool,canBegin:re.bool,onAnimationEnd:re.func,shouldReAnimate:re.bool,onAnimationStart:re.func,onAnimationReStart:re.func};function An(e){"@babel/helpers - typeof";return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},An(e)}function Fi(){return Fi=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},Fi.apply(this,arguments)}function MC(e,t){return DC(e)||IC(e,t)||$C(e,t)||CC()}function CC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 45In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $C(e,t){if(e){if(typeof e=="string")return _m(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 _m(e,t)}}function _m(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 IC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function DC(e){if(Array.isArray(e))return e}function Sm(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 Am(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sm(Object(r),!0).forEach(function(n){RC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RC(e,t,r){return t=kC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kC(e){var t=NC(e,"string");return An(t)=="symbol"?t:t+""}function NC(e,t){if(An(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(An(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pm=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,c=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],h=0,p=4;h<p;h++)l[h]=a[h]>o?o:a[h];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(t+c*l[0],",").concat(r)),f+="L ".concat(t+n-c*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,`, 46 `).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,`, 47 `).concat(t+n-c*l[2],",").concat(r+i)),f+="L ".concat(t+c*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,`, 48 `).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,` 49 A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+c*y,",").concat(r,` 50 L `).concat(t+n-c*y,",").concat(r,` 51 A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n,",").concat(r+u*y,` 52 L `).concat(t+n,",").concat(r+i-u*y,` 53 A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n-c*y,",").concat(r+i,` 54 L `).concat(t+c*y,",").concat(r+i,` 55 A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},qC=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,c=r.height;if(Math.abs(u)>0&&Math.abs(c)>0){var s=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+c),h=Math.max(o,o+c);return n>=s&&n<=f&&i>=l&&i<=h}return!1},BC={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Vf=function(t){var r=Am(Am({},BC),t),n=N.useRef(),i=N.useState(-1),a=MC(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var c=r.x,s=r.y,f=r.width,l=r.height,h=r.radius,p=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,b=r.isAnimationActive,x=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||f===0||l===0)return null;var w=ee("recharts-rectangle",p);return x?T.createElement(dt,{canBegin:o>0,from:{width:f,height:l,x:c,y:s},to:{width:f,height:l,x:c,y:s},duration:v,animationEasing:y,isActive:x},function(O){var m=O.width,g=O.height,_=O.x,S=O.y;return T.createElement(dt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,isActive:b,easing:y},T.createElement("path",Fi({},J(r,!0),{className:w,d:Pm(_,S,m,g,h),ref:n})))}):T.createElement("path",Fi({},J(r,!0),{className:w,d:Pm(c,s,f,l,h)}))};function $l(){return $l=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},$l.apply(this,arguments)}var Yf=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ee("recharts-dot",a);return r===+r&&n===+n&&i===+i?N.createElement("circle",$l({},J(t,!1),ui(t),{className:o,cx:r,cy:n,r:i})):null};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 LC=["x","y","top","left","width","height","className"];function Il(){return Il=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},Il.apply(this,arguments)}function Tm(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 FC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tm(Object(r),!0).forEach(function(n){UC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UC(e,t,r){return t=WC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WC(e){var t=zC(e,"string");return Pn(t)=="symbol"?t:t+""}function zC(e,t){if(Pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HC(e,t){if(e==null)return{};var r=GC(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GC(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var KC=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},XC=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,c=t.left,s=c===void 0?0:c,f=t.width,l=f===void 0?0:f,h=t.height,p=h===void 0?0:h,y=t.className,v=HC(t,LC),d=FC({x:n,y:a,top:u,left:s,width:l,height:p},v);return!B(n)||!B(a)||!B(l)||!B(p)||!B(u)||!B(s)?null:T.createElement("path",Il({},J(d,!0),{className:ee("recharts-cross",y),d:KC(n,a,l,p,u,s)}))},ps,Em;function VC(){if(Em)return ps;Em=1;var e=db(),t=e(Object.getPrototypeOf,Object);return ps=t,ps}var ds,jm;function YC(){if(jm)return ds;jm=1;var e=vt(),t=VC(),r=yt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,c=o.call(Object);function s(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var h=u.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==c}return ds=s,ds}var ZC=YC();const JC=se(ZC);var vs,Mm;function QC(){if(Mm)return vs;Mm=1;var e=vt(),t=yt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return vs=n,vs}var e$=QC();const t$=se(e$);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 Ui(){return Ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ui.apply(this,arguments)}function r$(e,t){return o$(e)||a$(e,t)||i$(e,t)||n$()}function n$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 56In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i$(e,t){if(e){if(typeof e=="string")return Cm(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 Cm(e,t)}}function Cm(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 a$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function o$(e){if(Array.isArray(e))return e}function $m(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 Im(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$m(Object(r),!0).forEach(function(n){u$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function u$(e,t,r){return t=c$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c$(e){var t=s$(e,"string");return Tn(t)=="symbol"?t:t+""}function s$(e,t){if(Tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dm=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},l$={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},f$=function(t){var r=Im(Im({},l$),t),n=N.useRef(),i=N.useState(-1),a=r$(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var c=r.x,s=r.y,f=r.upperWidth,l=r.lowerWidth,h=r.height,p=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,b=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var x=ee("recharts-trapezoid",p);return b?T.createElement(dt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:s},to:{upperWidth:f,lowerWidth:l,height:h,x:c,y:s},duration:v,animationEasing:y,isActive:b},function(w){var O=w.upperWidth,m=w.lowerWidth,g=w.height,_=w.x,S=w.y;return T.createElement(dt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,easing:y},T.createElement("path",Ui({},J(r,!0),{className:x,d:Dm(_,S,O,m,g),ref:n})))}):T.createElement("g",null,T.createElement("path",Ui({},J(r,!0),{className:x,d:Dm(c,s,f,l,h)})))},h$=["option","shapeType","propTransformer","activeClassName","isActive"];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 p$(e,t){if(e==null)return{};var r=d$(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 d$(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 Rm(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 Wi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rm(Object(r),!0).forEach(function(n){v$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function v$(e,t,r){return t=y$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y$(e){var t=m$(e,"string");return En(t)=="symbol"?t:t+""}function m$(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function g$(e,t){return Wi(Wi({},t),e)}function b$(e,t){return e==="symbols"}function km(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return T.createElement(Vf,r);case"trapezoid":return T.createElement(f$,r);case"sector":return T.createElement(B0,r);case"symbols":if(b$(t))return T.createElement(df,r);break;default:return null}}function x$(e){return N.isValidElement(e)?e.props:e}function w$(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?g$:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,c=p$(e,h$),s;if(N.isValidElement(t))s=N.cloneElement(t,Wi(Wi({},c),x$(t)));else if(Z(t))s=t(c);else if(JC(t)&&!t$(t)){var f=i(t,c);s=T.createElement(km,{shapeType:r,elementProps:f})}else{var l=c;s=T.createElement(km,{shapeType:r,elementProps:l})}return u?T.createElement(he,{className:o},s):s}function Ta(e,t){return t!=null&&"trapezoids"in e.props}function Ea(e,t){return t!=null&&"sectors"in e.props}function jn(e,t){return t!=null&&"points"in e.props}function O$(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 _$(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function S$(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function A$(e,t){var r;return Ta(e,t)?r=O$:Ea(e,t)?r=_$:jn(e,t)&&(r=S$),r}function P$(e,t){var r;return Ta(e,t)?r="trapezoids":Ea(e,t)?r="sectors":jn(e,t)&&(r="points"),r}function T$(e,t){if(Ta(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(Ea(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 E$(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=P$(r,t),a=T$(r,t),o=n.filter(function(c,s){var f=Sa(a,c),l=r.props[i].filter(function(y){var v=A$(r,t);return v(y,t)}),h=r.props[i].indexOf(l[l.length-1]),p=s===h;return f&&p}),u=n.indexOf(o[o.length-1]);return u}var ys,Nm;function j$(){if(Nm)return ys;Nm=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,c=t(e((i-n)/(a||1)),0),s=Array(c);c--;)s[o?c:++u]=n,n+=a;return s}return ys=r,ys}var ms,qm;function K0(){if(qm)return ms;qm=1;var e=Mb(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return ms=n,ms}var gs,Bm;function M$(){if(Bm)return gs;Bm=1;var e=j$(),t=va(),r=K0();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return gs=n,gs}var bs,Lm;function C$(){if(Lm)return bs;Lm=1;var e=M$(),t=e();return bs=t,bs}var $$=C$();const zi=se($$);function Mn(e){"@babel/helpers - typeof";return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(e)}function Fm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Um(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fm(Object(r),!0).forEach(function(n){X0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X0(e,t,r){return t=I$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I$(e){var t=D$(e,"string");return Mn(t)=="symbol"?t:t+""}function D$(e,t){if(Mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var R$=["Webkit","Moz","O","ms"],k$=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=R$.reduce(function(a,o){return Um(Um({},a),{},X0({},o+n,r))},{});return i[t]=r,i};function mr(e){"@babel/helpers - typeof";return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mr(e)}function Hi(){return Hi=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},Hi.apply(this,arguments)}function Wm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wm(Object(r),!0).forEach(function(n){Re(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function N$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y0(n.key),n)}}function q$(e,t,r){return t&&zm(e.prototype,t),r&&zm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function B$(e,t,r){return t=Gi(t),L$(e,V0()?Reflect.construct(t,r||[],Gi(e).constructor):t.apply(e,r))}function L$(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 F$(e)}function F$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V0=function(){return!!e})()}function Gi(e){return Gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gi(e)}function U$(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&&Dl(e,t)}function Dl(e,t){return Dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dl(e,t)}function Re(e,t,r){return t=Y0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y0(e){var t=W$(e,"string");return mr(t)=="symbol"?t:t+""}function W$(e,t){if(mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var z$=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,s=Yr().domain(zi(0,c)).range([a,a+o-u]),f=s.domain().map(function(l){return s(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(n),endX:s(i),scale:s,scaleValues:f}},Hm=function(t){return t.changedTouches&&!!t.changedTouches.length},gr=(function(e){function t(r){var n;return N$(this,t),n=B$(this,t,[r]),Re(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Re(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Re(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Re(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Re(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Re(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Re(n,"handleSlideDragStart",function(i){var a=Hm(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 U$(t,e),q$(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,c=u.gap,s=u.data,f=s.length-1,l=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,l),y=t.getIndexInRange(o,h);return{startIndex:p-p%c,endIndex:y===f?f:y-y%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=qe(a[n],u,n);return Z(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,c=this.props,s=c.x,f=c.width,l=c.travellerWidth,h=c.startIndex,p=c.endIndex,y=c.onChange,v=n.pageX-a;v>0?v=Math.min(v,s+f-l-u,s+f-l-o):v<0&&(v=Math.max(v,s-o,s-u));var d=this.getIndex({startX:o+v,endX:u+v});(d.startIndex!==h||d.endIndex!==p)&&y&&y(d),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Hm(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,c=i.startX,s=this.state[o],f=this.props,l=f.x,h=f.width,p=f.travellerWidth,y=f.onChange,v=f.gap,d=f.data,b={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+h-p-s):x<0&&(x=Math.max(x,l-s)),b[o]=s+x;var w=this.getIndex(b),O=w.startIndex,m=w.endIndex,g=function(){var S=d.length-1;return o==="startX"&&(u>c?O%v===0:m%v===0)||u<c&&m===S||o==="endX"&&(u>c?m%v===0:O%v===0)||u>c&&m===S};this.setState(Re(Re({},o,s+x),"brushMoveStartX",n.pageX),function(){y&&g()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,s=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var h=l+n;if(!(h===-1||h>=u.length)){var p=u[h];i==="startX"&&p>=s||i==="endX"&&p<=c||this.setState(Re({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.fill,s=n.stroke;return T.createElement("rect",{stroke:s,fill:c,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.data,s=n.children,f=n.padding,l=N.Children.only(s);return l?T.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,c=this.props,s=c.y,f=c.travellerWidth,l=c.height,h=c.traveller,p=c.ariaLabel,y=c.data,v=c.startIndex,d=c.endIndex,b=Math.max(n,this.props.x),x=xs(xs({},J(this.props,!1)),{},{x:b,y:s,width:f,height:l}),w=p||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[d])===null||o===void 0?void 0:o.name);return T.createElement(he,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,c=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,l=Math.max(Math.abs(i-n)-s,0);return T.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,c=n.travellerWidth,s=n.stroke,f=this.state,l=f.startX,h=f.endX,p=5,y={pointerEvents:"none",fill:s};return T.createElement(he,{className:"recharts-brush-texts"},T.createElement(bi,Hi({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-p,y:o+u/2},y),this.getTextOfTick(i)),T.createElement(bi,Hi({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+c+p,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,c=n.y,s=n.width,f=n.height,l=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,v=h.isTextActive,d=h.isSlideMoving,b=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!B(u)||!B(c)||!B(s)||!B(f)||s<=0||f<=0)return null;var w=ee("recharts-brush",a),O=T.Children.count(o)===1,m=k$("userSelect","none");return T.createElement(he,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(v||d||b||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,c=n.stroke,s=Math.floor(a+u/2)-1;return T.createElement(T.Fragment,null,T.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),T.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),T.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return T.isValidElement(n)?a=T.cloneElement(n,i):Z(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,s=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return xs({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?z$({data:a,width:o,x:u,travellerWidth:c,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}])})(N.PureComponent);Re(gr,"displayName","Brush");Re(gr,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var ws,Gm;function H$(){if(Gm)return ws;Gm=1;var e=wf();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return ws=t,ws}var Os,Km;function G$(){if(Km)return Os;Km=1;var e=ub(),t=St(),r=H$(),n=$e(),i=va();function a(o,u,c){var s=n(o)?e:r;return c&&i(o,u,c)&&(u=void 0),s(o,t(u,3))}return Os=a,Os}var K$=G$();const X$=se(K$);var rt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},_s,Xm;function V$(){if(Xm)return _s;Xm=1;var e=Ab();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return _s=t,_s}var Ss,Vm;function Y$(){if(Vm)return Ss;Vm=1;var e=V$(),t=_b(),r=St();function n(i,a){var o={};return a=r(a,3),t(i,function(u,c,s){e(o,c,a(u,c,s))}),o}return Ss=n,Ss}var Z$=Y$();const J$=se(Z$);var As,Ym;function Q$(){if(Ym)return As;Ym=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return As=e,As}var Ps,Zm;function eI(){if(Zm)return Ps;Zm=1;var e=wf();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Ps=t,Ps}var Ts,Jm;function tI(){if(Jm)return Ts;Jm=1;var e=Q$(),t=eI(),r=St(),n=$e(),i=va();function a(o,u,c){var s=n(o)?e:t;return c&&i(o,u,c)&&(u=void 0),s(o,r(u,3))}return Ts=a,Ts}var rI=tI();const nI=se(rI);var iI=["x","y"];function Cn(e){"@babel/helpers - typeof";return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cn(e)}function Rl(){return Rl=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},Rl.apply(this,arguments)}function Qm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qm(Object(r),!0).forEach(function(n){aI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aI(e,t,r){return t=oI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oI(e){var t=uI(e,"string");return Cn(t)=="symbol"?t:t+""}function uI(e,t){if(Cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cI(e,t){if(e==null)return{};var r=sI(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 sI(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 lI(e,t){var r=e.x,n=e.y,i=cI(e,iI),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),s="".concat(t.height||i.height),f=parseInt(s,10),l="".concat(t.width||i.width),h=parseInt(l,10);return Hr(Hr(Hr(Hr(Hr({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function eg(e){return T.createElement(w$,Rl({shapeType:"rectangle",propTransformer:lI,activeClassName:"recharts-active-bar"},e))}var fI=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=B(n)||_w(n);return a?t(n,i):(a||zt(),r)}},hI=["value","background"],Z0;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 pI(e,t){if(e==null)return{};var r=dI(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 dI(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 Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ki.apply(this,arguments)}function tg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function de(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tg(Object(r),!0).forEach(function(n){xt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rg(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,Q0(n.key),n)}}function yI(e,t,r){return t&&rg(e.prototype,t),r&&rg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mI(e,t,r){return t=Xi(t),gI(e,J0()?Reflect.construct(t,r||[],Xi(e).constructor):t.apply(e,r))}function gI(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 bI(e)}function bI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J0=function(){return!!e})()}function Xi(e){return Xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xi(e)}function xI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kl(e,t)}function kl(e,t){return kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kl(e,t)}function xt(e,t,r){return t=Q0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q0(e){var t=wI(e,"string");return br(t)=="symbol"?t:t+""}function wI(e,t){if(br(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kr=(function(e){function t(){var r;vI(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=mI(this,t,[].concat(i)),xt(r,"state",{isAnimationFinished:!1}),xt(r,"id",qn("recharts-bar-")),xt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),xt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return xI(t,e),yI(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,c=a.activeIndex,s=a.activeBar,f=J(this.props,!1);return n&&n.map(function(l,h){var p=h===c,y=p?s:o,v=de(de(de({},f),l),{},{isActive:p,option:y,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return T.createElement(he,Ki({className:"recharts-bar-rectangle"},ci(i.props,l,h),{key:"rectangle-".concat(l==null?void 0:l.x,"-").concat(l==null?void 0:l.y,"-").concat(l==null?void 0:l.value,"-").concat(h)}),T.createElement(eg,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,c=i.animationBegin,s=i.animationDuration,f=i.animationEasing,l=i.animationId,h=this.state.prevData;return T.createElement(dt,{begin:c,duration:s,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,v=a.map(function(d,b){var x=h&&h[b];if(x){var w=Ye(x.x,d.x),O=Ye(x.y,d.y),m=Ye(x.width,d.width),g=Ye(x.height,d.height);return de(de({},d),{},{x:w(y),y:O(y),width:m(y),height:g(y)})}if(o==="horizontal"){var _=Ye(0,d.height),S=_(y);return de(de({},d),{},{y:d.y+d.height-S,height:S})}var A=Ye(0,d.width),$=A(y);return de(de({},d),{},{width:$})});return T.createElement(he,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||!Sa(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,c=J(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,h=pI(s,hI);if(!l)return null;var p=de(de(de(de(de({},h),{},{fill:"#eee"},l),c),ci(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return T.createElement(eg,Ki({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=ze(f,zn);if(!l)return null;var h=s==="vertical"?o[0].height/2:o[0].width/2,p=function(d,b){var x=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:x,errorVal:qe(d,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return T.createElement(he,y,l.map(function(v){return T.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,c=n.yAxis,s=n.left,f=n.top,l=n.width,h=n.height,p=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,b=ee("recharts-bar",o),x=u&&u.allowDataOverflow,w=c&&c.allowDataOverflow,O=x||w,m=Y(v)?this.id:v;return T.createElement(he,{className:b},x||w?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(m)},T.createElement("rect",{x:x?s:s-l/2,y:w?f:f-h/2,width:x?l:l*2,height:w?h:h*2}))):null,T.createElement(he,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!p||d)&&Ot.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(N.PureComponent);Z0=kr;xt(kr,"displayName","Bar");xt(kr,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!$r.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});xt(kr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,c=e.yAxisTicks,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,p=BE(n,r);if(!p)return null;var y=t.layout,v=r.type.defaultProps,d=v!==void 0?de(de({},v),r.props):r.props,b=d.dataKey,x=d.children,w=d.minPointSize,O=y==="horizontal"?o:a,m=s?O.scale.domain():null,g=KE({numericAxis:O}),_=ze(x,$b),S=l.map(function(A,$){var E,P,j,C,M,D;s?E=LE(s[f+$],m):(E=qe(A,b),Array.isArray(E)||(E=[g,E]));var R=fI(w,Z0.defaultProps.minPointSize)(E[1],$);if(y==="horizontal"){var q,L=[o.scale(E[0]),o.scale(E[1])],z=L[0],G=L[1];P=Hy({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:A,index:$}),j=(q=G??z)!==null&&q!==void 0?q:void 0,C=p.size;var U=z-G;if(M=Number.isNaN(U)?0:U,D={x:P,y:o.y,width:C,height:o.height},Math.abs(R)>0&&Math.abs(M)<Math.abs(R)){var K=Je(M||R)*(Math.abs(R)-Math.abs(M));j-=K,M+=K}}else{var oe=[a.scale(E[0]),a.scale(E[1])],pe=oe[0],Ie=oe[1];if(P=pe,j=Hy({axis:o,ticks:c,bandSize:i,offset:p.offset,entry:A,index:$}),C=Ie-pe,M=p.size,D={x:a.x,y:j,width:a.width,height:M},Math.abs(R)>0&&Math.abs(C)<Math.abs(R)){var Et=Je(C||R)*(Math.abs(R)-Math.abs(C));C+=Et}}return de(de(de({},A),{},{x:P,y:j,width:C,height:M,value:s?E:E[1],payload:A,background:D},_&&_[$]&&_[$].props),{},{tooltipPayload:[k0(r,A)],tooltipPosition:{x:P+C/2,y:j+M/2}})});return de({data:S,layout:y},h)});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 OI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ng(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,ex(n.key),n)}}function _I(e,t,r){return t&&ng(e.prototype,t),r&&ng(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ig(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ig(Object(r),!0).forEach(function(n){ja(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ig(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ja(e,t,r){return t=ex(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ex(e){var t=SI(e,"string");return $n(t)=="symbol"?t:t+""}function SI(e,t){if($n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tx=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.layout,s=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},h=!!ke(s,kr);return f.reduce(function(p,y){var v=r[y],d=v.orientation,b=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,m=v.reversed,g="".concat(d).concat(O?"Mirror":""),_,S,A,$,E;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var P=b[1]-b[0],j=1/0,C=v.categoricalDomain.sort(Pw);if(C.forEach(function(oe,pe){pe>0&&(j=Math.min((oe||0)-(C[pe-1]||0),j))}),Number.isFinite(j)){var M=j/P,D=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=M*D/2),v.padding==="no-gap"){var R=Ut(t.barCategoryGap,M*D),q=M*D/2;_=q-R-(q-R)/D*R}}}i==="xAxis"?S=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?S=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:S=v.range,m&&(S=[S[1],S[0]]);var L=NE(v,a,h),z=L.scale,G=L.realScaleType;z.domain(b).range(S),qE(z);var U=GE(z,Xe(Xe({},v),{},{realScaleType:G}));i==="xAxis"?(E=d==="top"&&!O||d==="bottom"&&O,A=n.left,$=l[g]-E*v.height):i==="yAxis"&&(E=d==="left"&&!O||d==="right"&&O,A=l[g]-E*v.width,$=n.top);var K=Xe(Xe(Xe({},v),U),{},{realScaleType:G,x:A,y:$,scale:z,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return K.bandSize=Di(K,U),!v.hide&&i==="xAxis"?l[g]+=(E?-1:1)*K.height:v.hide||(l[g]+=(E?-1:1)*K.width),Xe(Xe({},p),{},ja({},y,K))},{})},rx=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)}},AI=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return rx({x:r,y:n},{x:i,y:a})},nx=(function(){function e(t){OI(this,e),this.scale=t}return _I(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();ja(nx,"EPS",1e-4);var Zf=function(t){var r=Object.keys(t).reduce(function(n,i){return Xe(Xe({},n),{},ja({},i,nx.create(t[i])))},{});return Xe(Xe({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return J$(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return nI(i,function(a,o){return r[o].isInRange(a)})}})};function PI(e){return(e%180+180)%180}var TI=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=PI(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},Es,ag;function EI(){if(ag)return Es;ag=1;var e=St(),t=Bn(),r=pa();function n(i){return function(a,o,u){var c=Object(a);if(!t(a)){var s=e(o,3);a=r(a),o=function(l){return s(c[l],l,c)}}var f=i(a,o,u);return f>-1?c[s?a[f]:f]:void 0}}return Es=n,Es}var js,og;function jI(){if(og)return js;og=1;var e=K0();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return js=t,js}var Ms,ug;function MI(){if(ug)return Ms;ug=1;var e=gb(),t=St(),r=jI(),n=Math.max;function i(a,o,u){var c=a==null?0:a.length;if(!c)return-1;var s=u==null?0:r(u);return s<0&&(s=n(c+s,0)),e(a,t(o,3),s)}return Ms=i,Ms}var Cs,cg;function CI(){if(cg)return Cs;cg=1;var e=EI(),t=MI(),r=e(t);return Cs=r,Cs}CI();var $I=Dg();const II=se($I);var DI=II(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("")}),ix=N.createContext(void 0),ax=N.createContext(void 0),ox=N.createContext(void 0),RI=N.createContext({}),ux=N.createContext(void 0),cx=N.createContext(0),sx=N.createContext(0),sg=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,c=t.width,s=t.height,f=DI(a);return T.createElement(ix.Provider,{value:n},T.createElement(ax.Provider,{value:i},T.createElement(RI.Provider,{value:a},T.createElement(ox.Provider,{value:f},T.createElement(ux.Provider,{value:o},T.createElement(cx.Provider,{value:s},T.createElement(sx.Provider,{value:c},u)))))))},kI=function(){return N.useContext(ux)},lx=function(t){var r=N.useContext(ix);r==null&&zt();var n=r[t];return n==null&&zt(),n},fx=function(t){var r=N.useContext(ax);r==null&&zt();var n=r[t];return n==null&&zt(),n},NI=function(){var t=N.useContext(ox);return t},hx=function(){return N.useContext(sx)},px=function(){return N.useContext(cx)};function xr(e){"@babel/helpers - typeof";return xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xr(e)}function qI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BI(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,vx(n.key),n)}}function LI(e,t,r){return t&&BI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FI(e,t,r){return t=Vi(t),UI(e,dx()?Reflect.construct(t,r||[],Vi(e).constructor):t.apply(e,r))}function UI(e,t){if(t&&(xr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WI(e)}function WI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dx=function(){return!!e})()}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(e)}function zI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nl(e,t)}function Nl(e,t){return Nl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nl(e,t)}function lg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lg(Object(r),!0).forEach(function(n){Jf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jf(e,t,r){return t=vx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vx(e){var t=HI(e,"string");return xr(t)=="symbol"?t:t+""}function HI(e,t){if(xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function GI(e,t){return YI(e)||VI(e,t)||XI(e,t)||KI()}function KI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 57In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XI(e,t){if(e){if(typeof e=="string")return hg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hg(e,t)}}function hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function VI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function YI(e){if(Array.isArray(e))return e}function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ql.apply(this,arguments)}var ZI=function(t,r){var n;return T.isValidElement(t)?n=T.cloneElement(t,r):Z(t)?n=t(r):n=T.createElement("line",ql({},r,{className:"recharts-reference-line-line"})),n},JI=function(t,r,n,i,a,o,u,c,s){var f=a.x,l=a.y,h=a.width,p=a.height;if(n){var y=s.y,v=t.y.apply(y,{position:o});if(rt(s,"discard")&&!t.y.isInRange(v))return null;var d=[{x:f+h,y:v},{x:f,y:v}];return c==="left"?d.reverse():d}if(r){var b=s.x,x=t.x.apply(b,{position:o});if(rt(s,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+p},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=s.segment,m=O.map(function(g){return t.apply(g,{position:o})});return rt(s,"discard")&&X$(m,function(g){return!t.isInRange(g)})?null:m}return null};function QI(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,c=e.alwaysShow,s=kI(),f=lx(i),l=fx(a),h=NI();if(!s||!h)return null;qt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Zf({x:f.scale,y:l.scale}),y=xe(t),v=xe(r),d=n&&n.length===2,b=JI(p,y,v,d,h,e.position,f.orientation,l.orientation,e);if(!b)return null;var x=GI(b,2),w=x[0],O=w.x,m=w.y,g=x[1],_=g.x,S=g.y,A=rt(e,"hidden")?"url(#".concat(s,")"):void 0,$=fg(fg({clipPath:A},J(e,!0)),{},{x1:O,y1:m,x2:_,y2:S});return T.createElement(he,{className:ee("recharts-reference-line",u)},ZI(o,$),Te.renderCallByParent(e,AI({x1:O,y1:m,x2:_,y2:S})))}var Qf=(function(e){function t(){return qI(this,t),FI(this,t,arguments)}return zI(t,e),LI(t,[{key:"render",value:function(){return T.createElement(QI,this.props)}}])})(T.Component);Jf(Qf,"displayName","ReferenceLine");Jf(Qf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Bl(){return Bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bl.apply(this,arguments)}function 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 pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pg(Object(r),!0).forEach(function(n){Ma(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tD(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,mx(n.key),n)}}function rD(e,t,r){return t&&tD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nD(e,t,r){return t=Yi(t),iD(e,yx()?Reflect.construct(t,r||[],Yi(e).constructor):t.apply(e,r))}function iD(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 aD(e)}function aD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yx=function(){return!!e})()}function Yi(e){return Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yi(e)}function oD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ll(e,t)}function Ll(e,t){return Ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ll(e,t)}function Ma(e,t,r){return t=mx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mx(e){var t=uD(e,"string");return wr(t)=="symbol"?t:t+""}function uD(e,t){if(wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var cD=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Zf({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return rt(t,"discard")&&!o.isInRange(u)?null:u},Ca=(function(e){function t(){return eD(this,t),nD(this,t,arguments)}return oD(t,e),rD(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,c=n.clipPathId,s=xe(i),f=xe(a);if(qt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=cD(this.props);if(!l)return null;var h=l.x,p=l.y,y=this.props,v=y.shape,d=y.className,b=rt(this.props,"hidden")?"url(#".concat(c,")"):void 0,x=dg(dg({clipPath:b},J(this.props,!0)),{},{cx:h,cy:p});return T.createElement(he,{className:ee("recharts-reference-dot",d)},t.renderDot(v,x),Te.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(T.Component);Ma(Ca,"displayName","ReferenceDot");Ma(Ca,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Ma(Ca,"renderDot",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):Z(e)?r=e(t):r=T.createElement(Yf,Bl({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Fl(){return Fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fl.apply(this,arguments)}function 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 vg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vg(Object(r),!0).forEach(function(n){$a(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bx(n.key),n)}}function fD(e,t,r){return t&&lD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hD(e,t,r){return t=Zi(t),pD(e,gx()?Reflect.construct(t,r||[],Zi(e).constructor):t.apply(e,r))}function pD(e,t){if(t&&(Or(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dD(e)}function dD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gx=function(){return!!e})()}function Zi(e){return Zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zi(e)}function vD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ul(e,t)}function Ul(e,t){return Ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ul(e,t)}function $a(e,t,r){return t=bx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bx(e){var t=yD(e,"string");return Or(t)=="symbol"?t:t+""}function yD(e,t){if(Or(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Or(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mD=function(t,r,n,i,a){var o=a.x1,u=a.x2,c=a.y1,s=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var h=Zf({x:f.scale,y:l.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(c,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(u,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(s,{position:"end"}):h.y.rangeMax};return rt(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:rx(p,y)},Ia=(function(e){function t(){return sD(this,t),hD(this,t,arguments)}return vD(t,e),fD(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,c=n.className,s=n.alwaysShow,f=n.clipPathId;qt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=xe(i),h=xe(a),p=xe(o),y=xe(u),v=this.props.shape;if(!l&&!h&&!p&&!y&&!v)return null;var d=mD(l,h,p,y,this.props);if(!d&&!v)return null;var b=rt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return T.createElement(he,{className:ee("recharts-reference-area",c)},t.renderRect(v,yg(yg({clipPath:b},J(this.props,!0)),d)),Te.renderCallByParent(this.props,d))}}])})(T.Component);$a(Ia,"displayName","ReferenceArea");$a(Ia,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});$a(Ia,"renderRect",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):Z(e)?r=e(t):r=T.createElement(Vf,Fl({},t,{className:"recharts-reference-area-rect"})),r});function xx(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 gD(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return TI(n,r)}function bD(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function Ji(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 xD(e,t){return xx(e,t+1)}function wD(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,c=0,s=1,f=o,l=function(){var y=n==null?void 0:n[c];if(y===void 0)return{v:xx(n,s)};var v=c,d,b=function(){return d===void 0&&(d=r(y,v)),d},x=y.coordinate,w=c===0||Ji(e,x,b,f,u);w||(c=0,f=o,s+=1),w&&(f=x+e*(b()/2+i),c+=s)},h;s<=a.length;)if(h=l(),h)return h.v;return[]}function In(e){"@babel/helpers - typeof";return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(e)}function mg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mg(Object(r),!0).forEach(function(n){OD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OD(e,t,r){return t=_D(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _D(e){var t=SD(e,"string");return In(t)=="symbol"?t:t+""}function SD(e,t){if(In(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(In(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AD(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,c=t.end,s=function(h){var p=a[h],y,v=function(){return y===void 0&&(y=r(p,h)),y};if(h===o-1){var d=e*(p.coordinate+e*v()/2-c);a[h]=p=Pe(Pe({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=Pe(Pe({},p),{},{tickCoord:p.coordinate});var b=Ji(e,p.tickCoord,v,u,c);b&&(c=p.tickCoord-e*(v()/2+i),a[h]=Pe(Pe({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function PD(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=t.start,s=t.end;if(a){var f=n[u-1],l=r(f,u-1),h=e*(f.coordinate+e*l/2-s);o[u-1]=f=Pe(Pe({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=Ji(e,f.tickCoord,function(){return l},c,s);p&&(s=f.tickCoord-e*(l/2+i),o[u-1]=Pe(Pe({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,m=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var g=e*(w.coordinate-e*m()/2-c);o[x]=w=Pe(Pe({},w),{},{tickCoord:g<0?w.coordinate-g*e:w.coordinate})}else o[x]=w=Pe(Pe({},w),{},{tickCoord:w.coordinate});var _=Ji(e,w.tickCoord,m,c,s);_&&(c=w.tickCoord+e*(m()/2+i),o[x]=Pe(Pe({},w),{},{isShow:!0}))},d=0;d<y;d++)v(d);return o}function TD(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,c=e.interval,s=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(B(c)||$r.isSsr)return xD(i,typeof c=="number"&&B(c)?c:0);var h=[],p=u==="top"||u==="bottom"?"width":"height",y=f&&p==="width"?Vr(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var m=Z(s)?s(w.value,O):w.value;return p==="width"?gD(Vr(m,{fontSize:t,letterSpacing:r}),y,l):Vr(m,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?Je(i[1].coordinate-i[0].coordinate):1,b=bD(a,d,p);return c==="equidistantPreserveStart"?wD(d,b,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=PD(d,b,v,i,o,c==="preserveStartEnd"):h=AD(d,b,v,i,o),h.filter(function(x){return x.isShow}))}var ED=["viewBox"],jD=["viewBox"],MD=["ticks"];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 tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tr.apply(this,arguments)}function gg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gg(Object(r),!0).forEach(function(n){eh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $s(e,t){if(e==null)return{};var r=CD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ox(n.key),n)}}function ID(e,t,r){return t&&bg(e.prototype,t),r&&bg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function DD(e,t,r){return t=Qi(t),RD(e,wx()?Reflect.construct(t,r||[],Qi(e).constructor):t.apply(e,r))}function RD(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 kD(e)}function kD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wx=function(){return!!e})()}function Qi(e){return Qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qi(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&&Wl(e,t)}function Wl(e,t){return Wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wl(e,t)}function eh(e,t,r){return t=Ox(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ox(e){var t=qD(e,"string");return _r(t)=="symbol"?t:t+""}function qD(e,t){if(_r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Da=(function(e){function t(r){var n;return $D(this,t),n=DD(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return ND(t,e),ID(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=$s(n,ED),u=this.props,c=u.viewBox,s=$s(u,jD);return!nr(a,c)||!nr(o,s)||!nr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,c=i.height,s=i.orientation,f=i.tickSize,l=i.mirror,h=i.tickMargin,p,y,v,d,b,x,w=l?-1:1,O=n.tickSize||f,m=B(n.tickCoord)?n.tickCoord:n.coordinate;switch(s){case"top":p=y=n.coordinate,d=o+ +!l*c,v=d-w*O,x=v-w*h,b=m;break;case"left":v=d=n.coordinate,y=a+ +!l*u,p=y-w*O,b=p-w*h,x=m;break;case"right":v=d=n.coordinate,y=a+ +l*u,p=y+w*O,b=p+w*h,x=m;break;default:p=y=n.coordinate,d=o+ +l*c,v=d+w*O,x=v+w*h,b=m;break}return{line:{x1:p,y1:v,x2:y,y2:d},tick:{x:b,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.orientation,s=n.mirror,f=n.axisLine,l=ge(ge(ge({},J(this.props,!1)),J(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!s||c==="bottom"&&s);l=ge(ge({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var p=+(c==="left"&&!s||c==="right"&&s);l=ge(ge({},l),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+u})}return T.createElement("line",tr({},l,{className:ee("recharts-cartesian-axis-line",We(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,c=u.tickLine,s=u.stroke,f=u.tick,l=u.tickFormatter,h=u.unit,p=TD(ge(ge({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),d=J(this.props,!1),b=J(f,!1),x=ge(ge({},d),{},{fill:"none"},J(c,!1)),w=p.map(function(O,m){var g=o.getTickLineCoord(O),_=g.line,S=g.tick,A=ge(ge(ge(ge({textAnchor:y,verticalAnchor:v},d),{},{stroke:"none",fill:s},b),S),{},{index:m,payload:O,visibleTicksCount:p.length,tickFormatter:l});return T.createElement(he,tr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},ci(o.props,O,m)),c&&T.createElement("line",tr({},x,_,{className:ee("recharts-cartesian-axis-tick-line",We(c,"className"))})),f&&t.renderTickItem(f,A,"".concat(Z(l)?l(O.value,m):O.value).concat(h||"")))});return T.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,c=i.ticksGenerator,s=i.className,f=i.hide;if(f)return null;var l=this.props,h=l.ticks,p=$s(l,MD),y=h;return Z(c)&&(y=h&&h.length>0?c(this.props):c(p)),o<=0||u<=0||!y||!y.length?null:T.createElement(he,{className:ee("recharts-cartesian-axis",s),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Te.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=ee(i.className,"recharts-cartesian-axis-tick-value");return T.isValidElement(n)?o=T.cloneElement(n,ge(ge({},i),{},{className:u})):Z(n)?o=n(ge(ge({},i),{},{className:u})):o=T.createElement(bi,tr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(N.Component);eh(Da,"displayName","CartesianAxis");eh(Da,"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 BD=["type","layout","connectNulls","ref"],LD=["key"];function Sr(e){"@babel/helpers - typeof";return Sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sr(e)}function xg(e,t){if(e==null)return{};var r=FD(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 FD(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 Qr(){return Qr=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},Qr.apply(this,arguments)}function wg(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 De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wg(Object(r),!0).forEach(function(n){Ve(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jt(e){return HD(e)||zD(e)||WD(e)||UD()}function UD(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 58In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WD(e,t){if(e){if(typeof e=="string")return zl(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 zl(e,t)}}function zD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HD(e){if(Array.isArray(e))return zl(e)}function zl(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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Og(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Sx(n.key),n)}}function KD(e,t,r){return t&&Og(e.prototype,t),r&&Og(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function XD(e,t,r){return t=ea(t),VD(e,_x()?Reflect.construct(t,r||[],ea(e).constructor):t.apply(e,r))}function VD(e,t){if(t&&(Sr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YD(e)}function YD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_x=function(){return!!e})()}function ea(e){return ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ea(e)}function ZD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hl(e,t)}function Hl(e,t){return Hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hl(e,t)}function Ve(e,t,r){return t=Sx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sx(e){var t=JD(e,"string");return Sr(t)=="symbol"?t:t+""}function JD(e,t){if(Sr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ra=(function(e){function t(){var r;GD(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=XD(this,t,[].concat(i)),Ve(r,"state",{isAnimationFinished:!0,totalLength:0}),Ve(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),Ve(r,"getStrokeDasharray",function(o,u,c){var s=c.reduce(function(b,x){return b+x});if(!s)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/s),l=o%s,h=u-o,p=[],y=0,v=0;y<c.length;v+=c[y],++y)if(v+c[y]>l){p=[].concat(Jt(c.slice(0,y)),[l-v]);break}var d=p.length%2===0?[0,h]:[h];return[].concat(Jt(t.repeat(c,f)),Jt(p),d).map(function(b){return"".concat(b,"px")}).join(", ")}),Ve(r,"id",qn("recharts-line-")),Ve(r,"pathRef",function(o){r.mainCurve=o}),Ve(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Ve(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return ZD(t,e),KD(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=ze(f,zn);if(!l)return null;var h=function(v,d){return{x:v.x,y:v.y,value:v.value,errorVal:qe(v.payload,d)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return T.createElement(he,p,l.map(function(y){return T.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,c=u.dot,s=u.points,f=u.dataKey,l=J(this.props,!1),h=J(c,!0),p=s.map(function(v,d){var b=De(De(De({key:"dot-".concat(d),r:3},l),h),{},{index:d,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:s});return t.renderDotItem(c,b)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return T.createElement(he,Qr({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,c=u.type,s=u.layout,f=u.connectNulls;u.ref;var l=xg(u,BD),h=De(De(De({},J(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:c,layout:s,connectNulls:f});return T.createElement(Ol,Qr({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.strokeDasharray,s=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,v=o.width,d=o.height,b=this.state,x=b.prevPoints,w=b.totalLength;return T.createElement(dt,{begin:f,duration:l,isActive:s,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var m=O.t;if(x){var g=x.length/u.length,_=u.map(function(P,j){var C=Math.floor(j*g);if(x[C]){var M=x[C],D=Ye(M.x,P.x),R=Ye(M.y,P.y);return De(De({},P),{},{x:D(m),y:R(m)})}if(y){var q=Ye(v*2,P.x),L=Ye(d/2,P.y);return De(De({},P),{},{x:q(m),y:L(m)})}return De(De({},P),{},{x:P.x,y:P.y})});return a.renderCurveStatically(_,n,i)}var S=Ye(0,w),A=S(m),$;if(c){var E="".concat(c).split(/[,\s]+/gim).map(function(P){return parseFloat(P)});$=a.getStrokeDasharray(A,w,E)}else $=a.generateSimpleStrokeDasharray(w,A);return a.renderCurveStatically(u,n,i,{strokeDasharray:$})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,c=this.state,s=c.prevPoints,f=c.totalLength;return u&&o&&o.length&&(!s&&f>0||!Sa(s,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,c=i.className,s=i.xAxis,f=i.yAxis,l=i.top,h=i.left,p=i.width,y=i.height,v=i.isAnimationActive,d=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,x=u.length===1,w=ee("recharts-line",c),O=s&&s.allowDataOverflow,m=f&&f.allowDataOverflow,g=O||m,_=Y(d)?this.id:d,S=(n=J(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=S.r,$=A===void 0?3:A,E=S.strokeWidth,P=E===void 0?2:E,j=Rw(o)?o:{},C=j.clipDot,M=C===void 0?!0:C,D=$*2+P;return T.createElement(he,{className:w},O||m?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(_)},T.createElement("rect",{x:O?h:h-p/2,y:m?l:l-y/2,width:O?p:p*2,height:m?y:y*2})),!M&&T.createElement("clipPath",{id:"clipPath-dots-".concat(_)},T.createElement("rect",{x:h-D/2,y:l-D/2,width:p+D,height:y+D}))):null,!x&&this.renderCurve(g,_),this.renderErrorBar(g,_),(x||o)&&this.renderDots(g,M,_),(!v||b)&&Ot.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Jt(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(Jt(o),Jt(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(T.isValidElement(n))a=T.cloneElement(n,i);else if(Z(n))a=n(i);else{var o=i.key,u=xg(i,LD),c=ee("recharts-line-dot",typeof n!="boolean"?n.className:"");a=T.createElement(Yf,Qr({key:o},u,{className:c}))}return a}}])})(N.PureComponent);Ve(Ra,"displayName","Line");Ve(Ra,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!$r.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ve(Ra,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,u=e.bandSize,c=e.displayedData,s=e.offset,f=t.layout,l=c.map(function(h,p){var y=qe(h,o);return f==="horizontal"?{x:zy({axis:r,ticks:i,bandSize:u,entry:h,index:p}),y:Y(y)?null:n.scale(y),value:y,payload:h}:{x:Y(y)?null:r.scale(y),y:zy({axis:n,ticks:a,bandSize:u,entry:h,index:p}),value:y,payload:h}});return De({points:l,layout:f},s)});function Ar(e){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ar(e)}function QD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eR(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,Tx(n.key),n)}}function tR(e,t,r){return t&&eR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rR(e,t,r){return t=ta(t),nR(e,Ax()?Reflect.construct(t,r||[],ta(e).constructor):t.apply(e,r))}function nR(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 iR(e)}function iR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ax(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ax=function(){return!!e})()}function ta(e){return ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ta(e)}function aR(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&&Gl(e,t)}function Gl(e,t){return Gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gl(e,t)}function Px(e,t,r){return t=Tx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tx(e){var t=oR(e,"string");return Ar(t)=="symbol"?t:t+""}function oR(e,t){if(Ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Kl(){return Kl=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},Kl.apply(this,arguments)}function uR(e){var t=e.xAxisId,r=hx(),n=px(),i=lx(t);return i==null?null:N.createElement(Da,Kl({},i,{className:ee("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Nt(o,!0)}}))}var ka=(function(e){function t(){return QD(this,t),rR(this,t,arguments)}return aR(t,e),tR(t,[{key:"render",value:function(){return N.createElement(uR,this.props)}}])})(N.Component);Px(ka,"displayName","XAxis");Px(ka,"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 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 cR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sR(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,Mx(n.key),n)}}function lR(e,t,r){return t&&sR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fR(e,t,r){return t=ra(t),hR(e,Ex()?Reflect.construct(t,r||[],ra(e).constructor):t.apply(e,r))}function hR(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 pR(e)}function pR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ex(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ex=function(){return!!e})()}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ra(e)}function dR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xl(e,t)}function Xl(e,t){return Xl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xl(e,t)}function jx(e,t,r){return t=Mx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mx(e){var t=vR(e,"string");return Pr(t)=="symbol"?t:t+""}function vR(e,t){if(Pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Vl(){return Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vl.apply(this,arguments)}var yR=function(t){var r=t.yAxisId,n=hx(),i=px(),a=fx(r);return a==null?null:N.createElement(Da,Vl({},a,{className:ee("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return Nt(u,!0)}}))},Na=(function(e){function t(){return cR(this,t),fR(this,t,arguments)}return dR(t,e),lR(t,[{key:"render",value:function(){return N.createElement(yR,this.props)}}])})(N.Component);jx(Na,"displayName","YAxis");jx(Na,"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 _g(e){return xR(e)||bR(e)||gR(e)||mR()}function mR(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 59In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gR(e,t){if(e){if(typeof e=="string")return Yl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yl(e,t)}}function bR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xR(e){if(Array.isArray(e))return Yl(e)}function Yl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Zl=function(t,r,n,i,a){var o=ze(t,Qf),u=ze(t,Ca),c=[].concat(_g(o),_g(u)),s=ze(t,Ia),f="".concat(i,"Id"),l=i[0],h=r;if(c.length&&(h=c.reduce(function(v,d){if(d.props[f]===n&&rt(d.props,"extendDomain")&&B(d.props[l])){var b=d.props[l];return[Math.min(v[0],b),Math.max(v[1],b)]}return v},h)),s.length){var p="".concat(l,"1"),y="".concat(l,"2");h=s.reduce(function(v,d){if(d.props[f]===n&&rt(d.props,"extendDomain")&&B(d.props[p])&&B(d.props[y])){var b=d.props[p],x=d.props[y];return[Math.min(v[0],b,x),Math.max(v[1],b,x)]}return v},h)}return a&&a.length&&(h=a.reduce(function(v,d){return B(d)?[Math.min(v[0],d),Math.max(v[1],d)]:v},h)),h},Is={exports:{}},Sg;function wR(){return Sg||(Sg=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,s,f){this.fn=c,this.context=s,this.once=f||!1}function a(c,s,f,l,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,l||c,h),y=r?r+s:s;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],p]:c._events[y].push(p):(c._events[y]=p,c._eventsCount++),c}function o(c,s){--c._eventsCount===0?c._events=new n:delete c._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],f,l;if(this._eventsCount===0)return s;for(l in f=this._events)t.call(f,l)&&s.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},u.prototype.listeners=function(s){var f=r?r+s:s,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var h=0,p=l.length,y=new Array(p);h<p;h++)y[h]=l[h].fn;return y},u.prototype.listenerCount=function(s){var f=r?r+s:s,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(s,f,l,h,p,y){var v=r?r+s:s;if(!this._events[v])return!1;var d=this._events[v],b=arguments.length,x,w;if(d.fn){switch(d.once&&this.removeListener(s,d.fn,void 0,!0),b){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,f),!0;case 3:return d.fn.call(d.context,f,l),!0;case 4:return d.fn.call(d.context,f,l,h),!0;case 5:return d.fn.call(d.context,f,l,h,p),!0;case 6:return d.fn.call(d.context,f,l,h,p,y),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];d.fn.apply(d.context,x)}else{var O=d.length,m;for(w=0;w<O;w++)switch(d[w].once&&this.removeListener(s,d[w].fn,void 0,!0),b){case 1:d[w].fn.call(d[w].context);break;case 2:d[w].fn.call(d[w].context,f);break;case 3:d[w].fn.call(d[w].context,f,l);break;case 4:d[w].fn.call(d[w].context,f,l,h);break;default:if(!x)for(m=1,x=new Array(b-1);m<b;m++)x[m-1]=arguments[m];d[w].fn.apply(d[w].context,x)}}return!0},u.prototype.on=function(s,f,l){return a(this,s,f,l,!1)},u.prototype.once=function(s,f,l){return a(this,s,f,l,!0)},u.prototype.removeListener=function(s,f,l,h){var p=r?r+s:s;if(!this._events[p])return this;if(!f)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===f&&(!h||y.once)&&(!l||y.context===l)&&o(this,p);else{for(var v=0,d=[],b=y.length;v<b;v++)(y[v].fn!==f||h&&!y[v].once||l&&y[v].context!==l)&&d.push(y[v]);d.length?this._events[p]=d.length===1?d[0]:d:o(this,p)}return this},u.prototype.removeAllListeners=function(s){var f;return s?(f=r?r+s:s,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Is)),Is.exports}var OR=wR();const _R=se(OR);var Ds=new _R,Rs="recharts.syncMouseEvents";function Dn(e){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(e)}function SR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AR(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,Cx(n.key),n)}}function PR(e,t,r){return t&&AR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ks(e,t,r){return t=Cx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cx(e){var t=TR(e,"string");return Dn(t)=="symbol"?t:t+""}function TR(e,t){if(Dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ER=(function(){function e(){SR(this,e),ks(this,"activeIndex",0),ks(this,"coordinateList",[]),ks(this,"layout","horizontal")}return PR(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,c=r.layout,s=c===void 0?null:c,f=r.offset,l=f===void 0?null:f,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=s??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,c=this.coordinateList[this.activeIndex].coordinate,s=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+c+s,h=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:h})}}}])})();function jR(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&&B(n)&&B(i))return!0}return!1}function MR(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 $x(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Ae(t,r,n,i),u=Ae(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function CR(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,c=t.cy,s=t.innerRadius,f=t.outerRadius,l=t.angle,h=Ae(u,c,s,l),p=Ae(u,c,f,l);n=h.x,i=h.y,a=p.x,o=p.y}else return $x(t);return[{x:n,y:i},{x:a,y:o}]}function Rn(e){"@babel/helpers - typeof";return Rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(e)}function Ag(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 ii(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ag(Object(r),!0).forEach(function(n){$R(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ag(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $R(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 Rn(t)=="symbol"?t:t+""}function DR(e,t){if(Rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RR(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,c=e.offset,s=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,v=Ol;if(h==="ScatterChart")y=o,v=XC;else if(h==="BarChart")y=MR(l,o,c,f),v=Vf;else if(l==="radial"){var d=$x(o),b=d.cx,x=d.cy,w=d.radius,O=d.startAngle,m=d.endAngle;y={cx:b,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=B0}else y={points:CR(l,o,c)},v=Ol;var g=ii(ii(ii(ii({stroke:"#ccc",pointerEvents:"none"},c),y),J(p,!1)),{},{payload:u,payloadIndex:s,className:ee("recharts-tooltip-cursor",p.className)});return N.isValidElement(p)?N.cloneElement(p,g):N.createElement(v,g)}var kR=["item"],NR=["children","className","width","height","style","compact","title","desc"];function Tr(e){"@babel/helpers - typeof";return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(e)}function rr(){return rr=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},rr.apply(this,arguments)}function Pg(e,t){return LR(e)||BR(e,t)||Dx(e,t)||qR()}function qR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 60In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function LR(e){if(Array.isArray(e))return e}function Tg(e,t){if(e==null)return{};var r=FR(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 FR(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 UR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Rx(n.key),n)}}function zR(e,t,r){return t&&WR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HR(e,t,r){return t=na(t),GR(e,Ix()?Reflect.construct(t,r||[],na(e).constructor):t.apply(e,r))}function GR(e,t){if(t&&(Tr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KR(e)}function KR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ix(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ix=function(){return!!e})()}function na(e){return na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},na(e)}function XR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jl(e,t)}function Jl(e,t){return Jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jl(e,t)}function Er(e){return ZR(e)||YR(e)||Dx(e)||VR()}function VR(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 61In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dx(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 YR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZR(e){if(Array.isArray(e))return Ql(e)}function Ql(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Eg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eg(Object(r),!0).forEach(function(n){H(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H(e,t,r){return t=Rx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rx(e){var t=JR(e,"string");return Tr(t)=="symbol"?t:t+""}function JR(e,t){if(Tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QR={xAxis:["bottom","top"],yAxis:["left","right"]},ek={width:"100%",height:"100%"},kx={x:0,y:0};function ai(e){return e}var tk=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},rk=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return I(I(I({},i),Ae(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return I(I(I({},i),Ae(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return kx},qa=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,c){var s=c.props.data;return s&&s.length?[].concat(Er(u),Er(s)):u},[]);return o.length>0?o:t&&t.length&&B(i)&&B(a)?t.slice(i,a+1):[]};function Nx(e){return e==="number"?[0,"auto"]:void 0}var ef=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=qa(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,s){var f,l=(f=s.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=l===void 0?u:l;h=oi(p,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Er(c),[k0(s,h)]):c},[])},jg=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=tk(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=CE(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,h=ef(t,r,f,l),p=rk(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:p}}return null},nk=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,p=D0(f,a);return n.reduce(function(y,v){var d,b=v.type.defaultProps!==void 0?I(I({},v.type.defaultProps),v.props):v.props,x=b.type,w=b.dataKey,O=b.allowDataOverflow,m=b.allowDuplicatedCategory,g=b.scale,_=b.ticks,S=b.includeHidden,A=b[o];if(y[A])return y;var $=qa(t.data,{graphicalItems:i.filter(function(U){var K,oe=o in U.props?U.props[o]:(K=U.type.defaultProps)===null||K===void 0?void 0:K[o];return oe===A}),dataStartIndex:c,dataEndIndex:s}),E=$.length,P,j,C;jR(b.domain,O,x)&&(P=ml(b.domain,null,O),p&&(x==="number"||g!=="auto")&&(C=Zr($,w,"category")));var M=Nx(x);if(!P||P.length===0){var D,R=(D=b.domain)!==null&&D!==void 0?D:M;if(w){if(P=Zr($,w,x),x==="category"&&p){var q=Aw(P);m&&q?(j=P,P=zi(0,E)):m||(P=Xy(R,P,v).reduce(function(U,K){return U.indexOf(K)>=0?U:[].concat(Er(U),[K])},[]))}else if(x==="category")m?P=P.filter(function(U){return U!==""&&!Y(U)}):P=Xy(R,P,v).reduce(function(U,K){return U.indexOf(K)>=0||K===""||Y(K)?U:[].concat(Er(U),[K])},[]);else if(x==="number"){var L=kE($,i.filter(function(U){var K,oe,pe=o in U.props?U.props[o]:(K=U.type.defaultProps)===null||K===void 0?void 0:K[o],Ie="hide"in U.props?U.props.hide:(oe=U.type.defaultProps)===null||oe===void 0?void 0:oe.hide;return pe===A&&(S||!Ie)}),w,a,f);L&&(P=L)}p&&(x==="number"||g!=="auto")&&(C=Zr($,w,"category"))}else p?P=zi(0,E):u&&u[A]&&u[A].hasStack&&x==="number"?P=h==="expand"?[0,1]:R0(u[A].stackGroups,c,s):P=I0($,i.filter(function(U){var K=o in U.props?U.props[o]:U.type.defaultProps[o],oe="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return K===A&&(S||!oe)}),x,f,!0);if(x==="number")P=Zl(l,P,A,a,_),R&&(P=ml(R,P,O));else if(x==="category"&&R){var z=R,G=P.every(function(U){return z.indexOf(U)>=0});G&&(P=z)}}return I(I({},y),{},H({},A,I(I({},b),{},{axisType:a,domain:P,categoricalDomain:C,duplicateDomain:j,originalDomain:(d=b.domain)!==null&&d!==void 0?d:M,isCategorical:p,layout:f})))},{})},ik=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=qa(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),p=h.length,y=D0(f,a),v=-1;return n.reduce(function(d,b){var x=b.type.defaultProps!==void 0?I(I({},b.type.defaultProps),b.props):b.props,w=x[o],O=Nx("number");if(!d[w]){v++;var m;return y?m=zi(0,p):u&&u[w]&&u[w].hasStack?(m=R0(u[w].stackGroups,c,s),m=Zl(l,m,w,a)):(m=ml(O,I0(h,n.filter(function(g){var _,S,A=o in g.props?g.props[o]:(_=g.type.defaultProps)===null||_===void 0?void 0:_[o],$="hide"in g.props?g.props.hide:(S=g.type.defaultProps)===null||S===void 0?void 0:S.hide;return A===w&&!$}),"number",f),i.defaultProps.allowDataOverflow),m=Zl(l,m,w,a)),I(I({},d),{},H({},w,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:We(QR,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return d},{})},ak=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=ze(f,a),p={};return h&&h.length?p=nk(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(p=ik(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),p},ok=function(t){var r=Qt(t),n=Nt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Of(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Di(r,n)}},Mg=function(t){var r=t.children,n=t.defaultShowTooltip,i=ke(r,gr),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},uk=function(t){return!t||!t.length?!1:t.some(function(r){var n=st(r&&r.type);return n&&n.indexOf("Bar")>=0})},Cg=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"}},ck=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,c=u===void 0?{}:u,s=n.width,f=n.height,l=n.children,h=n.margin||{},p=ke(l,gr),y=ke(l,ir),v=Object.keys(c).reduce(function(m,g){var _=c[g],S=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},H({},S,m[S]+_.width)):m},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(m,g){var _=o[g],S=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},H({},S,We(m,"".concat(S))+_.height)):m},{top:h.top||0,bottom:h.bottom||0}),b=I(I({},d),v),x=b.bottom;p&&(b.bottom+=p.props.height||gr.defaultProps.height),y&&r&&(b=DE(b,i,n,r));var w=s-b.left-b.right,O=f-b.top-b.bottom;return I(I({brushBottom:x},b),{},{width:Math.max(w,0),height:Math.max(O,0)})},sk=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},qx=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,c=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,h=function(b,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,g=x.updateId,_=x.dataStartIndex,S=x.dataEndIndex,A=b.barSize,$=b.layout,E=b.barGap,P=b.barCategoryGap,j=b.maxBarSize,C=Cg($),M=C.numericAxisName,D=C.cateAxisName,R=uk(w),q=[];return w.forEach(function(L,z){var G=qa(b.data,{graphicalItems:[L],dataStartIndex:_,dataEndIndex:S}),U=L.type.defaultProps!==void 0?I(I({},L.type.defaultProps),L.props):L.props,K=U.dataKey,oe=U.maxBarSize,pe=U["".concat(M,"Id")],Ie=U["".concat(D,"Id")],Et={},je=c.reduce(function(jt,Mt){var Ba=x["".concat(Mt.axisType,"Map")],th=U["".concat(Mt.axisType,"Id")];Ba&&Ba[th]||Mt.axisType==="zAxis"||zt();var rh=Ba[th];return I(I({},jt),{},H(H({},Mt.axisType,rh),"".concat(Mt.axisType,"Ticks"),Nt(rh)))},Et),F=je[D],X=je["".concat(D,"Ticks")],V=O&&O[pe]&&O[pe].hasStack&&XE(L,O[pe].stackGroups),k=st(L.type).indexOf("Bar")>=0,le=Di(F,X),Q=[],ye=R&&$E({barSize:A,stackGroups:O,totalSize:sk(je,D)});if(k){var me,Me,gt=Y(oe)?j:oe,Vt=(me=(Me=Di(F,X,!0))!==null&&Me!==void 0?Me:gt)!==null&&me!==void 0?me:0;Q=IE({barGap:E,barCategoryGap:P,bandSize:Vt!==le?Vt:le,sizeList:ye[Ie],maxBarSize:gt}),Vt!==le&&(Q=Q.map(function(jt){return I(I({},jt),{},{position:I(I({},jt.position),{},{offset:jt.position.offset-Vt/2})})}))}var Hn=L&&L.type&&L.type.getComposedData;Hn&&q.push({props:I(I({},Hn(I(I({},je),{},{displayedData:G,props:b,dataKey:K,item:L,bandSize:le,barPosition:Q,offset:m,stackedData:V,layout:$,dataStartIndex:_,dataEndIndex:S}))),{},H(H(H({key:L.key||"item-".concat(z)},M,je[M]),D,je[D]),"animationId",g)),childIndex:qw(L,b.children),item:L})}),q},p=function(b,x){var w=b.props,O=b.dataStartIndex,m=b.dataEndIndex,g=b.updateId;if(!lp({props:w}))return null;var _=w.children,S=w.layout,A=w.stackOffset,$=w.data,E=w.reverseStackOrder,P=Cg(S),j=P.numericAxisName,C=P.cateAxisName,M=ze(_,n),D=HE($,M,"".concat(j,"Id"),"".concat(C,"Id"),A,E),R=c.reduce(function(U,K){var oe="".concat(K.axisType,"Map");return I(I({},U),{},H({},oe,ak(w,I(I({},K),{},{graphicalItems:M,stackGroups:K.axisType===j&&D,dataStartIndex:O,dataEndIndex:m}))))},{}),q=ck(I(I({},R),{},{props:w,graphicalItems:M}),x==null?void 0:x.legendBBox);Object.keys(R).forEach(function(U){R[U]=f(w,R[U],q,U.replace("Map",""),r)});var L=R["".concat(C,"Map")],z=ok(L),G=h(w,I(I({},R),{},{dataStartIndex:O,dataEndIndex:m,updateId:g,graphicalItems:M,stackGroups:D,offset:q}));return I(I({formattedGraphicalItems:G,graphicalItems:M,offset:q,stackGroups:D},z),R)},y=(function(d){function b(x){var w,O,m;return UR(this,b),m=HR(this,b,[x]),H(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),H(m,"accessibilityManager",new ER),H(m,"handleLegendBBoxUpdate",function(g){if(g){var _=m.state,S=_.dataStartIndex,A=_.dataEndIndex,$=_.updateId;m.setState(I({legendBBox:g},p({props:m.props,dataStartIndex:S,dataEndIndex:A,updateId:$},I(I({},m.state),{},{legendBBox:g}))))}}),H(m,"handleReceiveSyncEvent",function(g,_,S){if(m.props.syncId===g){if(S===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),H(m,"handleBrushChange",function(g){var _=g.startIndex,S=g.endIndex;if(_!==m.state.dataStartIndex||S!==m.state.dataEndIndex){var A=m.state.updateId;m.setState(function(){return I({dataStartIndex:_,dataEndIndex:S},p({props:m.props,dataStartIndex:_,dataEndIndex:S,updateId:A},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:S})}}),H(m,"handleMouseEnter",function(g){var _=m.getMouseInfo(g);if(_){var S=I(I({},_),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var A=m.props.onMouseEnter;Z(A)&&A(S,g)}}),H(m,"triggeredAfterMouseMove",function(g){var _=m.getMouseInfo(g),S=_?I(I({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var A=m.props.onMouseMove;Z(A)&&A(S,g)}),H(m,"handleItemMouseEnter",function(g){m.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),H(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),H(m,"handleMouseMove",function(g){g.persist(),m.throttleTriggeredAfterMouseMove(g)}),H(m,"handleMouseLeave",function(g){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var S=m.props.onMouseLeave;Z(S)&&S(_,g)}),H(m,"handleOuterEvent",function(g){var _=Nw(g),S=We(m.props,"".concat(_));if(_&&Z(S)){var A,$;/.*touch.*/i.test(_)?$=m.getMouseInfo(g.changedTouches[0]):$=m.getMouseInfo(g),S((A=$)!==null&&A!==void 0?A:{},g)}}),H(m,"handleClick",function(g){var _=m.getMouseInfo(g);if(_){var S=I(I({},_),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var A=m.props.onClick;Z(A)&&A(S,g)}}),H(m,"handleMouseDown",function(g){var _=m.props.onMouseDown;if(Z(_)){var S=m.getMouseInfo(g);_(S,g)}}),H(m,"handleMouseUp",function(g){var _=m.props.onMouseUp;if(Z(_)){var S=m.getMouseInfo(g);_(S,g)}}),H(m,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),H(m,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseDown(g.changedTouches[0])}),H(m,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseUp(g.changedTouches[0])}),H(m,"handleDoubleClick",function(g){var _=m.props.onDoubleClick;if(Z(_)){var S=m.getMouseInfo(g);_(S,g)}}),H(m,"handleContextMenu",function(g){var _=m.props.onContextMenu;if(Z(_)){var S=m.getMouseInfo(g);_(S,g)}}),H(m,"triggerSyncEvent",function(g){m.props.syncId!==void 0&&Ds.emit(Rs,m.props.syncId,g,m.eventEmitterSymbol)}),H(m,"applySyncEvent",function(g){var _=m.props,S=_.layout,A=_.syncMethod,$=m.state.updateId,E=g.dataStartIndex,P=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)m.setState(I({dataStartIndex:E,dataEndIndex:P},p({props:m.props,dataStartIndex:E,dataEndIndex:P,updateId:$},m.state)));else if(g.activeTooltipIndex!==void 0){var j=g.chartX,C=g.chartY,M=g.activeTooltipIndex,D=m.state,R=D.offset,q=D.tooltipTicks;if(!R)return;if(typeof A=="function")M=A(q,g);else if(A==="value"){M=-1;for(var L=0;L<q.length;L++)if(q[L].value===g.activeLabel){M=L;break}}var z=I(I({},R),{},{x:R.left,y:R.top}),G=Math.min(j,z.x+z.width),U=Math.min(C,z.y+z.height),K=q[M]&&q[M].value,oe=ef(m.state,m.props.data,M),pe=q[M]?{x:S==="horizontal"?q[M].coordinate:G,y:S==="horizontal"?U:q[M].coordinate}:kx;m.setState(I(I({},g),{},{activeLabel:K,activeCoordinate:pe,activePayload:oe,activeTooltipIndex:M}))}else m.setState(g)}),H(m,"renderCursor",function(g){var _,S=m.state,A=S.isTooltipActive,$=S.activeCoordinate,E=S.activePayload,P=S.offset,j=S.activeTooltipIndex,C=S.tooltipAxisBandSize,M=m.getTooltipEventType(),D=(_=g.props.active)!==null&&_!==void 0?_:A,R=m.props.layout,q=g.key||"_recharts-cursor";return T.createElement(RR,{key:q,activeCoordinate:$,activePayload:E,activeTooltipIndex:j,chartName:r,element:g,isActive:D,layout:R,offset:P,tooltipAxisBandSize:C,tooltipEventType:M})}),H(m,"renderPolarAxis",function(g,_,S){var A=We(g,"type.axisType"),$=We(m.state,"".concat(A,"Map")),E=g.type.defaultProps,P=E!==void 0?I(I({},E),g.props):g.props,j=$&&$[P["".concat(A,"Id")]];return N.cloneElement(g,I(I({},j),{},{className:ee(A,j.className),key:g.key||"".concat(_,"-").concat(S),ticks:Nt(j,!0)}))}),H(m,"renderPolarGrid",function(g){var _=g.props,S=_.radialLines,A=_.polarAngles,$=_.polarRadius,E=m.state,P=E.radiusAxisMap,j=E.angleAxisMap,C=Qt(P),M=Qt(j),D=M.cx,R=M.cy,q=M.innerRadius,L=M.outerRadius;return N.cloneElement(g,{polarAngles:Array.isArray(A)?A:Nt(M,!0).map(function(z){return z.coordinate}),polarRadius:Array.isArray($)?$:Nt(C,!0).map(function(z){return z.coordinate}),cx:D,cy:R,innerRadius:q,outerRadius:L,key:g.key||"polar-grid",radialLines:S})}),H(m,"renderLegend",function(){var g=m.state.formattedGraphicalItems,_=m.props,S=_.children,A=_.width,$=_.height,E=m.props.margin||{},P=A-(E.left||0)-(E.right||0),j=C0({children:S,formattedGraphicalItems:g,legendWidth:P,legendContent:s});if(!j)return null;var C=j.item,M=Tg(j,kR);return N.cloneElement(C,I(I({},M),{},{chartWidth:A,chartHeight:$,margin:E,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),H(m,"renderTooltip",function(){var g,_=m.props,S=_.children,A=_.accessibilityLayer,$=ke(S,ot);if(!$)return null;var E=m.state,P=E.isTooltipActive,j=E.activeCoordinate,C=E.activePayload,M=E.activeLabel,D=E.offset,R=(g=$.props.active)!==null&&g!==void 0?g:P;return N.cloneElement($,{viewBox:I(I({},D),{},{x:D.left,y:D.top}),active:R,label:M,payload:R?C:[],coordinate:j,accessibilityLayer:A})}),H(m,"renderBrush",function(g){var _=m.props,S=_.margin,A=_.data,$=m.state,E=$.offset,P=$.dataStartIndex,j=$.dataEndIndex,C=$.updateId;return N.cloneElement(g,{key:g.key||"_recharts-brush",onChange:ei(m.handleBrushChange,g.props.onChange),data:A,x:B(g.props.x)?g.props.x:E.left,y:B(g.props.y)?g.props.y:E.top+E.height+E.brushBottom-(S.bottom||0),width:B(g.props.width)?g.props.width:E.width,startIndex:P,endIndex:j,updateId:"brush-".concat(C)})}),H(m,"renderReferenceElement",function(g,_,S){if(!g)return null;var A=m,$=A.clipPathId,E=m.state,P=E.xAxisMap,j=E.yAxisMap,C=E.offset,M=g.type.defaultProps||{},D=g.props,R=D.xAxisId,q=R===void 0?M.xAxisId:R,L=D.yAxisId,z=L===void 0?M.yAxisId:L;return N.cloneElement(g,{key:g.key||"".concat(_,"-").concat(S),xAxis:P[q],yAxis:j[z],viewBox:{x:C.left,y:C.top,width:C.width,height:C.height},clipPathId:$})}),H(m,"renderActivePoints",function(g){var _=g.item,S=g.activePoint,A=g.basePoint,$=g.childIndex,E=g.isRange,P=[],j=_.props.key,C=_.item.type.defaultProps!==void 0?I(I({},_.item.type.defaultProps),_.item.props):_.item.props,M=C.activeDot,D=C.dataKey,R=I(I({index:$,dataKey:D,cx:S.x,cy:S.y,r:4,fill:Xf(_.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},J(M,!1)),ui(M));return P.push(b.renderActiveDot(M,R,"".concat(j,"-activePoint-").concat($))),A?P.push(b.renderActiveDot(M,I(I({},R),{},{cx:A.x,cy:A.y}),"".concat(j,"-basePoint-").concat($))):E&&P.push(null),P}),H(m,"renderGraphicChild",function(g,_,S){var A=m.filterFormatItem(g,_,S);if(!A)return null;var $=m.getTooltipEventType(),E=m.state,P=E.isTooltipActive,j=E.tooltipAxis,C=E.activeTooltipIndex,M=E.activeLabel,D=m.props.children,R=ke(D,ot),q=A.props,L=q.points,z=q.isRange,G=q.baseLine,U=A.item.type.defaultProps!==void 0?I(I({},A.item.type.defaultProps),A.item.props):A.item.props,K=U.activeDot,oe=U.hide,pe=U.activeBar,Ie=U.activeShape,Et=!!(!oe&&P&&R&&(K||pe||Ie)),je={};$!=="axis"&&R&&R.props.trigger==="click"?je={onClick:ei(m.handleItemMouseEnter,g.props.onClick)}:$!=="axis"&&(je={onMouseLeave:ei(m.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:ei(m.handleItemMouseEnter,g.props.onMouseEnter)});var F=N.cloneElement(g,I(I({},A.props),je));function X(Mt){return typeof j.dataKey=="function"?j.dataKey(Mt.payload):null}if(Et)if(C>=0){var V,k;if(j.dataKey&&!j.allowDuplicatedCategory){var le=typeof j.dataKey=="function"?X:"payload.".concat(j.dataKey.toString());V=oi(L,le,M),k=z&&G&&oi(G,le,M)}else V=L==null?void 0:L[C],k=z&&G&&G[C];if(Ie||pe){var Q=g.props.activeIndex!==void 0?g.props.activeIndex:C;return[N.cloneElement(g,I(I(I({},A.props),je),{},{activeIndex:Q})),null,null]}if(!Y(V))return[F].concat(Er(m.renderActivePoints({item:A,activePoint:V,basePoint:k,childIndex:C,isRange:z})))}else{var ye,me=(ye=m.getItemByXY(m.state.activeCoordinate))!==null&&ye!==void 0?ye:{graphicalItem:F},Me=me.graphicalItem,gt=Me.item,Vt=gt===void 0?g:gt,Hn=Me.childIndex,jt=I(I(I({},A.props),je),{},{activeIndex:Hn});return[N.cloneElement(Vt,jt),null,null]}return z?[F,null,null]:[F,null]}),H(m,"renderCustomized",function(g,_,S){return N.cloneElement(g,I(I({key:"recharts-customized-".concat(S)},m.props),m.state))}),H(m,"renderMap",{CartesianGrid:{handler:ai,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:ai},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:ai},YAxis:{handler:ai},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:qn("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=Cb(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return XR(b,d),zR(b,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,m=w.data,g=w.height,_=w.layout,S=ke(O,ot);if(S){var A=S.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var $=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,E=ef(this.state,m,A,$),P=this.state.tooltipTicks[A].coordinate,j=(this.state.offset.top+g)/2,C=_==="horizontal",M=C?{x:P,y:j}:{y:P,x:j},D=this.state.formattedGraphicalItems.find(function(q){var L=q.item;return L.type.name==="Scatter"});D&&(M=I(I({},M),D.props.points[A].tooltipPosition),E=D.props.points[A].tooltipPayload);var R={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:$,activePayload:E,activeCoordinate:M};this.setState(R),this.renderCursor(S),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var m,g;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0}})}return null}},{key:"componentDidUpdate",value:function(w){Bs([ke(w.children,ot)],[ke(this.props.children,ot)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=ke(this.props.children,ot);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),g=SS(m),_={chartX:Math.round(w.pageX-g.left),chartY:Math.round(w.pageY-g.top)},S=m.width/O.offsetWidth||1,A=this.inRange(_.chartX,_.chartY,S);if(!A)return null;var $=this.state,E=$.xAxisMap,P=$.yAxisMap,j=this.getTooltipEventType(),C=jg(this.state,this.props.data,this.props.layout,A);if(j!=="axis"&&E&&P){var M=Qt(E).scale,D=Qt(P).scale,R=M&&M.invert?M.invert(_.chartX):null,q=D&&D.invert?D.invert(_.chartY):null;return I(I({},_),{},{xValue:R,yValue:q},C)}return C?I(I({},_),C):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,_=w/m,S=O/m;if(g==="horizontal"||g==="vertical"){var A=this.state.offset,$=_>=A.left&&_<=A.left+A.width&&S>=A.top&&S<=A.top+A.height;return $?{x:_,y:S}:null}var E=this.state,P=E.angleAxisMap,j=E.radiusAxisMap;if(P&&j){var C=Qt(P);return Zy({x:_,y:S},C)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=ke(w,ot),g={};m&&O==="axis"&&(m.props.trigger==="click"?g={onClick:this.handleClick}:g={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var _=ui(this.props,this.handleOuterEvent);return I(I({},_),g)}},{key:"addListener",value:function(){Ds.on(Rs,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Ds.removeListener(Rs,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var g=this.state.formattedGraphicalItems,_=0,S=g.length;_<S;_++){var A=g[_];if(A.item===w||A.props.key===w.key||O===st(A.item.type)&&m===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,g=O.top,_=O.height,S=O.width;return T.createElement("defs",null,T.createElement("clipPath",{id:w},T.createElement("rect",{x:m,y:g,height:_,width:S})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var g=Pg(m,2),_=g[0],S=g[1];return I(I({},O),{},H({},_,S.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var g=Pg(m,2),_=g[0],S=g[1];return I(I({},O),{},H({},_,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,m=O.formattedGraphicalItems,g=O.activeItem;if(m&&m.length)for(var _=0,S=m.length;_<S;_++){var A=m[_],$=A.props,E=A.item,P=E.type.defaultProps!==void 0?I(I({},E.type.defaultProps),E.props):E.props,j=st(E.type);if(j==="Bar"){var C=($.data||[]).find(function(q){return qC(w,q)});if(C)return{graphicalItem:A,payload:C}}else if(j==="RadialBar"){var M=($.data||[]).find(function(q){return Zy(w,q)});if(M)return{graphicalItem:A,payload:M}}else if(Ta(A,g)||Ea(A,g)||jn(A,g)){var D=E$({graphicalItem:A,activeTooltipItem:g,itemData:P.data}),R=P.activeIndex===void 0?D:P.activeIndex;return{graphicalItem:I(I({},A),{},{childIndex:R}),payload:jn(A,g)?P.data[D]:A.props.data[D]}}}return null}},{key:"render",value:function(){var w=this;if(!lp(this))return null;var O=this.props,m=O.children,g=O.className,_=O.width,S=O.height,A=O.style,$=O.compact,E=O.title,P=O.desc,j=Tg(O,NR),C=J(j,!1);if($)return T.createElement(sg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement(Fs,rr({},C,{width:_,height:S,title:E,desc:P}),this.renderClipPath(),hp(m,this.renderMap)));if(this.props.accessibilityLayer){var M,D;C.tabIndex=(M=this.props.tabIndex)!==null&&M!==void 0?M:0,C.role=(D=this.props.role)!==null&&D!==void 0?D:"application",C.onKeyDown=function(q){w.accessibilityManager.keyboardEvent(q)},C.onFocus=function(){w.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return T.createElement(sg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement("div",rr({className:ee("recharts-wrapper",g),style:I({position:"relative",cursor:"default",width:_,height:S},A)},R,{ref:function(L){w.container=L}}),T.createElement(Fs,rr({},C,{width:_,height:S,title:E,desc:P,style:ek}),this.renderClipPath(),hp(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(N.Component);H(y,"displayName",r),H(y,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),H(y,"getDerivedStateFromProps",function(d,b){var x=d.dataKey,w=d.data,O=d.children,m=d.width,g=d.height,_=d.layout,S=d.stackOffset,A=d.margin,$=b.dataStartIndex,E=b.dataEndIndex;if(b.updateId===void 0){var P=Mg(d);return I(I(I({},P),{},{updateId:0},p(I(I({props:d},P),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:g,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(x!==b.prevDataKey||w!==b.prevData||m!==b.prevWidth||g!==b.prevHeight||_!==b.prevLayout||S!==b.prevStackOffset||!nr(A,b.prevMargin)){var j=Mg(d),C={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},M=I(I({},jg(b,w,_)),{},{updateId:b.updateId+1}),D=I(I(I({},j),C),M);return I(I(I({},D),p(I({props:d},D),b)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:g,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(!Bs(O,b.prevChildren)){var R,q,L,z,G=ke(O,gr),U=G&&(R=(q=G.props)===null||q===void 0?void 0:q.startIndex)!==null&&R!==void 0?R:$,K=G&&(L=(z=G.props)===null||z===void 0?void 0:z.endIndex)!==null&&L!==void 0?L:E,oe=U!==$||K!==E,pe=!Y(w),Ie=pe&&!oe?b.updateId:b.updateId+1;return I(I({updateId:Ie},p(I(I({props:d},b),{},{updateId:Ie,dataStartIndex:U,dataEndIndex:K}),b)),{},{prevChildren:O,dataStartIndex:U,dataEndIndex:K})}return null}),H(y,"renderActiveDot",function(d,b,x){var w;return N.isValidElement(d)?w=N.cloneElement(d,b):Z(d)?w=d(b):w=T.createElement(Yf,b),T.createElement(he,{className:"recharts-active-dot",key:x},w)});var v=N.forwardRef(function(b,x){return T.createElement(y,rr({},b,{ref:x}))});return v.displayName=y.displayName,v},dk=qx({chartName:"LineChart",GraphicalChild:Ra,axisComponents:[{axisType:"xAxis",AxisComp:ka},{axisType:"yAxis",AxisComp:Na}],formatAxisMap:tx}),vk=qx({chartName:"BarChart",GraphicalChild:kr,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:ka},{axisType:"yAxis",AxisComp:Na}],formatAxisMap:tx});export{vk as B,$b as C,dk as L,pk as R,ot as T,ka as X,Na as Y,kr as a,Ra as b};
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.