import{f as ti,h as ce,r as R,R as T,j as z,L as tn}from"./index-D8rt4Ouv.js";import{c as sb,A as yw,u as ri,e as mw,r as ni,D as _h,C as gw,T as bw,b as xw,f as ww,a as Ow,d as _w}from"./lacrosse-queries-TkwrEsG5.js";import{b as te}from"./button-BKWwiobZ.js";const Sw=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Zs=sb("arrow-right",Sw);const Aw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Pw=sb("target",Aw);var Ya,Sh;function Ne(){if(Sh)return Ya;Sh=1;var e=Array.isArray;return Ya=e,Ya}var Za,Ah;function lb(){if(Ah)return Za;Ah=1;var e=typeof ti=="object"&&ti&&ti.Object===Object&&ti;return Za=e,Za}var Ja,Ph;function ct(){if(Ph)return Ja;Ph=1;var e=lb(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ja=r,Ja}var Qa,Th;function zn(){if(Th)return Qa;Th=1;var e=ct(),t=e.Symbol;return Qa=t,Qa}var eo,Eh;function Tw(){if(Eh)return eo;Eh=1;var e=zn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),c=o[i];try{o[i]=void 0;var s=!0}catch{}var f=n.call(o);return s&&(u?o[i]=c:delete o[i]),f}return eo=a,eo}var to,jh;function Ew(){if(jh)return to;jh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return to=r,to}var ro,Mh;function xt(){if(Mh)return ro;Mh=1;var e=zn(),t=Tw(),r=Ew(),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 ro=o,ro}var no,Ch;function wt(){if(Ch)return no;Ch=1;function e(t){return t!=null&&typeof t=="object"}return no=e,no}var io,$h;function Nr(){if($h)return io;$h=1;var e=xt(),t=wt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return io=n,io}var ao,Ih;function mf(){if(Ih)return ao;Ih=1;var e=Ne(),t=Nr(),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 ao=i,ao}var oo,kh;function jt(){if(kh)return oo;kh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return oo=e,oo}var uo,Nh;function gf(){if(Nh)return uo;Nh=1;var e=xt(),t=jt(),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 uo=o,uo}var co,Dh;function jw(){if(Dh)return co;Dh=1;var e=ct(),t=e["__core-js_shared__"];return co=t,co}var so,Rh;function Mw(){if(Rh)return so;Rh=1;var e=jw(),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 so=r,so}var lo,qh;function fb(){if(qh)return lo;qh=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 lo=r,lo}var fo,Lh;function Cw(){if(Lh)return fo;Lh=1;var e=gf(),t=Mw(),r=jt(),n=fb(),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 fo=l,fo}var ho,Bh;function $w(){if(Bh)return ho;Bh=1;function e(t,r){return t?.[r]}return ho=e,ho}var po,Fh;function Jt(){if(Fh)return po;Fh=1;var e=Cw(),t=$w();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return po=r,po}var vo,Wh;function ya(){if(Wh)return vo;Wh=1;var e=Jt(),t=e(Object,"create");return vo=t,vo}var yo,zh;function Iw(){if(zh)return yo;zh=1;var e=ya();function t(){this.__data__=e?e(null):{},this.size=0}return yo=t,yo}var mo,Uh;function kw(){if(Uh)return mo;Uh=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return mo=e,mo}var go,Hh;function Nw(){if(Hh)return go;Hh=1;var e=ya(),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 go=i,go}var bo,Gh;function Dw(){if(Gh)return bo;Gh=1;var e=ya(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return bo=n,bo}var xo,Kh;function Rw(){if(Kh)return xo;Kh=1;var e=ya(),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 xo=r,xo}var wo,Vh;function qw(){if(Vh)return wo;Vh=1;var e=Iw(),t=kw(),r=Nw(),n=Dw(),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,wo=a,wo}var Oo,Xh;function Lw(){if(Xh)return Oo;Xh=1;function e(){this.__data__=[],this.size=0}return Oo=e,Oo}var _o,Yh;function bf(){if(Yh)return _o;Yh=1;function e(t,r){return t===r||t!==t&&r!==r}return _o=e,_o}var So,Zh;function ma(){if(Zh)return So;Zh=1;var e=bf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return So=t,So}var Ao,Jh;function Bw(){if(Jh)return Ao;Jh=1;var e=ma(),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 Ao=n,Ao}var Po,Qh;function Fw(){if(Qh)return Po;Qh=1;var e=ma();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Po=t,Po}var To,ed;function Ww(){if(ed)return To;ed=1;var e=ma();function t(r){return e(this.__data__,r)>-1}return To=t,To}var Eo,td;function zw(){if(td)return Eo;td=1;var e=ma();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 Eo=t,Eo}var jo,rd;function ga(){if(rd)return jo;rd=1;var e=Lw(),t=Bw(),r=Fw(),n=Ww(),i=zw();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,jo=a,jo}var Mo,nd;function xf(){if(nd)return Mo;nd=1;var e=Jt(),t=ct(),r=e(t,"Map");return Mo=r,Mo}var Co,id;function Uw(){if(id)return Co;id=1;var e=qw(),t=ga(),r=xf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Co=n,Co}var $o,ad;function Hw(){if(ad)return $o;ad=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return $o=e,$o}var Io,od;function ba(){if(od)return Io;od=1;var e=Hw();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Io=t,Io}var ko,ud;function Gw(){if(ud)return ko;ud=1;var e=ba();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return ko=t,ko}var No,cd;function Kw(){if(cd)return No;cd=1;var e=ba();function t(r){return e(this,r).get(r)}return No=t,No}var Do,sd;function Vw(){if(sd)return Do;sd=1;var e=ba();function t(r){return e(this,r).has(r)}return Do=t,Do}var Ro,ld;function Xw(){if(ld)return Ro;ld=1;var e=ba();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 Ro=t,Ro}var qo,fd;function wf(){if(fd)return qo;fd=1;var e=Uw(),t=Gw(),r=Kw(),n=Vw(),i=Xw();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,qo=a,qo}var Lo,hd;function hb(){if(hd)return Lo;hd=1;var e=wf(),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,Lo=r,Lo}var Bo,dd;function Yw(){if(dd)return Bo;dd=1;var e=hb(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Bo=r,Bo}var Fo,pd;function Zw(){if(pd)return Fo;pd=1;var e=Yw(),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 Fo=n,Fo}var Wo,vd;function Of(){if(vd)return Wo;vd=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 Wo=e,Wo}var zo,yd;function Jw(){if(yd)return zo;yd=1;var e=zn(),t=Of(),r=Ne(),n=Nr(),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 zo=o,zo}var Uo,md;function db(){if(md)return Uo;md=1;var e=Jw();function t(r){return r==null?"":e(r)}return Uo=t,Uo}var Ho,gd;function pb(){if(gd)return Ho;gd=1;var e=Ne(),t=mf(),r=Zw(),n=db();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Ho=i,Ho}var Go,bd;function xa(){if(bd)return Go;bd=1;var e=Nr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Go=t,Go}var Ko,xd;function _f(){if(xd)return Ko;xd=1;var e=pb(),t=xa();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 Ko=r,Ko}var Vo,wd;function vb(){if(wd)return Vo;wd=1;var e=_f();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Vo=t,Vo}var Qw=vb();const Ge=ce(Qw);var Xo,Od;function eO(){if(Od)return Xo;Od=1;function e(t){return t==null}return Xo=e,Xo}var tO=eO();const J=ce(tO);var Yo,_d;function rO(){if(_d)return Yo;_d=1;var e=xt(),t=Ne(),r=wt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Yo=i,Yo}var nO=rO();const Kt=ce(nO);var iO=gf();const Z=ce(iO);var aO=jt();const Dr=ce(aO);var Zo={exports:{}},ne={};var Sd;function oO(){if(Sd)return ne;Sd=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(d){if(typeof d=="object"&&d!==null){var x=d.$$typeof;switch(x){case e:switch(d=d.type,d){case r:case i:case n:case s:case f:return d;default:switch(d=d&&d.$$typeof,d){case u:case o:case c:case h:case l:case a:return d;default:return x}}case t:return x}}}return ne.ContextConsumer=o,ne.ContextProvider=a,ne.Element=e,ne.ForwardRef=c,ne.Fragment=r,ne.Lazy=h,ne.Memo=l,ne.Portal=t,ne.Profiler=i,ne.StrictMode=n,ne.Suspense=s,ne.SuspenseList=f,ne.isAsyncMode=function(){return!1},ne.isConcurrentMode=function(){return!1},ne.isContextConsumer=function(d){return v(d)===o},ne.isContextProvider=function(d){return v(d)===a},ne.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},ne.isForwardRef=function(d){return v(d)===c},ne.isFragment=function(d){return v(d)===r},ne.isLazy=function(d){return v(d)===h},ne.isMemo=function(d){return v(d)===l},ne.isPortal=function(d){return v(d)===t},ne.isProfiler=function(d){return v(d)===i},ne.isStrictMode=function(d){return v(d)===n},ne.isSuspense=function(d){return v(d)===s},ne.isSuspenseList=function(d){return v(d)===f},ne.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===s||d===f||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===l||d.$$typeof===a||d.$$typeof===o||d.$$typeof===c||d.$$typeof===y||d.getModuleId!==void 0)},ne.typeOf=v,ne}var Ad;function uO(){return Ad||(Ad=1,Zo.exports=oO()),Zo.exports}var cO=uO(),Jo,Pd;function yb(){if(Pd)return Jo;Pd=1;var e=xt(),t=wt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Jo=n,Jo}var Qo,Td;function sO(){if(Td)return Qo;Td=1;var e=yb();function t(r){return e(r)&&r!=+r}return Qo=t,Qo}var lO=sO();const Un=ce(lO);var fO=yb();const hO=ce(fO);var tt=function(t){return t===0?0:t>0?1:-1},Bt=function(t){return Kt(t)&&t.indexOf("%")===t.length-1},q=function(t){return hO(t)&&!Un(t)},dO=function(t){return J(t)},Oe=function(t){return q(t)||Kt(t)},pO=0,Hn=function(t){var r=++pO;return"".concat(t||"").concat(r)},Vt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&!Kt(t))return n;var a;if(Bt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Un(a)&&(a=n),i&&a>r&&(a=r),a},At=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},vO=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},Qe=function(t,r){return q(t)&&q(r)?function(n){return t+n*(r-t)}:function(){return r}};function gi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ge(n,t))===r})}var yO=function(t,r){return q(t)&&q(r)?t-r:Kt(t)&&Kt(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function lr(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 Js(e){"@babel/helpers - typeof";return Js=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},Js(e)}var mO=["viewBox","children"],gO=["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"],Ed=["points","pathLength"],eu={svg:mO,polygon:Ed,polyline:Ed},Sf=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],bi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(R.isValidElement(t)&&(n=t.props),!Dr(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},bO=function(t,r,n){return function(i){return t(r,n,i),null}},xi=function(t,r,n){if(!Dr(t)||Js(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]=bO(o,r,n))}),i},xO=["children"],wO=["children"];function jd(e,t){if(e==null)return{};var r=OO(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 OO(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 Md={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"},dt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Cd=null,tu=null,Af=function e(t){if(t===Cd&&Array.isArray(tu))return tu;var r=[];return R.Children.forEach(t,function(n){J(n)||(cO.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),tu=r,Cd=t,r};function Ke(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return dt(i)}):n=[dt(t)],Af(e).forEach(function(i){var a=Ge(i,"type.displayName")||Ge(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Le(e,t){var r=Ke(e,t);return r&&r[0]}var $d=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!q(n)||n<=0||!q(i)||i<=0)},_O=["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"],SO=function(t){return t&&t.type&&Kt(t.type)&&_O.indexOf(t.type)>=0},AO=function(t){return t&&Qs(t)==="object"&&"clipDot"in t},PO=function(t,r,n,i){var a,o=(a=eu?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Z(t)&&(i&&o.includes(r)||gO.includes(r))||n&&Sf.includes(r)},Q=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(R.isValidElement(t)&&(i=t.props),!Dr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;PO((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},el=function e(t,r){if(t===r)return!0;var n=R.Children.count(t);if(n!==R.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Id(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(!Id(a,o))return!1}return!0},Id=function(t,r){if(J(t)&&J(r))return!0;if(!J(t)&&!J(r)){var n=t.props||{},i=n.children,a=jd(n,xO),o=r.props||{},u=o.children,c=jd(o,wO);return i&&u?lr(a,c)&&el(i,u):!i&&!u?lr(a,c):!1}return!1},kd=function(t,r){var n=[],i={};return Af(t).forEach(function(a,o){if(SO(a))n.push(a);else if(a){var u=dt(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},TO=function(t){var r=t&&t.type;return r&&Md[r]?Md[r]:null},EO=function(t,r){return Af(r).indexOf(t)},jO=["children","width","height","viewBox","className","style","title","desc"];function tl(){return tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tl.apply(this,arguments)}function MO(e,t){if(e==null)return{};var r=CO(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 CO(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 rl(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=MO(e,jO),f=i||{width:r,height:n,x:0,y:0},l=te("recharts-surface",a);return T.createElement("svg",tl({},Q(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 $O=["children","className"];function nl(){return nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nl.apply(this,arguments)}function IO(e,t){if(e==null)return{};var r=kO(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 kO(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 pe=T.forwardRef(function(e,t){var r=e.children,n=e.className,i=IO(e,$O),a=te("recharts-layer",n);return T.createElement("g",nl({className:a},Q(i,!0),{ref:t}),r)}),pt=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]},ru,Nd;function NO(){if(Nd)return ru;Nd=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 ru=e,ru}var nu,Dd;function DO(){if(Dd)return nu;Dd=1;var e=NO();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 nu=t,nu}var iu,Rd;function mb(){if(Rd)return iu;Rd=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 iu=c,iu}var au,qd;function RO(){if(qd)return au;qd=1;function e(t){return t.split("")}return au=e,au}var ou,Ld;function qO(){if(Ld)return ou;Ld=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+")*",x=v+y+d,g="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(c+"(?="+c+")|"+g+x,"g");function O(m){return m.match(w)||[]}return ou=O,ou}var uu,Bd;function LO(){if(Bd)return uu;Bd=1;var e=RO(),t=mb(),r=qO();function n(i){return t(i)?r(i):e(i)}return uu=n,uu}var cu,Fd;function BO(){if(Fd)return cu;Fd=1;var e=DO(),t=mb(),r=LO(),n=db();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 cu=i,cu}var su,Wd;function FO(){if(Wd)return su;Wd=1;var e=BO(),t=e("toUpperCase");return su=t,su}var WO=FO();const wa=ce(WO);function ue(e){return function(){return e}}const gb=Math.cos,wi=Math.sin,rt=Math.sqrt,Oi=Math.PI,Oa=2*Oi,il=Math.PI,al=2*il,qt=1e-6,zO=al-qt;function bb(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function UO(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return bb;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 HO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?bb:UO(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,c=n-t,s=i-r,f=o-t,l=u-r,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>qt)if(!(Math.abs(l*c-s*f)>qt)||!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,x=Math.sqrt(v),g=Math.sqrt(h),w=a*Math.tan((il-Math.acos((v+h-d)/(2*x*g)))/2),O=w/g,m=w/x;Math.abs(O-1)>qt&&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)>qt||Math.abs(this._y1-f)>qt)&&this._append`L${s},${f}`,n&&(h<0&&(h=h%al+al),h>zO?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>qt&&this._append`A${n},${n},0,${+(h>=il)},${l},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Pf(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 HO(t)}function Tf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function xb(e){this._context=e}xb.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 _a(e){return new xb(e)}function wb(e){return e[0]}function Ob(e){return e[1]}function _b(e,t){var r=ue(!0),n=null,i=_a,a=null,o=Pf(u);e=typeof e=="function"?e:e===void 0?wb:ue(e),t=typeof t=="function"?t:t===void 0?Ob:ue(t);function u(c){var s,f=(c=Tf(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:ue(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:ue(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:ue(!!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 ii(e,t,r){var n=null,i=ue(!0),a=null,o=_a,u=null,c=Pf(s);e=typeof e=="function"?e:e===void 0?wb:ue(+e),t=typeof t=="function"?t:ue(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Ob:ue(+r);function s(l){var h,p,y,v=(l=Tf(l)).length,d,x=!1,g,w=new Array(v),O=new Array(v);for(a==null&&(u=o(g=c())),h=0;h<=v;++h){if(!(h<v&&i(d=l[h],h,l))===x)if(x=!x)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()}x&&(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(g)return u=null,g+""||null}function f(){return _b().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:ue(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:ue(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:ue(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:ue(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:ue(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ue(+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:ue(!!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 Sb{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 GO(e){return new Sb(e,!0)}function KO(e){return new Sb(e,!1)}const Ef={draw(e,t){const r=rt(t/Oi);e.moveTo(r,0),e.arc(0,0,r,0,Oa)}},VO={draw(e,t){const r=rt(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()}},Ab=rt(1/3),XO=Ab*2,YO={draw(e,t){const r=rt(t/XO),n=r*Ab;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},ZO={draw(e,t){const r=rt(t),n=-r/2;e.rect(n,n,r,r)}},JO=.8908130915292852,Pb=wi(Oi/10)/wi(7*Oi/10),QO=wi(Oa/10)*Pb,e_=-gb(Oa/10)*Pb,t_={draw(e,t){const r=rt(t*JO),n=QO*r,i=e_*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Oa*a/5,u=gb(o),c=wi(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},lu=rt(3),r_={draw(e,t){const r=-rt(t/(lu*3));e.moveTo(0,r*2),e.lineTo(-lu*r,-r),e.lineTo(lu*r,-r),e.closePath()}},We=-.5,ze=rt(3)/2,ol=1/rt(12),n_=(ol/2+1)*3,i_={draw(e,t){const r=rt(t/n_),n=r/2,i=r*ol,a=n,o=r*ol+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(We*n-ze*i,ze*n+We*i),e.lineTo(We*a-ze*o,ze*a+We*o),e.lineTo(We*u-ze*c,ze*u+We*c),e.lineTo(We*n+ze*i,We*i-ze*n),e.lineTo(We*a+ze*o,We*o-ze*a),e.lineTo(We*u+ze*c,We*c-ze*u),e.closePath()}};function a_(e,t){let r=null,n=Pf(i);e=typeof e=="function"?e:ue(e||Ef),t=typeof t=="function"?t:ue(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:ue(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ue(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function _i(){}function Si(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 Tb(e){this._context=e}Tb.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:Si(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:Si(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function o_(e){return new Tb(e)}function Eb(e){this._context=e}Eb.prototype={areaStart:_i,areaEnd:_i,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:Si(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function u_(e){return new Eb(e)}function jb(e){this._context=e}jb.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:Si(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function c_(e){return new jb(e)}function Mb(e){this._context=e}Mb.prototype={areaStart:_i,areaEnd:_i,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 s_(e){return new Mb(e)}function zd(e){return e<0?-1:1}function Ud(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(zd(a)+zd(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Hd(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function fu(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 Ai(e){this._context=e}Ai.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:fu(this,this._t0,Hd(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,fu(this,Hd(this,r=Ud(this,e,t)),r);break;default:fu(this,this._t0,r=Ud(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Cb(e){this._context=new $b(e)}(Cb.prototype=Object.create(Ai.prototype)).point=function(e,t){Ai.prototype.point.call(this,t,e)};function $b(e){this._context=e}$b.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 l_(e){return new Ai(e)}function f_(e){return new Cb(e)}function Ib(e){this._context=e}Ib.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=Gd(e),i=Gd(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 Gd(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 h_(e){return new Ib(e)}function Sa(e,t){this._context=e,this._t=t}Sa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function d_(e){return new Sa(e,.5)}function p_(e){return new Sa(e,0)}function v_(e){return new Sa(e,1)}function dr(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 ul(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function y_(e,t){return e[t]}function m_(e){const t=[];return t.key=e,t}function g_(){var e=ue([]),t=ul,r=dr,n=y_;function i(a){var o=Array.from(e.apply(this,arguments),m_),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=Tf(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:ue(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ue(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?ul:typeof a=="function"?a:ue(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??dr,i):r},i}function b_(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}dr(e,t)}}function x_(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}dr(e,t)}}function w_(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,x=v[n-1][1]||0;p+=d-x}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,dr(e,t)}}function cn(e){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(e)}var O_=["type","size","sizeType"];function cl(){return cl=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},cl.apply(this,arguments)}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 Vd(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){__(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 __(e,t,r){return t=S_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S_(e){var t=A_(e,"string");return cn(t)=="symbol"?t:t+""}function A_(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 P_(e,t){if(e==null)return{};var r=T_(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 T_(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 kb={symbolCircle:Ef,symbolCross:VO,symbolDiamond:YO,symbolSquare:ZO,symbolStar:t_,symbolTriangle:r_,symbolWye:i_},E_=Math.PI/180,j_=function(t){var r="symbol".concat(wa(t));return kb[r]||Ef},M_=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*E_;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}},C_=function(t,r){kb["symbol".concat(wa(t))]=r},jf=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=P_(t,O_),s=Vd(Vd({},c),{},{type:n,size:a,sizeType:u}),f=function(){var d=j_(n),x=a_().type(d).size(M_(a,u,n));return x()},l=s.className,h=s.cx,p=s.cy,y=Q(s,!0);return h===+h&&p===+p&&a===+a?T.createElement("path",cl({},y,{className:te("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};jf.registerSymbol=C_;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 sl(){return sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sl.apply(this,arguments)}function Xd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xd(Object(r),!0).forEach(function(n){sn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k_(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,Db(n.key),n)}}function N_(e,t,r){return t&&k_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function D_(e,t,r){return t=Pi(t),R_(e,Nb()?Reflect.construct(t,r||[],Pi(e).constructor):t.apply(e,r))}function R_(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 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 Nb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nb=function(){return!!e})()}function Pi(e){return Pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pi(e)}function L_(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 sn(e,t,r){return t=Db(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Db(e){var t=B_(e,"string");return pr(t)=="symbol"?t:t+""}function B_(e,t){if(pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ue=32,Mf=(function(e){function t(){return I_(this,t),D_(this,t,arguments)}return L_(t,e),N_(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Ue/2,o=Ue/6,u=Ue/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:Ue,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,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
            H`).concat(Ue,"M").concat(2*u,",").concat(a,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return T.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Ue/8,"h").concat(Ue,"v").concat(Ue*3/4,"h").concat(-Ue,"z"),className:"recharts-legend-icon"});if(T.isValidElement(n.legendIcon)){var s=$_({},n);return delete s.legendIcon,T.cloneElement(n.legendIcon,s)}return T.createElement(jf,{fill:c,cx:a,cy:a,size:Ue,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:Ue,height:Ue},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=te(sn(sn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var x=Z(p.value)?null:p.value;pt(!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 g=p.inactive?s:p.color;return T.createElement("li",sl({className:d,style:l,key:"legend-item-".concat(y)},xi(n.props,p,y)),T.createElement(rl,{width:o,height:o,viewBox:f,style:h},n.renderIcon(p)),T.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},v?v(x,p,y):x))})}},{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())}}])})(R.PureComponent);sn(Mf,"displayName","Legend");sn(Mf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var hu,Yd;function F_(){if(Yd)return hu;Yd=1;var e=ga();function t(){this.__data__=new e,this.size=0}return hu=t,hu}var du,Zd;function W_(){if(Zd)return du;Zd=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return du=e,du}var pu,Jd;function z_(){if(Jd)return pu;Jd=1;function e(t){return this.__data__.get(t)}return pu=e,pu}var vu,Qd;function U_(){if(Qd)return vu;Qd=1;function e(t){return this.__data__.has(t)}return vu=e,vu}var yu,ep;function H_(){if(ep)return yu;ep=1;var e=ga(),t=xf(),r=wf(),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 yu=i,yu}var mu,tp;function Rb(){if(tp)return mu;tp=1;var e=ga(),t=F_(),r=W_(),n=z_(),i=U_(),a=H_();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,mu=o,mu}var gu,rp;function G_(){if(rp)return gu;rp=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return gu=t,gu}var bu,np;function K_(){if(np)return bu;np=1;function e(t){return this.__data__.has(t)}return bu=e,bu}var xu,ip;function qb(){if(ip)return xu;ip=1;var e=wf(),t=G_(),r=K_();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,xu=n,xu}var wu,ap;function Lb(){if(ap)return wu;ap=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 wu=e,wu}var Ou,op;function Bb(){if(op)return Ou;op=1;function e(t,r){return t.has(r)}return Ou=e,Ou}var _u,up;function Fb(){if(up)return _u;up=1;var e=qb(),t=Lb(),r=Bb(),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 x=-1,g=!0,w=c&i?new e:void 0;for(l.set(o,u),l.set(u,o);++x<p;){var O=o[x],m=u[x];if(s)var b=h?s(m,O,x,u,o,l):s(O,m,x,o,u,l);if(b!==void 0){if(b)continue;g=!1;break}if(w){if(!t(u,function(_,S){if(!r(w,S)&&(O===_||f(O,_,c,s,l)))return w.push(S)})){g=!1;break}}else if(!(O===m||f(O,m,c,s,l))){g=!1;break}}return l.delete(o),l.delete(u),g}return _u=a,_u}var Su,cp;function V_(){if(cp)return Su;cp=1;var e=ct(),t=e.Uint8Array;return Su=t,Su}var Au,sp;function X_(){if(sp)return Au;sp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Au=e,Au}var Pu,lp;function Cf(){if(lp)return Pu;lp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Pu=e,Pu}var Tu,fp;function Y_(){if(fp)return Tu;fp=1;var e=zn(),t=V_(),r=bf(),n=Fb(),i=X_(),a=Cf(),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]",x="[object ArrayBuffer]",g="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function m(b,_,S,A,C,E,P){switch(S){case g:if(b.byteLength!=_.byteLength||b.byteOffset!=_.byteOffset)return!1;b=b.buffer,_=_.buffer;case x:return!(b.byteLength!=_.byteLength||!E(new t(b),new t(_)));case c:case s:case h:return r(+b,+_);case f:return b.name==_.name&&b.message==_.message;case p:case v:return b==_+"";case l:var j=i;case y:var $=A&o;if(j||(j=a),b.size!=_.size&&!$)return!1;var M=P.get(b);if(M)return M==_;A|=u,P.set(b,_);var k=n(j(b),j(_),A,C,E,P);return P.delete(b),k;case d:if(O)return O.call(b)==O.call(_)}return!1}return Tu=m,Tu}var Eu,hp;function Wb(){if(hp)return Eu;hp=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 Eu=e,Eu}var ju,dp;function Z_(){if(dp)return ju;dp=1;var e=Wb(),t=Ne();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return ju=r,ju}var Mu,pp;function J_(){if(pp)return Mu;pp=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 Mu=e,Mu}var Cu,vp;function Q_(){if(vp)return Cu;vp=1;function e(){return[]}return Cu=e,Cu}var $u,yp;function e1(){if(yp)return $u;yp=1;var e=J_(),t=Q_(),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 $u=a,$u}var Iu,mp;function t1(){if(mp)return Iu;mp=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Iu=e,Iu}var ku,gp;function r1(){if(gp)return ku;gp=1;var e=xt(),t=wt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return ku=n,ku}var Nu,bp;function $f(){if(bp)return Nu;bp=1;var e=r1(),t=wt(),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 Nu=a,Nu}var Jr={exports:{}},Du,xp;function n1(){if(xp)return Du;xp=1;function e(){return!1}return Du=e,Du}Jr.exports;var wp;function zb(){return wp||(wp=1,(function(e,t){var r=ct(),n=n1(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,c=u?u.isBuffer:void 0,s=c||n;e.exports=s})(Jr,Jr.exports)),Jr.exports}var Ru,Op;function If(){if(Op)return Ru;Op=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 Ru=r,Ru}var qu,_p;function kf(){if(_p)return qu;_p=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return qu=t,qu}var Lu,Sp;function i1(){if(Sp)return Lu;Sp=1;var e=xt(),t=kf(),r=wt(),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]",x="[object DataView]",g="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",b="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",A="[object Uint16Array]",C="[object Uint32Array]",E={};E[g]=E[w]=E[O]=E[m]=E[b]=E[_]=E[S]=E[A]=E[C]=!0,E[n]=E[i]=E[d]=E[a]=E[x]=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 Lu=P,Lu}var Bu,Ap;function Ub(){if(Ap)return Bu;Ap=1;function e(t){return function(r){return t(r)}}return Bu=e,Bu}var Qr={exports:{}};Qr.exports;var Pp;function a1(){return Pp||(Pp=1,(function(e,t){var r=lb(),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})(Qr,Qr.exports)),Qr.exports}var Fu,Tp;function Hb(){if(Tp)return Fu;Tp=1;var e=i1(),t=Ub(),r=a1(),n=r&&r.isTypedArray,i=n?t(n):e;return Fu=i,Fu}var Wu,Ep;function o1(){if(Ep)return Wu;Ep=1;var e=t1(),t=$f(),r=Ne(),n=zb(),i=If(),a=Hb(),o=Object.prototype,u=o.hasOwnProperty;function 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):[],x=d.length;for(var g in s)(f||u.call(s,g))&&!(v&&(g=="length"||p&&(g=="offset"||g=="parent")||y&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||i(g,x)))&&d.push(g);return d}return Wu=c,Wu}var zu,jp;function u1(){if(jp)return zu;jp=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return zu=t,zu}var Uu,Mp;function Gb(){if(Mp)return Uu;Mp=1;function e(t,r){return function(n){return t(r(n))}}return Uu=e,Uu}var Hu,Cp;function c1(){if(Cp)return Hu;Cp=1;var e=Gb(),t=e(Object.keys,Object);return Hu=t,Hu}var Gu,$p;function s1(){if($p)return Gu;$p=1;var e=u1(),t=c1(),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 Gu=i,Gu}var Ku,Ip;function Gn(){if(Ip)return Ku;Ip=1;var e=gf(),t=kf();function r(n){return n!=null&&t(n.length)&&!e(n)}return Ku=r,Ku}var Vu,kp;function Aa(){if(kp)return Vu;kp=1;var e=o1(),t=s1(),r=Gn();function n(i){return r(i)?e(i):t(i)}return Vu=n,Vu}var Xu,Np;function l1(){if(Np)return Xu;Np=1;var e=Z_(),t=e1(),r=Aa();function n(i){return e(i,r,t)}return Xu=n,Xu}var Yu,Dp;function f1(){if(Dp)return Yu;Dp=1;var e=l1(),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 x=h[d];if(!(l?x in o:n.call(o,x)))return!1}var g=f.get(a),w=f.get(o);if(g&&w)return g==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var m=l;++d<p;){x=h[d];var b=a[x],_=o[x];if(c)var S=l?c(_,b,x,o,a,f):c(b,_,x,a,o,f);if(!(S===void 0?b===_||s(b,_,u,c,f):S)){O=!1;break}m||(m=x=="constructor")}if(O&&!m){var A=a.constructor,C=o.constructor;A!=C&&"constructor"in a&&"constructor"in o&&!(typeof A=="function"&&A instanceof A&&typeof C=="function"&&C instanceof C)&&(O=!1)}return f.delete(a),f.delete(o),O}return Yu=i,Yu}var Zu,Rp;function h1(){if(Rp)return Zu;Rp=1;var e=Jt(),t=ct(),r=e(t,"DataView");return Zu=r,Zu}var Ju,qp;function d1(){if(qp)return Ju;qp=1;var e=Jt(),t=ct(),r=e(t,"Promise");return Ju=r,Ju}var Qu,Lp;function Kb(){if(Lp)return Qu;Lp=1;var e=Jt(),t=ct(),r=e(t,"Set");return Qu=r,Qu}var ec,Bp;function p1(){if(Bp)return ec;Bp=1;var e=Jt(),t=ct(),r=e(t,"WeakMap");return ec=r,ec}var tc,Fp;function v1(){if(Fp)return tc;Fp=1;var e=h1(),t=xf(),r=d1(),n=Kb(),i=p1(),a=xt(),o=fb(),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),x=o(i),g=a;return(e&&g(new e(new ArrayBuffer(1)))!=h||t&&g(new t)!=u||r&&g(r.resolve())!=s||n&&g(new n)!=f||i&&g(new i)!=l)&&(g=function(w){var O=a(w),m=O==c?w.constructor:void 0,b=m?o(m):"";if(b)switch(b){case p:return h;case y:return u;case v:return s;case d:return f;case x:return l}return O}),tc=g,tc}var rc,Wp;function y1(){if(Wp)return rc;Wp=1;var e=Rb(),t=Fb(),r=Y_(),n=f1(),i=v1(),a=Ne(),o=zb(),u=Hb(),c=1,s="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(v,d,x,g,w,O){var m=a(v),b=a(d),_=m?f:i(v),S=b?f:i(d);_=_==s?l:_,S=S==s?l:S;var A=_==l,C=S==l,E=_==S;if(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,x,g,w,O):r(v,d,_,x,g,w,O);if(!(x&c)){var P=A&&p.call(v,"__wrapped__"),j=C&&p.call(d,"__wrapped__");if(P||j){var $=P?v.value():v,M=j?d.value():d;return O||(O=new e),w($,M,x,g,O)}}return E?(O||(O=new e),n(v,d,x,g,w,O)):!1}return rc=y,rc}var nc,zp;function Nf(){if(zp)return nc;zp=1;var e=y1(),t=wt();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 nc=r,nc}var ic,Up;function m1(){if(Up)return ic;Up=1;var e=Rb(),t=Nf(),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 x=c(y,v,p,a,o,d);if(!(x===void 0?t(v,y,r|n,c,d):x))return!1}}return!0}return ic=i,ic}var ac,Hp;function Vb(){if(Hp)return ac;Hp=1;var e=jt();function t(r){return r===r&&!e(r)}return ac=t,ac}var oc,Gp;function g1(){if(Gp)return oc;Gp=1;var e=Vb(),t=Aa();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 oc=r,oc}var uc,Kp;function Xb(){if(Kp)return uc;Kp=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return uc=e,uc}var cc,Vp;function b1(){if(Vp)return cc;Vp=1;var e=m1(),t=g1(),r=Xb();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 cc=n,cc}var sc,Xp;function x1(){if(Xp)return sc;Xp=1;function e(t,r){return t!=null&&r in Object(t)}return sc=e,sc}var lc,Yp;function w1(){if(Yp)return lc;Yp=1;var e=pb(),t=$f(),r=Ne(),n=If(),i=kf(),a=xa();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 lc=o,lc}var fc,Zp;function O1(){if(Zp)return fc;Zp=1;var e=x1(),t=w1();function r(n,i){return n!=null&&t(n,i,e)}return fc=r,fc}var hc,Jp;function _1(){if(Jp)return hc;Jp=1;var e=Nf(),t=vb(),r=O1(),n=mf(),i=Vb(),a=Xb(),o=xa(),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 hc=s,hc}var dc,Qp;function Rr(){if(Qp)return dc;Qp=1;function e(t){return t}return dc=e,dc}var pc,ev;function S1(){if(ev)return pc;ev=1;function e(t){return function(r){return r?.[t]}}return pc=e,pc}var vc,tv;function A1(){if(tv)return vc;tv=1;var e=_f();function t(r){return function(n){return e(n,r)}}return vc=t,vc}var yc,rv;function P1(){if(rv)return yc;rv=1;var e=S1(),t=A1(),r=mf(),n=xa();function i(a){return r(a)?e(n(a)):t(a)}return yc=i,yc}var mc,nv;function Mt(){if(nv)return mc;nv=1;var e=b1(),t=_1(),r=Rr(),n=Ne(),i=P1();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 mc=a,mc}var gc,iv;function Yb(){if(iv)return gc;iv=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 gc=e,gc}var bc,av;function T1(){if(av)return bc;av=1;function e(t){return t!==t}return bc=e,bc}var xc,ov;function E1(){if(ov)return xc;ov=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 xc=e,xc}var wc,uv;function j1(){if(uv)return wc;uv=1;var e=Yb(),t=T1(),r=E1();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return wc=n,wc}var Oc,cv;function M1(){if(cv)return Oc;cv=1;var e=j1();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Oc=t,Oc}var _c,sv;function C1(){if(sv)return _c;sv=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 _c=e,_c}var Sc,lv;function $1(){if(lv)return Sc;lv=1;function e(){}return Sc=e,Sc}var Ac,fv;function I1(){if(fv)return Ac;fv=1;var e=Kb(),t=$1(),r=Cf(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Ac=i,Ac}var Pc,hv;function k1(){if(hv)return Pc;hv=1;var e=qb(),t=M1(),r=C1(),n=Bb(),i=I1(),a=Cf(),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 x=s?null:i(c);if(x)return a(x);y=!1,h=n,d=new e}else d=s?[]:v;e:for(;++l<p;){var g=c[l],w=s?s(g):g;if(g=f||g!==0?g:0,y&&w===w){for(var O=d.length;O--;)if(d[O]===w)continue e;s&&d.push(w),v.push(g)}else h(d,w,f)||(d!==v&&d.push(w),v.push(g))}return v}return Pc=u,Pc}var Tc,dv;function N1(){if(dv)return Tc;dv=1;var e=Mt(),t=k1();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Tc=r,Tc}var D1=N1();const pv=ce(D1);function Zb(e,t,r){return t===!0?pv(e,r):Z(t)?pv(e,t):e}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)}var R1=["ref"];function vv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function st(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vv(Object(r),!0).forEach(function(n){Pa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yv(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,Qb(n.key),n)}}function L1(e,t,r){return t&&yv(e.prototype,t),r&&yv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function B1(e,t,r){return t=Ti(t),F1(e,Jb()?Reflect.construct(t,r||[],Ti(e).constructor):t.apply(e,r))}function F1(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 W1(e)}function W1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jb=function(){return!!e})()}function Ti(e){return Ti=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ti(e)}function z1(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fl(e,t)}function fl(e,t){return fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fl(e,t)}function Pa(e,t,r){return t=Qb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qb(e){var t=U1(e,"string");return vr(t)=="symbol"?t:t+""}function U1(e,t){if(vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function H1(e,t){if(e==null)return{};var r=G1(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 G1(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 K1(e){return e.value}function V1(e,t){if(T.isValidElement(e))return T.cloneElement(e,t);if(typeof e=="function")return T.createElement(e,t);t.ref;var r=H1(t,R1);return T.createElement(Mf,r)}var mv=1,Ut=(function(e){function t(){var r;q1(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=B1(this,t,[].concat(i)),Pa(r,"lastBoundingBox",{width:-1,height:-1}),r}return z1(t,e),L1(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)>mv||Math.abs(i.height-this.lastBoundingBox.height)>mv)&&(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?st({},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 st(st({},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=st(st({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}},V1(a,st(st({},this.props),{},{payload:Zb(f,s,K1)})))}}],[{key:"getWithHeight",value:function(n,i){var a=st(st({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&q(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(R.PureComponent);Pa(Ut,"displayName","Legend");Pa(Ut,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ec,gv;function X1(){if(gv)return Ec;gv=1;var e=zn(),t=$f(),r=Ne(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Ec=i,Ec}var jc,bv;function e0(){if(bv)return jc;bv=1;var e=Wb(),t=X1();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 jc=r,jc}var Mc,xv;function Y1(){if(xv)return Mc;xv=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 Mc=e,Mc}var Cc,wv;function Z1(){if(wv)return Cc;wv=1;var e=Y1(),t=e();return Cc=t,Cc}var $c,Ov;function t0(){if(Ov)return $c;Ov=1;var e=Z1(),t=Aa();function r(n,i){return n&&e(n,i,t)}return $c=r,$c}var Ic,_v;function J1(){if(_v)return Ic;_v=1;var e=Gn();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 Ic=t,Ic}var kc,Sv;function Df(){if(Sv)return kc;Sv=1;var e=t0(),t=J1(),r=t(e);return kc=r,kc}var Nc,Av;function r0(){if(Av)return Nc;Av=1;var e=Df(),t=Gn();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 Nc=r,Nc}var Dc,Pv;function Q1(){if(Pv)return Dc;Pv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Dc=e,Dc}var Rc,Tv;function eS(){if(Tv)return Rc;Tv=1;var e=Nr();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 Rc=t,Rc}var qc,Ev;function tS(){if(Ev)return qc;Ev=1;var e=eS();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 qc=t,qc}var Lc,jv;function rS(){if(jv)return Lc;jv=1;var e=Of(),t=_f(),r=Mt(),n=r0(),i=Q1(),a=Ub(),o=tS(),u=Rr(),c=Ne();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,x){var g=e(l,function(w){return w(v)});return{criteria:g,index:++p,value:v}});return i(y,function(v,d){return o(v,d,h)})}return Lc=s,Lc}var Bc,Mv;function nS(){if(Mv)return Bc;Mv=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Bc=e,Bc}var Fc,Cv;function iS(){if(Cv)return Fc;Cv=1;var e=nS(),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 Fc=r,Fc}var Wc,$v;function aS(){if($v)return Wc;$v=1;function e(t){return function(){return t}}return Wc=e,Wc}var zc,Iv;function n0(){if(Iv)return zc;Iv=1;var e=Jt(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return zc=t,zc}var Uc,kv;function oS(){if(kv)return Uc;kv=1;var e=aS(),t=n0(),r=Rr(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Uc=n,Uc}var Hc,Nv;function uS(){if(Nv)return Hc;Nv=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 Hc=n,Hc}var Gc,Dv;function cS(){if(Dv)return Gc;Dv=1;var e=oS(),t=uS(),r=t(e);return Gc=r,Gc}var Kc,Rv;function sS(){if(Rv)return Kc;Rv=1;var e=Rr(),t=iS(),r=cS();function n(i,a){return r(t(i,a,e),i+"")}return Kc=n,Kc}var Vc,qv;function Ta(){if(qv)return Vc;qv=1;var e=bf(),t=Gn(),r=If(),n=jt();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 Vc=i,Vc}var Xc,Lv;function lS(){if(Lv)return Xc;Lv=1;var e=e0(),t=rS(),r=sS(),n=Ta(),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 Xc=i,Xc}var fS=lS();const Rf=ce(fS);function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(e)}function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hl.apply(this,arguments)}function hS(e,t){return yS(e)||vS(e,t)||pS(e,t)||dS()}function dS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pS(e,t){if(e){if(typeof e=="string")return Bv(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 Bv(e,t)}}function Bv(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 vS(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 yS(e){if(Array.isArray(e))return e}function Fv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fv(Object(r),!0).forEach(function(n){mS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mS(e,t,r){return t=gS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gS(e){var t=bS(e,"string");return ln(t)=="symbol"?t:t+""}function bS(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xS(e){return Array.isArray(e)&&Oe(e[0])&&Oe(e[1])?e.join(" ~ "):e}var wS=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,x=t.accessibilityLayer,g=x===void 0?!1:x,w=function(){if(f&&f.length){var P={padding:0,margin:0},j=(h?Rf(f,h):f).map(function($,M){if($.type==="none")return null;var k=Yc({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},u),N=$.formatter||l||xS,L=$.value,B=$.name,H=L,K=B;if(N&&H!=null&&K!=null){var W=N(L,B,$,M,f);if(Array.isArray(W)){var V=hS(W,2);H=V[0],K=V[1]}else H=W}return T.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(M),style:k},Oe(K)?T.createElement("span",{className:"recharts-tooltip-item-name"},K):null,Oe(K)?T.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,T.createElement("span",{className:"recharts-tooltip-item-value"},H),T.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return T.createElement("ul",{className:"recharts-tooltip-item-list",style:P},j)}return null},O=Yc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=Yc({margin:0},s),b=!J(v),_=b?v:"",S=te("recharts-default-tooltip",p),A=te("recharts-tooltip-label",y);b&&d&&f!==void 0&&f!==null&&(_=d(v,f));var C=g?{role:"status","aria-live":"assertive"}:{};return T.createElement("div",hl({className:S,style:O},C),T.createElement("p",{className:A,style:m},T.isValidElement(_)?_:"".concat(_)),w())};function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}function ai(e,t,r){return t=OS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OS(e){var t=_S(e,"string");return fn(t)=="symbol"?t:t+""}function _S(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zr="recharts-tooltip-wrapper",SS={visibility:"hidden"};function AS(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return te(zr,ai(ai(ai(ai({},"".concat(zr,"-right"),q(r)&&t&&q(t.x)&&r>=t.x),"".concat(zr,"-left"),q(r)&&t&&q(t.x)&&r<t.x),"".concat(zr,"-bottom"),q(n)&&t&&q(t.y)&&n>=t.y),"".concat(zr,"-top"),q(n)&&t&&q(t.y)&&n<t.y))}function Wv(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,c=e.viewBox,s=e.viewBoxDimension;if(a&&q(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var h=f,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 PS(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 TS(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=Wv({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=Wv({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=PS({translateX:f,translateY:l,useTranslate3d:u})):s=SS,{cssProperties:s,cssClasses:AS({translateX:f,translateY:l,coordinate:r})}}function yr(e){"@babel/helpers - typeof";return yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yr(e)}function zv(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 Uv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zv(Object(r),!0).forEach(function(n){pl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ES(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jS(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,a0(n.key),n)}}function MS(e,t,r){return t&&jS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CS(e,t,r){return t=Ei(t),$S(e,i0()?Reflect.construct(t,r||[],Ei(e).constructor):t.apply(e,r))}function $S(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 IS(e)}function IS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i0=function(){return!!e})()}function Ei(e){return Ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ei(e)}function kS(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 pl(e,t,r){return t=a0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a0(e){var t=NS(e,"string");return yr(t)=="symbol"?t:t+""}function NS(e,t){if(yr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Hv=1,DS=(function(e){function t(){var r;ES(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=CS(this,t,[].concat(i)),pl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),pl(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 kS(t,e),MS(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Hv||Math.abs(n.height-this.state.lastBoundingBox.height)>Hv)&&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,x=i.viewBox,g=i.wrapperStyle,w=TS({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:x}),O=w.cssClasses,m=w.cssProperties,b=Uv(Uv({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},g);return T.createElement("div",{tabIndex:-1,className:O,style:b,ref:function(S){n.wrapperNode=S}},s)}}])})(R.PureComponent),RS=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},qr={isSsr:RS()};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 Gv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gv(Object(r),!0).forEach(function(n){qf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LS(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,u0(n.key),n)}}function BS(e,t,r){return t&&LS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FS(e,t,r){return t=ji(t),WS(e,o0()?Reflect.construct(t,r||[],ji(e).constructor):t.apply(e,r))}function WS(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 zS(e)}function zS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o0=function(){return!!e})()}function ji(e){return ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ji(e)}function US(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 qf(e,t,r){return t=u0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u0(e){var t=HS(e,"string");return mr(t)=="symbol"?t:t+""}function HS(e,t){if(mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function GS(e){return e.dataKey}function KS(e,t){return T.isValidElement(e)?T.cloneElement(e,t):typeof e=="function"?T.createElement(e,t):T.createElement(wS,t)}var nt=(function(e){function t(){return qS(this,t),FS(this,t,arguments)}return US(t,e),BS(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,x=i.reverseDirection,g=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=Zb(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,GS));var b=m.length>0;return T.createElement(DS,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:h,active:a,coordinate:f,hasPayload:b,offset:p,position:d,reverseDirection:x,useTranslate3d:g,viewBox:w,wrapperStyle:O},KS(s,Kv(Kv({},this.props),{},{payload:m})))}}])})(R.PureComponent);qf(nt,"displayName","Tooltip");qf(nt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!qr.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 Zc,Vv;function VS(){if(Vv)return Zc;Vv=1;var e=ct(),t=function(){return e.Date.now()};return Zc=t,Zc}var Jc,Xv;function XS(){if(Xv)return Jc;Xv=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Jc=t,Jc}var Qc,Yv;function YS(){if(Yv)return Qc;Yv=1;var e=XS(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Qc=r,Qc}var es,Zv;function c0(){if(Zv)return es;Zv=1;var e=YS(),t=jt(),r=Nr(),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 es=c,es}var ts,Jv;function ZS(){if(Jv)return ts;Jv=1;var e=jt(),t=VS(),r=c0(),n="Expected a function",i=Math.max,a=Math.min;function o(u,c,s){var f,l,h,p,y,v,d=0,x=!1,g=!1,w=!0;if(typeof u!="function")throw new TypeError(n);c=r(c)||0,e(s)&&(x=!!s.leading,g="maxWait"in s,h=g?i(r(s.maxWait)||0,c):h,w="trailing"in s?!!s.trailing:w);function O(j){var $=f,M=l;return f=l=void 0,d=j,p=u.apply(M,$),p}function m(j){return d=j,y=setTimeout(S,c),x?O(j):p}function b(j){var $=j-v,M=j-d,k=c-$;return g?a(k,h-M):k}function _(j){var $=j-v,M=j-d;return v===void 0||$>=c||$<0||g&&M>=h}function S(){var j=t();if(_(j))return A(j);y=setTimeout(S,b(j))}function A(j){return y=void 0,w&&f?O(j):(f=l=void 0,p)}function C(){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(),$=_(j);if(f=arguments,l=this,v=j,$){if(y===void 0)return m(v);if(g)return clearTimeout(y),y=setTimeout(S,c),O(v)}return y===void 0&&(y=setTimeout(S,c)),p}return P.cancel=C,P.flush=E,P}return ts=o,ts}var rs,Qv;function JS(){if(Qv)return rs;Qv=1;var e=ZS(),t=jt(),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 rs=n,rs}var QS=JS();const s0=ce(QS);function hn(e){"@babel/helpers - typeof";return hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(e)}function ey(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 oi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ey(Object(r),!0).forEach(function(n){eA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ey(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eA(e,t,r){return t=tA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tA(e){var t=rA(e,"string");return hn(t)=="symbol"?t:t+""}function rA(e,t){if(hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nA(e,t){return uA(e)||oA(e,t)||aA(e,t)||iA()}function iA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aA(e,t){if(e){if(typeof e=="string")return ty(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 ty(e,t)}}function ty(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 oA(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 uA(e){if(Array.isArray(e))return e}var cA=R.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,x=e.className,g=e.onResize,w=e.style,O=w===void 0?{}:w,m=R.useRef(null),b=R.useRef();b.current=g,R.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 _=R.useState({containerWidth:i.width,containerHeight:i.height}),S=nA(_,2),A=S[0],C=S[1],E=R.useCallback(function(j,$){C(function(M){var k=Math.round(j),N=Math.round($);return M.containerWidth===k&&M.containerHeight===N?M:{containerWidth:k,containerHeight:N}})},[]);R.useEffect(function(){var j=function(B){var H,K=B[0].contentRect,W=K.width,V=K.height;E(W,V),(H=b.current)===null||H===void 0||H.call(b,W,V)};v>0&&(j=s0(j,v,{trailing:!0,leading:!1}));var $=new ResizeObserver(j),M=m.current.getBoundingClientRect(),k=M.width,N=M.height;return E(k,N),$.observe(m.current),function(){$.disconnect()}},[E,v]);var P=R.useMemo(function(){var j=A.containerWidth,$=A.containerHeight;if(j<0||$<0)return null;pt(Bt(o)||Bt(c),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,o,c),pt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var M=Bt(o)?j:o,k=Bt(c)?$:c;r&&r>0&&(M?k=M/r:k&&(M=k*r),h&&k>h&&(k=h)),pt(M>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,M,k,o,c,f,l,r);var N=!Array.isArray(p)&&dt(p.type).endsWith("Chart");return T.Children.map(p,function(L){return T.isValidElement(L)?R.cloneElement(L,oi({width:M,height:k},N?{style:oi({height:"100%",width:"100%",maxHeight:k,maxWidth:M},L.props.style)}:{})):L})},[r,p,c,h,l,f,A,o]);return T.createElement("div",{id:d?"".concat(d):void 0,className:te("recharts-responsive-container",x),style:oi(oi({},O),{},{width:o,height:c,minWidth:f,minHeight:l,maxHeight:h}),ref:m},P)}),l0=function(t){return null};l0.displayName="Cell";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 ry(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ry(Object(r),!0).forEach(function(n){sA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ry(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sA(e,t,r){return t=lA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lA(e){var t=fA(e,"string");return dn(t)=="symbol"?t:t+""}function fA(e,t){if(dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nr={widthCache:{},cacheCount:0},hA=2e3,dA={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ny="recharts_measurement_span";function pA(e){var t=yl({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var rn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||qr.isSsr)return{width:0,height:0};var n=pA(r),i=JSON.stringify({text:t,copyStyle:n});if(nr.widthCache[i])return nr.widthCache[i];try{var a=document.getElementById(ny);a||(a=document.createElement("span"),a.setAttribute("id",ny),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=yl(yl({},dA),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return nr.widthCache[i]=c,++nr.cacheCount>hA&&(nr.cacheCount=0,nr.widthCache={}),c}catch{return{width:0,height:0}}},vA=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function pn(e){"@babel/helpers - typeof";return pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(e)}function Mi(e,t){return bA(e)||gA(e,t)||mA(e,t)||yA()}function yA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mA(e,t){if(e){if(typeof e=="string")return iy(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 iy(e,t)}}function iy(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 gA(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 bA(e){if(Array.isArray(e))return e}function xA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ay(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,OA(n.key),n)}}function wA(e,t,r){return t&&ay(e.prototype,t),r&&ay(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function OA(e){var t=_A(e,"string");return pn(t)=="symbol"?t:t+""}function _A(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var oy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,uy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,SA=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,AA=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,f0={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},PA=Object.keys(f0),ur="NaN";function TA(e,t){return e*f0[t]}var ui=(function(){function e(t,r){xA(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!SA.test(r)&&(this.num=NaN,this.unit=""),PA.includes(r)&&(this.num=TA(t,r),this.unit="px")}return wA(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=AA.exec(r))!==null&&n!==void 0?n:[],a=Mi(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function h0(e){if(e.includes(ur))return ur;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=oy.exec(t))!==null&&r!==void 0?r:[],i=Mi(n,4),a=i[1],o=i[2],u=i[3],c=ui.parse(a??""),s=ui.parse(u??""),f=o==="*"?c.multiply(s):c.divide(s);if(f.isNaN())return ur;t=t.replace(oy,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=uy.exec(t))!==null&&l!==void 0?l:[],p=Mi(h,4),y=p[1],v=p[2],d=p[3],x=ui.parse(y??""),g=ui.parse(d??""),w=v==="+"?x.add(g):x.subtract(g);if(w.isNaN())return ur;t=t.replace(uy,w.toString())}return t}var cy=/\(([^()]*)\)/;function EA(e){for(var t=e;t.includes("(");){var r=cy.exec(t),n=Mi(r,2),i=n[1];t=t.replace(cy,h0(i))}return t}function jA(e){var t=e.replace(/\s+/g,"");return t=EA(t),t=h0(t),t}function MA(e){try{return jA(e)}catch{return ur}}function ns(e){var t=MA(e.slice(5,-1));return t===ur?"":t}var CA=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],$A=["dx","dy","angle","className","breakAll"];function ml(){return ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ml.apply(this,arguments)}function sy(e,t){if(e==null)return{};var r=IA(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 IA(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 ly(e,t){return RA(e)||DA(e,t)||NA(e,t)||kA()}function kA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NA(e,t){if(e){if(typeof e=="string")return fy(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 fy(e,t)}}function fy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function DA(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 RA(e){if(Array.isArray(e))return e}var d0=/[ \f\n\r\t\v\u2028\u2029]+/,p0=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];J(r)||(n?a=r.toString().split(""):a=r.toString().split(d0));var o=a.map(function(c){return{word:c,width:rn(c,i).width}}),u=n?0:rn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},qA=function(t,r,n,i,a){var o=t.maxLines,u=t.children,c=t.style,s=t.breakAll,f=q(o),l=u,h=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function(k,N){var L=N.word,B=N.width,H=k[k.length-1];if(H&&(i==null||a||H.width+B+n<Number(i)))H.words.push(L),H.width+=B+n;else{var K={words:[L],width:B};k.push(K)}return k},[])},p=h(r),y=function(M){return M.reduce(function(k,N){return k.width>N.width?k:N})};if(!f)return p;for(var v="…",d=function(M){var k=l.slice(0,M),N=p0({breakAll:s,style:c,children:k+v}).wordsWithComputedWidth,L=h(N),B=L.length>o||y(L).width>Number(i);return[B,L]},x=0,g=l.length-1,w=0,O;x<=g&&w<=l.length-1;){var m=Math.floor((x+g)/2),b=m-1,_=d(b),S=ly(_,2),A=S[0],C=S[1],E=d(m),P=ly(E,1),j=P[0];if(!A&&!j&&(x=m+1),A&&j&&(g=m-1),!A&&j){O=C;break}w++}return O||p},hy=function(t){var r=J(t)?[]:t.toString().split(d0);return[{words:r}]},LA=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!qr.isSsr){var c,s,f=p0({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;c=l,s=h}else return hy(i);return qA({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return hy(i)},dy="#808080",Ci=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,x=d===void 0?dy:d,g=sy(t,CA),w=R.useMemo(function(){return LA({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:l,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,l,g.style,g.width]),O=g.dx,m=g.dy,b=g.angle,_=g.className,S=g.breakAll,A=sy(g,$A);if(!Oe(n)||!Oe(a))return null;var C=n+(q(O)?O:0),E=a+(q(m)?m:0),P;switch(v){case"start":P=ns("calc(".concat(s,")"));break;case"middle":P=ns("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:P=ns("calc(".concat(w.length-1," * -").concat(u,")"));break}var j=[];if(l){var $=w[0].width,M=g.width;j.push("scale(".concat((q(M)?M/$:1)/$,")"))}return b&&j.push("rotate(".concat(b,", ").concat(C,", ").concat(E,")")),j.length&&(A.transform=j.join(" ")),T.createElement("text",ml({},Q(A,!0),{x:C,y:E,className:te("recharts-text",_),textAnchor:p,fill:x.includes("url")?dy:x}),w.map(function(k,N){var L=k.words.join(S?"":" ");return T.createElement("tspan",{x:C,dy:N===0?P:u,key:"".concat(L,"-").concat(N)},L)}))};function Tt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function BA(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Lf(e){let t,r,n;e.length!==2?(t=Tt,r=(u,c)=>Tt(e(u),c),n=(u,c)=>e(u)-c):(t=e===Tt||e===BA?e:FA,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 FA(){return 0}function v0(e){return e===null?NaN:+e}function*WA(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const zA=Lf(Tt),Kn=zA.right;Lf(v0).center;class py extends Map{constructor(t,r=GA){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(vy(this,t))}has(t){return super.has(vy(this,t))}set(t,r){return super.set(UA(this,t),r)}delete(t){return super.delete(HA(this,t))}}function vy({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function UA({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function HA({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function GA(e){return e!==null&&typeof e=="object"?e.valueOf():e}function KA(e=Tt){if(e===Tt)return y0;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 y0(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const VA=Math.sqrt(50),XA=Math.sqrt(10),YA=Math.sqrt(2);function $i(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>=VA?10:a>=XA?5:a>=YA?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?$i(e,t,r*2):[u,c,s]}function gl(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?$i(t,e,r):$i(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 bl(e,t,r){return t=+t,e=+e,r=+r,$i(e,t,r)[2]}function xl(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?bl(t,e,r):bl(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function yy(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function my(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function m0(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?y0:KA(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));m0(e,t,p,y,i)}const a=e[t];let o=r,u=n;for(Ur(e,r,t),i(e[n],a)>0&&Ur(e,r,n);o<u;){for(Ur(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Ur(e,r,u):(++u,Ur(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Ur(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function ZA(e,t,r){if(e=Float64Array.from(WA(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return my(e);if(t>=1)return yy(e);var n,i=(n-1)*t,a=Math.floor(i),o=yy(m0(e,a).subarray(0,a+1)),u=my(e.subarray(a+1));return o+(u-o)*(i-a)}}function JA(e,t,r=v0){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 QA(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 Xe(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ot(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 wl=Symbol("implicit");function Bf(){var e=new py,t=[],r=[],n=wl;function i(a){let o=e.get(a);if(o===void 0){if(n!==wl)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 py;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 Bf(t,r).unknown(n)},Xe.apply(i,arguments),i}function vn(){var e=Bf().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=QA(h).map(function(x){return y+a*x});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 vn(t(),[n,i]).round(u).paddingInner(c).paddingOuter(s).align(f)},Xe.apply(l(),arguments)}function g0(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return g0(t())},e}function nn(){return g0(vn.apply(null,arguments).paddingInner(1))}function Ff(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function b0(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Vn(){}var yn=.7,Ii=1/yn,fr="\\s*([+-]?\\d+)\\s*",mn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",at="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",eP=/^#([0-9a-f]{3,8})$/,tP=new RegExp(`^rgb\\(${fr},${fr},${fr}\\)$`),rP=new RegExp(`^rgb\\(${at},${at},${at}\\)$`),nP=new RegExp(`^rgba\\(${fr},${fr},${fr},${mn}\\)$`),iP=new RegExp(`^rgba\\(${at},${at},${at},${mn}\\)$`),aP=new RegExp(`^hsl\\(${mn},${at},${at}\\)$`),oP=new RegExp(`^hsla\\(${mn},${at},${at},${mn}\\)$`),gy={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};Ff(Vn,gn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:by,formatHex:by,formatHex8:uP,formatHsl:cP,formatRgb:xy,toString:xy});function by(){return this.rgb().formatHex()}function uP(){return this.rgb().formatHex8()}function cP(){return x0(this).formatHsl()}function xy(){return this.rgb().formatRgb()}function gn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=eP.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?wy(t):r===3?new ke(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ci(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ci(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=tP.exec(e))?new ke(t[1],t[2],t[3],1):(t=rP.exec(e))?new ke(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=nP.exec(e))?ci(t[1],t[2],t[3],t[4]):(t=iP.exec(e))?ci(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=aP.exec(e))?Sy(t[1],t[2]/100,t[3]/100,1):(t=oP.exec(e))?Sy(t[1],t[2]/100,t[3]/100,t[4]):gy.hasOwnProperty(e)?wy(gy[e]):e==="transparent"?new ke(NaN,NaN,NaN,0):null}function wy(e){return new ke(e>>16&255,e>>8&255,e&255,1)}function ci(e,t,r,n){return n<=0&&(e=t=r=NaN),new ke(e,t,r,n)}function sP(e){return e instanceof Vn||(e=gn(e)),e?(e=e.rgb(),new ke(e.r,e.g,e.b,e.opacity)):new ke}function Ol(e,t,r,n){return arguments.length===1?sP(e):new ke(e,t,r,n??1)}function ke(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Ff(ke,Ol,b0(Vn,{brighter(e){return e=e==null?Ii:Math.pow(Ii,e),new ke(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yn:Math.pow(yn,e),new ke(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ke(Ht(this.r),Ht(this.g),Ht(this.b),ki(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:Oy,formatHex:Oy,formatHex8:lP,formatRgb:_y,toString:_y}));function Oy(){return`#${Ft(this.r)}${Ft(this.g)}${Ft(this.b)}`}function lP(){return`#${Ft(this.r)}${Ft(this.g)}${Ft(this.b)}${Ft((isNaN(this.opacity)?1:this.opacity)*255)}`}function _y(){const e=ki(this.opacity);return`${e===1?"rgb(":"rgba("}${Ht(this.r)}, ${Ht(this.g)}, ${Ht(this.b)}${e===1?")":`, ${e})`}`}function ki(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ht(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ft(e){return e=Ht(e),(e<16?"0":"")+e.toString(16)}function Sy(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new et(e,t,r,n)}function x0(e){if(e instanceof et)return new et(e.h,e.s,e.l,e.opacity);if(e instanceof Vn||(e=gn(e)),!e)return new et;if(e instanceof et)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 et(o,u,c,e.opacity)}function fP(e,t,r,n){return arguments.length===1?x0(e):new et(e,t,r,n??1)}function et(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Ff(et,fP,b0(Vn,{brighter(e){return e=e==null?Ii:Math.pow(Ii,e),new et(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yn:Math.pow(yn,e),new et(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new ke(is(e>=240?e-240:e+120,i,n),is(e,i,n),is(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new et(Ay(this.h),si(this.s),si(this.l),ki(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=ki(this.opacity);return`${e===1?"hsl(":"hsla("}${Ay(this.h)}, ${si(this.s)*100}%, ${si(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ay(e){return e=(e||0)%360,e<0?e+360:e}function si(e){return Math.max(0,Math.min(1,e||0))}function is(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 Wf=e=>()=>e;function hP(e,t){return function(r){return e+r*t}}function dP(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function pP(e){return(e=+e)==1?w0:function(t,r){return r-t?dP(t,r,e):Wf(isNaN(t)?r:t)}}function w0(e,t){var r=t-e;return r?hP(e,r):Wf(isNaN(e)?t:e)}const Py=(function e(t){var r=pP(t);function n(i,a){var o=r((i=Ol(i)).r,(a=Ol(a)).r),u=r(i.g,a.g),c=r(i.b,a.b),s=w0(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 vP(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 yP(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function mP(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]=Lr(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 gP(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ni(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function bP(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]=Lr(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var _l=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,as=new RegExp(_l.source,"g");function xP(e){return function(){return e}}function wP(e){return function(t){return e(t)+""}}function OP(e,t){var r=_l.lastIndex=as.lastIndex=0,n,i,a,o=-1,u=[],c=[];for(e=e+"",t=t+"";(n=_l.exec(e))&&(i=as.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:Ni(n,i)})),r=as.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?wP(c[0].x):xP(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 Lr(e,t){var r=typeof t,n;return t==null||r==="boolean"?Wf(t):(r==="number"?Ni:r==="string"?(n=gn(t))?(t=n,Py):OP:t instanceof gn?Py:t instanceof Date?gP:yP(t)?vP:Array.isArray(t)?mP:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?bP:Ni)(e,t)}function zf(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function _P(e,t){t===void 0&&(t=e,e=Lr);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 SP(e){return function(){return e}}function Di(e){return+e}var Ty=[0,1];function Ce(e){return e}function Sl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:SP(isNaN(t)?NaN:.5)}function AP(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function PP(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 TP(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=Kn(e,u,1,n)-1;return a[c](i[c](u))}}function Xn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ea(){var e=Ty,t=Ty,r=Lr,n,i,a,o=Ce,u,c,s;function f(){var h=Math.min(e.length,t.length);return o!==Ce&&(o=AP(e[0],e[h-1])),u=h>2?TP:PP,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),Ni)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Di),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=zf,f()},l.clamp=function(h){return arguments.length?(o=h?!0:Ce,f()):o!==Ce},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 Uf(){return Ea()(Ce,Ce)}function EP(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ri(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 gr(e){return e=Ri(Math.abs(e)),e?e[1]:NaN}function jP(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 MP(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var CP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bn(e){if(!(t=CP.exec(e)))throw new Error("invalid format: "+e);var t;return new Hf({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]})}bn.prototype=Hf.prototype;function Hf(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+""}Hf.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 $P(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 qi;function IP(e,t){var r=Ri(e,t);if(!r)return qi=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(qi=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")+Ri(e,Math.max(0,t+a-1))[0]}function Ey(e,t){var r=Ri(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 jy={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:EP,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)=>Ey(e*100,t),r:Ey,s:IP,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function My(e){return e}var Cy=Array.prototype.map,$y=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function kP(e){var t=e.grouping===void 0||e.thousands===void 0?My:jP(Cy.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?My:MP(Cy.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=bn(l);var p=l.fill,y=l.align,v=l.sign,d=l.symbol,x=l.zero,g=l.width,w=l.comma,O=l.precision,m=l.trim,b=l.type;b==="n"?(w=!0,b="g"):jy[b]||(O===void 0&&(O=12),m=!0,b="g"),(x||p==="0"&&y==="=")&&(x=!0,p="0",y="=");var _=(h&&h.prefix!==void 0?h.prefix:"")+(d==="$"?r:d==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),S=(d==="$"?n:/[%p]/.test(b)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),A=jy[b],C=/[defgprs%]/.test(b);O=O===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function E(P){var j=_,$=S,M,k,N;if(b==="c")$=A(P)+$,P="";else{P=+P;var L=P<0||1/P<0;if(P=isNaN(P)?c:A(Math.abs(P),O),m&&(P=$P(P)),L&&+P==0&&v!=="+"&&(L=!1),j=(L?v==="("?v:u:v==="-"||v==="("?"":v)+j,$=(b==="s"&&!isNaN(P)&&qi!==void 0?$y[8+qi/3]:"")+$+(L&&v==="("?")":""),C){for(M=-1,k=P.length;++M<k;)if(N=P.charCodeAt(M),48>N||N>57){$=(N===46?i+P.slice(M+1):P.slice(M))+$,P=P.slice(0,M);break}}}w&&!x&&(P=t(P,1/0));var B=j.length+P.length+$.length,H=B<g?new Array(g-B+1).join(p):"";switch(w&&x&&(P=t(H+P,H.length?g-$.length:1/0),H=""),y){case"<":P=j+P+$+H;break;case"=":P=j+H+P+$;break;case"^":P=H.slice(0,B=H.length>>1)+j+P+$+H.slice(B);break;default:P=H+j+P+$;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(gr(h)/3)))*3,y=Math.pow(10,-p),v=s((l=bn(l),l.type="f",l),{suffix:$y[8+p/3]});return function(d){return v(y*d)}}return{format:s,formatPrefix:f}}var li,Gf,O0;NP({thousands:",",grouping:[3],currency:["$",""]});function NP(e){return li=kP(e),Gf=li.format,O0=li.formatPrefix,li}function DP(e){return Math.max(0,-gr(Math.abs(e)))}function RP(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(gr(t)/3)))*3-gr(Math.abs(e)))}function qP(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,gr(t)-gr(e))+1}function _0(e,t,r,n){var i=xl(e,t,r),a;switch(n=bn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=RP(i,o))&&(n.precision=a),O0(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=qP(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=DP(i))&&(n.precision=a-(n.type==="%")*2);break}}return Gf(n)}function Ct(e){var t=e.domain;return e.ticks=function(r){var n=t();return gl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return _0(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=bl(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 Li(){var e=Uf();return e.copy=function(){return Xn(e,Li())},Xe.apply(e,arguments),Ct(e)}function S0(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,Di),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return S0(e).unknown(t)},e=arguments.length?Array.from(e,Di):[0,1],Ct(r)}function A0(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 Iy(e){return Math.log(e)}function ky(e){return Math.exp(e)}function LP(e){return-Math.log(-e)}function BP(e){return-Math.exp(-e)}function FP(e){return isFinite(e)?+("1e"+e):e<0?0:e}function WP(e){return e===10?FP:e===Math.E?Math.exp:t=>Math.pow(e,t)}function zP(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 Ny(e){return(t,r)=>-e(-t,r)}function Kf(e){const t=e(Iy,ky),r=t.domain;let n=10,i,a;function o(){return i=zP(n),a=WP(n),r()[0]<0?(i=Ny(i),a=Ny(a),e(LP,BP)):e(Iy,ky),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 x=[];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;x.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;x.push(v)}x.length*2<d&&(x=gl(s,f,d))}else x=gl(h,p,Math.min(p-h,d)).map(a);return l?x.reverse():x},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=bn(c)).precision==null&&(c.trim=!0),c=Gf(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(A0(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function P0(){const e=Kf(Ea()).domain([1,10]);return e.copy=()=>Xn(e,P0()).base(e.base()),Xe.apply(e,arguments),e}function Dy(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Ry(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Vf(e){var t=1,r=e(Dy(t),Ry(t));return r.constant=function(n){return arguments.length?e(Dy(t=+n),Ry(t)):t},Ct(r)}function T0(){var e=Vf(Ea());return e.copy=function(){return Xn(e,T0()).constant(e.constant())},Xe.apply(e,arguments)}function qy(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function UP(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function HP(e){return e<0?-e*e:e*e}function Xf(e){var t=e(Ce,Ce),r=1;function n(){return r===1?e(Ce,Ce):r===.5?e(UP,HP):e(qy(r),qy(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Ct(t)}function Yf(){var e=Xf(Ea());return e.copy=function(){return Xn(e,Yf()).exponent(e.exponent())},Xe.apply(e,arguments),e}function GP(){return Yf.apply(null,arguments).exponent(.5)}function Ly(e){return Math.sign(e)*e*e}function KP(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function E0(){var e=Uf(),t=[0,1],r=!1,n;function i(a){var o=KP(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Ly(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,Di)).map(Ly)),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 E0(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Xe.apply(i,arguments),Ct(i)}function j0(){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]=JA(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Kn(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(Tt),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 j0().domain(e).range(t).unknown(n)},Xe.apply(a,arguments)}function M0(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[Kn(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 M0().domain([e,t]).range(i).unknown(a)},Xe.apply(Ct(o),arguments)}function C0(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Kn(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 C0().domain(e).range(t).unknown(r)},Xe.apply(i,arguments)}const os=new Date,us=new Date;function _e(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=>_e(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)=>(os.setTime(+a),us.setTime(+o),e(os),e(us),Math.floor(r(os,us))),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 Bi=_e(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Bi.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?_e(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Bi);Bi.range;const lt=1e3,He=lt*60,ft=He*60,yt=ft*24,Zf=yt*7,By=yt*30,cs=yt*365,Wt=_e(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*lt)},(e,t)=>(t-e)/lt,e=>e.getUTCSeconds());Wt.range;const Jf=_e(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lt)},(e,t)=>{e.setTime(+e+t*He)},(e,t)=>(t-e)/He,e=>e.getMinutes());Jf.range;const Qf=_e(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*He)},(e,t)=>(t-e)/He,e=>e.getUTCMinutes());Qf.range;const eh=_e(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lt-e.getMinutes()*He)},(e,t)=>{e.setTime(+e+t*ft)},(e,t)=>(t-e)/ft,e=>e.getHours());eh.range;const th=_e(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ft)},(e,t)=>(t-e)/ft,e=>e.getUTCHours());th.range;const Yn=_e(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*He)/yt,e=>e.getDate()-1);Yn.range;const ja=_e(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/yt,e=>e.getUTCDate()-1);ja.range;const $0=_e(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/yt,e=>Math.floor(e/yt));$0.range;function Qt(e){return _e(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())*He)/Zf)}const Ma=Qt(0),Fi=Qt(1),VP=Qt(2),XP=Qt(3),br=Qt(4),YP=Qt(5),ZP=Qt(6);Ma.range;Fi.range;VP.range;XP.range;br.range;YP.range;ZP.range;function er(e){return _e(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)/Zf)}const Ca=er(0),Wi=er(1),JP=er(2),QP=er(3),xr=er(4),eT=er(5),tT=er(6);Ca.range;Wi.range;JP.range;QP.range;xr.range;eT.range;tT.range;const rh=_e(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());rh.range;const nh=_e(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());nh.range;const mt=_e(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());mt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_e(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)});mt.range;const gt=_e(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());gt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_e(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)});gt.range;function I0(e,t,r,n,i,a){const o=[[Wt,1,lt],[Wt,5,5*lt],[Wt,15,15*lt],[Wt,30,30*lt],[a,1,He],[a,5,5*He],[a,15,15*He],[a,30,30*He],[i,1,ft],[i,3,3*ft],[i,6,6*ft],[i,12,12*ft],[n,1,yt],[n,2,2*yt],[r,1,Zf],[t,1,By],[t,3,3*By],[e,1,cs]];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=Lf(([,,d])=>d).right(o,h);if(p===o.length)return e.every(xl(s/cs,f/cs,l));if(p===0)return Bi.every(Math.max(xl(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[rT,nT]=I0(gt,nh,Ca,$0,th,Qf),[iT,aT]=I0(mt,rh,Ma,Yn,eh,Jf);function ss(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 ls(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Hr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function oT(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=Gr(i),f=Kr(i),l=Gr(a),h=Kr(a),p=Gr(o),y=Kr(o),v=Gr(u),d=Kr(u),x=Gr(c),g=Kr(c),w={a:N,A:L,b:B,B:H,c:null,d:Gy,e:Gy,f:jT,g:LT,G:FT,H:PT,I:TT,j:ET,L:k0,m:MT,M:CT,p:K,q:W,Q:Xy,s:Yy,S:$T,u:IT,U:kT,V:NT,w:DT,W:RT,x:null,X:null,y:qT,Y:BT,Z:WT,"%":Vy},O={a:V,A:se,b:ve,B:De,c:null,d:Ky,e:Ky,f:GT,g:rE,G:iE,H:zT,I:UT,j:HT,L:D0,m:KT,M:VT,p:kt,q:$e,Q:Xy,s:Yy,S:XT,u:YT,U:ZT,V:JT,w:QT,W:eE,x:null,X:null,y:tE,Y:nE,Z:aE,"%":Vy},m={a:C,A:E,b:P,B:j,c:$,d:Uy,e:Uy,f:OT,g:zy,G:Wy,H:Hy,I:Hy,j:gT,L:wT,m:mT,M:bT,p:A,q:yT,Q:ST,s:AT,S:xT,u:fT,U:hT,V:dT,w:lT,W:pT,x:M,X:k,y:zy,Y:Wy,Z:vT,"%":_T};w.x=b(r,w),w.X=b(n,w),w.c=b(t,w),O.x=b(r,O),O.X=b(n,O),O.c=b(t,O);function b(F,X){return function(Y){var D=[],he=-1,ee=0,ge=F.length,be,Ie,_t;for(Y instanceof Date||(Y=new Date(+Y));++he<ge;)F.charCodeAt(he)===37&&(D.push(F.slice(ee,he)),(Ie=Fy[be=F.charAt(++he)])!=null?be=F.charAt(++he):Ie=be==="e"?" ":"0",(_t=X[be])&&(be=_t(Y,Ie)),D.push(be),ee=he+1);return D.push(F.slice(ee,he)),D.join("")}}function _(F,X){return function(Y){var D=Hr(1900,void 0,1),he=S(D,F,Y+="",0),ee,ge;if(he!=Y.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(X&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(ee=ls(Hr(D.y,0,1)),ge=ee.getUTCDay(),ee=ge>4||ge===0?Wi.ceil(ee):Wi(ee),ee=ja.offset(ee,(D.V-1)*7),D.y=ee.getUTCFullYear(),D.m=ee.getUTCMonth(),D.d=ee.getUTCDate()+(D.w+6)%7):(ee=ss(Hr(D.y,0,1)),ge=ee.getDay(),ee=ge>4||ge===0?Fi.ceil(ee):Fi(ee),ee=Yn.offset(ee,(D.V-1)*7),D.y=ee.getFullYear(),D.m=ee.getMonth(),D.d=ee.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),ge="Z"in D?ls(Hr(D.y,0,1)).getUTCDay():ss(Hr(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(ge+5)%7:D.w+D.U*7-(ge+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,ls(D)):ss(D)}}function S(F,X,Y,D){for(var he=0,ee=X.length,ge=Y.length,be,Ie;he<ee;){if(D>=ge)return-1;if(be=X.charCodeAt(he++),be===37){if(be=X.charAt(he++),Ie=m[be in Fy?X.charAt(he++):be],!Ie||(D=Ie(F,Y,D))<0)return-1}else if(be!=Y.charCodeAt(D++))return-1}return D}function A(F,X,Y){var D=s.exec(X.slice(Y));return D?(F.p=f.get(D[0].toLowerCase()),Y+D[0].length):-1}function C(F,X,Y){var D=p.exec(X.slice(Y));return D?(F.w=y.get(D[0].toLowerCase()),Y+D[0].length):-1}function E(F,X,Y){var D=l.exec(X.slice(Y));return D?(F.w=h.get(D[0].toLowerCase()),Y+D[0].length):-1}function P(F,X,Y){var D=x.exec(X.slice(Y));return D?(F.m=g.get(D[0].toLowerCase()),Y+D[0].length):-1}function j(F,X,Y){var D=v.exec(X.slice(Y));return D?(F.m=d.get(D[0].toLowerCase()),Y+D[0].length):-1}function $(F,X,Y){return S(F,t,X,Y)}function M(F,X,Y){return S(F,r,X,Y)}function k(F,X,Y){return S(F,n,X,Y)}function N(F){return o[F.getDay()]}function L(F){return a[F.getDay()]}function B(F){return c[F.getMonth()]}function H(F){return u[F.getMonth()]}function K(F){return i[+(F.getHours()>=12)]}function W(F){return 1+~~(F.getMonth()/3)}function V(F){return o[F.getUTCDay()]}function se(F){return a[F.getUTCDay()]}function ve(F){return c[F.getUTCMonth()]}function De(F){return u[F.getUTCMonth()]}function kt(F){return i[+(F.getUTCHours()>=12)]}function $e(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var X=b(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=b(F+="",O);return X.toString=function(){return F},X},utcParse:function(F){var X=_(F+="",!0);return X.toString=function(){return F},X}}}var Fy={"-":"",_:" ",0:"0"},Ae=/^\s*\d+/,uT=/^%/,cT=/[\\^$*+?|[\]().{}]/g;function re(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function sT(e){return e.replace(cT,"\\$&")}function Gr(e){return new RegExp("^(?:"+e.map(sT).join("|")+")","i")}function Kr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function lT(e,t,r){var n=Ae.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function fT(e,t,r){var n=Ae.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function hT(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function dT(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function pT(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Wy(e,t,r){var n=Ae.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function zy(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function vT(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 yT(e,t,r){var n=Ae.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function mT(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Uy(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function gT(e,t,r){var n=Ae.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Hy(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function bT(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function xT(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function wT(e,t,r){var n=Ae.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function OT(e,t,r){var n=Ae.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function _T(e,t,r){var n=uT.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function ST(e,t,r){var n=Ae.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function AT(e,t,r){var n=Ae.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Gy(e,t){return re(e.getDate(),t,2)}function PT(e,t){return re(e.getHours(),t,2)}function TT(e,t){return re(e.getHours()%12||12,t,2)}function ET(e,t){return re(1+Yn.count(mt(e),e),t,3)}function k0(e,t){return re(e.getMilliseconds(),t,3)}function jT(e,t){return k0(e,t)+"000"}function MT(e,t){return re(e.getMonth()+1,t,2)}function CT(e,t){return re(e.getMinutes(),t,2)}function $T(e,t){return re(e.getSeconds(),t,2)}function IT(e){var t=e.getDay();return t===0?7:t}function kT(e,t){return re(Ma.count(mt(e)-1,e),t,2)}function N0(e){var t=e.getDay();return t>=4||t===0?br(e):br.ceil(e)}function NT(e,t){return e=N0(e),re(br.count(mt(e),e)+(mt(e).getDay()===4),t,2)}function DT(e){return e.getDay()}function RT(e,t){return re(Fi.count(mt(e)-1,e),t,2)}function qT(e,t){return re(e.getFullYear()%100,t,2)}function LT(e,t){return e=N0(e),re(e.getFullYear()%100,t,2)}function BT(e,t){return re(e.getFullYear()%1e4,t,4)}function FT(e,t){var r=e.getDay();return e=r>=4||r===0?br(e):br.ceil(e),re(e.getFullYear()%1e4,t,4)}function WT(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+re(t/60|0,"0",2)+re(t%60,"0",2)}function Ky(e,t){return re(e.getUTCDate(),t,2)}function zT(e,t){return re(e.getUTCHours(),t,2)}function UT(e,t){return re(e.getUTCHours()%12||12,t,2)}function HT(e,t){return re(1+ja.count(gt(e),e),t,3)}function D0(e,t){return re(e.getUTCMilliseconds(),t,3)}function GT(e,t){return D0(e,t)+"000"}function KT(e,t){return re(e.getUTCMonth()+1,t,2)}function VT(e,t){return re(e.getUTCMinutes(),t,2)}function XT(e,t){return re(e.getUTCSeconds(),t,2)}function YT(e){var t=e.getUTCDay();return t===0?7:t}function ZT(e,t){return re(Ca.count(gt(e)-1,e),t,2)}function R0(e){var t=e.getUTCDay();return t>=4||t===0?xr(e):xr.ceil(e)}function JT(e,t){return e=R0(e),re(xr.count(gt(e),e)+(gt(e).getUTCDay()===4),t,2)}function QT(e){return e.getUTCDay()}function eE(e,t){return re(Wi.count(gt(e)-1,e),t,2)}function tE(e,t){return re(e.getUTCFullYear()%100,t,2)}function rE(e,t){return e=R0(e),re(e.getUTCFullYear()%100,t,2)}function nE(e,t){return re(e.getUTCFullYear()%1e4,t,4)}function iE(e,t){var r=e.getUTCDay();return e=r>=4||r===0?xr(e):xr.ceil(e),re(e.getUTCFullYear()%1e4,t,4)}function aE(){return"+0000"}function Vy(){return"%"}function Xy(e){return+e}function Yy(e){return Math.floor(+e/1e3)}var ir,q0,L0;oE({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function oE(e){return ir=oT(e),q0=ir.format,ir.parse,L0=ir.utcFormat,ir.utcParse,ir}function uE(e){return new Date(e)}function cE(e){return e instanceof Date?+e:+new Date(+e)}function ih(e,t,r,n,i,a,o,u,c,s){var f=Uf(),l=f.invert,h=f.domain,p=s(".%L"),y=s(":%S"),v=s("%I:%M"),d=s("%I %p"),x=s("%a %d"),g=s("%b %d"),w=s("%B"),O=s("%Y");function m(b){return(c(b)<b?p:u(b)<b?y:o(b)<b?v:a(b)<b?d:n(b)<b?i(b)<b?x:g:r(b)<b?w:O)(b)}return f.invert=function(b){return new Date(l(b))},f.domain=function(b){return arguments.length?h(Array.from(b,cE)):h().map(uE)},f.ticks=function(b){var _=h();return e(_[0],_[_.length-1],b??10)},f.tickFormat=function(b,_){return _==null?m:s(_)},f.nice=function(b){var _=h();return(!b||typeof b.range!="function")&&(b=t(_[0],_[_.length-1],b??10)),b?h(A0(_,b)):f},f.copy=function(){return Xn(f,ih(e,t,r,n,i,a,o,u,c,s))},f}function sE(){return Xe.apply(ih(iT,aT,mt,rh,Ma,Yn,eh,Jf,Wt,q0).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function lE(){return Xe.apply(ih(rT,nT,gt,nh,Ca,ja,th,Qf,Wt,L0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function $a(){var e=0,t=1,r,n,i,a,o=Ce,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(Lr),s.rangeRound=f(zf),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 $t(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function B0(){var e=Ct($a()(Ce));return e.copy=function(){return $t(e,B0())},Ot.apply(e,arguments)}function F0(){var e=Kf($a()).domain([1,10]);return e.copy=function(){return $t(e,F0()).base(e.base())},Ot.apply(e,arguments)}function W0(){var e=Vf($a());return e.copy=function(){return $t(e,W0()).constant(e.constant())},Ot.apply(e,arguments)}function ah(){var e=Xf($a());return e.copy=function(){return $t(e,ah()).exponent(e.exponent())},Ot.apply(e,arguments)}function fE(){return ah.apply(null,arguments).exponent(.5)}function z0(){var e=[],t=Ce;function r(n){if(n!=null&&!isNaN(n=+n))return t((Kn(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(Tt),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)=>ZA(e,a/n))},r.copy=function(){return z0(t).domain(e)},Ot.apply(r,arguments)}function Ia(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,s=Ce,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 x,g,w;return arguments.length?([x,g,w]=d,s=_P(v,[x,g,w]),p):[s(0),s(.5),s(1)]}}return p.range=y(Lr),p.rangeRound=y(zf),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 U0(){var e=Ct(Ia()(Ce));return e.copy=function(){return $t(e,U0())},Ot.apply(e,arguments)}function H0(){var e=Kf(Ia()).domain([.1,1,10]);return e.copy=function(){return $t(e,H0()).base(e.base())},Ot.apply(e,arguments)}function G0(){var e=Vf(Ia());return e.copy=function(){return $t(e,G0()).constant(e.constant())},Ot.apply(e,arguments)}function oh(){var e=Xf(Ia());return e.copy=function(){return $t(e,oh()).exponent(e.exponent())},Ot.apply(e,arguments)}function hE(){return oh.apply(null,arguments).exponent(.5)}const Zy=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:vn,scaleDiverging:U0,scaleDivergingLog:H0,scaleDivergingPow:oh,scaleDivergingSqrt:hE,scaleDivergingSymlog:G0,scaleIdentity:S0,scaleImplicit:wl,scaleLinear:Li,scaleLog:P0,scaleOrdinal:Bf,scalePoint:nn,scalePow:Yf,scaleQuantile:j0,scaleQuantize:M0,scaleRadial:E0,scaleSequential:B0,scaleSequentialLog:F0,scaleSequentialPow:ah,scaleSequentialQuantile:z0,scaleSequentialSqrt:fE,scaleSequentialSymlog:W0,scaleSqrt:GP,scaleSymlog:T0,scaleThreshold:C0,scaleTime:sE,scaleUtc:lE,tickFormat:_0},Symbol.toStringTag,{value:"Module"}));var fs,Jy;function K0(){if(Jy)return fs;Jy=1;var e=Nr();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 fs=t,fs}var hs,Qy;function dE(){if(Qy)return hs;Qy=1;function e(t,r){return t>r}return hs=e,hs}var ds,em;function pE(){if(em)return ds;em=1;var e=K0(),t=dE(),r=Rr();function n(i){return i&&i.length?e(i,r,t):void 0}return ds=n,ds}var vE=pE();const ka=ce(vE);var ps,tm;function yE(){if(tm)return ps;tm=1;function e(t,r){return t<r}return ps=e,ps}var vs,rm;function mE(){if(rm)return vs;rm=1;var e=K0(),t=yE(),r=Rr();function n(i){return i&&i.length?e(i,r,t):void 0}return vs=n,vs}var gE=mE();const Na=ce(gE);var ys,nm;function bE(){if(nm)return ys;nm=1;var e=Of(),t=Mt(),r=r0(),n=Ne();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return ys=i,ys}var ms,im;function xE(){if(im)return ms;im=1;var e=e0(),t=bE();function r(n,i){return e(t(n,i),1)}return ms=r,ms}var wE=xE();const OE=ce(wE);var gs,am;function _E(){if(am)return gs;am=1;var e=Nf();function t(r,n){return e(r,n)}return gs=t,gs}var SE=_E();const Da=ce(SE);var Br=1e9,AE={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},ch,fe=!0,Ve="[DecimalError] ",Gt=Ve+"Invalid argument: ",uh=Ve+"Exponent out of range: ",Fr=Math.floor,Lt=Math.pow,PE=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Be,Se=1e7,le=7,V0=9007199254740991,zi=Fr(V0/le),U={};U.absoluteValue=U.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};U.comparedTo=U.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};U.decimalPlaces=U.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*le;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};U.dividedBy=U.div=function(e){return vt(this,new this.constructor(e))};U.dividedToIntegerBy=U.idiv=function(e){var t=this,r=t.constructor;return oe(vt(t,new r(e),0,1),r.precision)};U.equals=U.eq=function(e){return!this.cmp(e)};U.exponent=function(){return me(this)};U.greaterThan=U.gt=function(e){return this.cmp(e)>0};U.greaterThanOrEqualTo=U.gte=function(e){return this.cmp(e)>=0};U.isInteger=U.isint=function(){return this.e>this.d.length-2};U.isNegative=U.isneg=function(){return this.s<0};U.isPositive=U.ispos=function(){return this.s>0};U.isZero=function(){return this.s===0};U.lessThan=U.lt=function(e){return this.cmp(e)<0};U.lessThanOrEqualTo=U.lte=function(e){return this.cmp(e)<1};U.logarithm=U.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(Be))throw Error(Ve+"NaN");if(r.s<1)throw Error(Ve+(r.s?"NaN":"-Infinity"));return r.eq(Be)?new n(0):(fe=!1,t=vt(xn(r,a),xn(e,a),a),fe=!0,oe(t,i))};U.minus=U.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Z0(t,e):X0(t,(e.s=-e.s,e))};U.modulo=U.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Ve+"NaN");return r.s?(fe=!1,t=vt(r,e,0,1).times(e),fe=!0,r.minus(t)):oe(new n(r),i)};U.naturalExponential=U.exp=function(){return Y0(this)};U.naturalLogarithm=U.ln=function(){return xn(this)};U.negated=U.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};U.plus=U.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?X0(t,e):Z0(t,(e.s=-e.s,e))};U.precision=U.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Gt+e);if(t=me(i)+1,n=i.d.length-1,r=n*le+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};U.squareRoot=U.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(Ve+"NaN")}for(e=me(u),fe=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=it(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Fr((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(vt(u,a,o+2)).times(.5),it(a.d).slice(0,o)===(t=it(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(oe(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return fe=!0,oe(n,r)};U.times=U.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%Se|0,t=u/Se|0;a[i]=(a[i]+t)%Se|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,fe?oe(e,l.precision):e};U.toDecimalPlaces=U.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ut(e,0,Br),t===void 0?t=n.rounding:ut(t,0,8),oe(r,e+me(r)+1,t))};U.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Xt(n,!0):(ut(e,0,Br),t===void 0?t=i.rounding:ut(t,0,8),n=oe(new i(n),e+1,t),r=Xt(n,!0,e+1)),r};U.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Xt(i):(ut(e,0,Br),t===void 0?t=a.rounding:ut(t,0,8),n=oe(new a(i),e+me(i)+1,t),r=Xt(n.abs(),!1,e+me(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};U.toInteger=U.toint=function(){var e=this,t=e.constructor;return oe(new t(e),me(e)+1,t.rounding)};U.toNumber=function(){return+this};U.toPower=U.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(Be);if(u=new c(u),!u.s){if(e.s<1)throw Error(Ve+"Infinity");return u}if(u.eq(Be))return u;if(n=c.precision,e.eq(Be))return oe(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=V0){for(i=new c(Be),t=Math.ceil(n/le+4),fe=!1;r%2&&(i=i.times(u),um(i.d,t)),r=Fr(r/2),r!==0;)u=u.times(u),um(u.d,t);return fe=!0,e.s<0?new c(Be).div(i):oe(i,n)}}else if(a<0)throw Error(Ve+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,fe=!1,i=e.times(xn(u,n+s)),fe=!0,i=Y0(i),i.s=a,i};U.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=me(i),n=Xt(i,r<=a.toExpNeg||r>=a.toExpPos)):(ut(e,1,Br),t===void 0?t=a.rounding:ut(t,0,8),i=oe(new a(i),e,t),r=me(i),n=Xt(i,e<=r||r<=a.toExpNeg,e)),n};U.toSignificantDigits=U.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ut(e,1,Br),t===void 0?t=n.rounding:ut(t,0,8)),oe(new n(r),e,t)};U.toString=U.valueOf=U.val=U.toJSON=U[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=me(e),r=e.constructor;return Xt(e,t<=r.toExpNeg||t>=r.toExpPos)};function X0(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)),fe?oe(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/le),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)/Se|0,c[a]%=Se;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,fe?oe(t,l):t}function ut(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Gt+e)}function it(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=le-n.length,r&&(a+=St(r)),a+=n;o=e[t],n=o+"",r=le-n.length,r&&(a+=St(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var vt=(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%Se|0,o=a/Se|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*Se+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,x,g,w,O,m,b,_,S,A=n.constructor,C=n.s==i.s?1:-1,E=n.d,P=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(Ve+"Division by zero");for(c=n.e-i.e,_=P.length,m=E.length,p=new A(C),y=p.d=[],s=0;P[s]==(E[s]||0);)++s;if(P[s]>(E[s]||0)&&--c,a==null?g=a=A.precision:o?g=a+(me(n)-me(i))+1:g=a,g<0)return new A(0);if(g=g/le+2|0,s=0,_==1)for(f=0,P=P[0],g++;(s<m||f)&&g--;s++)w=f*Se+(E[s]||0),y[s]=w/P|0,f=w%P|0;else{for(f=Se/(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),b=P[0],P[1]>=Se/2&&++b;do f=0,u=t(P,v,_,d),u<0?(x=v[0],_!=d&&(x=x*Se+(v[1]||0)),f=x/b|0,f>1?(f>=Se&&(f=Se-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)&&g--)}return y[0]||y.shift(),p.e=c,oe(p,o?a+me(p)+1:a)}})();function Y0(e,t){var r,n,i,a,o,u,c=0,s=0,f=e.constructor,l=f.precision;if(me(e)>16)throw Error(uh+me(e));if(!e.s)return new f(Be);for(fe=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Lt(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Be),f.precision=u;;){if(i=oe(i.times(e),u),r=r.times(++c),o=a.plus(vt(i,r,u)),it(o.d).slice(0,u)===it(a.d).slice(0,u)){for(;s--;)a=oe(a.times(a),u);return f.precision=l,t==null?(fe=!0,oe(a,l)):a}a=o}}function me(e){for(var t=e.e*le,r=e.d[0];r>=10;r/=10)t++;return t}function bs(e,t,r){if(t>e.LN10.sd())throw fe=!0,r&&(e.precision=r),Error(Ve+"LN10 precision limit exceeded");return oe(new e(e.LN10),t)}function St(e){for(var t="";e--;)t+="0";return t}function xn(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(Ve+(p.s?"NaN":"-Infinity"));if(p.eq(Be))return new v(0);if(t==null?(fe=!1,s=d):s=t,p.eq(10))return t==null&&(fe=!0),bs(v,s);if(s+=h,v.precision=s,r=it(y),n=r.charAt(0),a=me(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=it(p.d),n=r.charAt(0),l++;a=me(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return c=bs(v,s+2,d).times(a+""),p=xn(new v(n+"."+r.slice(1)),s-h).plus(c),v.precision=d,t==null?(fe=!0,oe(p,d)):p;for(u=o=p=vt(p.minus(Be),p.plus(Be),s),f=oe(p.times(p),s),i=3;;){if(o=oe(o.times(f),s),c=u.plus(vt(o,new v(i),s)),it(c.d).slice(0,s)===it(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(bs(v,s+2,d).times(a+""))),u=vt(u,new v(l),s),v.precision=d,t==null?(fe=!0,oe(u,d)):u;u=c,i+=2}}function om(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=Fr(r/le),e.d=[],n=(r+1)%le,r<0&&(n+=le),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=le;n<i;)e.d.push(+t.slice(n,n+=le));t=t.slice(n),n=le-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),fe&&(e.e>zi||e.e<-zi))throw Error(uh+r)}else e.s=0,e.e=0,e.d=[0];return e}function oe(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+=le,i=t,s=l[f=0];else{if(f=Math.ceil((n+1)/le),a=l.length,f>=a)return e;for(s=a=l[f],o=1;a>=10;a/=10)o++;n%=le,i=n-le+o}if(r!==void 0&&(a=Lt(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/Lt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return c?(a=me(e),l.length=1,t=t-a-1,l[0]=Lt(10,(le-t%le)%le),e.e=Fr(-t/le)||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=Lt(10,le-n),l[f]=i>0?(s/Lt(10,o-i)%Lt(10,i)|0)*a:0),c)for(;;)if(f==0){(l[0]+=a)==Se&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Se)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(fe&&(e.e>zi||e.e<-zi))throw Error(uh+me(e));return e}function Z0(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),fe?oe(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/le),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]=Se-1;--c[a],c[i]+=Se}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,fe?oe(t,p):t):new h(0)}function Xt(e,t,r){var n,i=me(e),a=it(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+St(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+St(-i-1)+a,r&&(n=r-o)>0&&(a+=St(n))):i>=o?(a+=St(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+St(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=St(n))),e.s<0?"-"+a:a}function um(e,t){if(e.length>t)return e.length=t,!0}function J0(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Gt+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return om(o,a.toString())}else if(typeof a!="string")throw Error(Gt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,PE.test(a))om(o,a);else throw Error(Gt+a)}if(i.prototype=U,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=J0,i.config=i.set=TE,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 TE(e){if(!e||typeof e!="object")throw Error(Ve+"Object expected");var t,r,n,i=["precision",1,Br,"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(Fr(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Gt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Gt+r+": "+n);return this}var ch=J0(AE);Be=new ch(1);const ae=ch;function EE(e){return $E(e)||CE(e)||ME(e)||jE()}function jE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ME(e,t){if(e){if(typeof e=="string")return Al(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Al(e,t)}}function CE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function $E(e){if(Array.isArray(e))return Al(e)}function Al(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var IE=function(t){return t},Q0={},ex=function(t){return t===Q0},cm=function(t){return function r(){return arguments.length===0||arguments.length===1&&ex(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},kE=function e(t,r){return t===1?r:cm(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!==Q0}).length;return o>=t?r.apply(void 0,i):e(t-o,cm(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 ex(l)?c.shift():l});return r.apply(void 0,EE(f).concat(c))}))})},Ra=function(t){return kE(t.length,t)},Pl=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},NE=Ra(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),DE=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return IE;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))}},Tl=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},tx=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 RE(e){var t;return e===0?t=1:t=Math.floor(new ae(e).abs().log(10).toNumber())+1,t}function qE(e,t,r){for(var n=new ae(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var LE=Ra(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),BE=Ra(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),FE=Ra(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const qa={rangeStep:qE,getDigitCount:RE,interpolateNumber:LE,uninterpolateNumber:BE,uninterpolateTruncation:FE};function El(e){return UE(e)||zE(e)||rx(e)||WE()}function WE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function UE(e){if(Array.isArray(e))return jl(e)}function wn(e,t){return KE(e)||GE(e,t)||rx(e,t)||HE()}function HE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rx(e,t){if(e){if(typeof e=="string")return jl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jl(e,t)}}function jl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GE(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 KE(e){if(Array.isArray(e))return e}function nx(e){var t=wn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function ix(e,t,r){if(e.lte(0))return new ae(0);var n=qa.getDigitCount(e.toNumber()),i=new ae(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ae(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new ae(Math.ceil(c))}function VE(e,t,r){var n=1,i=new ae(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ae(10).pow(qa.getDigitCount(e)-1),i=new ae(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ae(Math.floor(e)))}else e===0?i=new ae(Math.floor((t-1)/2)):r||(i=new ae(Math.floor(e)));var o=Math.floor((t-1)/2),u=DE(NE(function(c){return i.add(new ae(c-o).mul(n)).toNumber()}),Pl);return u(0,t)}function ax(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ae(0),tickMin:new ae(0),tickMax:new ae(0)};var a=ix(new ae(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ae(0):(o=new ae(e).add(t).div(2),o=o.sub(new ae(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ae(t).sub(o).div(a).toNumber()),s=u+c+1;return s>r?ax(e,t,r,n,i+1):(s<r&&(c=t>0?c+(r-s):c,u=t>0?u:u+(r-s)),{step:a,tickMin:o.sub(new ae(u).mul(a)),tickMax:o.add(new ae(c).mul(a))})}function XE(e){var t=wn(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=nx([r,n]),c=wn(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(El(Pl(0,i-1).map(function(){return 1/0}))):[].concat(El(Pl(0,i-1).map(function(){return-1/0})),[f]);return r>n?Tl(l):l}if(s===f)return VE(s,i,a);var h=ax(s,f,o,a),p=h.step,y=h.tickMin,v=h.tickMax,d=qa.rangeStep(y,v.add(new ae(.1).mul(p)),p);return r>n?Tl(d):d}function YE(e,t){var r=wn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=nx([n,i]),u=wn(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=ix(new ae(s).sub(c).div(f-1),a,0),h=[].concat(El(qa.rangeStep(new ae(c),new ae(s).sub(new ae(.99).mul(l)),l)),[s]);return n>i?Tl(h):h}var ZE=tx(XE),JE=tx(YE),QE="Invariant failed";function Yt(e,t){throw new Error(QE)}var ej=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 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 tj(e,t){return aj(e)||ij(e,t)||nj(e,t)||rj()}function rj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nj(e,t){if(e){if(typeof e=="string")return sm(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 sm(e,t)}}function sm(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 ij(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 aj(e){if(Array.isArray(e))return e}function oj(e,t){if(e==null)return{};var r=uj(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 uj(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 cj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sj(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 lj(e,t,r){return t&&sj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fj(e,t,r){return t=Hi(t),hj(e,ox()?Reflect.construct(t,r||[],Hi(e).constructor):t.apply(e,r))}function hj(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 dj(e)}function dj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ox(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ox=function(){return!!e})()}function Hi(e){return Hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hi(e)}function pj(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&&Ml(e,t)}function Ml(e,t){return Ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ml(e,t)}function ux(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=vj(e,"string");return wr(t)=="symbol"?t:t+""}function vj(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 Zn=(function(e){function t(){return cj(this,t),fj(this,t,arguments)}return pj(t,e),lj(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=oj(n,ej),p=Q(h,!1);this.props.direction==="x"&&f.type!=="number"&&Yt();var y=c.map(function(v){var d=s(v,u),x=d.x,g=d.y,w=d.value,O=d.errorVal;if(!O)return null;var m=[],b,_;if(Array.isArray(O)){var S=tj(O,2);b=S[0],_=S[1]}else b=_=O;if(a==="vertical"){var A=f.scale,C=g+i,E=C+o,P=C-o,j=A(w-b),$=A(w+_);m.push({x1:$,y1:E,x2:$,y2:P}),m.push({x1:j,y1:C,x2:$,y2:C}),m.push({x1:j,y1:E,x2:j,y2:P})}else if(a==="horizontal"){var M=l.scale,k=x+i,N=k-o,L=k+o,B=M(w-b),H=M(w+_);m.push({x1:N,y1:H,x2:L,y2:H}),m.push({x1:k,y1:B,x2:k,y2:H}),m.push({x1:N,y1:B,x2:L,y2:B})}return T.createElement(pe,Ui({className:"recharts-errorBar",key:"bar-".concat(m.map(function(K){return"".concat(K.x1,"-").concat(K.x2,"-").concat(K.y1,"-").concat(K.y2)}))},p),m.map(function(K){return T.createElement("line",Ui({},K,{key:"line-".concat(K.x1,"-").concat(K.x2,"-").concat(K.y1,"-").concat(K.y2)}))}))});return T.createElement(pe,{className:"recharts-errorBars"},y)}}])})(T.Component);ux(Zn,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});ux(Zn,"displayName","ErrorBar");function On(e){"@babel/helpers - typeof";return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}function lm(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 Rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lm(Object(r),!0).forEach(function(n){yj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yj(e,t,r){return t=mj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mj(e){var t=gj(e,"string");return On(t)=="symbol"?t:t+""}function gj(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 sx=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Le(r,Ut);if(!o)return null;var u=Ut.defaultProps,c=u!==void 0?Rt(Rt({},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?Rt(Rt({},h),l.props):{},y=p.dataKey,v=p.name,d=p.legendType,x=p.hide;return{inactive:x,dataKey:y,type:c.iconType||d||"square",color:sh(l),value:v||y,payload:p}}),Rt(Rt(Rt({},c),Ut.getWithHeight(o,i)),{},{payload:s,item:o})};function _n(e){"@babel/helpers - typeof";return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(e)}function fm(e){return Oj(e)||wj(e)||xj(e)||bj()}function bj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xj(e,t){if(e){if(typeof e=="string")return Cl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cl(e,t)}}function wj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Oj(e){if(Array.isArray(e))return Cl(e)}function Cl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hm(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?hm(Object(r),!0).forEach(function(n){hr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hr(e,t,r){return t=_j(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _j(e){var t=Sj(e,"string");return _n(t)=="symbol"?t:t+""}function Sj(e,t){if(_n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fe(e,t,r){return J(e)||J(t)?r:Oe(t)?Ge(e,t,r):Z(t)?t(e):r}function an(e,t,r,n){var i=OE(e,function(u){return Fe(u,t)});if(r==="number"){var a=i.filter(function(u){return q(u)||parseFloat(u)});return a.length?[Na(a),ka(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!J(u)}):i;return o.map(function(u){return Oe(u)||u instanceof Date?u:""})}var Aj=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,s=0;s<u;s++){var f=s>0?i[s-1].coordinate:i[u-1].coordinate,l=i[s].coordinate,h=s>=u-1?i[0].coordinate:i[s+1].coordinate,p=void 0;if(tt(l-f)!==tt(h-l)){var y=[];if(tt(h-l)===tt(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 x=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>x[0]&&t<=x[1]||t>=y[0]&&t<=y[1]){o=i[s].index;break}}else{var g=Math.min(f,h),w=Math.max(f,h);if(t>(g+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},sh=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?de(de({},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},Pj=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,x=v.filter(function(_){return dt(_.type).indexOf("Bar")>=0});if(x&&x.length){var g=x[0].type.defaultProps,w=g!==void 0?de(de({},g),x[0].props):x[0].props,O=w.barSize,m=w[d];o[m]||(o[m]=[]);var b=J(O)?r:O;o[m].push({item:x[0],stackList:x.slice(1),barSize:J(b)?void 0:Vt(b,n,0)})}}return o},Tj=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=Vt(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 b={item:m.item,position:{offset:d.offset+d.size+s,size:h?p:m.barSize}},_=[].concat(fm(O),[b]);return d=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){_.push({item:S,position:d})}),_},l)}else{var x=Vt(n,i,0,!0);i-2*x-(c-1)*s<=0&&(s=0);var g=(i-2*x-(c-1)*s)/c;g>1&&(g>>=0);var w=u===+u?Math.min(g,u):g;f=o.reduce(function(O,m,b){var _=[].concat(fm(O),[{item:m.item,position:{offset:x+(g+s)*b+(g-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},Ej=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=sx({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"&&q(t[p]))return de(de({},t),{},hr({},p,t[p]+(l||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&y!=="middle"&&q(t[y]))return de(de({},t),{},hr({},y,t[y]+(h||0)))}return t},jj=function(t,r,n){return J(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},lx=function(t,r,n,i,a){var o=r.props.children,u=Ke(o,Zn).filter(function(s){return jj(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=Fe(f,n);if(J(l))return s;var h=Array.isArray(l)?[Na(l),ka(l)]:[l,l],p=c.reduce(function(y,v){var d=Fe(f,v,0),x=h[0]-Math.abs(Array.isArray(d)?d[0]:d),g=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(x,y[0]),Math.max(g,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},Mj=function(t,r,n,i,a){var o=r.map(function(u){return lx(t,u,n,a,i)}).filter(function(u){return!J(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},fx=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&lx(t,c,s,i)||an(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},[])},hx=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},dx=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var a,o,u=t.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||u.push(r),o||u.push(n),u},ht=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,s=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(s=t.axisType==="angleAxis"&&u?.length>=2?tt(u[0]-u[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var h=a?a.indexOf(l):l;return{coordinate:i(h)+s,value:l,offset:s}});return f.filter(function(l){return!Un(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+s,value:l,index:h,offset:s}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+s,value:l,offset:s}}):i.domain().map(function(l,h){return{coordinate:i(l)+s,value:a?a[l]:l,index:h,offset:s}})},xs=new WeakMap,fi=function(t,r){if(typeof r!="function")return t;xs.has(t)||xs.set(t,new WeakMap);var n=xs.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},Cj=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:vn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Li(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:nn(),realScaleType:"point"}:a==="category"?{scale:vn(),realScaleType:"band"}:{scale:Li(),realScaleType:"linear"};if(Kt(i)){var c="scale".concat(wa(i));return{scale:(Zy[c]||nn)(),realScaleType:Zy[c]?c:"point"}}return Z(i)?{scale:i}:{scale:nn(),realScaleType:"point"}},dm=1e-4,$j=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])-dm,o=Math.max(i[0],i[1])+dm,u=t(r[0]),c=t(r[n-1]);(u<a||u>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},Ij=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},kj=function(t,r){if(!r||r.length!==2||!q(r[0])||!q(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!q(t[0])||t[0]<n)&&(a[0]=n),(!q(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},Nj=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var c=Un(t[u][n][1])?t[u][n][0]:t[u][n][1];c>=0?(t[u][n][0]=a,t[u][n][1]=a+c,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+c,o=t[u][n][1])}},Dj=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=Un(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},Rj={sign:Nj,expand:b_,none:dr,silhouette:x_,wiggle:w_,positive:Dj},qj=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=Rj[n],o=g_().keys(i).value(function(u,c){return+Fe(u,c,0)}).order(ul).offset(a);return o(t)},Lj=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?de(de({},h.type.defaultProps),h.props):h.props,v=y.stackId,d=y.hide;if(d)return l;var x=y[n],g=l[x]||{hasStack:!1,stackGroups:{}};if(Oe(v)){var w=g.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),g.hasStack=!0,g.stackGroups[v]=w}else g.stackGroups[Hn("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return de(de({},l),{},hr({},x,g))},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 x=p.stackGroups[d];return de(de({},v),{},hr({},d,{numericAxisId:n,cateAxisId:i,items:x.items,stackedData:qj(t,x.items,a)}))},y)}return de(de({},l),{},hr({},h,p))},f)},Bj=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=ZE(s,a,u);return t.domain([Na(f),ka(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=JE(l,a,u);return{niceTicks:h}}return null};function pm(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&&!J(i[t.dataKey])){var u=gi(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Fe(i,J(o)?t.dataKey:o);return J(c)?null:t.scale(c)}var vm=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=Fe(o,r.dataKey,r.domain[u]);return J(c)?null:r.scale(c)-a/2+i},Fj=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]},Wj=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?de(de({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Oe(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},zj=function(t){return t.reduce(function(r,n){return[Na(n.concat([r[0]]).filter(q)),ka(n.concat([r[1]]).filter(q))]},[1/0,-1/0])},px=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=zj(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})},ym=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mm=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$l=function(t,r,n){if(Z(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(ym.test(t[0])){var a=+ym.exec(t[0])[1];i[0]=r[0]-a}else Z(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(mm.test(t[1])){var o=+mm.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},Gi=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=Rf(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},gm=function(t,r,n){return!t||!t.length||Da(t,Ge(n,"type.defaultProps.domain"))?r:t},vx=function(t,r){var n=t.type.defaultProps?de(de({},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 de(de({},Q(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:sh(t),value:Fe(r,i),type:c,payload:r,chartType:s,hide:f})};function Sn(e){"@babel/helpers - typeof";return Sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sn(e)}function bm(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 xm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bm(Object(r),!0).forEach(function(n){Uj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uj(e,t,r){return t=Hj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hj(e){var t=Gj(e,"string");return Sn(t)=="symbol"?t:t+""}function Gj(e,t){if(Sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ki=Math.PI/180,Kj=function(t){return t*180/Math.PI},Te=function(t,r,n,i){return{x:t+Math.cos(-Ki*i)*n,y:r+Math.sin(-Ki*i)*n}},Vj=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))},Xj=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=Vj({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:Kj(s),angleInRadian:s}},Yj=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}},Zj=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},wm=function(t,r){var n=t.x,i=t.y,a=Xj({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=Yj(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?xm(xm({},r),{},{radius:o,angle:Zj(p,r)}):null};function An(e){"@babel/helpers - typeof";return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},An(e)}var Jj=["offset"];function Qj(e){return nM(e)||rM(e)||tM(e)||eM()}function eM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tM(e,t){if(e){if(typeof e=="string")return Il(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Il(e,t)}}function rM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nM(e){if(Array.isArray(e))return Il(e)}function Il(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iM(e,t){if(e==null)return{};var r=aM(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 aM(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 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 we(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){oM(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 oM(e,t,r){return t=uM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uM(e){var t=cM(e,"string");return An(t)=="symbol"?t:t+""}function cM(e,t){if(An(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(An(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pn(){return Pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pn.apply(this,arguments)}var sM=function(t){var r=t.value,n=t.formatter,i=J(t.children)?r:t.children;return Z(n)?n(i):i},lM=function(t,r){var n=tt(r-t),i=Math.min(Math.abs(r-t),360);return n*i},fM=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,x=lM(p,y),g=x>=0?1:-1,w,O;i==="insideStart"?(w=p+g*o,O=v):i==="insideEnd"?(w=y-g*o,O=!v):i==="end"&&(w=y+g*o,O=v),O=x<=0?O:!O;var m=Te(s,f,d,w),b=Te(s,f,d,w+(O?1:-1)*359),_="M".concat(m.x,",").concat(m.y,`
    A`).concat(d,",").concat(d,",0,1,").concat(O?0:1,`,
    `).concat(b.x,",").concat(b.y),S=J(t.id)?Hn("recharts-radial-line-"):t.id;return T.createElement("text",Pn({},n,{dominantBaseline:"central",className:te("recharts-radial-bar-label",u)}),T.createElement("defs",null,T.createElement("path",{id:S,d:_})),T.createElement("textPath",{xlinkHref:"#".concat(S)},r))},hM=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=Te(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,x=Te(o,u,d,h),g=x.x,w=x.y;return{x:g,y:w,textAnchor:"middle",verticalAnchor:"middle"}},dM=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,x=v>0?"end":"start",g=v>0?"start":"end";if(a==="top"){var w={x:u+s/2,y:c-l*i,textAnchor:"middle",verticalAnchor:p};return we(we({},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 we(we({},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:x,verticalAnchor:"middle"};return we(we({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var b={x:u+s+d,y:c+f/2,textAnchor:g,verticalAnchor:"middle"};return we(we({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:f}:{})}var _=n?{width:s,height:f}:{};return a==="insideLeft"?we({x:u+d,y:c+f/2,textAnchor:g,verticalAnchor:"middle"},_):a==="insideRight"?we({x:u+s-d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideTop"?we({x:u+s/2,y:c+h,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?we({x:u+s/2,y:c+f-h,textAnchor:"middle",verticalAnchor:p},_):a==="insideTopLeft"?we({x:u+d,y:c+h,textAnchor:g,verticalAnchor:y},_):a==="insideTopRight"?we({x:u+s-d,y:c+h,textAnchor:x,verticalAnchor:y},_):a==="insideBottomLeft"?we({x:u+d,y:c+f-h,textAnchor:g,verticalAnchor:p},_):a==="insideBottomRight"?we({x:u+s-d,y:c+f-h,textAnchor:x,verticalAnchor:p},_):Dr(a)&&(q(a.x)||Bt(a.x))&&(q(a.y)||Bt(a.y))?we({x:u+Vt(a.x,s),y:c+Vt(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):we({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},pM=function(t){return"cx"in t&&q(t.cx)};function je(e){var t=e.offset,r=t===void 0?5:t,n=iM(e,Jj),i=we({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||J(u)&&J(c)&&!R.isValidElement(s)&&!Z(s))return null;if(R.isValidElement(s))return R.cloneElement(s,i);var p;if(Z(s)){if(p=R.createElement(s,i),R.isValidElement(p))return p}else p=sM(i);var y=pM(a),v=Q(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return fM(i,p,v);var d=y?hM(i):dM(i);return T.createElement(Ci,Pn({className:te("recharts-label",l)},v,d,{breakAll:h}),p)}je.displayName="Label";var yx=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,x=t.clockWise,g=t.labelViewBox;if(g)return g;if(q(v)&&q(d)){if(q(l)&&q(h))return{x:l,y:h,width:v,height:d};if(q(p)&&q(y))return{x:p,y,width:v,height:d}}return q(l)&&q(h)?{x:l,y:h,width:0,height:0}:q(r)&&q(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||c||u||0,clockWise:x}:t.viewBox?t.viewBox:{}},vM=function(t,r){return t?t===!0?T.createElement(je,{key:"label-implicit",viewBox:r}):Oe(t)?T.createElement(je,{key:"label-implicit",viewBox:r,value:t}):R.isValidElement(t)?t.type===je?R.cloneElement(t,{key:"label-implicit",viewBox:r}):T.createElement(je,{key:"label-implicit",content:t,viewBox:r}):Z(t)?T.createElement(je,{key:"label-implicit",content:t,viewBox:r}):Dr(t)?T.createElement(je,Pn({viewBox:r},t,{key:"label-implicit"})):null:null},yM=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=yx(t),o=Ke(i,je).map(function(c,s){return R.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=vM(t.label,r||a);return[u].concat(Qj(o))};je.parseViewBox=yx;je.renderCallByParent=yM;var ws,_m;function mM(){if(_m)return ws;_m=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return ws=e,ws}var gM=mM();const bM=ce(gM);function Tn(e){"@babel/helpers - typeof";return Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tn(e)}var xM=["valueAccessor"],wM=["data","dataKey","clockWise","id","textBreakAll"];function OM(e){return PM(e)||AM(e)||SM(e)||_M()}function _M(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SM(e,t){if(e){if(typeof e=="string")return kl(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 kl(e,t)}}function AM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PM(e){if(Array.isArray(e))return kl(e)}function kl(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(){return Vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vi.apply(this,arguments)}function 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){TM(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 TM(e,t,r){return t=EM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EM(e){var t=jM(e,"string");return Tn(t)=="symbol"?t:t+""}function jM(e,t){if(Tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pm(e,t){if(e==null)return{};var r=MM(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 MM(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 CM=function(t){return Array.isArray(t.value)?bM(t.value):t.value};function Et(e){var t=e.valueAccessor,r=t===void 0?CM:t,n=Pm(e,xM),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=Pm(n,wM);return!i||!i.length?null:T.createElement(pe,{className:"recharts-label-list"},i.map(function(f,l){var h=J(a)?r(f,l):Fe(f&&f.payload,a),p=J(u)?{}:{id:"".concat(u,"-").concat(l)};return T.createElement(je,Vi({},Q(f,!0),s,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:je.parseViewBox(J(o)?f:Am(Am({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}Et.displayName="LabelList";function $M(e,t){return e?e===!0?T.createElement(Et,{key:"labelList-implicit",data:t}):T.isValidElement(e)||Z(e)?T.createElement(Et,{key:"labelList-implicit",data:t,content:e}):Dr(e)?T.createElement(Et,Vi({data:t},e,{key:"labelList-implicit"})):null:null}function IM(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Ke(n,Et).map(function(o,u){return R.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=$M(e.label,t);return[a].concat(OM(i))}Et.renderCallByParent=IM;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 Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nl.apply(this,arguments)}function 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 Em(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){kM(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 kM(e,t,r){return t=NM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NM(e){var t=DM(e,"string");return En(t)=="symbol"?t:t+""}function DM(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var RM=function(t,r){var n=tt(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},hi=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)/Ki,h=s?a:a+o*l,p=Te(r,n,f,h),y=Te(r,n,i,h),v=s?a-o*l:a,d=Te(r,n,f*Math.cos(l*Ki),v);return{center:p,circleTangency:y,lineTangency:d,theta:l}},mx=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,c=RM(o,u),s=o+c,f=Te(r,n,a,o),l=Te(r,n,a,s),h="M ".concat(f.x,",").concat(f.y,`
    A `).concat(a,",").concat(a,`,0,
    `).concat(+(Math.abs(c)>180),",").concat(+(o>s),`,
    `).concat(l.x,",").concat(l.y,`
  `);if(i>0){var p=Te(r,n,i,o),y=Te(r,n,i,s);h+="L ".concat(y.x,",").concat(y.y,`
            A `).concat(i,",").concat(i,`,0,
            `).concat(+(Math.abs(c)>180),",").concat(+(o<=s),`,
            `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},qM=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=tt(f-s),h=hi({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),p=h.circleTangency,y=h.lineTangency,v=h.theta,d=hi({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),x=d.circleTangency,g=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,`
        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
      `):mx({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(g.x,",").concat(g.y,`
  `);if(i>0){var b=hi({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),_=b.circleTangency,S=b.lineTangency,A=b.theta,C=hi({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),E=C.circleTangency,P=C.lineTangency,j=C.theta,$=c?Math.abs(s-f):Math.abs(s-f)-A-j;if($<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(P.x,",").concat(P.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(E.x,",").concat(E.y,`
      A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
      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},LM={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},gx=function(t){var r=Em(Em({},LM),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=te("recharts-sector",h),y=o-a,v=Vt(u,y,0,!0),d;return v>0&&Math.abs(f-l)<360?d=qM({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):d=mx({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),T.createElement("path",Nl({},Q(r,!0),{className:p,d,role:"img"}))};function jn(e){"@babel/helpers - typeof";return jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jn(e)}function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dl.apply(this,arguments)}function jm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jm(Object(r),!0).forEach(function(n){BM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BM(e,t,r){return t=FM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FM(e){var t=WM(e,"string");return jn(t)=="symbol"?t:t+""}function WM(e,t){if(jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cm={curveBasisClosed:u_,curveBasisOpen:c_,curveBasis:o_,curveBumpX:GO,curveBumpY:KO,curveLinearClosed:s_,curveLinear:_a,curveMonotoneX:l_,curveMonotoneY:f_,curveNatural:h_,curveStep:d_,curveStepAfter:v_,curveStepBefore:p_},di=function(t){return t.x===+t.x&&t.y===+t.y},Vr=function(t){return t.x},Xr=function(t){return t.y},zM=function(t,r){if(Z(t))return t;var n="curve".concat(wa(t));return(n==="curveMonotone"||n==="curveBump")&&r?Cm["".concat(n).concat(r==="vertical"?"Y":"X")]:Cm[n]||_a},UM=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=zM(n,u),l=s?a.filter(function(v){return di(v)}):a,h;if(Array.isArray(o)){var p=s?o.filter(function(v){return di(v)}):o,y=l.map(function(v,d){return Mm(Mm({},v),{},{base:p[d]})});return u==="vertical"?h=ii().y(Xr).x1(Vr).x0(function(v){return v.base.x}):h=ii().x(Vr).y1(Xr).y0(function(v){return v.base.y}),h.defined(di).curve(f),h(y)}return u==="vertical"&&q(o)?h=ii().y(Xr).x1(Vr).x0(o):q(o)?h=ii().x(Vr).y1(Xr).y0(o):h=_b().x(Vr).y(Xr),h.defined(di).curve(f),h(l)},Rl=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?UM(t):i;return R.createElement("path",Dl({},Q(t,!1),bi(t),{className:te("recharts-curve",r),d:o,ref:a}))},Os={exports:{}},_s,$m;function HM(){if($m)return _s;$m=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _s=e,_s}var Ss,Im;function GM(){if(Im)return Ss;Im=1;var e=HM();function t(){}function r(){}return r.resetWarningCache=t,Ss=function(){function n(o,u,c,s,f,l){if(l!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Ss}var km;function KM(){return km||(km=1,Os.exports=GM()()),Os.exports}var VM=KM();const ie=ce(VM),{getOwnPropertyNames:XM,getOwnPropertySymbols:YM}=Object,{hasOwnProperty:ZM}=Object.prototype;function As(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function pi(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 JM(e){return e?.[Symbol.toStringTag]}function Nm(e){return XM(e).concat(YM(e))}const QM=Object.hasOwn||((e,t)=>ZM.call(e,t));function tr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const eC="__v",tC="__o",rC="_owner",{getOwnPropertyDescriptor:Dm,keys:Rm}=Object;function nC(e,t){return e.byteLength===t.byteLength&&Xi(new Uint8Array(e),new Uint8Array(t))}function iC(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 aC(e,t){return e.byteLength===t.byteLength&&Xi(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function oC(e,t){return tr(e.getTime(),t.getTime())}function uC(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function cC(e,t){return e===t}function qm(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 sC=tr;function lC(e,t,r){const n=Rm(e);let i=n.length;if(Rm(t).length!==i)return!1;for(;i-- >0;)if(!bx(e,t,r,n[i]))return!1;return!0}function Yr(e,t,r){const n=Nm(e);let i=n.length;if(Nm(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!bx(e,t,r,a)||(o=Dm(e,a),u=Dm(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function fC(e,t){return tr(e.valueOf(),t.valueOf())}function hC(e,t){return e.source===t.source&&e.flags===t.flags}function Lm(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 Xi(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 dC(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 bx(e,t,r,n){return(n===rC||n===tC||n===eC)&&(e.$$typeof||t.$$typeof)?!0:QM(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const pC="[object ArrayBuffer]",vC="[object Arguments]",yC="[object Boolean]",mC="[object DataView]",gC="[object Date]",bC="[object Error]",xC="[object Map]",wC="[object Number]",OC="[object Object]",_C="[object RegExp]",SC="[object Set]",AC="[object String]",PC={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},TC="[object URL]",EC=Object.prototype.toString;function jC({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,x,g){if(d===x)return!0;if(d==null||x==null)return!1;const w=typeof d;if(w!==typeof x)return!1;if(w!=="object")return w==="number"?u(d,x,g):w==="function"?a(d,x,g):!1;const O=d.constructor;if(O!==x.constructor)return!1;if(O===Object)return c(d,x,g);if(Array.isArray(d))return t(d,x,g);if(O===Date)return n(d,x,g);if(O===RegExp)return f(d,x,g);if(O===Map)return o(d,x,g);if(O===Set)return l(d,x,g);const m=EC.call(d);if(m===gC)return n(d,x,g);if(m===_C)return f(d,x,g);if(m===xC)return o(d,x,g);if(m===SC)return l(d,x,g);if(m===OC)return typeof d.then!="function"&&typeof x.then!="function"&&c(d,x,g);if(m===TC)return p(d,x,g);if(m===bC)return i(d,x,g);if(m===vC)return c(d,x,g);if(PC[m])return h(d,x,g);if(m===pC)return e(d,x,g);if(m===mC)return r(d,x,g);if(m===yC||m===wC||m===AC)return s(d,x,g);if(y){let b=y[m];if(!b){const _=JM(d);_&&(b=y[_])}if(b)return b(d,x,g)}return!1}}function MC({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:nC,areArraysEqual:r?Yr:iC,areDataViewsEqual:aC,areDatesEqual:oC,areErrorsEqual:uC,areFunctionsEqual:cC,areMapsEqual:r?As(qm,Yr):qm,areNumbersEqual:sC,areObjectsEqual:r?Yr:lC,arePrimitiveWrappersEqual:fC,areRegExpsEqual:hC,areSetsEqual:r?As(Lm,Yr):Lm,areTypedArraysEqual:r?As(Xi,Yr):Xi,areUrlsEqual:dC,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=pi(n.areArraysEqual),a=pi(n.areMapsEqual),o=pi(n.areObjectsEqual),u=pi(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function CC(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function $C({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 IC=It();It({strict:!0});It({circular:!0});It({circular:!0,strict:!0});It({createInternalComparator:()=>tr});It({strict:!0,createInternalComparator:()=>tr});It({circular:!0,createInternalComparator:()=>tr});It({circular:!0,createInternalComparator:()=>tr,strict:!0});function It(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=MC(e),o=jC(a),u=r?r(o):CC(o);return $C({circular:t,comparator:o,createState:n,equals:u,strict:i})}function kC(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Bm(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):kC(i)};requestAnimationFrame(n)}function ql(e){"@babel/helpers - typeof";return ql=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},ql(e)}function NC(e){return LC(e)||qC(e)||RC(e)||DC()}function DC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RC(e,t){if(e){if(typeof e=="string")return Fm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fm(e,t)}}function Fm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LC(e){if(Array.isArray(e))return e}function BC(){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=NC(o),c=u[0],s=u.slice(1);if(typeof c=="number"){Bm(i.bind(null,s),c);return}i(c),Bm(i.bind(null,s));return}ql(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Mn(e){"@babel/helpers - typeof";return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(e)}function 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 zm(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){xx(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 xx(e,t,r){return t=FC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FC(e){var t=WC(e,"string");return Mn(t)==="symbol"?t:String(t)}function WC(e,t){if(Mn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zC=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},UC=function(t){return t},HC=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},on=function(t,r){return Object.keys(r).reduce(function(n,i){return zm(zm({},n),{},xx({},i,t(i,r[i])))},{})},Um=function(t,r,n){return t.map(function(i){return"".concat(HC(i)," ").concat(r,"ms ").concat(n)}).join(",")};function GC(e,t){return XC(e)||VC(e,t)||wx(e,t)||KC()}function KC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VC(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 XC(e){if(Array.isArray(e))return e}function YC(e){return QC(e)||JC(e)||wx(e)||ZC()}function ZC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wx(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 JC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QC(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 Yi=1e-4,Ox=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},_x=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Hm=function(t,r){return function(n){var i=Ox(t,r);return _x(i,n)}},e$=function(t,r){return function(n){var i=Ox(t,r),a=[].concat(YC(i.map(function(o,u){return o*u}).slice(1)),[0]);return _x(a,n)}},Gm=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=GC(s,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=Hm(i,o),h=Hm(a,u),p=e$(i,o),y=function(x){return x>1?1:x<0?0:x},v=function(x){for(var g=x>1?1:x,w=g,O=0;O<8;++O){var m=l(w)-g,b=p(w);if(Math.abs(m-g)<Yi||b<Yi)return h(w);w=y(w-m/b)}return h(w)};return v.isStepper=!1,v},t$=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)<Yi&&Math.abs(v)<Yi?[l,0]:[d,v]};return c.isStepper=!0,c.dt=u,c},r$=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 Gm(i);case"spring":return t$();default:if(i.split("(")[0]==="cubic-bezier")return Gm(i)}return typeof i=="function"?i:null};function Cn(e){"@babel/helpers - typeof";return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cn(e)}function Km(e){return a$(e)||i$(e)||Sx(e)||n$()}function n$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function a$(e){if(Array.isArray(e))return Fl(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 Pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vm(Object(r),!0).forEach(function(n){Bl(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 Bl(e,t,r){return t=o$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o$(e){var t=u$(e,"string");return Cn(t)==="symbol"?t:String(t)}function u$(e,t){if(Cn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function c$(e,t){return f$(e)||l$(e,t)||Sx(e,t)||s$()}function s$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sx(e,t){if(e){if(typeof e=="string")return Fl(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 Fl(e,t)}}function Fl(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 l$(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 f$(e){if(Array.isArray(e))return e}var Zi=function(t,r,n){return t+(r-t)*n},Wl=function(t){var r=t.from,n=t.to;return r!==n},h$=function e(t,r,n){var i=on(function(a,o){if(Wl(o)){var u=t(o.from,o.to,o.velocity),c=c$(u,2),s=c[0],f=c[1];return Pe(Pe({},o),{},{from:s,velocity:f})}return o},r);return n<1?on(function(a,o){return Wl(o)?Pe(Pe({},o),{},{velocity:Zi(o.velocity,i[a].velocity,n),from:Zi(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const d$=(function(e,t,r,n,i){var a=zC(e,t),o=a.reduce(function(d,x){return Pe(Pe({},d),{},Bl({},x,[e[x],t[x]]))},{}),u=a.reduce(function(d,x){return Pe(Pe({},d),{},Bl({},x,{from:e[x],velocity:0,to:t[x]}))},{}),c=-1,s,f,l=function(){return null},h=function(){return on(function(x,g){return g.from},u)},p=function(){return!Object.values(u).filter(Wl).length},y=function(x){s||(s=x);var g=x-s,w=g/r.dt;u=h$(r,u,w),i(Pe(Pe(Pe({},e),t),h())),s=x,p()||(c=requestAnimationFrame(l))},v=function(x){f||(f=x);var g=(x-f)/n,w=on(function(m,b){return Zi.apply(void 0,Km(b).concat([r(g)]))},o);if(i(Pe(Pe(Pe({},e),t),w)),g<1)c=requestAnimationFrame(l);else{var O=on(function(m,b){return Zi.apply(void 0,Km(b).concat([r(1)]))},o);i(Pe(Pe(Pe({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(c)}}});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)}var p$=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function v$(e,t){if(e==null)return{};var r=y$(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 y$(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 Ps(e){return x$(e)||b$(e)||g$(e)||m$()}function m$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g$(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 b$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function x$(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 Xm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xm(Object(r),!0).forEach(function(n){en(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function en(e,t,r){return t=Ax(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O$(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,Ax(n.key),n)}}function _$(e,t,r){return t&&O$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ax(e){var t=S$(e,"string");return Or(t)==="symbol"?t:String(t)}function S$(e,t){if(Or(e)!=="object"||e===null)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(t==="string"?String:Number)(e)}function A$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 P$(e){var t=T$();return function(){var n=Ji(e),i;if(t){var a=Ji(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Hl(this,i)}}function Hl(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 Gl(e)}function Gl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T$(){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 Ji(e){return Ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ji(e)}var bt=(function(e){A$(r,e);var t=P$(r);function r(n,i){var a;w$(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(Gl(a)),a.changeStyle=a.changeStyle.bind(Gl(a)),!u||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),Hl(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof h=="function")return a.state={style:s},Hl(a);a.state={style:c?en({},c,s):s}}else a.state={style:{}};return a}return _$(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?en({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(p);return}if(!(IC(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?en({},c,v):v};(c&&h[c]!==v||!c&&h!==v)&&this.setState(d)}this.runAnimation(Ye(Ye({},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=d$(o,u,r$(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,x){if(x===0)return v;var g=d.duration,w=d.easing,O=w===void 0?"ease":w,m=d.style,b=d.properties,_=d.onAnimationEnd,S=x>0?o[x-1]:d,A=b||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(Ps(v),[a.runJSAnimation.bind(a,{from:S.style,to:m,duration:g,easing:O}),g]);var C=Um(A,g,O),E=Ye(Ye(Ye({},S.style),m),{},{transition:C});return[].concat(Ps(v),[E,g,_]).filter(UC)};return this.manager.start([c].concat(Ps(o.reduce(p,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=BC());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?en({},u,c):c,d=Um(Object.keys(v),o,s);y.start([f,a,Ye(Ye({},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=v$(i,p$),s=R.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,x=y.className,g=R.cloneElement(p,Ye(Ye({},c),{},{style:Ye(Ye({},d),f),className:x}));return g};return s===1?l(R.Children.only(a)):T.createElement("div",null,R.Children.map(a,function(h){return l(h)}))}}]),r})(R.PureComponent);bt.displayName="Animate";bt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};bt.propTypes={from:ie.oneOfType([ie.object,ie.string]),to:ie.oneOfType([ie.object,ie.string]),attributeName:ie.string,duration:ie.number,begin:ie.number,easing:ie.oneOfType([ie.string,ie.func]),steps:ie.arrayOf(ie.shape({duration:ie.number.isRequired,style:ie.object.isRequired,easing:ie.oneOfType([ie.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ie.func]),properties:ie.arrayOf("string"),onAnimationEnd:ie.func})),children:ie.oneOfType([ie.node,ie.func]),isActive:ie.bool,canBegin:ie.bool,onAnimationEnd:ie.func,shouldReAnimate:ie.bool,onAnimationStart:ie.func,onAnimationReStart:ie.func};function $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 Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qi.apply(this,arguments)}function E$(e,t){return $$(e)||C$(e,t)||M$(e,t)||j$()}function j$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M$(e,t){if(e){if(typeof e=="string")return Ym(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 Ym(e,t)}}function Ym(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 C$(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 $$(e){if(Array.isArray(e))return e}function Zm(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 Jm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zm(Object(r),!0).forEach(function(n){I$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I$(e,t,r){return t=k$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k$(e){var t=N$(e,"string");return $n(t)=="symbol"?t:t+""}function N$(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 Qm=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,`,
        `).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,`,
        `).concat(t+n-c*l[2],",").concat(r+i)),f+="L ".concat(t+c*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,`,
        `).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,`
            A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+c*y,",").concat(r,`
            L `).concat(t+n-c*y,",").concat(r,`
            A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n,",").concat(r+u*y,`
            L `).concat(t+n,",").concat(r+i-u*y,`
            A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n-c*y,",").concat(r+i,`
            L `).concat(t+c*y,",").concat(r+i,`
            A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},D$=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},R$={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},lh=function(t){var r=Jm(Jm({},R$),t),n=R.useRef(),i=R.useState(-1),a=E$(i,2),o=a[0],u=a[1];R.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,x=r.isAnimationActive,g=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||f===0||l===0)return null;var w=te("recharts-rectangle",p);return g?T.createElement(bt,{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:g},function(O){var m=O.width,b=O.height,_=O.x,S=O.y;return T.createElement(bt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,isActive:x,easing:y},T.createElement("path",Qi({},Q(r,!0),{className:w,d:Qm(_,S,m,b,h),ref:n})))}):T.createElement("path",Qi({},Q(r,!0),{className:w,d:Qm(c,s,f,l,h)}))};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)}var fh=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=te("recharts-dot",a);return r===+r&&n===+n&&i===+i?R.createElement("circle",Kl({},Q(t,!1),bi(t),{className:o,cx:r,cy:n,r:i})):null};function In(e){"@babel/helpers - typeof";return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(e)}var q$=["x","y","top","left","width","height","className"];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)}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 L$(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){B$(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 B$(e,t,r){return t=F$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F$(e){var t=W$(e,"string");return In(t)=="symbol"?t:t+""}function W$(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 z$(e,t){if(e==null)return{};var r=U$(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 U$(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 H$=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},G$=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=z$(t,q$),d=L$({x:n,y:a,top:u,left:s,width:l,height:p},v);return!q(n)||!q(a)||!q(l)||!q(p)||!q(u)||!q(s)?null:T.createElement("path",Vl({},Q(d,!0),{className:te("recharts-cross",y),d:H$(n,a,l,p,u,s)}))},Ts,tg;function K$(){if(tg)return Ts;tg=1;var e=Gb(),t=e(Object.getPrototypeOf,Object);return Ts=t,Ts}var Es,rg;function V$(){if(rg)return Es;rg=1;var e=xt(),t=K$(),r=wt(),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 Es=s,Es}var X$=V$();const Y$=ce(X$);var js,ng;function Z$(){if(ng)return js;ng=1;var e=xt(),t=wt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return js=n,js}var J$=Z$();const Q$=ce(J$);function kn(e){"@babel/helpers - typeof";return kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(e)}function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ea.apply(this,arguments)}function eI(e,t){return iI(e)||nI(e,t)||rI(e,t)||tI()}function tI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rI(e,t){if(e){if(typeof e=="string")return ig(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 ig(e,t)}}function ig(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 nI(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 iI(e){if(Array.isArray(e))return 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 og(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){aI(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 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 kn(t)=="symbol"?t:t+""}function uI(e,t){if(kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ug=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},cI={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},sI=function(t){var r=og(og({},cI),t),n=R.useRef(),i=R.useState(-1),a=eI(i,2),o=a[0],u=a[1];R.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,x=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var g=te("recharts-trapezoid",p);return x?T.createElement(bt,{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:x},function(w){var O=w.upperWidth,m=w.lowerWidth,b=w.height,_=w.x,S=w.y;return T.createElement(bt,{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",ea({},Q(r,!0),{className:g,d:ug(_,S,O,m,b),ref:n})))}):T.createElement("g",null,T.createElement("path",ea({},Q(r,!0),{className:g,d:ug(c,s,f,l,h)})))},lI=["option","shapeType","propTransformer","activeClassName","isActive"];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 fI(e,t){if(e==null)return{};var r=hI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function cg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ta(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cg(Object(r),!0).forEach(function(n){dI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dI(e,t,r){return t=pI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pI(e){var t=vI(e,"string");return Nn(t)=="symbol"?t:t+""}function vI(e,t){if(Nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yI(e,t){return ta(ta({},t),e)}function mI(e,t){return e==="symbols"}function sg(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return T.createElement(lh,r);case"trapezoid":return T.createElement(sI,r);case"sector":return T.createElement(gx,r);case"symbols":if(mI(t))return T.createElement(jf,r);break;default:return null}}function gI(e){return R.isValidElement(e)?e.props:e}function bI(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?yI:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,c=fI(e,lI),s;if(R.isValidElement(t))s=R.cloneElement(t,ta(ta({},c),gI(t)));else if(Z(t))s=t(c);else if(Y$(t)&&!Q$(t)){var f=i(t,c);s=T.createElement(sg,{shapeType:r,elementProps:f})}else{var l=c;s=T.createElement(sg,{shapeType:r,elementProps:l})}return u?T.createElement(pe,{className:o},s):s}function La(e,t){return t!=null&&"trapezoids"in e.props}function Ba(e,t){return t!=null&&"sectors"in e.props}function Dn(e,t){return t!=null&&"points"in e.props}function xI(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 wI(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function OI(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function _I(e,t){var r;return La(e,t)?r=xI:Ba(e,t)?r=wI:Dn(e,t)&&(r=OI),r}function SI(e,t){var r;return La(e,t)?r="trapezoids":Ba(e,t)?r="sectors":Dn(e,t)&&(r="points"),r}function AI(e,t){if(La(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(Ba(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Dn(e,t)?t.payload:{}}function PI(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=SI(r,t),a=AI(r,t),o=n.filter(function(c,s){var f=Da(a,c),l=r.props[i].filter(function(y){var v=_I(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 Ms,lg;function TI(){if(lg)return Ms;lg=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 Ms=r,Ms}var Cs,fg;function Px(){if(fg)return Cs;fg=1;var e=c0(),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 Cs=n,Cs}var $s,hg;function EI(){if(hg)return $s;hg=1;var e=TI(),t=Ta(),r=Px();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 $s=n,$s}var Is,dg;function jI(){if(dg)return Is;dg=1;var e=EI(),t=e();return Is=t,Is}var MI=jI();const ra=ce(MI);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 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 vg(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){Tx(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 Tx(e,t,r){return t=CI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CI(e){var t=$I(e,"string");return Rn(t)=="symbol"?t:t+""}function $I(e,t){if(Rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var II=["Webkit","Moz","O","ms"],kI=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=II.reduce(function(a,o){return vg(vg({},a),{},Tx({},o+n,r))},{});return i[t]=r,i};function _r(e){"@babel/helpers - typeof";return _r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_r(e)}function na(){return na=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},na.apply(this,arguments)}function yg(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 ks(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yg(Object(r),!0).forEach(function(n){qe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jx(n.key),n)}}function DI(e,t,r){return t&&mg(e.prototype,t),r&&mg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RI(e,t,r){return t=ia(t),qI(e,Ex()?Reflect.construct(t,r||[],ia(e).constructor):t.apply(e,r))}function qI(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 LI(e)}function LI(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 ia(e){return ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ia(e)}function BI(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 qe(e,t,r){return t=jx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jx(e){var t=FI(e,"string");return _r(t)=="symbol"?t:t+""}function FI(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 WI=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=nn().domain(ra(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}},gg=function(t){return t.changedTouches&&!!t.changedTouches.length},Sr=(function(e){function t(r){var n;return NI(this,t),n=RI(this,t,[r]),qe(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),qe(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),qe(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),qe(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),qe(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),qe(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),qe(n,"handleSlideDragStart",function(i){var a=gg(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 BI(t,e),DI(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=Fe(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=gg(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,x={startX:this.state.startX,endX:this.state.endX},g=n.pageX-a;g>0?g=Math.min(g,l+h-p-s):g<0&&(g=Math.max(g,l-s)),x[o]=s+g;var w=this.getIndex(x),O=w.startIndex,m=w.endIndex,b=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(qe(qe({},o,s+g),"brushMoveStartX",n.pageX),function(){y&&b()&&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(qe({},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=R.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,x=Math.max(n,this.props.x),g=ks(ks({},Q(this.props,!1)),{},{x,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(pe,{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,g))}},{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(pe,{className:"recharts-brush-texts"},T.createElement(Ci,na({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-p,y:o+u/2},y),this.getTextOfTick(i)),T.createElement(Ci,na({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,x=h.isTravellerMoving,g=h.isTravellerFocused;if(!i||!i.length||!q(u)||!q(c)||!q(s)||!q(f)||s<=0||f<=0)return null;var w=te("recharts-brush",a),O=T.Children.count(o)===1,m=kI("userSelect","none");return T.createElement(pe,{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||x||g||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 ks({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?WI({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}}])})(R.PureComponent);qe(Sr,"displayName","Brush");qe(Sr,"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 Ns,bg;function zI(){if(bg)return Ns;bg=1;var e=Df();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Ns=t,Ns}var Ds,xg;function UI(){if(xg)return Ds;xg=1;var e=Lb(),t=Mt(),r=zI(),n=Ne(),i=Ta();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 Ds=a,Ds}var HI=UI();const GI=ce(HI);var ot=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Rs,wg;function KI(){if(wg)return Rs;wg=1;var e=n0();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Rs=t,Rs}var qs,Og;function VI(){if(Og)return qs;Og=1;var e=KI(),t=t0(),r=Mt();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 qs=n,qs}var XI=VI();const YI=ce(XI);var Ls,_g;function ZI(){if(_g)return Ls;_g=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 Ls=e,Ls}var Bs,Sg;function JI(){if(Sg)return Bs;Sg=1;var e=Df();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Bs=t,Bs}var Fs,Ag;function QI(){if(Ag)return Fs;Ag=1;var e=ZI(),t=JI(),r=Mt(),n=Ne(),i=Ta();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 Fs=a,Fs}var ek=QI();const Mx=ce(ek);var tk=["x","y"];function qn(e){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(e)}function Yl(){return Yl=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},Yl.apply(this,arguments)}function Pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pg(Object(r),!0).forEach(function(n){rk(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 rk(e,t,r){return t=nk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nk(e){var t=ik(e,"string");return qn(t)=="symbol"?t:t+""}function ik(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ak(e,t){if(e==null)return{};var r=ok(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 ok(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 uk(e,t){var r=e.x,n=e.y,i=ak(e,tk),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 Zr(Zr(Zr(Zr(Zr({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function Tg(e){return T.createElement(bI,Yl({shapeType:"rectangle",propTransformer:uk,activeClassName:"recharts-active-bar"},e))}var ck=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=q(n)||dO(n);return a?t(n,i):(a||Yt(),r)}},sk=["value","background"],Cx;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 lk(e,t){if(e==null)return{};var r=fk(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 fk(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 aa(){return aa=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},aa.apply(this,arguments)}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 ye(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){Pt(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 hk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ix(n.key),n)}}function dk(e,t,r){return t&&jg(e.prototype,t),r&&jg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pk(e,t,r){return t=oa(t),vk(e,$x()?Reflect.construct(t,r||[],oa(e).constructor):t.apply(e,r))}function vk(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 yk(e)}function yk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($x=function(){return!!e})()}function oa(e){return oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oa(e)}function mk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zl(e,t)}function Zl(e,t){return Zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zl(e,t)}function Pt(e,t,r){return t=Ix(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ix(e){var t=gk(e,"string");return Ar(t)=="symbol"?t:t+""}function gk(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)}var Jn=(function(e){function t(){var r;hk(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=pk(this,t,[].concat(i)),Pt(r,"state",{isAnimationFinished:!1}),Pt(r,"id",Hn("recharts-bar-")),Pt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Pt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return mk(t,e),dk(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=Q(this.props,!1);return n&&n.map(function(l,h){var p=h===c,y=p?s:o,v=ye(ye(ye({},f),l),{},{isActive:p,option:y,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return T.createElement(pe,aa({className:"recharts-bar-rectangle"},xi(i.props,l,h),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(h)}),T.createElement(Tg,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(bt,{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,x){var g=h&&h[x];if(g){var w=Qe(g.x,d.x),O=Qe(g.y,d.y),m=Qe(g.width,d.width),b=Qe(g.height,d.height);return ye(ye({},d),{},{x:w(y),y:O(y),width:m(y),height:b(y)})}if(o==="horizontal"){var _=Qe(0,d.height),S=_(y);return ye(ye({},d),{},{y:d.y+d.height-S,height:S})}var A=Qe(0,d.width),C=A(y);return ye(ye({},d),{},{width:C})});return T.createElement(pe,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||!Da(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=Q(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,h=lk(s,sk);if(!l)return null;var p=ye(ye(ye(ye(ye({},h),{},{fill:"#eee"},l),c),xi(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return T.createElement(Tg,aa({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=Ke(f,Zn);if(!l)return null;var h=s==="vertical"?o[0].height/2:o[0].width/2,p=function(d,x){var g=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:g,errorVal:Fe(d,x)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return T.createElement(pe,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,x=te("recharts-bar",o),g=u&&u.allowDataOverflow,w=c&&c.allowDataOverflow,O=g||w,m=J(v)?this.id:v;return T.createElement(pe,{className:x},g||w?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(m)},T.createElement("rect",{x:g?s:s-l/2,y:w?f:f-h/2,width:g?l:l*2,height:w?h:h*2}))):null,T.createElement(pe,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!p||d)&&Et.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}}])})(R.PureComponent);Cx=Jn;Pt(Jn,"displayName","Bar");Pt(Jn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!qr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Pt(Jn,"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=Ij(n,r);if(!p)return null;var y=t.layout,v=r.type.defaultProps,d=v!==void 0?ye(ye({},v),r.props):r.props,x=d.dataKey,g=d.children,w=d.minPointSize,O=y==="horizontal"?o:a,m=s?O.scale.domain():null,b=Fj({numericAxis:O}),_=Ke(g,l0),S=l.map(function(A,C){var E,P,j,$,M,k;s?E=kj(s[f+C],m):(E=Fe(A,x),Array.isArray(E)||(E=[b,E]));var N=ck(w,Cx.defaultProps.minPointSize)(E[1],C);if(y==="horizontal"){var L,B=[o.scale(E[0]),o.scale(E[1])],H=B[0],K=B[1];P=vm({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:A,index:C}),j=(L=K??H)!==null&&L!==void 0?L:void 0,$=p.size;var W=H-K;if(M=Number.isNaN(W)?0:W,k={x:P,y:o.y,width:$,height:o.height},Math.abs(N)>0&&Math.abs(M)<Math.abs(N)){var V=tt(M||N)*(Math.abs(N)-Math.abs(M));j-=V,M+=V}}else{var se=[a.scale(E[0]),a.scale(E[1])],ve=se[0],De=se[1];if(P=ve,j=vm({axis:o,ticks:c,bandSize:i,offset:p.offset,entry:A,index:C}),$=De-ve,M=p.size,k={x:a.x,y:j,width:a.width,height:M},Math.abs(N)>0&&Math.abs($)<Math.abs(N)){var kt=tt($||N)*(Math.abs(N)-Math.abs($));$+=kt}}return ye(ye(ye({},A),{},{x:P,y:j,width:$,height:M,value:s?E:E[1],payload:A,background:k},_&&_[C]&&_[C].props),{},{tooltipPayload:[vx(r,A)],tooltipPosition:{x:P+$/2,y:j+M/2}})});return ye({data:S,layout:y},h)});function Ln(e){"@babel/helpers - typeof";return Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ln(e)}function bk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kx(n.key),n)}}function xk(e,t,r){return t&&Mg(e.prototype,t),r&&Mg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cg(Object(r),!0).forEach(function(n){Fa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fa(e,t,r){return t=kx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kx(e){var t=wk(e,"string");return Ln(t)=="symbol"?t:t+""}function wk(e,t){if(Ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ok=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=!!Le(s,Jn);return f.reduce(function(p,y){var v=r[y],d=v.orientation,x=v.domain,g=v.padding,w=g===void 0?{}:g,O=v.mirror,m=v.reversed,b="".concat(d).concat(O?"Mirror":""),_,S,A,C,E;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var P=x[1]-x[0],j=1/0,$=v.categoricalDomain.sort(yO);if($.forEach(function(se,ve){ve>0&&(j=Math.min((se||0)-($[ve-1]||0),j))}),Number.isFinite(j)){var M=j/P,k=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=M*k/2),v.padding==="no-gap"){var N=Vt(t.barCategoryGap,M*k),L=M*k/2;_=L-N-(L-N)/k*N}}}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 B=Cj(v,a,h),H=B.scale,K=B.realScaleType;H.domain(x).range(S),$j(H);var W=Bj(H,Ze(Ze({},v),{},{realScaleType:K}));i==="xAxis"?(E=d==="top"&&!O||d==="bottom"&&O,A=n.left,C=l[b]-E*v.height):i==="yAxis"&&(E=d==="left"&&!O||d==="right"&&O,A=l[b]-E*v.width,C=n.top);var V=Ze(Ze(Ze({},v),W),{},{realScaleType:K,x:A,y:C,scale:H,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return V.bandSize=Gi(V,W),!v.hide&&i==="xAxis"?l[b]+=(E?-1:1)*V.height:v.hide||(l[b]+=(E?-1:1)*V.width),Ze(Ze({},p),{},Fa({},y,V))},{})},Nx=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)}},_k=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Nx({x:r,y:n},{x:i,y:a})},Dx=(function(){function e(t){bk(this,e),this.scale=t}return xk(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)}}])})();Fa(Dx,"EPS",1e-4);var hh=function(t){var r=Object.keys(t).reduce(function(n,i){return Ze(Ze({},n),{},Fa({},i,Dx.create(t[i])))},{});return Ze(Ze({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return YI(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return Mx(i,function(a,o){return r[o].isInRange(a)})}})};function Sk(e){return(e%180+180)%180}var Ak=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Sk(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)},Ws,$g;function Pk(){if($g)return Ws;$g=1;var e=Mt(),t=Gn(),r=Aa();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 Ws=n,Ws}var zs,Ig;function Tk(){if(Ig)return zs;Ig=1;var e=Px();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return zs=t,zs}var Us,kg;function Ek(){if(kg)return Us;kg=1;var e=Yb(),t=Mt(),r=Tk(),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 Us=i,Us}var Hs,Ng;function jk(){if(Ng)return Hs;Ng=1;var e=Pk(),t=Ek(),r=e(t);return Hs=r,Hs}var Mk=jk();const Ck=ce(Mk);var $k=hb();const Ik=ce($k);var kk=Ik(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("")}),dh=R.createContext(void 0),ph=R.createContext(void 0),Rx=R.createContext(void 0),qx=R.createContext({}),Lx=R.createContext(void 0),Bx=R.createContext(0),Fx=R.createContext(0),Dg=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=kk(a);return T.createElement(dh.Provider,{value:n},T.createElement(ph.Provider,{value:i},T.createElement(qx.Provider,{value:a},T.createElement(Rx.Provider,{value:f},T.createElement(Lx.Provider,{value:o},T.createElement(Bx.Provider,{value:s},T.createElement(Fx.Provider,{value:c},u)))))))},Nk=function(){return R.useContext(Lx)},Wx=function(t){var r=R.useContext(dh);r==null&&Yt();var n=r[t];return n==null&&Yt(),n},Dk=function(){var t=R.useContext(dh);return At(t)},Rk=function(){var t=R.useContext(ph),r=Ck(t,function(n){return Mx(n.domain,Number.isFinite)});return r||At(t)},zx=function(t){var r=R.useContext(ph);r==null&&Yt();var n=r[t];return n==null&&Yt(),n},qk=function(){var t=R.useContext(Rx);return t},Lk=function(){return R.useContext(qx)},vh=function(){return R.useContext(Fx)},yh=function(){return R.useContext(Bx)};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 Bk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fk(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,Hx(n.key),n)}}function Wk(e,t,r){return t&&Fk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zk(e,t,r){return t=ua(t),Uk(e,Ux()?Reflect.construct(t,r||[],ua(e).constructor):t.apply(e,r))}function Uk(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 Hk(e)}function Hk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ux(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ux=function(){return!!e})()}function ua(e){return ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ua(e)}function Gk(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 Rg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rg(Object(r),!0).forEach(function(n){mh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mh(e,t,r){return t=Hx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hx(e){var t=Kk(e,"string");return Pr(t)=="symbol"?t:t+""}function Kk(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 Vk(e,t){return Jk(e)||Zk(e,t)||Yk(e,t)||Xk()}function Xk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yk(e,t){if(e){if(typeof e=="string")return Lg(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 Lg(e,t)}}function Lg(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 Zk(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 Jk(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 Qk=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},eN=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(ot(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 x=s.x,g=t.x.apply(x,{position:o});if(ot(s,"discard")&&!t.x.isInRange(g))return null;var w=[{x:g,y:l+p},{x:g,y:l}];return u==="top"?w.reverse():w}if(i){var O=s.segment,m=O.map(function(b){return t.apply(b,{position:o})});return ot(s,"discard")&&GI(m,function(b){return!t.isInRange(b)})?null:m}return null};function tN(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=Nk(),f=Wx(i),l=zx(a),h=qk();if(!s||!h)return null;pt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=hh({x:f.scale,y:l.scale}),y=Oe(t),v=Oe(r),d=n&&n.length===2,x=eN(p,y,v,d,h,e.position,f.orientation,l.orientation,e);if(!x)return null;var g=Vk(x,2),w=g[0],O=w.x,m=w.y,b=g[1],_=b.x,S=b.y,A=ot(e,"hidden")?"url(#".concat(s,")"):void 0,C=qg(qg({clipPath:A},Q(e,!0)),{},{x1:O,y1:m,x2:_,y2:S});return T.createElement(pe,{className:te("recharts-reference-line",u)},Qk(o,C),je.renderCallByParent(e,_k({x1:O,y1:m,x2:_,y2:S})))}var gh=(function(e){function t(){return Bk(this,t),zk(this,t,arguments)}return Gk(t,e),Wk(t,[{key:"render",value:function(){return T.createElement(tN,this.props)}}])})(T.Component);mh(gh,"displayName","ReferenceLine");mh(gh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ef.apply(this,arguments)}function 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 Bg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bg(Object(r),!0).forEach(function(n){Wa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nN(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,Kx(n.key),n)}}function iN(e,t,r){return t&&nN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aN(e,t,r){return t=ca(t),oN(e,Gx()?Reflect.construct(t,r||[],ca(e).constructor):t.apply(e,r))}function oN(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 uN(e)}function uN(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 ca(e){return ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ca(e)}function cN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tf(e,t)}function tf(e,t){return tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tf(e,t)}function Wa(e,t,r){return t=Kx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kx(e){var t=sN(e,"string");return Tr(t)=="symbol"?t:t+""}function sN(e,t){if(Tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lN=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=hh({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return ot(t,"discard")&&!o.isInRange(u)?null:u},za=(function(e){function t(){return rN(this,t),aN(this,t,arguments)}return cN(t,e),iN(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=Oe(i),f=Oe(a);if(pt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=lN(this.props);if(!l)return null;var h=l.x,p=l.y,y=this.props,v=y.shape,d=y.className,x=ot(this.props,"hidden")?"url(#".concat(c,")"):void 0,g=Fg(Fg({clipPath:x},Q(this.props,!0)),{},{cx:h,cy:p});return T.createElement(pe,{className:te("recharts-reference-dot",d)},t.renderDot(v,g),je.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(T.Component);Wa(za,"displayName","ReferenceDot");Wa(za,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Wa(za,"renderDot",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):Z(e)?r=e(t):r=T.createElement(fh,ef({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function rf(){return rf=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},rf.apply(this,arguments)}function Er(e){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(e)}function 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 zg(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){Ua(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 fN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xx(n.key),n)}}function dN(e,t,r){return t&&hN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pN(e,t,r){return t=sa(t),vN(e,Vx()?Reflect.construct(t,r||[],sa(e).constructor):t.apply(e,r))}function vN(e,t){if(t&&(Er(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yN(e)}function yN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vx=function(){return!!e})()}function sa(e){return sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sa(e)}function mN(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&&nf(e,t)}function nf(e,t){return nf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nf(e,t)}function Ua(e,t,r){return t=Xx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xx(e){var t=gN(e,"string");return Er(t)=="symbol"?t:t+""}function gN(e,t){if(Er(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bN=function(t,r,n,i,a){var o=a.x1,u=a.x2,c=a.y1,s=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var h=hh({x:f.scale,y:l.scale}),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 ot(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:Nx(p,y)},Ha=(function(e){function t(){return fN(this,t),pN(this,t,arguments)}return mN(t,e),dN(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;pt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Oe(i),h=Oe(a),p=Oe(o),y=Oe(u),v=this.props.shape;if(!l&&!h&&!p&&!y&&!v)return null;var d=bN(l,h,p,y,this.props);if(!d&&!v)return null;var x=ot(this.props,"hidden")?"url(#".concat(f,")"):void 0;return T.createElement(pe,{className:te("recharts-reference-area",c)},t.renderRect(v,zg(zg({clipPath:x},Q(this.props,!0)),d)),je.renderCallByParent(this.props,d))}}])})(T.Component);Ua(Ha,"displayName","ReferenceArea");Ua(Ha,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Ua(Ha,"renderRect",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):Z(e)?r=e(t):r=T.createElement(lh,rf({},t,{className:"recharts-reference-area-rect"})),r});function Yx(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 xN(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Ak(n,r)}function wN(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 la(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 ON(e,t){return Yx(e,t+1)}function _N(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,c=0,s=1,f=o,l=function(){var y=n?.[c];if(y===void 0)return{v:Yx(n,s)};var v=c,d,x=function(){return d===void 0&&(d=r(y,v)),d},g=y.coordinate,w=c===0||la(e,g,x,f,u);w||(c=0,f=o,s+=1),w&&(f=g+e*(x()/2+i),c+=s)},h;s<=a.length;)if(h=l(),h)return h.v;return[]}function Bn(e){"@babel/helpers - typeof";return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn(e)}function Ug(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 Ee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ug(Object(r),!0).forEach(function(n){SN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ug(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SN(e,t,r){return t=AN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AN(e){var t=PN(e,"string");return Bn(t)=="symbol"?t:t+""}function PN(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TN(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=Ee(Ee({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=Ee(Ee({},p),{},{tickCoord:p.coordinate});var x=la(e,p.tickCoord,v,u,c);x&&(c=p.tickCoord-e*(v()/2+i),a[h]=Ee(Ee({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function EN(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=Ee(Ee({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=la(e,f.tickCoord,function(){return l},c,s);p&&(s=f.tickCoord-e*(l/2+i),o[u-1]=Ee(Ee({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(g){var w=o[g],O,m=function(){return O===void 0&&(O=r(w,g)),O};if(g===0){var b=e*(w.coordinate-e*m()/2-c);o[g]=w=Ee(Ee({},w),{},{tickCoord:b<0?w.coordinate-b*e:w.coordinate})}else o[g]=w=Ee(Ee({},w),{},{tickCoord:w.coordinate});var _=la(e,w.tickCoord,m,c,s);_&&(c=w.tickCoord+e*(m()/2+i),o[g]=Ee(Ee({},w),{},{isShow:!0}))},d=0;d<y;d++)v(d);return o}function bh(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,c=e.interval,s=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(q(c)||qr.isSsr)return ON(i,typeof c=="number"&&q(c)?c:0);var h=[],p=u==="top"||u==="bottom"?"width":"height",y=f&&p==="width"?rn(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"?xN(rn(m,{fontSize:t,letterSpacing:r}),y,l):rn(m,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?tt(i[1].coordinate-i[0].coordinate):1,x=wN(a,d,p);return c==="equidistantPreserveStart"?_N(d,x,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=EN(d,x,v,i,o,c==="preserveStartEnd"):h=TN(d,x,v,i,o),h.filter(function(g){return g.isShow}))}var jN=["viewBox"],MN=["viewBox"],CN=["ticks"];function jr(e){"@babel/helpers - typeof";return jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jr(e)}function cr(){return cr=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},cr.apply(this,arguments)}function Hg(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?Hg(Object(r),!0).forEach(function(n){xh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gs(e,t){if(e==null)return{};var r=$N(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $N(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function IN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Jx(n.key),n)}}function kN(e,t,r){return t&&Gg(e.prototype,t),r&&Gg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function NN(e,t,r){return t=fa(t),DN(e,Zx()?Reflect.construct(t,r||[],fa(e).constructor):t.apply(e,r))}function DN(e,t){if(t&&(jr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RN(e)}function RN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zx=function(){return!!e})()}function fa(e){return fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fa(e)}function qN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&af(e,t)}function af(e,t){return af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},af(e,t)}function xh(e,t,r){return t=Jx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jx(e){var t=LN(e,"string");return jr(t)=="symbol"?t:t+""}function LN(e,t){if(jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Wr=(function(e){function t(r){var n;return IN(this,t),n=NN(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return qN(t,e),kN(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Gs(n,jN),u=this.props,c=u.viewBox,s=Gs(u,MN);return!lr(a,c)||!lr(o,s)||!lr(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,x,g,w=l?-1:1,O=n.tickSize||f,m=q(n.tickCoord)?n.tickCoord:n.coordinate;switch(s){case"top":p=y=n.coordinate,d=o+ +!l*c,v=d-w*O,g=v-w*h,x=m;break;case"left":v=d=n.coordinate,y=a+ +!l*u,p=y-w*O,x=p-w*h,g=m;break;case"right":v=d=n.coordinate,y=a+ +l*u,p=y+w*O,x=p+w*h,g=m;break;default:p=y=n.coordinate,d=o+ +l*c,v=d+w*O,g=v+w*h,x=m;break}return{line:{x1:p,y1:v,x2:y,y2:d},tick:{x,y:g}}}},{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=xe(xe(xe({},Q(this.props,!1)),Q(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!s||c==="bottom"&&s);l=xe(xe({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var p=+(c==="left"&&!s||c==="right"&&s);l=xe(xe({},l),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+u})}return T.createElement("line",cr({},l,{className:te("recharts-cartesian-axis-line",Ge(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=bh(xe(xe({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),d=Q(this.props,!1),x=Q(f,!1),g=xe(xe({},d),{},{fill:"none"},Q(c,!1)),w=p.map(function(O,m){var b=o.getTickLineCoord(O),_=b.line,S=b.tick,A=xe(xe(xe(xe({textAnchor:y,verticalAnchor:v},d),{},{stroke:"none",fill:s},x),S),{},{index:m,payload:O,visibleTicksCount:p.length,tickFormatter:l});return T.createElement(pe,cr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},xi(o.props,O,m)),c&&T.createElement("line",cr({},g,_,{className:te("recharts-cartesian-axis-tick-line",Ge(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=Gs(l,CN),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(pe,{className:te("recharts-cartesian-axis",s),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),je.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=te(i.className,"recharts-cartesian-axis-tick-value");return T.isValidElement(n)?o=T.cloneElement(n,xe(xe({},i),{},{className:u})):Z(n)?o=n(xe(xe({},i),{},{className:u})):o=T.createElement(Ci,cr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(R.Component);xh(Wr,"displayName","CartesianAxis");xh(Wr,"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 BN=["x1","y1","x2","y2","key"],FN=["offset"];function Zt(e){"@babel/helpers - typeof";return Zt=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},Zt(e)}function Kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kg(Object(r),!0).forEach(function(n){WN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WN(e,t,r){return t=zN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zN(e){var t=UN(e,"string");return Zt(t)=="symbol"?t:t+""}function UN(e,t){if(Zt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zt(){return zt=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},zt.apply(this,arguments)}function Vg(e,t){if(e==null)return{};var r=HN(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 HN(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 GN=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,c=t.ry;return T.createElement("rect",{x:i,y:a,ry:c,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Qx(e,t){var r;if(T.isValidElement(e))r=T.cloneElement(e,t);else if(Z(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,c=Vg(t,BN),s=Q(c,!1);s.offset;var f=Vg(s,FN);r=T.createElement("line",zt({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function KN(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=Me(Me({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return Qx(i,s)});return T.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function VN(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=Me(Me({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return Qx(i,s)});return T.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function XN(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,c=e.horizontal,s=c===void 0?!0:c;if(!s||!t||!t.length)return null;var f=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==f[0]&&f.unshift(0);var l=f.map(function(h,p){var y=!f[p+1],v=y?i+o-h:f[p+1]-h;if(v<=0)return null;var d=p%t.length;return T.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:v,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function YN(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,c=e.height,s=e.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==f[0]&&f.unshift(0);var l=f.map(function(h,p){var y=!f[p+1],v=y?a+u-h:f[p+1]-h;if(v<=0)return null;var d=p%n.length;return T.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:v,height:c,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var ZN=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return dx(bh(Me(Me(Me({},Wr.defaultProps),n),{},{ticks:ht(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},JN=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return dx(bh(Me(Me(Me({},Wr.defaultProps),n),{},{ticks:ht(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},ar={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function ew(e){var t,r,n,i,a,o,u=vh(),c=yh(),s=Lk(),f=Me(Me({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:ar.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:ar.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:ar.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:ar.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:ar.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:ar.verticalFill,x:q(e.x)?e.x:s.left,y:q(e.y)?e.y:s.top,width:q(e.width)?e.width:s.width,height:q(e.height)?e.height:s.height}),l=f.x,h=f.y,p=f.width,y=f.height,v=f.syncWithTicks,d=f.horizontalValues,x=f.verticalValues,g=Dk(),w=Rk();if(!q(p)||p<=0||!q(y)||y<=0||!q(l)||l!==+l||!q(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||ZN,m=f.horizontalCoordinatesGenerator||JN,b=f.horizontalPoints,_=f.verticalPoints;if((!b||!b.length)&&Z(m)){var S=d&&d.length,A=m({yAxis:w?Me(Me({},w),{},{ticks:S?d:w.ticks}):void 0,width:u,height:c,offset:s},S?!0:v);pt(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Zt(A),"]")),Array.isArray(A)&&(b=A)}if((!_||!_.length)&&Z(O)){var C=x&&x.length,E=O({xAxis:g?Me(Me({},g),{},{ticks:C?x:g.ticks}):void 0,width:u,height:c,offset:s},C?!0:v);pt(Array.isArray(E),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Zt(E),"]")),Array.isArray(E)&&(_=E)}return T.createElement("g",{className:"recharts-cartesian-grid"},T.createElement(GN,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),T.createElement(KN,zt({},f,{offset:s,horizontalPoints:b,xAxis:g,yAxis:w})),T.createElement(VN,zt({},f,{offset:s,verticalPoints:_,xAxis:g,yAxis:w})),T.createElement(XN,zt({},f,{horizontalPoints:b})),T.createElement(YN,zt({},f,{verticalPoints:_})))}ew.displayName="CartesianGrid";var QN=["type","layout","connectNulls","ref"],eD=["key"];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 Xg(e,t){if(e==null)return{};var r=tD(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 tD(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 un(){return un=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},un.apply(this,arguments)}function Yg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yg(Object(r),!0).forEach(function(n){Je(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function or(e){return aD(e)||iD(e)||nD(e)||rD()}function rD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nD(e,t){if(e){if(typeof e=="string")return of(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return of(e,t)}}function iD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aD(e){if(Array.isArray(e))return of(e)}function of(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function oD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zg(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,rw(n.key),n)}}function uD(e,t,r){return t&&Zg(e.prototype,t),r&&Zg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function cD(e,t,r){return t=ha(t),sD(e,tw()?Reflect.construct(t,r||[],ha(e).constructor):t.apply(e,r))}function sD(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 lD(e)}function lD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tw=function(){return!!e})()}function ha(e){return ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ha(e)}function fD(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&&uf(e,t)}function uf(e,t){return uf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uf(e,t)}function Je(e,t,r){return t=rw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rw(e){var t=hD(e,"string");return Mr(t)=="symbol"?t:t+""}function hD(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 Qn=(function(e){function t(){var r;oD(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=cD(this,t,[].concat(i)),Je(r,"state",{isAnimationFinished:!0,totalLength:0}),Je(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),Je(r,"getStrokeDasharray",function(o,u,c){var s=c.reduce(function(x,g){return x+g});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(or(c.slice(0,y)),[l-v]);break}var d=p.length%2===0?[0,h]:[h];return[].concat(or(t.repeat(c,f)),or(p),d).map(function(x){return"".concat(x,"px")}).join(", ")}),Je(r,"id",Hn("recharts-line-")),Je(r,"pathRef",function(o){r.mainCurve=o}),Je(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Je(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return fD(t,e),uD(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=Ke(f,Zn);if(!l)return null;var h=function(v,d){return{x:v.x,y:v.y,value:v.value,errorVal:Fe(v.payload,d)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return T.createElement(pe,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=Q(this.props,!1),h=Q(c,!0),p=s.map(function(v,d){var x=Re(Re(Re({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,x)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return T.createElement(pe,un({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,QN),h=Re(Re(Re({},Q(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(Rl,un({},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,x=this.state,g=x.prevPoints,w=x.totalLength;return T.createElement(bt,{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(g){var b=g.length/u.length,_=u.map(function(P,j){var $=Math.floor(j*b);if(g[$]){var M=g[$],k=Qe(M.x,P.x),N=Qe(M.y,P.y);return Re(Re({},P),{},{x:k(m),y:N(m)})}if(y){var L=Qe(v*2,P.x),B=Qe(d/2,P.y);return Re(Re({},P),{},{x:L(m),y:B(m)})}return Re(Re({},P),{},{x:P.x,y:P.y})});return a.renderCurveStatically(_,n,i)}var S=Qe(0,w),A=S(m),C;if(c){var E="".concat(c).split(/[,\s]+/gim).map(function(P){return parseFloat(P)});C=a.getStrokeDasharray(A,w,E)}else C=a.generateSimpleStrokeDasharray(w,A);return a.renderCurveStatically(u,n,i,{strokeDasharray:C})})}},{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||!Da(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 x=this.state.isAnimationFinished,g=u.length===1,w=te("recharts-line",c),O=s&&s.allowDataOverflow,m=f&&f.allowDataOverflow,b=O||m,_=J(d)?this.id:d,S=(n=Q(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=S.r,C=A===void 0?3:A,E=S.strokeWidth,P=E===void 0?2:E,j=AO(o)?o:{},$=j.clipDot,M=$===void 0?!0:$,k=C*2+P;return T.createElement(pe,{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-k/2,y:l-k/2,width:p+k,height:y+k}))):null,!g&&this.renderCurve(b,_),this.renderErrorBar(b,_),(g||o)&&this.renderDots(b,M,_),(!v||x)&&Et.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(or(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(or(o),or(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(T.isValidElement(n))a=T.cloneElement(n,i);else if(Z(n))a=n(i);else{var o=i.key,u=Xg(i,eD),c=te("recharts-line-dot",typeof n!="boolean"?n.className:"");a=T.createElement(fh,un({key:o},u,{className:c}))}return a}}])})(R.PureComponent);Je(Qn,"displayName","Line");Je(Qn,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!qr.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Je(Qn,"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=Fe(h,o);return f==="horizontal"?{x:pm({axis:r,ticks:i,bandSize:u,entry:h,index:p}),y:J(y)?null:n.scale(y),value:y,payload:h}:{x:J(y)?null:r.scale(y),y:pm({axis:n,ticks:a,bandSize:u,entry:h,index:p}),value:y,payload:h}});return Re({points:l,layout:f},s)});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 dD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pD(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,aw(n.key),n)}}function vD(e,t,r){return t&&pD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yD(e,t,r){return t=da(t),mD(e,nw()?Reflect.construct(t,r||[],da(e).constructor):t.apply(e,r))}function mD(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 gD(e)}function gD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nw=function(){return!!e})()}function da(e){return da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},da(e)}function bD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cf(e,t)}function cf(e,t){return cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cf(e,t)}function iw(e,t,r){return t=aw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aw(e){var t=xD(e,"string");return Cr(t)=="symbol"?t:t+""}function xD(e,t){if(Cr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function sf(){return sf=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},sf.apply(this,arguments)}function wD(e){var t=e.xAxisId,r=vh(),n=yh(),i=Wx(t);return i==null?null:R.createElement(Wr,sf({},i,{className:te("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return ht(o,!0)}}))}var Ga=(function(e){function t(){return dD(this,t),yD(this,t,arguments)}return bD(t,e),vD(t,[{key:"render",value:function(){return R.createElement(wD,this.props)}}])})(R.Component);iw(Ga,"displayName","XAxis");iw(Ga,"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 $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 OD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _D(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,cw(n.key),n)}}function SD(e,t,r){return t&&_D(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AD(e,t,r){return t=pa(t),PD(e,ow()?Reflect.construct(t,r||[],pa(e).constructor):t.apply(e,r))}function PD(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 TD(e)}function TD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ow(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ow=function(){return!!e})()}function pa(e){return pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pa(e)}function ED(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lf(e,t)}function lf(e,t){return lf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lf(e,t)}function uw(e,t,r){return t=cw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cw(e){var t=jD(e,"string");return $r(t)=="symbol"?t:t+""}function jD(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)}function ff(){return ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ff.apply(this,arguments)}var MD=function(t){var r=t.yAxisId,n=vh(),i=yh(),a=zx(r);return a==null?null:R.createElement(Wr,ff({},a,{className:te("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return ht(u,!0)}}))},Ka=(function(e){function t(){return OD(this,t),AD(this,t,arguments)}return ED(t,e),SD(t,[{key:"render",value:function(){return R.createElement(MD,this.props)}}])})(R.Component);uw(Ka,"displayName","YAxis");uw(Ka,"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 Jg(e){return kD(e)||ID(e)||$D(e)||CD()}function CD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $D(e,t){if(e){if(typeof e=="string")return hf(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 hf(e,t)}}function ID(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kD(e){if(Array.isArray(e))return hf(e)}function hf(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 df=function(t,r,n,i,a){var o=Ke(t,gh),u=Ke(t,za),c=[].concat(Jg(o),Jg(u)),s=Ke(t,Ha),f="".concat(i,"Id"),l=i[0],h=r;if(c.length&&(h=c.reduce(function(v,d){if(d.props[f]===n&&ot(d.props,"extendDomain")&&q(d.props[l])){var x=d.props[l];return[Math.min(v[0],x),Math.max(v[1],x)]}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&&ot(d.props,"extendDomain")&&q(d.props[p])&&q(d.props[y])){var x=d.props[p],g=d.props[y];return[Math.min(v[0],x,g),Math.max(v[1],x,g)]}return v},h)}return a&&a.length&&(h=a.reduce(function(v,d){return q(d)?[Math.min(v[0],d),Math.max(v[1],d)]:v},h)),h},Ks={exports:{}},Qg;function ND(){return Qg||(Qg=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],x=arguments.length,g,w;if(d.fn){switch(d.once&&this.removeListener(s,d.fn,void 0,!0),x){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,g=new Array(x-1);w<x;w++)g[w-1]=arguments[w];d.fn.apply(d.context,g)}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),x){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(!g)for(m=1,g=new Array(x-1);m<x;m++)g[m-1]=arguments[m];d[w].fn.apply(d[w].context,g)}}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=[],x=y.length;v<x;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})(Ks)),Ks.exports}var DD=ND();const RD=ce(DD);var Vs=new RD,Xs="recharts.syncMouseEvents";function Fn(e){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fn(e)}function qD(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,sw(n.key),n)}}function BD(e,t,r){return t&&LD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ys(e,t,r){return t=sw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sw(e){var t=FD(e,"string");return Fn(t)=="symbol"?t:t+""}function FD(e,t){if(Fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var WD=(function(){function e(){qD(this,e),Ys(this,"activeIndex",0),Ys(this,"coordinateList",[]),Ys(this,"layout","horizontal")}return BD(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 zD(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&q(n)&&q(i))return!0}return!1}function UD(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 lw(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Te(t,r,n,i),u=Te(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function HD(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=Te(u,c,s,l),p=Te(u,c,f,l);n=h.x,i=h.y,a=p.x,o=p.y}else return lw(t);return[{x:n,y:i},{x:a,y:o}]}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 eb(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 vi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eb(Object(r),!0).forEach(function(n){GD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GD(e,t,r){return t=KD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KD(e){var t=VD(e,"string");return Wn(t)=="symbol"?t:t+""}function VD(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)}function XD(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=Rl;if(h==="ScatterChart")y=o,v=G$;else if(h==="BarChart")y=UD(l,o,c,f),v=lh;else if(l==="radial"){var d=lw(o),x=d.cx,g=d.cy,w=d.radius,O=d.startAngle,m=d.endAngle;y={cx:x,cy:g,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=gx}else y={points:HD(l,o,c)},v=Rl;var b=vi(vi(vi(vi({stroke:"#ccc",pointerEvents:"none"},c),y),Q(p,!1)),{},{payload:u,payloadIndex:s,className:te("recharts-tooltip-cursor",p.className)});return R.isValidElement(p)?R.cloneElement(p,b):R.createElement(v,b)}var YD=["item"],ZD=["children","className","width","height","style","compact","title","desc"];function Ir(e){"@babel/helpers - typeof";return Ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ir(e)}function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sr.apply(this,arguments)}function tb(e,t){return eR(e)||QD(e,t)||hw(e,t)||JD()}function JD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QD(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 eR(e){if(Array.isArray(e))return e}function rb(e,t){if(e==null)return{};var r=tR(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 tR(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 rR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dw(n.key),n)}}function iR(e,t,r){return t&&nR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aR(e,t,r){return t=va(t),oR(e,fw()?Reflect.construct(t,r||[],va(e).constructor):t.apply(e,r))}function oR(e,t){if(t&&(Ir(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uR(e)}function uR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fw=function(){return!!e})()}function va(e){return va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},va(e)}function cR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pf(e,t)}function pf(e,t){return pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pf(e,t)}function kr(e){return fR(e)||lR(e)||hw(e)||sR()}function sR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hw(e,t){if(e){if(typeof e=="string")return vf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vf(e,t)}}function lR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fR(e){if(Array.isArray(e))return vf(e)}function vf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nb(Object(r),!0).forEach(function(n){G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G(e,t,r){return t=dw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dw(e){var t=hR(e,"string");return Ir(t)=="symbol"?t:t+""}function hR(e,t){if(Ir(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ir(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dR={xAxis:["bottom","top"],yAxis:["left","right"]},pR={width:"100%",height:"100%"},pw={x:0,y:0};function yi(e){return e}var vR=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},yR=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),Te(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return I(I(I({},i),Te(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return pw},Va=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(kr(u),kr(s)):u},[]);return o.length>0?o:t&&t.length&&q(i)&&q(a)?t.slice(i,a+1):[]};function vw(e){return e==="number"?[0,"auto"]:void 0}var yf=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Va(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=gi(p,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(kr(c),[vx(s,h)]):c},[])},ib=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=vR(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=Aj(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,h=yf(t,r,f,l),p=yR(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:p}}return null},mR=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=hx(f,a);return n.reduce(function(y,v){var d,x=v.type.defaultProps!==void 0?I(I({},v.type.defaultProps),v.props):v.props,g=x.type,w=x.dataKey,O=x.allowDataOverflow,m=x.allowDuplicatedCategory,b=x.scale,_=x.ticks,S=x.includeHidden,A=x[o];if(y[A])return y;var C=Va(t.data,{graphicalItems:i.filter(function(W){var V,se=o in W.props?W.props[o]:(V=W.type.defaultProps)===null||V===void 0?void 0:V[o];return se===A}),dataStartIndex:c,dataEndIndex:s}),E=C.length,P,j,$;zD(x.domain,O,g)&&(P=$l(x.domain,null,O),p&&(g==="number"||b!=="auto")&&($=an(C,w,"category")));var M=vw(g);if(!P||P.length===0){var k,N=(k=x.domain)!==null&&k!==void 0?k:M;if(w){if(P=an(C,w,g),g==="category"&&p){var L=vO(P);m&&L?(j=P,P=ra(0,E)):m||(P=gm(N,P,v).reduce(function(W,V){return W.indexOf(V)>=0?W:[].concat(kr(W),[V])},[]))}else if(g==="category")m?P=P.filter(function(W){return W!==""&&!J(W)}):P=gm(N,P,v).reduce(function(W,V){return W.indexOf(V)>=0||V===""||J(V)?W:[].concat(kr(W),[V])},[]);else if(g==="number"){var B=Mj(C,i.filter(function(W){var V,se,ve=o in W.props?W.props[o]:(V=W.type.defaultProps)===null||V===void 0?void 0:V[o],De="hide"in W.props?W.props.hide:(se=W.type.defaultProps)===null||se===void 0?void 0:se.hide;return ve===A&&(S||!De)}),w,a,f);B&&(P=B)}p&&(g==="number"||b!=="auto")&&($=an(C,w,"category"))}else p?P=ra(0,E):u&&u[A]&&u[A].hasStack&&g==="number"?P=h==="expand"?[0,1]:px(u[A].stackGroups,c,s):P=fx(C,i.filter(function(W){var V=o in W.props?W.props[o]:W.type.defaultProps[o],se="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return V===A&&(S||!se)}),g,f,!0);if(g==="number")P=df(l,P,A,a,_),N&&(P=$l(N,P,O));else if(g==="category"&&N){var H=N,K=P.every(function(W){return H.indexOf(W)>=0});K&&(P=H)}}return I(I({},y),{},G({},A,I(I({},x),{},{axisType:a,domain:P,categoricalDomain:$,duplicateDomain:j,originalDomain:(d=x.domain)!==null&&d!==void 0?d:M,isCategorical:p,layout:f})))},{})},gR=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=Va(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),p=h.length,y=hx(f,a),v=-1;return n.reduce(function(d,x){var g=x.type.defaultProps!==void 0?I(I({},x.type.defaultProps),x.props):x.props,w=g[o],O=vw("number");if(!d[w]){v++;var m;return y?m=ra(0,p):u&&u[w]&&u[w].hasStack?(m=px(u[w].stackGroups,c,s),m=df(l,m,w,a)):(m=$l(O,fx(h,n.filter(function(b){var _,S,A=o in b.props?b.props[o]:(_=b.type.defaultProps)===null||_===void 0?void 0:_[o],C="hide"in b.props?b.props.hide:(S=b.type.defaultProps)===null||S===void 0?void 0:S.hide;return A===w&&!C}),"number",f),i.defaultProps.allowDataOverflow),m=df(l,m,w,a)),I(I({},d),{},G({},w,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ge(dR,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return d},{})},bR=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=Ke(f,a),p={};return h&&h.length?p=mR(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(p=gR(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),p},xR=function(t){var r=At(t),n=ht(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Rf(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Gi(r,n)}},ab=function(t){var r=t.children,n=t.defaultShowTooltip,i=Le(r,Sr),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}},wR=function(t){return!t||!t.length?!1:t.some(function(r){var n=dt(r&&r.type);return n&&n.indexOf("Bar")>=0})},ob=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"}},OR=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=Le(l,Sr),y=Le(l,Ut),v=Object.keys(c).reduce(function(m,b){var _=c[b],S=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},G({},S,m[S]+_.width)):m},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(m,b){var _=o[b],S=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},G({},S,Ge(m,"".concat(S))+_.height)):m},{top:h.top||0,bottom:h.bottom||0}),x=I(I({},d),v),g=x.bottom;p&&(x.bottom+=p.props.height||Sr.defaultProps.height),y&&r&&(x=Ej(x,i,n,r));var w=s-x.left-x.right,O=f-x.top-x.bottom;return I(I({brushBottom:g},x),{},{width:Math.max(w,0),height:Math.max(O,0)})},_R=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},SR=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(x,g){var w=g.graphicalItems,O=g.stackGroups,m=g.offset,b=g.updateId,_=g.dataStartIndex,S=g.dataEndIndex,A=x.barSize,C=x.layout,E=x.barGap,P=x.barCategoryGap,j=x.maxBarSize,$=ob(C),M=$.numericAxisName,k=$.cateAxisName,N=wR(w),L=[];return w.forEach(function(B,H){var K=Va(x.data,{graphicalItems:[B],dataStartIndex:_,dataEndIndex:S}),W=B.type.defaultProps!==void 0?I(I({},B.type.defaultProps),B.props):B.props,V=W.dataKey,se=W.maxBarSize,ve=W["".concat(M,"Id")],De=W["".concat(k,"Id")],kt={},$e=c.reduce(function(Nt,Dt){var Xa=g["".concat(Dt.axisType,"Map")],wh=W["".concat(Dt.axisType,"Id")];Xa&&Xa[wh]||Dt.axisType==="zAxis"||Yt();var Oh=Xa[wh];return I(I({},Nt),{},G(G({},Dt.axisType,Oh),"".concat(Dt.axisType,"Ticks"),ht(Oh)))},kt),F=$e[k],X=$e["".concat(k,"Ticks")],Y=O&&O[ve]&&O[ve].hasStack&&Wj(B,O[ve].stackGroups),D=dt(B.type).indexOf("Bar")>=0,he=Gi(F,X),ee=[],ge=N&&Pj({barSize:A,stackGroups:O,totalSize:_R($e,k)});if(D){var be,Ie,_t=J(se)?j:se,rr=(be=(Ie=Gi(F,X,!0))!==null&&Ie!==void 0?Ie:_t)!==null&&be!==void 0?be:0;ee=Tj({barGap:E,barCategoryGap:P,bandSize:rr!==he?rr:he,sizeList:ge[De],maxBarSize:_t}),rr!==he&&(ee=ee.map(function(Nt){return I(I({},Nt),{},{position:I(I({},Nt.position),{},{offset:Nt.position.offset-rr/2})})}))}var ei=B&&B.type&&B.type.getComposedData;ei&&L.push({props:I(I({},ei(I(I({},$e),{},{displayedData:K,props:x,dataKey:V,item:B,bandSize:he,barPosition:ee,offset:m,stackedData:Y,layout:C,dataStartIndex:_,dataEndIndex:S}))),{},G(G(G({key:B.key||"item-".concat(H)},M,$e[M]),k,$e[k]),"animationId",b)),childIndex:EO(B,x.children),item:B})}),L},p=function(x,g){var w=x.props,O=x.dataStartIndex,m=x.dataEndIndex,b=x.updateId;if(!$d({props:w}))return null;var _=w.children,S=w.layout,A=w.stackOffset,C=w.data,E=w.reverseStackOrder,P=ob(S),j=P.numericAxisName,$=P.cateAxisName,M=Ke(_,n),k=Lj(C,M,"".concat(j,"Id"),"".concat($,"Id"),A,E),N=c.reduce(function(W,V){var se="".concat(V.axisType,"Map");return I(I({},W),{},G({},se,bR(w,I(I({},V),{},{graphicalItems:M,stackGroups:V.axisType===j&&k,dataStartIndex:O,dataEndIndex:m}))))},{}),L=OR(I(I({},N),{},{props:w,graphicalItems:M}),g?.legendBBox);Object.keys(N).forEach(function(W){N[W]=f(w,N[W],L,W.replace("Map",""),r)});var B=N["".concat($,"Map")],H=xR(B),K=h(w,I(I({},N),{},{dataStartIndex:O,dataEndIndex:m,updateId:b,graphicalItems:M,stackGroups:k,offset:L}));return I(I({formattedGraphicalItems:K,graphicalItems:M,offset:L,stackGroups:k},H),N)},y=(function(d){function x(g){var w,O,m;return rR(this,x),m=aR(this,x,[g]),G(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),G(m,"accessibilityManager",new WD),G(m,"handleLegendBBoxUpdate",function(b){if(b){var _=m.state,S=_.dataStartIndex,A=_.dataEndIndex,C=_.updateId;m.setState(I({legendBBox:b},p({props:m.props,dataStartIndex:S,dataEndIndex:A,updateId:C},I(I({},m.state),{},{legendBBox:b}))))}}),G(m,"handleReceiveSyncEvent",function(b,_,S){if(m.props.syncId===b){if(S===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),G(m,"handleBrushChange",function(b){var _=b.startIndex,S=b.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})}}),G(m,"handleMouseEnter",function(b){var _=m.getMouseInfo(b);if(_){var S=I(I({},_),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var A=m.props.onMouseEnter;Z(A)&&A(S,b)}}),G(m,"triggeredAfterMouseMove",function(b){var _=m.getMouseInfo(b),S=_?I(I({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var A=m.props.onMouseMove;Z(A)&&A(S,b)}),G(m,"handleItemMouseEnter",function(b){m.setState(function(){return{isTooltipActive:!0,activeItem:b,activePayload:b.tooltipPayload,activeCoordinate:b.tooltipPosition||{x:b.cx,y:b.cy}}})}),G(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),G(m,"handleMouseMove",function(b){b.persist(),m.throttleTriggeredAfterMouseMove(b)}),G(m,"handleMouseLeave",function(b){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var S=m.props.onMouseLeave;Z(S)&&S(_,b)}),G(m,"handleOuterEvent",function(b){var _=TO(b),S=Ge(m.props,"".concat(_));if(_&&Z(S)){var A,C;/.*touch.*/i.test(_)?C=m.getMouseInfo(b.changedTouches[0]):C=m.getMouseInfo(b),S((A=C)!==null&&A!==void 0?A:{},b)}}),G(m,"handleClick",function(b){var _=m.getMouseInfo(b);if(_){var S=I(I({},_),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var A=m.props.onClick;Z(A)&&A(S,b)}}),G(m,"handleMouseDown",function(b){var _=m.props.onMouseDown;if(Z(_)){var S=m.getMouseInfo(b);_(S,b)}}),G(m,"handleMouseUp",function(b){var _=m.props.onMouseUp;if(Z(_)){var S=m.getMouseInfo(b);_(S,b)}}),G(m,"handleTouchMove",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(b.changedTouches[0])}),G(m,"handleTouchStart",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseDown(b.changedTouches[0])}),G(m,"handleTouchEnd",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseUp(b.changedTouches[0])}),G(m,"handleDoubleClick",function(b){var _=m.props.onDoubleClick;if(Z(_)){var S=m.getMouseInfo(b);_(S,b)}}),G(m,"handleContextMenu",function(b){var _=m.props.onContextMenu;if(Z(_)){var S=m.getMouseInfo(b);_(S,b)}}),G(m,"triggerSyncEvent",function(b){m.props.syncId!==void 0&&Vs.emit(Xs,m.props.syncId,b,m.eventEmitterSymbol)}),G(m,"applySyncEvent",function(b){var _=m.props,S=_.layout,A=_.syncMethod,C=m.state.updateId,E=b.dataStartIndex,P=b.dataEndIndex;if(b.dataStartIndex!==void 0||b.dataEndIndex!==void 0)m.setState(I({dataStartIndex:E,dataEndIndex:P},p({props:m.props,dataStartIndex:E,dataEndIndex:P,updateId:C},m.state)));else if(b.activeTooltipIndex!==void 0){var j=b.chartX,$=b.chartY,M=b.activeTooltipIndex,k=m.state,N=k.offset,L=k.tooltipTicks;if(!N)return;if(typeof A=="function")M=A(L,b);else if(A==="value"){M=-1;for(var B=0;B<L.length;B++)if(L[B].value===b.activeLabel){M=B;break}}var H=I(I({},N),{},{x:N.left,y:N.top}),K=Math.min(j,H.x+H.width),W=Math.min($,H.y+H.height),V=L[M]&&L[M].value,se=yf(m.state,m.props.data,M),ve=L[M]?{x:S==="horizontal"?L[M].coordinate:K,y:S==="horizontal"?W:L[M].coordinate}:pw;m.setState(I(I({},b),{},{activeLabel:V,activeCoordinate:ve,activePayload:se,activeTooltipIndex:M}))}else m.setState(b)}),G(m,"renderCursor",function(b){var _,S=m.state,A=S.isTooltipActive,C=S.activeCoordinate,E=S.activePayload,P=S.offset,j=S.activeTooltipIndex,$=S.tooltipAxisBandSize,M=m.getTooltipEventType(),k=(_=b.props.active)!==null&&_!==void 0?_:A,N=m.props.layout,L=b.key||"_recharts-cursor";return T.createElement(XD,{key:L,activeCoordinate:C,activePayload:E,activeTooltipIndex:j,chartName:r,element:b,isActive:k,layout:N,offset:P,tooltipAxisBandSize:$,tooltipEventType:M})}),G(m,"renderPolarAxis",function(b,_,S){var A=Ge(b,"type.axisType"),C=Ge(m.state,"".concat(A,"Map")),E=b.type.defaultProps,P=E!==void 0?I(I({},E),b.props):b.props,j=C&&C[P["".concat(A,"Id")]];return R.cloneElement(b,I(I({},j),{},{className:te(A,j.className),key:b.key||"".concat(_,"-").concat(S),ticks:ht(j,!0)}))}),G(m,"renderPolarGrid",function(b){var _=b.props,S=_.radialLines,A=_.polarAngles,C=_.polarRadius,E=m.state,P=E.radiusAxisMap,j=E.angleAxisMap,$=At(P),M=At(j),k=M.cx,N=M.cy,L=M.innerRadius,B=M.outerRadius;return R.cloneElement(b,{polarAngles:Array.isArray(A)?A:ht(M,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray(C)?C:ht($,!0).map(function(H){return H.coordinate}),cx:k,cy:N,innerRadius:L,outerRadius:B,key:b.key||"polar-grid",radialLines:S})}),G(m,"renderLegend",function(){var b=m.state.formattedGraphicalItems,_=m.props,S=_.children,A=_.width,C=_.height,E=m.props.margin||{},P=A-(E.left||0)-(E.right||0),j=sx({children:S,formattedGraphicalItems:b,legendWidth:P,legendContent:s});if(!j)return null;var $=j.item,M=rb(j,YD);return R.cloneElement($,I(I({},M),{},{chartWidth:A,chartHeight:C,margin:E,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),G(m,"renderTooltip",function(){var b,_=m.props,S=_.children,A=_.accessibilityLayer,C=Le(S,nt);if(!C)return null;var E=m.state,P=E.isTooltipActive,j=E.activeCoordinate,$=E.activePayload,M=E.activeLabel,k=E.offset,N=(b=C.props.active)!==null&&b!==void 0?b:P;return R.cloneElement(C,{viewBox:I(I({},k),{},{x:k.left,y:k.top}),active:N,label:M,payload:N?$:[],coordinate:j,accessibilityLayer:A})}),G(m,"renderBrush",function(b){var _=m.props,S=_.margin,A=_.data,C=m.state,E=C.offset,P=C.dataStartIndex,j=C.dataEndIndex,$=C.updateId;return R.cloneElement(b,{key:b.key||"_recharts-brush",onChange:fi(m.handleBrushChange,b.props.onChange),data:A,x:q(b.props.x)?b.props.x:E.left,y:q(b.props.y)?b.props.y:E.top+E.height+E.brushBottom-(S.bottom||0),width:q(b.props.width)?b.props.width:E.width,startIndex:P,endIndex:j,updateId:"brush-".concat($)})}),G(m,"renderReferenceElement",function(b,_,S){if(!b)return null;var A=m,C=A.clipPathId,E=m.state,P=E.xAxisMap,j=E.yAxisMap,$=E.offset,M=b.type.defaultProps||{},k=b.props,N=k.xAxisId,L=N===void 0?M.xAxisId:N,B=k.yAxisId,H=B===void 0?M.yAxisId:B;return R.cloneElement(b,{key:b.key||"".concat(_,"-").concat(S),xAxis:P[L],yAxis:j[H],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:C})}),G(m,"renderActivePoints",function(b){var _=b.item,S=b.activePoint,A=b.basePoint,C=b.childIndex,E=b.isRange,P=[],j=_.props.key,$=_.item.type.defaultProps!==void 0?I(I({},_.item.type.defaultProps),_.item.props):_.item.props,M=$.activeDot,k=$.dataKey,N=I(I({index:C,dataKey:k,cx:S.x,cy:S.y,r:4,fill:sh(_.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},Q(M,!1)),bi(M));return P.push(x.renderActiveDot(M,N,"".concat(j,"-activePoint-").concat(C))),A?P.push(x.renderActiveDot(M,I(I({},N),{},{cx:A.x,cy:A.y}),"".concat(j,"-basePoint-").concat(C))):E&&P.push(null),P}),G(m,"renderGraphicChild",function(b,_,S){var A=m.filterFormatItem(b,_,S);if(!A)return null;var C=m.getTooltipEventType(),E=m.state,P=E.isTooltipActive,j=E.tooltipAxis,$=E.activeTooltipIndex,M=E.activeLabel,k=m.props.children,N=Le(k,nt),L=A.props,B=L.points,H=L.isRange,K=L.baseLine,W=A.item.type.defaultProps!==void 0?I(I({},A.item.type.defaultProps),A.item.props):A.item.props,V=W.activeDot,se=W.hide,ve=W.activeBar,De=W.activeShape,kt=!!(!se&&P&&N&&(V||ve||De)),$e={};C!=="axis"&&N&&N.props.trigger==="click"?$e={onClick:fi(m.handleItemMouseEnter,b.props.onClick)}:C!=="axis"&&($e={onMouseLeave:fi(m.handleItemMouseLeave,b.props.onMouseLeave),onMouseEnter:fi(m.handleItemMouseEnter,b.props.onMouseEnter)});var F=R.cloneElement(b,I(I({},A.props),$e));function X(Dt){return typeof j.dataKey=="function"?j.dataKey(Dt.payload):null}if(kt)if($>=0){var Y,D;if(j.dataKey&&!j.allowDuplicatedCategory){var he=typeof j.dataKey=="function"?X:"payload.".concat(j.dataKey.toString());Y=gi(B,he,M),D=H&&K&&gi(K,he,M)}else Y=B?.[$],D=H&&K&&K[$];if(De||ve){var ee=b.props.activeIndex!==void 0?b.props.activeIndex:$;return[R.cloneElement(b,I(I(I({},A.props),$e),{},{activeIndex:ee})),null,null]}if(!J(Y))return[F].concat(kr(m.renderActivePoints({item:A,activePoint:Y,basePoint:D,childIndex:$,isRange:H})))}else{var ge,be=(ge=m.getItemByXY(m.state.activeCoordinate))!==null&&ge!==void 0?ge:{graphicalItem:F},Ie=be.graphicalItem,_t=Ie.item,rr=_t===void 0?b:_t,ei=Ie.childIndex,Nt=I(I(I({},A.props),$e),{},{activeIndex:ei});return[R.cloneElement(rr,Nt),null,null]}return H?[F,null,null]:[F,null]}),G(m,"renderCustomized",function(b,_,S){return R.cloneElement(b,I(I({key:"recharts-customized-".concat(S)},m.props),m.state))}),G(m,"renderMap",{CartesianGrid:{handler:yi,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:yi},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:yi},YAxis:{handler:yi},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=g.id)!==null&&w!==void 0?w:Hn("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=s0(m.triggeredAfterMouseMove,(O=g.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return cR(x,d),iR(x,[{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,b=w.height,_=w.layout,S=Le(O,nt);if(S){var A=S.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,E=yf(this.state,m,A,C),P=this.state.tooltipTicks[A].coordinate,j=(this.state.offset.top+b)/2,$=_==="horizontal",M=$?{x:P,y:j}:{y:P,x:j},k=this.state.formattedGraphicalItems.find(function(L){var B=L.item;return B.type.name==="Scatter"});k&&(M=I(I({},M),k.props.points[A].tooltipPosition),E=k.props.points[A].tooltipPayload);var N={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:C,activePayload:E,activeCoordinate:M};this.setState(N),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,b;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0}})}return null}},{key:"componentDidUpdate",value:function(w){el([Le(w.children,nt)],[Le(this.props.children,nt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Le(this.props.children,nt);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(),b=vA(m),_={chartX:Math.round(w.pageX-b.left),chartY:Math.round(w.pageY-b.top)},S=m.width/O.offsetWidth||1,A=this.inRange(_.chartX,_.chartY,S);if(!A)return null;var C=this.state,E=C.xAxisMap,P=C.yAxisMap,j=this.getTooltipEventType(),$=ib(this.state,this.props.data,this.props.layout,A);if(j!=="axis"&&E&&P){var M=At(E).scale,k=At(P).scale,N=M&&M.invert?M.invert(_.chartX):null,L=k&&k.invert?k.invert(_.chartY):null;return I(I({},_),{},{xValue:N,yValue:L},$)}return $?I(I({},_),$):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,b=this.props.layout,_=w/m,S=O/m;if(b==="horizontal"||b==="vertical"){var A=this.state.offset,C=_>=A.left&&_<=A.left+A.width&&S>=A.top&&S<=A.top+A.height;return C?{x:_,y:S}:null}var E=this.state,P=E.angleAxisMap,j=E.radiusAxisMap;if(P&&j){var $=At(P);return wm({x:_,y:S},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=Le(w,nt),b={};m&&O==="axis"&&(m.props.trigger==="click"?b={onClick:this.handleClick}:b={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 _=bi(this.props,this.handleOuterEvent);return I(I({},_),b)}},{key:"addListener",value:function(){Vs.on(Xs,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Vs.removeListener(Xs,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var b=this.state.formattedGraphicalItems,_=0,S=b.length;_<S;_++){var A=b[_];if(A.item===w||A.props.key===w.key||O===dt(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,b=O.top,_=O.height,S=O.width;return T.createElement("defs",null,T.createElement("clipPath",{id:w},T.createElement("rect",{x:m,y:b,height:_,width:S})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=tb(m,2),_=b[0],S=b[1];return I(I({},O),{},G({},_,S.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=tb(m,2),_=b[0],S=b[1];return I(I({},O),{},G({},_,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,b=O.activeItem;if(m&&m.length)for(var _=0,S=m.length;_<S;_++){var A=m[_],C=A.props,E=A.item,P=E.type.defaultProps!==void 0?I(I({},E.type.defaultProps),E.props):E.props,j=dt(E.type);if(j==="Bar"){var $=(C.data||[]).find(function(L){return D$(w,L)});if($)return{graphicalItem:A,payload:$}}else if(j==="RadialBar"){var M=(C.data||[]).find(function(L){return wm(w,L)});if(M)return{graphicalItem:A,payload:M}}else if(La(A,b)||Ba(A,b)||Dn(A,b)){var k=PI({graphicalItem:A,activeTooltipItem:b,itemData:P.data}),N=P.activeIndex===void 0?k:P.activeIndex;return{graphicalItem:I(I({},A),{},{childIndex:N}),payload:Dn(A,b)?P.data[k]:A.props.data[k]}}}return null}},{key:"render",value:function(){var w=this;if(!$d(this))return null;var O=this.props,m=O.children,b=O.className,_=O.width,S=O.height,A=O.style,C=O.compact,E=O.title,P=O.desc,j=rb(O,ZD),$=Q(j,!1);if(C)return T.createElement(Dg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement(rl,sr({},$,{width:_,height:S,title:E,desc:P}),this.renderClipPath(),kd(m,this.renderMap)));if(this.props.accessibilityLayer){var M,k;$.tabIndex=(M=this.props.tabIndex)!==null&&M!==void 0?M:0,$.role=(k=this.props.role)!==null&&k!==void 0?k:"application",$.onKeyDown=function(L){w.accessibilityManager.keyboardEvent(L)},$.onFocus=function(){w.accessibilityManager.focus()}}var N=this.parseEventsOfWrapper();return T.createElement(Dg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement("div",sr({className:te("recharts-wrapper",b),style:I({position:"relative",cursor:"default",width:_,height:S},A)},N,{ref:function(B){w.container=B}}),T.createElement(rl,sr({},$,{width:_,height:S,title:E,desc:P,style:pR}),this.renderClipPath(),kd(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(R.Component);G(y,"displayName",r),G(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)),G(y,"getDerivedStateFromProps",function(d,x){var g=d.dataKey,w=d.data,O=d.children,m=d.width,b=d.height,_=d.layout,S=d.stackOffset,A=d.margin,C=x.dataStartIndex,E=x.dataEndIndex;if(x.updateId===void 0){var P=ab(d);return I(I(I({},P),{},{updateId:0},p(I(I({props:d},P),{},{updateId:0}),x)),{},{prevDataKey:g,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(g!==x.prevDataKey||w!==x.prevData||m!==x.prevWidth||b!==x.prevHeight||_!==x.prevLayout||S!==x.prevStackOffset||!lr(A,x.prevMargin)){var j=ab(d),$={chartX:x.chartX,chartY:x.chartY,isTooltipActive:x.isTooltipActive},M=I(I({},ib(x,w,_)),{},{updateId:x.updateId+1}),k=I(I(I({},j),$),M);return I(I(I({},k),p(I({props:d},k),x)),{},{prevDataKey:g,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(!el(O,x.prevChildren)){var N,L,B,H,K=Le(O,Sr),W=K&&(N=(L=K.props)===null||L===void 0?void 0:L.startIndex)!==null&&N!==void 0?N:C,V=K&&(B=(H=K.props)===null||H===void 0?void 0:H.endIndex)!==null&&B!==void 0?B:E,se=W!==C||V!==E,ve=!J(w),De=ve&&!se?x.updateId:x.updateId+1;return I(I({updateId:De},p(I(I({props:d},x),{},{updateId:De,dataStartIndex:W,dataEndIndex:V}),x)),{},{prevChildren:O,dataStartIndex:W,dataEndIndex:V})}return null}),G(y,"renderActiveDot",function(d,x,g){var w;return R.isValidElement(d)?w=R.cloneElement(d,x):Z(d)?w=d(x):w=T.createElement(fh,x),T.createElement(pe,{className:"recharts-active-dot",key:g},w)});var v=R.forwardRef(function(x,g){return T.createElement(y,sr({},x,{ref:g}))});return v.displayName=y.displayName,v},AR=SR({chartName:"LineChart",GraphicalChild:Qn,axisComponents:[{axisType:"xAxis",AxisComp:Ga},{axisType:"yAxis",AxisComp:Ka}],formatAxisMap:Ok});function mi({label:e,value:t,sub:r}){return z.jsxs("div",{className:"bg-card border border-border rounded-lg p-4",children:[z.jsx("div",{className:"text-xs uppercase tracking-widest text-muted-foreground",children:e}),z.jsx("div",{className:"font-display text-4xl mt-2 text-foreground",children:t}),r&&z.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:r})]})}function PR(){const e=ri({queryKey:["games"],queryFn:xw}),t=ri({queryKey:["practices"],queryFn:ww}),r=ri({queryKey:["seasons"],queryFn:Ow}),n=ri({queryKey:["tournaments"],queryFn:_w}),i=e.data??[],a=n.data??[],o=i.reduce((g,w)=>g+w.goals,0),u=i.reduce((g,w)=>g+w.assists,0),c=o+u,f=(r.data??[]).filter(g=>g.is_active).map(g=>{const w=i.filter(S=>S.season_id===g.id&&mw(S,a)),O=w.filter(S=>ni(S)==="W").length,m=w.filter(S=>ni(S)==="L").length,b=w.filter(S=>ni(S)==="T").length,_=w.length?Math.round(O/w.length*100):0;return{season:g,wins:O,losses:m,ties:b,played:w.length,winPct:_}}),l=r.data??[],h=t.data??[],p=l.length>1,y=p?l.map(g=>({id:g.id,label:`${g.name} ${g.year}`})):[{id:"__all__",label:"Overall"}],v=new Map;for(const g of h){const w=g.practice_date,O=((g.performance??0)+(g.fun??0))/2,m=p?g.season_id??"__none__":"__all__";if(p&&!l.some(C=>C.id===m))continue;v.has(w)||v.set(w,{date:w});const b=v.get(w),_=b[m],S=b[`__c_${m}`]??0,A=(typeof _=="number"?_*S:0)+O;b[`__c_${m}`]=S+1,b[m]=+(A/(S+1)).toFixed(2)}const d=[...v.values()].sort((g,w)=>String(g.date).localeCompare(String(w.date))),x=["hsl(var(--primary))","hsl(var(--accent))","#22c55e","#f59e0b","#ec4899","#06b6d4","#a78bfa"];return z.jsxs("div",{className:"space-y-8",children:[z.jsxs("section",{className:"space-y-3",children:[z.jsx("div",{className:"text-xs uppercase tracking-[0.3em] text-primary",children:"Active seasons"}),f.length===0&&z.jsx("div",{className:"text-sm text-muted-foreground",children:"No active season"}),f.map(({season:g,wins:w,losses:O,ties:m,played:b,winPct:_})=>z.jsxs(tn,{to:"/seasons/$seasonId",params:{seasonId:g.id},className:"block bg-card border border-border rounded-lg p-4 hover:border-primary transition-colors",children:[z.jsxs("div",{className:"text-xs uppercase tracking-widest text-muted-foreground",children:[g.name," · ",g.year]}),z.jsxs("div",{className:"font-display text-5xl mt-1 leading-none",children:[w,z.jsx("span",{className:"text-muted-foreground",children:"-"}),O,m>0&&z.jsxs(z.Fragment,{children:[z.jsx("span",{className:"text-muted-foreground",children:"-"}),m]})]}),z.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:[_,"% win rate · ",b," games played"]})]},g.id))]}),z.jsxs("section",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[z.jsx(mi,{label:"Goals",value:o}),z.jsx(mi,{label:"Assists",value:u}),z.jsx(mi,{label:"Points",value:c}),z.jsx(mi,{label:"Practices",value:t.data?.length??0})]}),z.jsxs("section",{children:[z.jsxs("div",{className:"flex items-center justify-between mb-3",children:[z.jsx("h2",{className:"font-display text-2xl tracking-wider",children:"Practice Ratings"}),z.jsxs(tn,{to:"/practices",className:"text-xs text-primary flex items-center gap-1",children:["All ",z.jsx(Zs,{className:"h-3 w-3"})]})]}),d.length===0?z.jsx(cb,{icon:_h,text:"Log practices to see your trend",to:"/practices"}):z.jsx("div",{className:"bg-card border border-border rounded-lg p-4",children:z.jsx("div",{className:"h-64 w-full",children:z.jsx(cA,{width:"100%",height:"100%",children:z.jsxs(AR,{data:d,margin:{top:8,right:8,left:-16,bottom:0},children:[z.jsx(ew,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),z.jsx(Ga,{dataKey:"date",tick:{fontSize:10,fill:"hsl(var(--muted-foreground))"}}),z.jsx(Ka,{domain:[0,10],tick:{fontSize:10,fill:"hsl(var(--muted-foreground))"}}),z.jsx(nt,{contentStyle:{background:"hsl(var(--card))",border:"1px solid hsl(var(--border))",fontSize:12},labelStyle:{color:"hsl(var(--foreground))"}}),p&&z.jsx(Ut,{wrapperStyle:{fontSize:11}}),y.map((g,w)=>z.jsx(Qn,{type:"monotone",dataKey:g.id,name:g.label,stroke:x[w%x.length],strokeWidth:2,dot:{r:3},connectNulls:!0},g.id))]})})})})]}),z.jsxs("section",{children:[z.jsxs("div",{className:"flex items-center justify-between mb-3",children:[z.jsx("h2",{className:"font-display text-2xl tracking-wider",children:"Recent Games"}),z.jsxs(tn,{to:"/games",className:"text-xs text-primary flex items-center gap-1",children:["All ",z.jsx(Zs,{className:"h-3 w-3"})]})]}),z.jsxs("div",{className:"space-y-2",children:[i.slice(0,5).map(g=>{const w=ni(g);return z.jsxs("div",{className:"bg-card border border-border rounded-lg p-4 flex items-center gap-4",children:[z.jsx("div",{className:`font-display text-2xl w-10 text-center ${w==="W"?"text-primary":w==="L"?"text-destructive":"text-muted-foreground"}`,children:w}),z.jsxs("div",{className:"flex-1 min-w-0",children:[z.jsxs("div",{className:"font-medium truncate",children:["vs ",g.opponent]}),z.jsxs("div",{className:"text-xs text-muted-foreground",children:[g.game_date," · ",g.location]})]}),z.jsxs("div",{className:"font-display text-xl",children:[g.team_score,z.jsx("span",{className:"text-muted-foreground",children:"-"}),g.opponent_score]})]},g.id)}),i.length===0&&z.jsx(cb,{icon:gw,text:"Log your first game",to:"/games"})]})]}),z.jsxs("section",{className:"grid sm:grid-cols-2 gap-4",children:[z.jsx(ub,{to:"/seasons",icon:bw,title:"Seasons",subtitle:`${r.data?.length??0} tracked`}),z.jsx(ub,{to:"/practices",icon:_h,title:"Practices",subtitle:`${t.data?.length??0} logged`})]})]})}function ub({to:e,icon:t,title:r,subtitle:n}){return z.jsxs(tn,{to:e,className:"bg-card border border-border rounded-lg p-5 flex items-center gap-4 hover:border-primary transition-colors",children:[z.jsx(t,{className:"h-6 w-6 text-primary"}),z.jsxs("div",{className:"flex-1",children:[z.jsx("div",{className:"font-display text-xl tracking-wider",children:r}),z.jsx("div",{className:"text-xs text-muted-foreground",children:n})]}),z.jsx(Zs,{className:"h-4 w-4 text-muted-foreground"})]})}function cb({icon:e,text:t,to:r}){return z.jsxs(tn,{to:r,className:"block bg-card border border-dashed border-border rounded-lg p-8 text-center text-muted-foreground hover:border-primary hover:text-foreground transition-colors",children:[z.jsx(e,{className:"h-6 w-6 mx-auto mb-2"}),z.jsx(Pw,{className:"hidden"}),z.jsx("div",{className:"text-sm",children:t})]})}const MR=()=>z.jsx(yw,{children:z.jsx(PR,{})});export{MR as component};
