@swestash/agent-lens 0.9.3 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,69 +0,0 @@
1
- import{c as gi,g as de,r as L,R as P,u as Lw,j as E,a as Bw,b as Fw,d as zh,l as zw,f as Ww,e as Uw,s as Wh,E as Kw,L as Hw,h as qt,i as cn,k as bi,m as Gw,n as lo,o as Vw}from"./index-F_4kZQVd.js";function Eb(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Eb(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ie(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Eb(e))&&(n&&(n+=" "),n+=t);return n}var fo,Uh;function We(){if(Uh)return fo;Uh=1;var e=Array.isArray;return fo=e,fo}var ho,Kh;function Mb(){if(Kh)return ho;Kh=1;var e=typeof gi=="object"&&gi&&gi.Object===Object&&gi;return ho=e,ho}var po,Hh;function xt(){if(Hh)return po;Hh=1;var e=Mb(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return po=r,po}var vo,Gh;function ci(){if(Gh)return vo;Gh=1;var e=xt(),t=e.Symbol;return vo=t,vo}var yo,Vh;function Xw(){if(Vh)return yo;Vh=1;var e=ci(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(u?o[i]=s:delete o[i]),f}return yo=a,yo}var mo,Xh;function Yw(){if(Xh)return mo;Xh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return mo=r,mo}var go,Yh;function Nt(){if(Yh)return go;Yh=1;var e=ci(),t=Xw(),r=Yw(),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 go=o,go}var bo,Zh;function Dt(){if(Zh)return bo;Zh=1;function e(t){return t!=null&&typeof t=="object"}return bo=e,bo}var xo,Jh;function Qr(){if(Jh)return xo;Jh=1;var e=Nt(),t=Dt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return xo=n,xo}var wo,Qh;function kf(){if(Qh)return wo;Qh=1;var e=We(),t=Qr(),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 wo=i,wo}var Oo,ed;function Kt(){if(ed)return Oo;ed=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Oo=e,Oo}var _o,td;function Nf(){if(td)return _o;td=1;var e=Nt(),t=Kt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return _o=o,_o}var So,rd;function Zw(){if(rd)return So;rd=1;var e=xt(),t=e["__core-js_shared__"];return So=t,So}var Ao,nd;function Jw(){if(nd)return Ao;nd=1;var e=Zw(),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 Ao=r,Ao}var Po,id;function Cb(){if(id)return Po;id=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 Po=r,Po}var jo,ad;function Qw(){if(ad)return jo;ad=1;var e=Nf(),t=Jw(),r=Kt(),n=Cb(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).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 jo=l,jo}var To,od;function eO(){if(od)return To;od=1;function e(t,r){return t==null?void 0:t[r]}return To=e,To}var Eo,ud;function dr(){if(ud)return Eo;ud=1;var e=Qw(),t=eO();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Eo=r,Eo}var Mo,sd;function Ia(){if(sd)return Mo;sd=1;var e=dr(),t=e(Object,"create");return Mo=t,Mo}var Co,cd;function tO(){if(cd)return Co;cd=1;var e=Ia();function t(){this.__data__=e?e(null):{},this.size=0}return Co=t,Co}var $o,ld;function rO(){if(ld)return $o;ld=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return $o=e,$o}var Io,fd;function nO(){if(fd)return Io;fd=1;var e=Ia(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return Io=i,Io}var ko,hd;function iO(){if(hd)return ko;hd=1;var e=Ia(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return ko=n,ko}var No,dd;function aO(){if(dd)return No;dd=1;var e=Ia(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return No=r,No}var Do,pd;function oO(){if(pd)return Do;pd=1;var e=tO(),t=rO(),r=nO(),n=iO(),i=aO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Do=a,Do}var Ro,vd;function uO(){if(vd)return Ro;vd=1;function e(){this.__data__=[],this.size=0}return Ro=e,Ro}var qo,yd;function Df(){if(yd)return qo;yd=1;function e(t,r){return t===r||t!==t&&r!==r}return qo=e,qo}var Lo,md;function ka(){if(md)return Lo;md=1;var e=Df();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Lo=t,Lo}var Bo,gd;function sO(){if(gd)return Bo;gd=1;var e=ka(),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 Bo=n,Bo}var Fo,bd;function cO(){if(bd)return Fo;bd=1;var e=ka();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Fo=t,Fo}var zo,xd;function lO(){if(xd)return zo;xd=1;var e=ka();function t(r){return e(this.__data__,r)>-1}return zo=t,zo}var Wo,wd;function fO(){if(wd)return Wo;wd=1;var e=ka();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 Wo=t,Wo}var Uo,Od;function Na(){if(Od)return Uo;Od=1;var e=uO(),t=sO(),r=cO(),n=lO(),i=fO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Uo=a,Uo}var Ko,_d;function Rf(){if(_d)return Ko;_d=1;var e=dr(),t=xt(),r=e(t,"Map");return Ko=r,Ko}var Ho,Sd;function hO(){if(Sd)return Ho;Sd=1;var e=oO(),t=Na(),r=Rf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Ho=n,Ho}var Go,Ad;function dO(){if(Ad)return Go;Ad=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Go=e,Go}var Vo,Pd;function Da(){if(Pd)return Vo;Pd=1;var e=dO();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Vo=t,Vo}var Xo,jd;function pO(){if(jd)return Xo;jd=1;var e=Da();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Xo=t,Xo}var Yo,Td;function vO(){if(Td)return Yo;Td=1;var e=Da();function t(r){return e(this,r).get(r)}return Yo=t,Yo}var Zo,Ed;function yO(){if(Ed)return Zo;Ed=1;var e=Da();function t(r){return e(this,r).has(r)}return Zo=t,Zo}var Jo,Md;function mO(){if(Md)return Jo;Md=1;var e=Da();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 Jo=t,Jo}var Qo,Cd;function qf(){if(Cd)return Qo;Cd=1;var e=hO(),t=pO(),r=vO(),n=yO(),i=mO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[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 eu,$d;function $b(){if($d)return eu;$d=1;var e=qf(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return a.cache=s.set(u,c)||s,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,eu=r,eu}var tu,Id;function gO(){if(Id)return tu;Id=1;var e=$b(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return tu=r,tu}var ru,kd;function bO(){if(kd)return ru;kd=1;var e=gO(),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,s,c){a.push(s?c.replace(r,"$1"):u||o)}),a});return ru=n,ru}var nu,Nd;function Lf(){if(Nd)return nu;Nd=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 nu=e,nu}var iu,Dd;function xO(){if(Dd)return iu;Dd=1;var e=ci(),t=Lf(),r=We(),n=Qr(),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 s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return iu=o,iu}var au,Rd;function Ib(){if(Rd)return au;Rd=1;var e=xO();function t(r){return r==null?"":e(r)}return au=t,au}var ou,qd;function kb(){if(qd)return ou;qd=1;var e=We(),t=kf(),r=bO(),n=Ib();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return ou=i,ou}var uu,Ld;function Ra(){if(Ld)return uu;Ld=1;var e=Qr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return uu=t,uu}var su,Bd;function Bf(){if(Bd)return su;Bd=1;var e=kb(),t=Ra();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 su=r,su}var cu,Fd;function Nb(){if(Fd)return cu;Fd=1;var e=Bf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return cu=t,cu}var wO=Nb();const tt=de(wO);var lu,zd;function OO(){if(zd)return lu;zd=1;function e(t){return t==null}return lu=e,lu}var _O=OO();const re=de(_O);var fu,Wd;function SO(){if(Wd)return fu;Wd=1;var e=Nt(),t=We(),r=Dt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return fu=i,fu}var AO=SO();const sr=de(AO);var PO=Nf();const Q=de(PO);var jO=Kt();const en=de(jO);var hu={exports:{}},oe={};/**
2
- * @license React
3
- * react-is.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Ud;function TO(){if(Ud)return oe;Ud=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"),s=Symbol.for("react.forward_ref"),c=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 g=d.$$typeof;switch(g){case e:switch(d=d.type,d){case r:case i:case n:case c:case f:return d;default:switch(d=d&&d.$$typeof,d){case u:case o:case s:case h:case l:case a:return d;default:return g}}case t:return g}}}return oe.ContextConsumer=o,oe.ContextProvider=a,oe.Element=e,oe.ForwardRef=s,oe.Fragment=r,oe.Lazy=h,oe.Memo=l,oe.Portal=t,oe.Profiler=i,oe.StrictMode=n,oe.Suspense=c,oe.SuspenseList=f,oe.isAsyncMode=function(){return!1},oe.isConcurrentMode=function(){return!1},oe.isContextConsumer=function(d){return v(d)===o},oe.isContextProvider=function(d){return v(d)===a},oe.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},oe.isForwardRef=function(d){return v(d)===s},oe.isFragment=function(d){return v(d)===r},oe.isLazy=function(d){return v(d)===h},oe.isMemo=function(d){return v(d)===l},oe.isPortal=function(d){return v(d)===t},oe.isProfiler=function(d){return v(d)===i},oe.isStrictMode=function(d){return v(d)===n},oe.isSuspense=function(d){return v(d)===c},oe.isSuspenseList=function(d){return v(d)===f},oe.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===c||d===f||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===l||d.$$typeof===a||d.$$typeof===o||d.$$typeof===s||d.$$typeof===y||d.getModuleId!==void 0)},oe.typeOf=v,oe}var Kd;function EO(){return Kd||(Kd=1,hu.exports=TO()),hu.exports}var MO=EO(),du,Hd;function Db(){if(Hd)return du;Hd=1;var e=Nt(),t=Dt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return du=n,du}var pu,Gd;function CO(){if(Gd)return pu;Gd=1;var e=Db();function t(r){return e(r)&&r!=+r}return pu=t,pu}var $O=CO();const tn=de($O);var IO=Db();const kO=de(IO);var ft=function(t){return t===0?0:t>0?1:-1},tr=function(t){return sr(t)&&t.indexOf("%")===t.length-1},B=function(t){return kO(t)&&!tn(t)},NO=function(t){return re(t)},je=function(t){return B(t)||sr(t)},DO=0,rn=function(t){var r=++DO;return"".concat(t||"").concat(r)},cr=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!B(t)&&!sr(t))return n;var a;if(tr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return tn(a)&&(a=n),i&&a>r&&(a=r),a},Ft=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},RO=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},Ie=function(t,r){return B(t)&&B(r)?function(n){return t+n*(r-t)}:function(){return r}};function Ii(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):tt(n,t))===r})}var qO=function(t,r){return B(t)&&B(r)?t-r:sr(t)&&sr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Ar(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 vl(e){"@babel/helpers - typeof";return vl=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},vl(e)}var LO=["viewBox","children"],BO=["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"],Vd=["points","pathLength"],vu={svg:LO,polygon:Vd,polyline:Vd},Ff=["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"],ki=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(L.isValidElement(t)&&(n=t.props),!en(n))return null;var i={};return Object.keys(n).forEach(function(a){Ff.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},FO=function(t,r,n){return function(i){return t(r,n,i),null}},Ni=function(t,r,n){if(!en(t)||vl(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Ff.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=FO(o,r,n))}),i},zO=["children"],WO=["children"];function Xd(e,t){if(e==null)return{};var r=UO(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 UO(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 yl(e){"@babel/helpers - typeof";return yl=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},yl(e)}var Yd={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"},jt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Zd=null,yu=null,zf=function e(t){if(t===Zd&&Array.isArray(yu))return yu;var r=[];return L.Children.forEach(t,function(n){re(n)||(MO.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),yu=r,Zd=t,r};function rt(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return jt(i)}):n=[jt(t)],zf(e).forEach(function(i){var a=tt(i,"type.displayName")||tt(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function He(e,t){var r=rt(e,t);return r&&r[0]}var Jd=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!B(n)||n<=0||!B(i)||i<=0)},KO=["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"],HO=function(t){return t&&t.type&&sr(t.type)&&KO.indexOf(t.type)>=0},Rb=function(t){return t&&yl(t)==="object"&&"clipDot"in t},GO=function(t,r,n,i){var a,o=(a=vu==null?void 0:vu[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Q(t)&&(i&&o.includes(r)||BO.includes(r))||n&&Ff.includes(r)},ee=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(L.isValidElement(t)&&(i=t.props),!en(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;GO((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},ml=function e(t,r){if(t===r)return!0;var n=L.Children.count(t);if(n!==L.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Qd(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(!Qd(a,o))return!1}return!0},Qd=function(t,r){if(re(t)&&re(r))return!0;if(!re(t)&&!re(r)){var n=t.props||{},i=n.children,a=Xd(n,zO),o=r.props||{},u=o.children,s=Xd(o,WO);return i&&u?Ar(a,s)&&ml(i,u):!i&&!u?Ar(a,s):!1}return!1},ep=function(t,r){var n=[],i={};return zf(t).forEach(function(a,o){if(HO(a))n.push(a);else if(a){var u=jt(a.type),s=r[u]||{},c=s.handler,f=s.once;if(c&&(!f||!i[u])){var l=c(a,u,o);n.push(l),i[u]=!0}}}),n},VO=function(t){var r=t&&t.type;return r&&Yd[r]?Yd[r]:null},XO=function(t,r){return zf(r).indexOf(t)},YO=["children","width","height","viewBox","className","style","title","desc"];function gl(){return gl=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},gl.apply(this,arguments)}function ZO(e,t){if(e==null)return{};var r=JO(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 JO(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 bl(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,s=e.desc,c=ZO(e,YO),f=i||{width:r,height:n,x:0,y:0},l=ie("recharts-surface",a);return P.createElement("svg",gl({},ee(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),P.createElement("title",null,u),P.createElement("desc",null,s),t)}var QO=["children","className"];function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xl.apply(this,arguments)}function e_(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 he=P.forwardRef(function(e,t){var r=e.children,n=e.className,i=e_(e,QO),a=ie("recharts-layer",n);return P.createElement("g",xl({className:a},ee(i,!0),{ref:t}),r)}),Tt=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]},mu,tp;function r_(){if(tp)return mu;tp=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 mu=e,mu}var gu,rp;function n_(){if(rp)return gu;rp=1;var e=r_();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 gu=t,gu}var bu,np;function qb(){if(np)return bu;np=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 s(c){return u.test(c)}return bu=s,bu}var xu,ip;function i_(){if(ip)return xu;ip=1;function e(t){return t.split("")}return xu=e,xu}var wu,ap;function a_(){if(ap)return wu;ap=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+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=c+"?",v="["+a+"]?",d="(?:"+p+"(?:"+[f,l,h].join("|")+")"+v+y+")*",g=v+y+d,x="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(s+"(?="+s+")|"+x+g,"g");function O(m){return m.match(w)||[]}return wu=O,wu}var Ou,op;function o_(){if(op)return Ou;op=1;var e=i_(),t=qb(),r=a_();function n(i){return t(i)?r(i):e(i)}return Ou=n,Ou}var _u,up;function u_(){if(up)return _u;up=1;var e=n_(),t=qb(),r=o_(),n=Ib();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),c=u?e(u,1).join(""):o.slice(1);return s[a]()+c}}return _u=i,_u}var Su,sp;function s_(){if(sp)return Su;sp=1;var e=u_(),t=e("toUpperCase");return Su=t,Su}var c_=s_();const qa=de(c_);function fe(e){return function(){return e}}const Lb=Math.cos,Di=Math.sin,dt=Math.sqrt,Ri=Math.PI,La=2*Ri,wl=Math.PI,Ol=2*wl,Qt=1e-6,l_=Ol-Qt;function Bb(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function f_(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 h_{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Bb:f_(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,s=n-t,c=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*s-c*f)>Qt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-u,v=s*s+c*c,d=p*p+y*y,g=Math.sqrt(v),x=Math.sqrt(h),w=a*Math.tan((wl-Math.acos((v+h-d)/(2*g*x)))/2),O=w/x,m=w/g;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*s},${this._y1=r+m*c}`}}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),s=n*Math.sin(i),c=t+u,f=r+s,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>Qt||Math.abs(this._y1-f)>Qt)&&this._append`L${c},${f}`,n&&(h<0&&(h=h%Ol+Ol),h>l_?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:h>Qt&&this._append`A${n},${n},0,${+(h>=wl)},${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 Wf(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 h_(t)}function Uf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Fb(e){this._context=e}Fb.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 Ba(e){return new Fb(e)}function zb(e){return e[0]}function Wb(e){return e[1]}function Ub(e,t){var r=fe(!0),n=null,i=Ba,a=null,o=Wf(u);e=typeof e=="function"?e:e===void 0?zb:fe(e),t=typeof t=="function"?t:t===void 0?Wb:fe(t);function u(s){var c,f=(s=Uf(s)).length,l,h=!1,p;for(n==null&&(a=i(p=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,c,s),+t(l,c,s));if(p)return a=null,p+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:fe(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:fe(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:fe(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function xi(e,t,r){var n=null,i=fe(!0),a=null,o=Ba,u=null,s=Wf(c);e=typeof e=="function"?e:e===void 0?zb:fe(+e),t=typeof t=="function"?t:fe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Wb:fe(+r);function c(l){var h,p,y,v=(l=Uf(l)).length,d,g=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=s())),h=0;h<=v;++h){if(!(h<v&&i(d=l[h],h,l))===g)if(g=!g)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()}g&&(w[h]=+e(d,h,l),O[h]=+t(d,h,l),u.point(n?+n(d,h,l):w[h],r?+r(d,h,l):O[h]))}if(x)return u=null,x+""||null}function f(){return Ub().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:fe(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:fe(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:fe(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:fe(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:fe(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:fe(+l),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(l){return arguments.length?(i=typeof l=="function"?l:fe(!!l),c):i},c.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),c):o},c.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),c):a},c}class Kb{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 d_(e){return new Kb(e,!0)}function p_(e){return new Kb(e,!1)}const Kf={draw(e,t){const r=dt(t/Ri);e.moveTo(r,0),e.arc(0,0,r,0,La)}},v_={draw(e,t){const r=dt(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()}},Hb=dt(1/3),y_=Hb*2,m_={draw(e,t){const r=dt(t/y_),n=r*Hb;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},g_={draw(e,t){const r=dt(t),n=-r/2;e.rect(n,n,r,r)}},b_=.8908130915292852,Gb=Di(Ri/10)/Di(7*Ri/10),x_=Di(La/10)*Gb,w_=-Lb(La/10)*Gb,O_={draw(e,t){const r=dt(t*b_),n=x_*r,i=w_*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=La*a/5,u=Lb(o),s=Di(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},Au=dt(3),__={draw(e,t){const r=-dt(t/(Au*3));e.moveTo(0,r*2),e.lineTo(-Au*r,-r),e.lineTo(Au*r,-r),e.closePath()}},Xe=-.5,Ye=dt(3)/2,_l=1/dt(12),S_=(_l/2+1)*3,A_={draw(e,t){const r=dt(t/S_),n=r/2,i=r*_l,a=n,o=r*_l+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Xe*n-Ye*i,Ye*n+Xe*i),e.lineTo(Xe*a-Ye*o,Ye*a+Xe*o),e.lineTo(Xe*u-Ye*s,Ye*u+Xe*s),e.lineTo(Xe*n+Ye*i,Xe*i-Ye*n),e.lineTo(Xe*a+Ye*o,Xe*o-Ye*a),e.lineTo(Xe*u+Ye*s,Xe*s-Ye*u),e.closePath()}};function P_(e,t){let r=null,n=Wf(i);e=typeof e=="function"?e:fe(e||Kf),t=typeof t=="function"?t:fe(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:fe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:fe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function qi(){}function Li(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 Vb(e){this._context=e}Vb.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:Li(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:Li(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function j_(e){return new Vb(e)}function Xb(e){this._context=e}Xb.prototype={areaStart:qi,areaEnd:qi,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:Li(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function T_(e){return new Xb(e)}function Yb(e){this._context=e}Yb.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:Li(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function E_(e){return new Yb(e)}function Zb(e){this._context=e}Zb.prototype={areaStart:qi,areaEnd:qi,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 M_(e){return new Zb(e)}function cp(e){return e<0?-1:1}function lp(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(cp(a)+cp(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function fp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Pu(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 Bi(e){this._context=e}Bi.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:Pu(this,this._t0,fp(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,Pu(this,fp(this,r=lp(this,e,t)),r);break;default:Pu(this,this._t0,r=lp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Jb(e){this._context=new Qb(e)}(Jb.prototype=Object.create(Bi.prototype)).point=function(e,t){Bi.prototype.point.call(this,t,e)};function Qb(e){this._context=e}Qb.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 C_(e){return new Bi(e)}function $_(e){return new Jb(e)}function e0(e){this._context=e}e0.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=hp(e),i=hp(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 hp(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 I_(e){return new e0(e)}function Fa(e,t){this._context=e,this._t=t}Fa.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 k_(e){return new Fa(e,.5)}function N_(e){return new Fa(e,0)}function D_(e){return new Fa(e,1)}function Er(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 Sl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function R_(e,t){return e[t]}function q_(e){const t=[];return t.key=e,t}function L_(){var e=fe([]),t=Sl,r=Er,n=R_;function i(a){var o=Array.from(e.apply(this,arguments),q_),u,s=o.length,c=-1,f;for(const l of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(l,o[u].key,c,a)]).data=l;for(u=0,f=Uf(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:fe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:fe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Sl:typeof a=="function"?a:fe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Er,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}Er(e,t)}}function F_(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}Er(e,t)}}function z_(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,s=0,c=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,g=v[n-1][1]||0;p+=d-g}s+=l,c+=p*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,Er(e,t)}}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 W_=["type","size","sizeType"];function Al(){return Al=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},Al.apply(this,arguments)}function dp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dp(Object(r),!0).forEach(function(n){U_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U_(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=H_(e,"string");return Tn(t)=="symbol"?t:t+""}function H_(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 G_(e,t){if(e==null)return{};var r=V_(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 V_(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 t0={symbolCircle:Kf,symbolCross:v_,symbolDiamond:m_,symbolSquare:g_,symbolStar:O_,symbolTriangle:__,symbolWye:A_},X_=Math.PI/180,Y_=function(t){var r="symbol".concat(qa(t));return t0[r]||Kf},Z_=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*X_;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}},J_=function(t,r){t0["symbol".concat(qa(t))]=r},Hf=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,s=G_(t,W_),c=pp(pp({},s),{},{type:n,size:a,sizeType:u}),f=function(){var d=Y_(n),g=P_().type(d).size(Z_(a,u,n));return g()},l=c.className,h=c.cx,p=c.cy,y=ee(c,!0);return h===+h&&p===+p&&a===+a?P.createElement("path",Al({},y,{className:ie("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};Hf.registerSymbol=J_;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 Pl(){return Pl=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},Pl.apply(this,arguments)}function vp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Q_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vp(Object(r),!0).forEach(function(n){En(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function e1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t1(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,n0(n.key),n)}}function r1(e,t,r){return t&&t1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function n1(e,t,r){return t=Fi(t),i1(e,r0()?Reflect.construct(t,r||[],Fi(e).constructor):t.apply(e,r))}function i1(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 a1(e)}function a1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r0=function(){return!!e})()}function Fi(e){return Fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fi(e)}function o1(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 En(e,t,r){return t=n0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n0(e){var t=u1(e,"string");return Mr(t)=="symbol"?t:t+""}function u1(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 Ze=32,Gf=(function(e){function t(){return e1(this,t),n1(this,t,arguments)}return o1(t,e),r1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Ze/2,o=Ze/6,u=Ze/3,s=n.inactive?i:n.color;if(n.type==="plainline")return P.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Ze,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return P.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
10
- A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
11
- H`).concat(Ze,"M").concat(2*u,",").concat(a,`
12
- A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return P.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Ze/8,"h").concat(Ze,"v").concat(Ze*3/4,"h").concat(-Ze,"z"),className:"recharts-legend-icon"});if(P.isValidElement(n.legendIcon)){var c=Q_({},n);return delete c.legendIcon,P.cloneElement(n.legendIcon,c)}return P.createElement(Hf,{fill:s,cx:a,cy:a,size:Ze,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,s=i.formatter,c=i.inactiveColor,f={x:0,y:0,width:Ze,height:Ze},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||s,d=ie(En(En({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var g=Q(p.value)?null:p.value;Tt(!Q(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=p.inactive?c:p.color;return P.createElement("li",Pl({className:d,style:l,key:"legend-item-".concat(y)},Ni(n.props,p,y)),P.createElement(bl,{width:o,height:o,viewBox:f,style:h},n.renderIcon(p)),P.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(g,p,y):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return P.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(L.PureComponent);En(Gf,"displayName","Legend");En(Gf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ju,yp;function s1(){if(yp)return ju;yp=1;var e=Na();function t(){this.__data__=new e,this.size=0}return ju=t,ju}var Tu,mp;function c1(){if(mp)return Tu;mp=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Tu=e,Tu}var Eu,gp;function l1(){if(gp)return Eu;gp=1;function e(t){return this.__data__.get(t)}return Eu=e,Eu}var Mu,bp;function f1(){if(bp)return Mu;bp=1;function e(t){return this.__data__.has(t)}return Mu=e,Mu}var Cu,xp;function h1(){if(xp)return Cu;xp=1;var e=Na(),t=Rf(),r=qf(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!t||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(s)}return u.set(a,o),this.size=u.size,this}return Cu=i,Cu}var $u,wp;function i0(){if(wp)return $u;wp=1;var e=Na(),t=s1(),r=c1(),n=l1(),i=f1(),a=h1();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,$u=o,$u}var Iu,Op;function d1(){if(Op)return Iu;Op=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Iu=t,Iu}var ku,_p;function p1(){if(_p)return ku;_p=1;function e(t){return this.__data__.has(t)}return ku=e,ku}var Nu,Sp;function a0(){if(Sp)return Nu;Sp=1;var e=qf(),t=d1(),r=p1();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,Nu=n,Nu}var Du,Ap;function o0(){if(Ap)return Du;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 Du=e,Du}var Ru,Pp;function u0(){if(Pp)return Ru;Pp=1;function e(t,r){return t.has(r)}return Ru=e,Ru}var qu,jp;function s0(){if(jp)return qu;jp=1;var e=a0(),t=o0(),r=u0(),n=1,i=2;function a(o,u,s,c,f,l){var h=s&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 g=-1,x=!0,w=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++g<p;){var O=o[g],m=u[g];if(c)var b=h?c(m,O,g,u,o,l):c(O,m,g,o,u,l);if(b!==void 0){if(b)continue;x=!1;break}if(w){if(!t(u,function(_,S){if(!r(w,S)&&(O===_||f(O,_,s,c,l)))return w.push(S)})){x=!1;break}}else if(!(O===m||f(O,m,s,c,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return qu=a,qu}var Lu,Tp;function v1(){if(Tp)return Lu;Tp=1;var e=xt(),t=e.Uint8Array;return Lu=t,Lu}var Bu,Ep;function y1(){if(Ep)return Bu;Ep=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Bu=e,Bu}var Fu,Mp;function Vf(){if(Mp)return Fu;Mp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Fu=e,Fu}var zu,Cp;function m1(){if(Cp)return zu;Cp=1;var e=ci(),t=v1(),r=Df(),n=s0(),i=y1(),a=Vf(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",v="[object String]",d="[object Symbol]",g="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function m(b,_,S,A,I,M,T){switch(S){case x:if(b.byteLength!=_.byteLength||b.byteOffset!=_.byteOffset)return!1;b=b.buffer,_=_.buffer;case g:return!(b.byteLength!=_.byteLength||!M(new t(b),new t(_)));case s:case c:case h:return r(+b,+_);case f:return b.name==_.name&&b.message==_.message;case p:case v:return b==_+"";case l:var C=i;case y:var $=A&o;if(C||(C=a),b.size!=_.size&&!$)return!1;var j=T.get(b);if(j)return j==_;A|=u,T.set(b,_);var N=n(C(b),C(_),A,I,M,T);return T.delete(b),N;case d:if(O)return O.call(b)==O.call(_)}return!1}return zu=m,zu}var Wu,$p;function c0(){if($p)return Wu;$p=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 Wu=e,Wu}var Uu,Ip;function g1(){if(Ip)return Uu;Ip=1;var e=c0(),t=We();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Uu=r,Uu}var Ku,kp;function b1(){if(kp)return Ku;kp=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 Ku=e,Ku}var Hu,Np;function x1(){if(Np)return Hu;Np=1;function e(){return[]}return Hu=e,Hu}var Gu,Dp;function w1(){if(Dp)return Gu;Dp=1;var e=b1(),t=x1(),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 Gu=a,Gu}var Vu,Rp;function O1(){if(Rp)return Vu;Rp=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Vu=e,Vu}var Xu,qp;function _1(){if(qp)return Xu;qp=1;var e=Nt(),t=Dt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Xu=n,Xu}var Yu,Lp;function Xf(){if(Lp)return Yu;Lp=1;var e=_1(),t=Dt(),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 Yu=a,Yu}var bn={exports:{}},Zu,Bp;function S1(){if(Bp)return Zu;Bp=1;function e(){return!1}return Zu=e,Zu}bn.exports;var Fp;function l0(){return Fp||(Fp=1,(function(e,t){var r=xt(),n=S1(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;e.exports=c})(bn,bn.exports)),bn.exports}var Ju,zp;function Yf(){if(zp)return Ju;zp=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 Ju=r,Ju}var Qu,Wp;function Zf(){if(Wp)return Qu;Wp=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Qu=t,Qu}var es,Up;function A1(){if(Up)return es;Up=1;var e=Nt(),t=Zf(),r=Dt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",v="[object WeakMap]",d="[object ArrayBuffer]",g="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",b="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",A="[object Uint16Array]",I="[object Uint32Array]",M={};M[x]=M[w]=M[O]=M[m]=M[b]=M[_]=M[S]=M[A]=M[I]=!0,M[n]=M[i]=M[d]=M[a]=M[g]=M[o]=M[u]=M[s]=M[c]=M[f]=M[l]=M[h]=M[p]=M[y]=M[v]=!1;function T(C){return r(C)&&t(C.length)&&!!M[e(C)]}return es=T,es}var ts,Kp;function f0(){if(Kp)return ts;Kp=1;function e(t){return function(r){return t(r)}}return ts=e,ts}var xn={exports:{}};xn.exports;var Hp;function P1(){return Hp||(Hp=1,(function(e,t){var r=Mb(),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 s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(xn,xn.exports)),xn.exports}var rs,Gp;function h0(){if(Gp)return rs;Gp=1;var e=A1(),t=f0(),r=P1(),n=r&&r.isTypedArray,i=n?t(n):e;return rs=i,rs}var ns,Vp;function j1(){if(Vp)return ns;Vp=1;var e=O1(),t=Xf(),r=We(),n=l0(),i=Yf(),a=h0(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),h=!l&&t(c),p=!l&&!h&&n(c),y=!l&&!h&&!p&&a(c),v=l||h||p||y,d=v?e(c.length,String):[],g=d.length;for(var x in c)(f||u.call(c,x))&&!(v&&(x=="length"||p&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,g)))&&d.push(x);return d}return ns=s,ns}var is,Xp;function T1(){if(Xp)return is;Xp=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return is=t,is}var as,Yp;function d0(){if(Yp)return as;Yp=1;function e(t,r){return function(n){return t(r(n))}}return as=e,as}var os,Zp;function E1(){if(Zp)return os;Zp=1;var e=d0(),t=e(Object.keys,Object);return os=t,os}var us,Jp;function M1(){if(Jp)return us;Jp=1;var e=T1(),t=E1(),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 us=i,us}var ss,Qp;function li(){if(Qp)return ss;Qp=1;var e=Nf(),t=Zf();function r(n){return n!=null&&t(n.length)&&!e(n)}return ss=r,ss}var cs,ev;function za(){if(ev)return cs;ev=1;var e=j1(),t=M1(),r=li();function n(i){return r(i)?e(i):t(i)}return cs=n,cs}var ls,tv;function C1(){if(tv)return ls;tv=1;var e=g1(),t=w1(),r=za();function n(i){return e(i,r,t)}return ls=n,ls}var fs,rv;function $1(){if(rv)return fs;rv=1;var e=C1(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,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 g=h[d];if(!(l?g in o:n.call(o,g)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var m=l;++d<p;){g=h[d];var b=a[g],_=o[g];if(s)var S=l?s(_,b,g,o,a,f):s(b,_,g,a,o,f);if(!(S===void 0?b===_||c(b,_,u,s,f):S)){O=!1;break}m||(m=g=="constructor")}if(O&&!m){var A=a.constructor,I=o.constructor;A!=I&&"constructor"in a&&"constructor"in o&&!(typeof A=="function"&&A instanceof A&&typeof I=="function"&&I instanceof I)&&(O=!1)}return f.delete(a),f.delete(o),O}return fs=i,fs}var hs,nv;function I1(){if(nv)return hs;nv=1;var e=dr(),t=xt(),r=e(t,"DataView");return hs=r,hs}var ds,iv;function k1(){if(iv)return ds;iv=1;var e=dr(),t=xt(),r=e(t,"Promise");return ds=r,ds}var ps,av;function p0(){if(av)return ps;av=1;var e=dr(),t=xt(),r=e(t,"Set");return ps=r,ps}var vs,ov;function N1(){if(ov)return vs;ov=1;var e=dr(),t=xt(),r=e(t,"WeakMap");return vs=r,vs}var ys,uv;function D1(){if(uv)return ys;uv=1;var e=I1(),t=Rf(),r=k1(),n=p0(),i=N1(),a=Nt(),o=Cb(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",p=o(e),y=o(t),v=o(r),d=o(n),g=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=h||t&&x(new t)!=u||r&&x(r.resolve())!=c||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),m=O==s?w.constructor:void 0,b=m?o(m):"";if(b)switch(b){case p:return h;case y:return u;case v:return c;case d:return f;case g:return l}return O}),ys=x,ys}var ms,sv;function R1(){if(sv)return ms;sv=1;var e=i0(),t=s0(),r=m1(),n=$1(),i=D1(),a=We(),o=l0(),u=h0(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(v,d,g,x,w,O){var m=a(v),b=a(d),_=m?f:i(v),S=b?f:i(d);_=_==c?l:_,S=S==c?l:S;var A=_==l,I=S==l,M=_==S;if(M&&o(v)){if(!o(d))return!1;m=!0,A=!1}if(M&&!A)return O||(O=new e),m||u(v)?t(v,d,g,x,w,O):r(v,d,_,g,x,w,O);if(!(g&s)){var T=A&&p.call(v,"__wrapped__"),C=I&&p.call(d,"__wrapped__");if(T||C){var $=T?v.value():v,j=C?d.value():d;return O||(O=new e),w($,j,g,x,O)}}return M?(O||(O=new e),n(v,d,g,x,w,O)):!1}return ms=y,ms}var gs,cv;function Jf(){if(cv)return gs;cv=1;var e=R1(),t=Dt();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 gs=r,gs}var bs,lv;function q1(){if(lv)return bs;lv=1;var e=i0(),t=Jf(),r=1,n=2;function i(a,o,u,s){var c=u.length,f=c,l=!s;if(a==null)return!f;for(a=Object(a);c--;){var h=u[c];if(l&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++c<f;){h=u[c];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(s)var g=s(y,v,p,a,o,d);if(!(g===void 0?t(v,y,r|n,s,d):g))return!1}}return!0}return bs=i,bs}var xs,fv;function v0(){if(fv)return xs;fv=1;var e=Kt();function t(r){return r===r&&!e(r)}return xs=t,xs}var ws,hv;function L1(){if(hv)return ws;hv=1;var e=v0(),t=za();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 ws=r,ws}var Os,dv;function y0(){if(dv)return Os;dv=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Os=e,Os}var _s,pv;function B1(){if(pv)return _s;pv=1;var e=q1(),t=L1(),r=y0();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 _s=n,_s}var Ss,vv;function F1(){if(vv)return Ss;vv=1;function e(t,r){return t!=null&&r in Object(t)}return Ss=e,Ss}var As,yv;function z1(){if(yv)return As;yv=1;var e=kb(),t=Xf(),r=We(),n=Yf(),i=Zf(),a=Ra();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,h=!1;++f<l;){var p=a(s[f]);if(!(h=u!=null&&c(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 As=o,As}var Ps,mv;function W1(){if(mv)return Ps;mv=1;var e=F1(),t=z1();function r(n,i){return n!=null&&t(n,i,e)}return Ps=r,Ps}var js,gv;function U1(){if(gv)return js;gv=1;var e=Jf(),t=Nb(),r=W1(),n=kf(),i=v0(),a=y0(),o=Ra(),u=1,s=2;function c(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|s)}}return js=c,js}var Ts,bv;function nn(){if(bv)return Ts;bv=1;function e(t){return t}return Ts=e,Ts}var Es,xv;function K1(){if(xv)return Es;xv=1;function e(t){return function(r){return r==null?void 0:r[t]}}return Es=e,Es}var Ms,wv;function H1(){if(wv)return Ms;wv=1;var e=Bf();function t(r){return function(n){return e(n,r)}}return Ms=t,Ms}var Cs,Ov;function G1(){if(Ov)return Cs;Ov=1;var e=K1(),t=H1(),r=kf(),n=Ra();function i(a){return r(a)?e(n(a)):t(a)}return Cs=i,Cs}var $s,_v;function Ht(){if(_v)return $s;_v=1;var e=B1(),t=U1(),r=nn(),n=We(),i=G1();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 $s=a,$s}var Is,Sv;function m0(){if(Sv)return Is;Sv=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 Is=e,Is}var ks,Av;function V1(){if(Av)return ks;Av=1;function e(t){return t!==t}return ks=e,ks}var Ns,Pv;function X1(){if(Pv)return Ns;Pv=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 Ns=e,Ns}var Ds,jv;function Y1(){if(jv)return Ds;jv=1;var e=m0(),t=V1(),r=X1();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return Ds=n,Ds}var Rs,Tv;function Z1(){if(Tv)return Rs;Tv=1;var e=Y1();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Rs=t,Rs}var qs,Ev;function J1(){if(Ev)return qs;Ev=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 qs=e,qs}var Ls,Mv;function Q1(){if(Mv)return Ls;Mv=1;function e(){}return Ls=e,Ls}var Bs,Cv;function eS(){if(Cv)return Bs;Cv=1;var e=p0(),t=Q1(),r=Vf(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Bs=i,Bs}var Fs,$v;function tS(){if($v)return Fs;$v=1;var e=a0(),t=Z1(),r=J1(),n=u0(),i=eS(),a=Vf(),o=200;function u(s,c,f){var l=-1,h=t,p=s.length,y=!0,v=[],d=v;if(f)y=!1,h=r;else if(p>=o){var g=c?null:i(s);if(g)return a(g);y=!1,h=n,d=new e}else d=c?[]:v;e:for(;++l<p;){var x=s[l],w=c?c(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=d.length;O--;)if(d[O]===w)continue e;c&&d.push(w),v.push(x)}else h(d,w,f)||(d!==v&&d.push(w),v.push(x))}return v}return Fs=u,Fs}var zs,Iv;function rS(){if(Iv)return zs;Iv=1;var e=Ht(),t=tS();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return zs=r,zs}var nS=rS();const kv=de(nS);function g0(e,t,r){return t===!0?kv(e,r):Q(t)?kv(e,t):e}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)}var iS=["ref"];function Nv(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 Ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nv(Object(r),!0).forEach(function(n){Wa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dv(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,x0(n.key),n)}}function oS(e,t,r){return t&&Dv(e.prototype,t),r&&Dv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uS(e,t,r){return t=zi(t),sS(e,b0()?Reflect.construct(t,r||[],zi(e).constructor):t.apply(e,r))}function sS(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 cS(e)}function cS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b0=function(){return!!e})()}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zi(e)}function lS(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&&Tl(e,t)}function Tl(e,t){return Tl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tl(e,t)}function Wa(e,t,r){return t=x0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x0(e){var t=fS(e,"string");return Cr(t)=="symbol"?t:t+""}function fS(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 hS(e,t){if(e==null)return{};var r=dS(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 dS(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 pS(e){return e.value}function vS(e,t){if(P.isValidElement(e))return P.cloneElement(e,t);if(typeof e=="function")return P.createElement(e,t);t.ref;var r=hS(t,iS);return P.createElement(Gf,r)}var Rv=1,Et=(function(e){function t(){var r;aS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=uS(this,t,[].concat(i)),Wa(r,"lastBoundingBox",{width:-1,height:-1}),r}return lS(t,e),oS(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)>Rv||Math.abs(i.height-this.lastBoundingBox.height)>Rv)&&(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?Ot({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,c=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:((c||0)-p.width)/2}}else l=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();h={top:((f||0)-y.height)/2}}else h=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Ot(Ot({},l),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,l=Ot(Ot({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return P.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(p){n.wrapperNode=p}},vS(a,Ot(Ot({},this.props),{},{payload:g0(f,c,pS)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Ot(Ot({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&B(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(L.PureComponent);Wa(Et,"displayName","Legend");Wa(Et,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ws,qv;function yS(){if(qv)return Ws;qv=1;var e=ci(),t=Xf(),r=We(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Ws=i,Ws}var Us,Lv;function w0(){if(Lv)return Us;Lv=1;var e=c0(),t=yS();function r(n,i,a,o,u){var s=-1,c=n.length;for(a||(a=t),u||(u=[]);++s<c;){var f=n[s];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return Us=r,Us}var Ks,Bv;function mS(){if(Bv)return Ks;Bv=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),s=u.length;s--;){var c=u[t?s:++a];if(n(o[c],c,o)===!1)break}return r}}return Ks=e,Ks}var Hs,Fv;function gS(){if(Fv)return Hs;Fv=1;var e=mS(),t=e();return Hs=t,Hs}var Gs,zv;function O0(){if(zv)return Gs;zv=1;var e=gS(),t=za();function r(n,i){return n&&e(n,i,t)}return Gs=r,Gs}var Vs,Wv;function bS(){if(Wv)return Vs;Wv=1;var e=li();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,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return Vs=t,Vs}var Xs,Uv;function Qf(){if(Uv)return Xs;Uv=1;var e=O0(),t=bS(),r=t(e);return Xs=r,Xs}var Ys,Kv;function _0(){if(Kv)return Ys;Kv=1;var e=Qf(),t=li();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,s,c){o[++a]=i(u,s,c)}),o}return Ys=r,Ys}var Zs,Hv;function xS(){if(Hv)return Zs;Hv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Zs=e,Zs}var Js,Gv;function wS(){if(Gv)return Js;Gv=1;var e=Qr();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),s=n!==void 0,c=n===null,f=n===n,l=e(n);if(!c&&!l&&!u&&r>n||u&&s&&f&&!c&&!l||a&&s&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||c&&i&&o||!s&&o||!f)return-1}return 0}return Js=t,Js}var Qs,Vv;function OS(){if(Vv)return Qs;Vv=1;var e=wS();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=c)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return Qs=t,Qs}var ec,Xv;function _S(){if(Xv)return ec;Xv=1;var e=Lf(),t=Bf(),r=Ht(),n=_0(),i=xS(),a=f0(),o=OS(),u=nn(),s=We();function c(f,l,h){l.length?l=e(l,function(v){return s(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,g){var x=e(l,function(w){return w(v)});return{criteria:x,index:++p,value:v}});return i(y,function(v,d){return o(v,d,h)})}return ec=c,ec}var tc,Yv;function SS(){if(Yv)return tc;Yv=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 tc=e,tc}var rc,Zv;function AS(){if(Zv)return rc;Zv=1;var e=SS(),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,s=t(o.length-i,0),c=Array(s);++u<s;)c[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(c),e(n,this,f)}}return rc=r,rc}var nc,Jv;function PS(){if(Jv)return nc;Jv=1;function e(t){return function(){return t}}return nc=e,nc}var ic,Qv;function S0(){if(Qv)return ic;Qv=1;var e=dr(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return ic=t,ic}var ac,ey;function jS(){if(ey)return ac;ey=1;var e=PS(),t=S0(),r=nn(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return ac=n,ac}var oc,ty;function TS(){if(ty)return oc;ty=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),s=t-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return oc=n,oc}var uc,ry;function ES(){if(ry)return uc;ry=1;var e=jS(),t=TS(),r=t(e);return uc=r,uc}var sc,ny;function MS(){if(ny)return sc;ny=1;var e=nn(),t=AS(),r=ES();function n(i,a){return r(t(i,a,e),i+"")}return sc=n,sc}var cc,iy;function Ua(){if(iy)return cc;iy=1;var e=Df(),t=li(),r=Yf(),n=Kt();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?t(u)&&r(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return cc=i,cc}var lc,ay;function CS(){if(ay)return lc;ay=1;var e=w0(),t=_S(),r=MS(),n=Ua(),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 lc=i,lc}var $S=CS();const eh=de($S);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 El(){return El=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},El.apply(this,arguments)}function IS(e,t){return RS(e)||DS(e,t)||NS(e,t)||kS()}function kS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NS(e,t){if(e){if(typeof e=="string")return oy(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 oy(e,t)}}function oy(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 DS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function RS(e){if(Array.isArray(e))return e}function uy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uy(Object(r),!0).forEach(function(n){qS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qS(e,t,r){return t=LS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LS(e){var t=BS(e,"string");return Mn(t)=="symbol"?t:t+""}function BS(e,t){if(Mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FS(e){return Array.isArray(e)&&je(e[0])&&je(e[1])?e.join(" ~ "):e}var zS=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,s=t.labelStyle,c=s===void 0?{}:s,f=t.payload,l=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,v=t.label,d=t.labelFormatter,g=t.accessibilityLayer,x=g===void 0?!1:g,w=function(){if(f&&f.length){var T={padding:0,margin:0},C=(h?eh(f,h):f).map(function($,j){if($.type==="none")return null;var N=fc({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},u),q=$.formatter||l||FS,F=$.value,z=$.name,H=F,V=z;if(q&&H!=null&&V!=null){var W=q(F,z,$,j,f);if(Array.isArray(W)){var X=IS(W,2);H=X[0],V=X[1]}else H=W}return P.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(j),style:N},je(V)?P.createElement("span",{className:"recharts-tooltip-item-name"},V):null,je(V)?P.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,P.createElement("span",{className:"recharts-tooltip-item-value"},H),P.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return P.createElement("ul",{className:"recharts-tooltip-item-list",style:T},C)}return null},O=fc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=fc({margin:0},c),b=!re(v),_=b?v:"",S=ie("recharts-default-tooltip",p),A=ie("recharts-tooltip-label",y);b&&d&&f!==void 0&&f!==null&&(_=d(v,f));var I=x?{role:"status","aria-live":"assertive"}:{};return P.createElement("div",El({className:S,style:O},I),P.createElement("p",{className:A,style:m},P.isValidElement(_)?_:"".concat(_)),w())};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 wi(e,t,r){return t=WS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WS(e){var t=US(e,"string");return Cn(t)=="symbol"?t:t+""}function US(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)}var ln="recharts-tooltip-wrapper",KS={visibility:"hidden"};function HS(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ie(ln,wi(wi(wi(wi({},"".concat(ln,"-right"),B(r)&&t&&B(t.x)&&r>=t.x),"".concat(ln,"-left"),B(r)&&t&&B(t.x)&&r<t.x),"".concat(ln,"-bottom"),B(n)&&t&&B(t.y)&&n>=t.y),"".concat(ln,"-top"),B(n)&&t&&B(t.y)&&n<t.y))}function sy(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&B(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var h=f,p=s[n];return h<p?Math.max(l,s[n]):Math.max(f,s[n])}var y=l+u,v=s[n]+c;return y>v?Math.max(f,s[n]):Math.max(l,s[n])}function GS(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 VS(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,c,f,l;return o.height>0&&o.width>0&&r?(f=sy({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=sy({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=GS({translateX:f,translateY:l,useTranslate3d:u})):c=KS,{cssProperties:c,cssClasses:HS({translateX:f,translateY:l,coordinate:r})}}function $r(e){"@babel/helpers - typeof";return $r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$r(e)}function cy(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 ly(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cy(Object(r),!0).forEach(function(n){Cl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YS(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,P0(n.key),n)}}function ZS(e,t,r){return t&&YS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JS(e,t,r){return t=Wi(t),QS(e,A0()?Reflect.construct(t,r||[],Wi(e).constructor):t.apply(e,r))}function QS(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 eA(e)}function eA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A0=function(){return!!e})()}function Wi(e){return Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wi(e)}function tA(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 Cl(e,t,r){return t=P0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P0(e){var t=rA(e,"string");return $r(t)=="symbol"?t:t+""}function rA(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 fy=1,nA=(function(e){function t(){var r;XS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=JS(this,t,[].concat(i)),Cl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Cl(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,c,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(c=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),r}return tA(t,e),ZS(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>fy||Math.abs(n.height-this.state.lastBoundingBox.height)>fy)&&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,s=i.animationEasing,c=i.children,f=i.coordinate,l=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,v=i.reverseDirection,d=i.useTranslate3d,g=i.viewBox,x=i.wrapperStyle,w=VS({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:g}),O=w.cssClasses,m=w.cssProperties,b=ly(ly({transition:h&&a?"transform ".concat(u,"ms ").concat(s):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return P.createElement("div",{tabIndex:-1,className:O,style:b,ref:function(S){n.wrapperNode=S}},c)}}])})(L.PureComponent),iA=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},pr={isSsr:iA()};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 hy(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 dy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hy(Object(r),!0).forEach(function(n){th(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oA(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,T0(n.key),n)}}function uA(e,t,r){return t&&oA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sA(e,t,r){return t=Ui(t),cA(e,j0()?Reflect.construct(t,r||[],Ui(e).constructor):t.apply(e,r))}function cA(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 lA(e)}function lA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j0=function(){return!!e})()}function Ui(e){return Ui=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ui(e)}function fA(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&&$l(e,t)}function $l(e,t){return $l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$l(e,t)}function th(e,t,r){return t=T0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T0(e){var t=hA(e,"string");return Ir(t)=="symbol"?t:t+""}function hA(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 String(e)}function dA(e){return e.dataKey}function pA(e,t){return P.isValidElement(e)?P.cloneElement(e,t):typeof e=="function"?P.createElement(e,t):P.createElement(zS,t)}var we=(function(e){function t(){return aA(this,t),sA(this,t,arguments)}return fA(t,e),uA(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.content,f=i.coordinate,l=i.filterNull,h=i.isAnimationActive,p=i.offset,y=i.payload,v=i.payloadUniqBy,d=i.position,g=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=g0(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,dA));var b=m.length>0;return P.createElement(nA,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:h,active:a,coordinate:f,hasPayload:b,offset:p,position:d,reverseDirection:g,useTranslate3d:x,viewBox:w,wrapperStyle:O},pA(c,dy(dy({},this.props),{},{payload:m})))}}])})(L.PureComponent);th(we,"displayName","Tooltip");th(we,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!pr.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 hc,py;function vA(){if(py)return hc;py=1;var e=xt(),t=function(){return e.Date.now()};return hc=t,hc}var dc,vy;function yA(){if(vy)return dc;vy=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return dc=t,dc}var pc,yy;function mA(){if(yy)return pc;yy=1;var e=yA(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return pc=r,pc}var vc,my;function E0(){if(my)return vc;my=1;var e=mA(),t=Kt(),r=Qr(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=t(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=e(c);var l=a.test(c);return l||o.test(c)?u(c.slice(2),l?2:8):i.test(c)?n:+c}return vc=s,vc}var yc,gy;function gA(){if(gy)return yc;gy=1;var e=Kt(),t=vA(),r=E0(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var f,l,h,p,y,v,d=0,g=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(g=!!c.leading,x="maxWait"in c,h=x?i(r(c.maxWait)||0,s):h,w="trailing"in c?!!c.trailing:w);function O(C){var $=f,j=l;return f=l=void 0,d=C,p=u.apply(j,$),p}function m(C){return d=C,y=setTimeout(S,s),g?O(C):p}function b(C){var $=C-v,j=C-d,N=s-$;return x?a(N,h-j):N}function _(C){var $=C-v,j=C-d;return v===void 0||$>=s||$<0||x&&j>=h}function S(){var C=t();if(_(C))return A(C);y=setTimeout(S,b(C))}function A(C){return y=void 0,w&&f?O(C):(f=l=void 0,p)}function I(){y!==void 0&&clearTimeout(y),d=0,f=v=l=y=void 0}function M(){return y===void 0?p:A(t())}function T(){var C=t(),$=_(C);if(f=arguments,l=this,v=C,$){if(y===void 0)return m(v);if(x)return clearTimeout(y),y=setTimeout(S,s),O(v)}return y===void 0&&(y=setTimeout(S,s)),p}return T.cancel=I,T.flush=M,T}return yc=o,yc}var mc,by;function bA(){if(by)return mc;by=1;var e=gA(),t=Kt(),r="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return mc=n,mc}var xA=bA();const M0=de(xA);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 xy(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?xy(Object(r),!0).forEach(function(n){wA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wA(e,t,r){return t=OA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OA(e){var t=_A(e,"string");return $n(t)=="symbol"?t:t+""}function _A(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 SA(e,t){return TA(e)||jA(e,t)||PA(e,t)||AA()}function AA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PA(e,t){if(e){if(typeof e=="string")return wy(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 wy(e,t)}}function wy(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 jA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function TA(e){if(Array.isArray(e))return e}var at=L.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,s=u===void 0?"100%":u,c=e.minWidth,f=c===void 0?0:c,l=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,v=y===void 0?0:y,d=e.id,g=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,m=L.useRef(null),b=L.useRef();b.current=x,L.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 _=L.useState({containerWidth:i.width,containerHeight:i.height}),S=SA(_,2),A=S[0],I=S[1],M=L.useCallback(function(C,$){I(function(j){var N=Math.round(C),q=Math.round($);return j.containerWidth===N&&j.containerHeight===q?j:{containerWidth:N,containerHeight:q}})},[]);L.useEffect(function(){var C=function(z){var H,V=z[0].contentRect,W=V.width,X=V.height;M(W,X),(H=b.current)===null||H===void 0||H.call(b,W,X)};v>0&&(C=M0(C,v,{trailing:!0,leading:!1}));var $=new ResizeObserver(C),j=m.current.getBoundingClientRect(),N=j.width,q=j.height;return M(N,q),$.observe(m.current),function(){$.disconnect()}},[M,v]);var T=L.useMemo(function(){var C=A.containerWidth,$=A.containerHeight;if(C<0||$<0)return null;Tt(tr(o)||tr(s),`The width(%s) and height(%s) are both fixed numbers,
15
- maybe you don't need to use a ResponsiveContainer.`,o,s),Tt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var j=tr(o)?C:o,N=tr(s)?$:s;r&&r>0&&(j?N=j/r:N&&(j=N*r),h&&N>h&&(N=h)),Tt(j>0||N>0,`The width(%s) and height(%s) of chart should be greater than 0,
16
- please check the style of container, or the props width(%s) and height(%s),
17
- or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
18
- height and width.`,j,N,o,s,f,l,r);var q=!Array.isArray(p)&&jt(p.type).endsWith("Chart");return P.Children.map(p,function(F){return P.isValidElement(F)?L.cloneElement(F,Oi({width:j,height:N},q?{style:Oi({height:"100%",width:"100%",maxHeight:N,maxWidth:j},F.props.style)}:{})):F})},[r,p,s,h,l,f,A,o]);return P.createElement("div",{id:d?"".concat(d):void 0,className:ie("recharts-responsive-container",g),style:Oi(Oi({},O),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:h}),ref:m},T)}),On=function(t){return null};On.displayName="Cell";function In(e){"@babel/helpers - typeof";return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(e)}function Oy(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 Il(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Oy(Object(r),!0).forEach(function(n){EA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EA(e,t,r){return t=MA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MA(e){var t=CA(e,"string");return In(t)=="symbol"?t:t+""}function CA(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)}var gr={widthCache:{},cacheCount:0},$A=2e3,IA={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},_y="recharts_measurement_span";function kA(e){var t=Il({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var _n=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||pr.isSsr)return{width:0,height:0};var n=kA(r),i=JSON.stringify({text:t,copyStyle:n});if(gr.widthCache[i])return gr.widthCache[i];try{var a=document.getElementById(_y);a||(a=document.createElement("span"),a.setAttribute("id",_y),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Il(Il({},IA),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return gr.widthCache[i]=s,++gr.cacheCount>$A&&(gr.cacheCount=0,gr.widthCache={}),s}catch{return{width:0,height:0}}},NA=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Ki(e,t){return LA(e)||qA(e,t)||RA(e,t)||DA()}function DA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
19
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RA(e,t){if(e){if(typeof e=="string")return Sy(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 Sy(e,t)}}function Sy(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 qA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function LA(e){if(Array.isArray(e))return e}function BA(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,zA(n.key),n)}}function FA(e,t,r){return t&&Ay(e.prototype,t),r&&Ay(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zA(e){var t=WA(e,"string");return kn(t)=="symbol"?t:t+""}function WA(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 String(e)}var Py=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,jy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,UA=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,KA=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,C0={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},HA=Object.keys(C0),Or="NaN";function GA(e,t){return e*C0[t]}var _i=(function(){function e(t,r){BA(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!UA.test(r)&&(this.num=NaN,this.unit=""),HA.includes(r)&&(this.num=GA(t,r),this.unit="px")}return FA(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=KA.exec(r))!==null&&n!==void 0?n:[],a=Ki(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function $0(e){if(e.includes(Or))return Or;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Py.exec(t))!==null&&r!==void 0?r:[],i=Ki(n,4),a=i[1],o=i[2],u=i[3],s=_i.parse(a??""),c=_i.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return Or;t=t.replace(Py,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=jy.exec(t))!==null&&l!==void 0?l:[],p=Ki(h,4),y=p[1],v=p[2],d=p[3],g=_i.parse(y??""),x=_i.parse(d??""),w=v==="+"?g.add(x):g.subtract(x);if(w.isNaN())return Or;t=t.replace(jy,w.toString())}return t}var Ty=/\(([^()]*)\)/;function VA(e){for(var t=e;t.includes("(");){var r=Ty.exec(t),n=Ki(r,2),i=n[1];t=t.replace(Ty,$0(i))}return t}function XA(e){var t=e.replace(/\s+/g,"");return t=VA(t),t=$0(t),t}function YA(e){try{return XA(e)}catch{return Or}}function gc(e){var t=YA(e.slice(5,-1));return t===Or?"":t}var ZA=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],JA=["dx","dy","angle","className","breakAll"];function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kl.apply(this,arguments)}function Ey(e,t){if(e==null)return{};var r=QA(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 QA(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 My(e,t){return nP(e)||rP(e,t)||tP(e,t)||eP()}function eP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tP(e,t){if(e){if(typeof e=="string")return Cy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cy(e,t)}}function Cy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rP(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function nP(e){if(Array.isArray(e))return e}var I0=/[ \f\n\r\t\v\u2028\u2029]+/,k0=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];re(r)||(n?a=r.toString().split(""):a=r.toString().split(I0));var o=a.map(function(s){return{word:s,width:_n(s,i).width}}),u=n?0:_n(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},iP=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=B(o),l=u,h=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return j.reduce(function(N,q){var F=q.word,z=q.width,H=N[N.length-1];if(H&&(i==null||a||H.width+z+n<Number(i)))H.words.push(F),H.width+=z+n;else{var V={words:[F],width:z};N.push(V)}return N},[])},p=h(r),y=function(j){return j.reduce(function(N,q){return N.width>q.width?N:q})};if(!f)return p;for(var v="…",d=function(j){var N=l.slice(0,j),q=k0({breakAll:c,style:s,children:N+v}).wordsWithComputedWidth,F=h(q),z=F.length>o||y(F).width>Number(i);return[z,F]},g=0,x=l.length-1,w=0,O;g<=x&&w<=l.length-1;){var m=Math.floor((g+x)/2),b=m-1,_=d(b),S=My(_,2),A=S[0],I=S[1],M=d(m),T=My(M,1),C=T[0];if(!A&&!C&&(g=m+1),A&&C&&(x=m-1),!A&&C){O=I;break}w++}return O||p},$y=function(t){var r=re(t)?[]:t.toString().split(I0);return[{words:r}]},aP=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!pr.isSsr){var s,c,f=k0({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;s=l,c=h}else return $y(i);return iP({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return $y(i)},Iy="#808080",Hi=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,s=t.capHeight,c=s===void 0?"0.71em":s,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,g=d===void 0?Iy:d,x=Ey(t,ZA),w=L.useMemo(function(){return aP({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),O=x.dx,m=x.dy,b=x.angle,_=x.className,S=x.breakAll,A=Ey(x,JA);if(!je(n)||!je(a))return null;var I=n+(B(O)?O:0),M=a+(B(m)?m:0),T;switch(v){case"start":T=gc("calc(".concat(c,")"));break;case"middle":T=gc("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:T=gc("calc(".concat(w.length-1," * -").concat(u,")"));break}var C=[];if(l){var $=w[0].width,j=x.width;C.push("scale(".concat((B(j)?j/$:1)/$,")"))}return b&&C.push("rotate(".concat(b,", ").concat(I,", ").concat(M,")")),C.length&&(A.transform=C.join(" ")),P.createElement("text",kl({},ee(A,!0),{x:I,y:M,className:ie("recharts-text",_),textAnchor:p,fill:g.includes("url")?Iy:g}),w.map(function(N,q){var F=N.words.join(S?"":" ");return P.createElement("tspan",{x:I,dy:q===0?T:u,key:"".concat(F,"-").concat(q)},F)}))};function Ut(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function oP(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function rh(e){let t,r,n;e.length!==2?(t=Ut,r=(u,s)=>Ut(e(u),s),n=(u,s)=>e(u)-s):(t=e===Ut||e===oP?e:uP,r=e,n=e);function i(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<0?c=l+1:f=l}while(c<f)}return c}function a(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<=0?c=l+1:f=l}while(c<f)}return c}function o(u,s,c=0,f=u.length){const l=i(u,s,c,f-1);return l>c&&n(u[l-1],s)>-n(u[l],s)?l-1:l}return{left:i,center:o,right:a}}function uP(){return 0}function N0(e){return e===null?NaN:+e}function*sP(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const cP=rh(Ut),fi=cP.right;rh(N0).center;class ky extends Map{constructor(t,r=hP){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(Ny(this,t))}has(t){return super.has(Ny(this,t))}set(t,r){return super.set(lP(this,t),r)}delete(t){return super.delete(fP(this,t))}}function Ny({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function lP({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function fP({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function hP(e){return e!==null&&typeof e=="object"?e.valueOf():e}function dP(e=Ut){if(e===Ut)return D0;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 D0(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const pP=Math.sqrt(50),vP=Math.sqrt(10),yP=Math.sqrt(2);function Gi(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>=pP?10:a>=vP?5:a>=yP?2:1;let u,s,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),s=Math.round(t*c),u/c<e&&++u,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),s=Math.round(t/c),u*c<e&&++u,s*c>t&&--s),s<u&&.5<=r&&r<2?Gi(e,t,r*2):[u,s,c]}function Nl(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Gi(t,e,r):Gi(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)s[c]=(a-c)/-o;else for(let c=0;c<u;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)s[c]=(i+c)/-o;else for(let c=0;c<u;++c)s[c]=(i+c)*o;return s}function Dl(e,t,r){return t=+t,e=+e,r=+r,Gi(e,t,r)[2]}function Rl(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Dl(t,e,r):Dl(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Dy(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Ry(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function R0(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?D0:dP(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),p=Math.max(r,Math.floor(t-c*l/s+h)),y=Math.min(n,Math.floor(t+(s-c)*l/s+h));R0(e,t,p,y,i)}const a=e[t];let o=r,u=n;for(fn(e,r,t),i(e[n],a)>0&&fn(e,r,n);o<u;){for(fn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?fn(e,r,u):(++u,fn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function fn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function mP(e,t,r){if(e=Float64Array.from(sP(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Ry(e);if(t>=1)return Dy(e);var n,i=(n-1)*t,a=Math.floor(i),o=Dy(R0(e,a).subarray(0,a+1)),u=Ry(e.subarray(a+1));return o+(u-o)*(i-a)}}function gP(e,t,r=N0){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 bP(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 it(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Rt(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 ql=Symbol("implicit");function nh(){var e=new ky,t=[],r=[],n=ql;function i(a){let o=e.get(a);if(o===void 0){if(n!==ql)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new ky;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return nh(t,r).unknown(n)},it.apply(i,arguments),i}function Nn(){var e=nh().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=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-s+c*2),u&&(a=Math.floor(a)),y+=(v-y-a*(h-s))*f,o=a*(1-s),u&&(y=Math.round(y),o=Math.round(o));var d=bP(h).map(function(g){return y+a*g});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?(s=Math.min(1,c=+h),l()):s},e.paddingInner=function(h){return arguments.length?(s=Math.min(1,h),l()):s},e.paddingOuter=function(h){return arguments.length?(c=+h,l()):c},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},e.copy=function(){return Nn(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},it.apply(l(),arguments)}function q0(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return q0(t())},e}function Sn(){return q0(Nn.apply(null,arguments).paddingInner(1))}function ih(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function L0(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function hi(){}var Dn=.7,Vi=1/Dn,Pr="\\s*([+-]?\\d+)\\s*",Rn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",yt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xP=/^#([0-9a-f]{3,8})$/,wP=new RegExp(`^rgb\\(${Pr},${Pr},${Pr}\\)$`),OP=new RegExp(`^rgb\\(${yt},${yt},${yt}\\)$`),_P=new RegExp(`^rgba\\(${Pr},${Pr},${Pr},${Rn}\\)$`),SP=new RegExp(`^rgba\\(${yt},${yt},${yt},${Rn}\\)$`),AP=new RegExp(`^hsl\\(${Rn},${yt},${yt}\\)$`),PP=new RegExp(`^hsla\\(${Rn},${yt},${yt},${Rn}\\)$`),qy={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};ih(hi,qn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ly,formatHex:Ly,formatHex8:jP,formatHsl:TP,formatRgb:By,toString:By});function Ly(){return this.rgb().formatHex()}function jP(){return this.rgb().formatHex8()}function TP(){return B0(this).formatHsl()}function By(){return this.rgb().formatRgb()}function qn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=xP.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Fy(t):r===3?new ze(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Si(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Si(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=wP.exec(e))?new ze(t[1],t[2],t[3],1):(t=OP.exec(e))?new ze(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=_P.exec(e))?Si(t[1],t[2],t[3],t[4]):(t=SP.exec(e))?Si(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=AP.exec(e))?Uy(t[1],t[2]/100,t[3]/100,1):(t=PP.exec(e))?Uy(t[1],t[2]/100,t[3]/100,t[4]):qy.hasOwnProperty(e)?Fy(qy[e]):e==="transparent"?new ze(NaN,NaN,NaN,0):null}function Fy(e){return new ze(e>>16&255,e>>8&255,e&255,1)}function Si(e,t,r,n){return n<=0&&(e=t=r=NaN),new ze(e,t,r,n)}function EP(e){return e instanceof hi||(e=qn(e)),e?(e=e.rgb(),new ze(e.r,e.g,e.b,e.opacity)):new ze}function Ll(e,t,r,n){return arguments.length===1?EP(e):new ze(e,t,r,n??1)}function ze(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}ih(ze,Ll,L0(hi,{brighter(e){return e=e==null?Vi:Math.pow(Vi,e),new ze(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Dn:Math.pow(Dn,e),new ze(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ze(or(this.r),or(this.g),or(this.b),Xi(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:zy,formatHex:zy,formatHex8:MP,formatRgb:Wy,toString:Wy}));function zy(){return`#${rr(this.r)}${rr(this.g)}${rr(this.b)}`}function MP(){return`#${rr(this.r)}${rr(this.g)}${rr(this.b)}${rr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Wy(){const e=Xi(this.opacity);return`${e===1?"rgb(":"rgba("}${or(this.r)}, ${or(this.g)}, ${or(this.b)}${e===1?")":`, ${e})`}`}function Xi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function or(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function rr(e){return e=or(e),(e<16?"0":"")+e.toString(16)}function Uy(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new lt(e,t,r,n)}function B0(e){if(e instanceof lt)return new lt(e.h,e.s,e.l,e.opacity);if(e instanceof hi||(e=qn(e)),!e)return new lt;if(e instanceof lt)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,s=(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/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new lt(o,u,s,e.opacity)}function CP(e,t,r,n){return arguments.length===1?B0(e):new lt(e,t,r,n??1)}function lt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}ih(lt,CP,L0(hi,{brighter(e){return e=e==null?Vi:Math.pow(Vi,e),new lt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Dn:Math.pow(Dn,e),new lt(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 ze(bc(e>=240?e-240:e+120,i,n),bc(e,i,n),bc(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new lt(Ky(this.h),Ai(this.s),Ai(this.l),Xi(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=Xi(this.opacity);return`${e===1?"hsl(":"hsla("}${Ky(this.h)}, ${Ai(this.s)*100}%, ${Ai(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ky(e){return e=(e||0)%360,e<0?e+360:e}function Ai(e){return Math.max(0,Math.min(1,e||0))}function bc(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 ah=e=>()=>e;function $P(e,t){return function(r){return e+r*t}}function IP(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 kP(e){return(e=+e)==1?F0:function(t,r){return r-t?IP(t,r,e):ah(isNaN(t)?r:t)}}function F0(e,t){var r=t-e;return r?$P(e,r):ah(isNaN(e)?t:e)}const Hy=(function e(t){var r=kP(t);function n(i,a){var o=r((i=Ll(i)).r,(a=Ll(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=F0(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=c(f),i+""}}return n.gamma=e,n})(1);function NP(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 DP(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function RP(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]=an(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 qP(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Yi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function LP(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]=an(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Bl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xc=new RegExp(Bl.source,"g");function BP(e){return function(){return e}}function FP(e){return function(t){return e(t)+""}}function zP(e,t){var r=Bl.lastIndex=xc.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=Bl.exec(e))&&(i=xc.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:Yi(n,i)})),r=xc.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?FP(s[0].x):BP(t):(t=s.length,function(c){for(var f=0,l;f<t;++f)u[(l=s[f]).i]=l.x(c);return u.join("")})}function an(e,t){var r=typeof t,n;return t==null||r==="boolean"?ah(t):(r==="number"?Yi:r==="string"?(n=qn(t))?(t=n,Hy):zP:t instanceof qn?Hy:t instanceof Date?qP:DP(t)?NP:Array.isArray(t)?RP:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?LP:Yi)(e,t)}function oh(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function WP(e,t){t===void 0&&(t=e,e=an);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 UP(e){return function(){return e}}function Zi(e){return+e}var Gy=[0,1];function Be(e){return e}function Fl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:UP(isNaN(t)?NaN:.5)}function KP(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function HP(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Fl(i,n),a=r(o,a)):(n=Fl(n,i),a=r(a,o)),function(u){return a(n(u))}}function GP(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]=Fl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=fi(e,u,1,n)-1;return a[s](i[s](u))}}function di(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ka(){var e=Gy,t=Gy,r=an,n,i,a,o=Be,u,s,c;function f(){var h=Math.min(e.length,t.length);return o!==Be&&(o=KP(e[0],e[h-1])),u=h>2?GP:HP,s=c=null,l}function l(h){return h==null||isNaN(h=+h)?a:(s||(s=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((c||(c=u(t,e.map(n),Yi)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Zi),f()):e.slice()},l.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},l.rangeRound=function(h){return t=Array.from(h),r=oh,f()},l.clamp=function(h){return arguments.length?(o=h?!0:Be,f()):o!==Be},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 uh(){return Ka()(Be,Be)}function VP(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ji(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 kr(e){return e=Ji(Math.abs(e)),e?e[1]:NaN}function XP(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function YP(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var ZP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ln(e){if(!(t=ZP.exec(e)))throw new Error("invalid format: "+e);var t;return new sh({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]})}Ln.prototype=sh.prototype;function sh(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+""}sh.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 JP(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 QP(e,t){var r=Ji(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")+Ji(e,Math.max(0,t+a-1))[0]}function Vy(e,t){var r=Ji(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 Xy={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:VP,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)=>Vy(e*100,t),r:Vy,s:QP,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Yy(e){return e}var Zy=Array.prototype.map,Jy=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ej(e){var t=e.grouping===void 0||e.thousands===void 0?Yy:XP(Zy.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?Yy:YP(Zy.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(l,h){l=Ln(l);var p=l.fill,y=l.align,v=l.sign,d=l.symbol,g=l.zero,x=l.width,w=l.comma,O=l.precision,m=l.trim,b=l.type;b==="n"?(w=!0,b="g"):Xy[b]||(O===void 0&&(O=12),m=!0,b="g"),(g||p==="0"&&y==="=")&&(g=!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=Xy[b],I=/[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 M(T){var C=_,$=S,j,N,q;if(b==="c")$=A(T)+$,T="";else{T=+T;var F=T<0||1/T<0;if(T=isNaN(T)?s:A(Math.abs(T),O),m&&(T=JP(T)),F&&+T==0&&v!=="+"&&(F=!1),C=(F?v==="("?v:u:v==="-"||v==="("?"":v)+C,$=(b==="s"&&!isNaN(T)&&Qi!==void 0?Jy[8+Qi/3]:"")+$+(F&&v==="("?")":""),I){for(j=-1,N=T.length;++j<N;)if(q=T.charCodeAt(j),48>q||q>57){$=(q===46?i+T.slice(j+1):T.slice(j))+$,T=T.slice(0,j);break}}}w&&!g&&(T=t(T,1/0));var z=C.length+T.length+$.length,H=z<x?new Array(x-z+1).join(p):"";switch(w&&g&&(T=t(H+T,H.length?x-$.length:1/0),H=""),y){case"<":T=C+T+$+H;break;case"=":T=C+H+T+$;break;case"^":T=H.slice(0,z=H.length>>1)+C+T+$+H.slice(z);break;default:T=H+C+T+$;break}return a(T)}return M.toString=function(){return l+""},M}function f(l,h){var p=Math.max(-8,Math.min(8,Math.floor(kr(h)/3)))*3,y=Math.pow(10,-p),v=c((l=Ln(l),l.type="f",l),{suffix:Jy[8+p/3]});return function(d){return v(y*d)}}return{format:c,formatPrefix:f}}var Pi,ch,z0;tj({thousands:",",grouping:[3],currency:["$",""]});function tj(e){return Pi=ej(e),ch=Pi.format,z0=Pi.formatPrefix,Pi}function rj(e){return Math.max(0,-kr(Math.abs(e)))}function nj(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(kr(t)/3)))*3-kr(Math.abs(e)))}function ij(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,kr(t)-kr(e))+1}function W0(e,t,r,n){var i=Rl(e,t,r),a;switch(n=Ln(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=nj(i,o))&&(n.precision=a),z0(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=ij(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=rj(i))&&(n.precision=a-(n.type==="%")*2);break}}return ch(n)}function Gt(e){var t=e.domain;return e.ticks=function(r){var n=t();return Nl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return W0(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],s,c,f=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);f-- >0;){if(c=Dl(o,u,r),c===s)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;s=c}return e},e}function ea(){var e=uh();return e.copy=function(){return di(e,ea())},it.apply(e,arguments),Gt(e)}function U0(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,Zi),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return U0(e).unknown(t)},e=arguments.length?Array.from(e,Zi):[0,1],Gt(r)}function K0(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 Qy(e){return Math.log(e)}function em(e){return Math.exp(e)}function aj(e){return-Math.log(-e)}function oj(e){return-Math.exp(-e)}function uj(e){return isFinite(e)?+("1e"+e):e<0?0:e}function sj(e){return e===10?uj:e===Math.E?Math.exp:t=>Math.pow(e,t)}function cj(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 tm(e){return(t,r)=>-e(-t,r)}function lh(e){const t=e(Qy,em),r=t.domain;let n=10,i,a;function o(){return i=cj(n),a=sj(n),r()[0]<0?(i=tm(i),a=tm(a),e(aj,oj)):e(Qy,em),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 s=r();let c=s[0],f=s[s.length-1];const l=f<c;l&&([c,f]=[f,c]);let h=i(c),p=i(f),y,v;const d=u==null?10:+u;let g=[];if(!(n%1)&&p-h<d){if(h=Math.floor(h),p=Math.ceil(p),c>0){for(;h<=p;++h)for(y=1;y<n;++y)if(v=h<0?y/a(-h):y*a(h),!(v<c)){if(v>f)break;g.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<c)){if(v>f)break;g.push(v)}g.length*2<d&&(g=Nl(c,f,d))}else g=Nl(h,p,Math.min(p-h,d)).map(a);return l?g.reverse():g},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=Ln(s)).precision==null&&(s.trim=!0),s=ch(s)),u===1/0)return s;const c=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<=c?s(f):""}},t.nice=()=>r(K0(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function H0(){const e=lh(Ka()).domain([1,10]);return e.copy=()=>di(e,H0()).base(e.base()),it.apply(e,arguments),e}function rm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function nm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function fh(e){var t=1,r=e(rm(t),nm(t));return r.constant=function(n){return arguments.length?e(rm(t=+n),nm(t)):t},Gt(r)}function G0(){var e=fh(Ka());return e.copy=function(){return di(e,G0()).constant(e.constant())},it.apply(e,arguments)}function im(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function lj(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function fj(e){return e<0?-e*e:e*e}function hh(e){var t=e(Be,Be),r=1;function n(){return r===1?e(Be,Be):r===.5?e(lj,fj):e(im(r),im(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Gt(t)}function dh(){var e=hh(Ka());return e.copy=function(){return di(e,dh()).exponent(e.exponent())},it.apply(e,arguments),e}function hj(){return dh.apply(null,arguments).exponent(.5)}function am(e){return Math.sign(e)*e*e}function dj(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function V0(){var e=uh(),t=[0,1],r=!1,n;function i(a){var o=dj(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(am(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,Zi)).map(am)),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 V0(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},it.apply(i,arguments),Gt(i)}function X0(){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]=gP(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[fi(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(Ut),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 X0().domain(e).range(t).unknown(n)},it.apply(a,arguments)}function Y0(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[fi(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Y0().domain([e,t]).range(i).unknown(a)},it.apply(Gt(o),arguments)}function Z0(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[fi(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Z0().domain(e).range(t).unknown(r)},it.apply(i,arguments)}const wc=new Date,Oc=new Date;function Te(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>Te(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(wc.setTime(+a),Oc.setTime(+o),e(wc),e(Oc),Math.floor(r(wc,Oc))),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 ta=Te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ta.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Te(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ta);ta.range;const St=1e3,et=St*60,At=et*60,$t=At*24,ph=$t*7,om=$t*30,_c=$t*365,nr=Te(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*St)},(e,t)=>(t-e)/St,e=>e.getUTCSeconds());nr.range;const vh=Te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*St)},(e,t)=>{e.setTime(+e+t*et)},(e,t)=>(t-e)/et,e=>e.getMinutes());vh.range;const yh=Te(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*et)},(e,t)=>(t-e)/et,e=>e.getUTCMinutes());yh.range;const mh=Te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*St-e.getMinutes()*et)},(e,t)=>{e.setTime(+e+t*At)},(e,t)=>(t-e)/At,e=>e.getHours());mh.range;const gh=Te(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*At)},(e,t)=>(t-e)/At,e=>e.getUTCHours());gh.range;const pi=Te(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*et)/$t,e=>e.getDate()-1);pi.range;const Ha=Te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/$t,e=>e.getUTCDate()-1);Ha.range;const J0=Te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/$t,e=>Math.floor(e/$t));J0.range;function vr(e){return Te(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*et)/ph)}const Ga=vr(0),ra=vr(1),pj=vr(2),vj=vr(3),Nr=vr(4),yj=vr(5),mj=vr(6);Ga.range;ra.range;pj.range;vj.range;Nr.range;yj.range;mj.range;function yr(e){return Te(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/ph)}const Va=yr(0),na=yr(1),gj=yr(2),bj=yr(3),Dr=yr(4),xj=yr(5),wj=yr(6);Va.range;na.range;gj.range;bj.range;Dr.range;xj.range;wj.range;const bh=Te(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());bh.range;const xh=Te(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());xh.range;const It=Te(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());It.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Te(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});It.range;const kt=Te(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());kt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Te(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});kt.range;function Q0(e,t,r,n,i,a){const o=[[nr,1,St],[nr,5,5*St],[nr,15,15*St],[nr,30,30*St],[a,1,et],[a,5,5*et],[a,15,15*et],[a,30,30*et],[i,1,At],[i,3,3*At],[i,6,6*At],[i,12,12*At],[n,1,$t],[n,2,2*$t],[r,1,ph],[t,1,om],[t,3,3*om],[e,1,_c]];function u(c,f,l){const h=f<c;h&&([c,f]=[f,c]);const p=l&&typeof l.range=="function"?l:s(c,f,l),y=p?p.range(c,+f+1):[];return h?y.reverse():y}function s(c,f,l){const h=Math.abs(f-c)/l,p=rh(([,,d])=>d).right(o,h);if(p===o.length)return e.every(Rl(c/_c,f/_c,l));if(p===0)return ta.every(Math.max(Rl(c,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,s]}const[Oj,_j]=Q0(kt,xh,Va,J0,gh,yh),[Sj,Aj]=Q0(It,bh,Ga,pi,mh,vh);function Sc(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 Ac(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 hn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Pj(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=dn(i),f=pn(i),l=dn(a),h=pn(a),p=dn(o),y=pn(o),v=dn(u),d=pn(u),g=dn(s),x=pn(s),w={a:q,A:F,b:z,B:H,c:null,d:hm,e:hm,f:Xj,g:aT,G:uT,H:Hj,I:Gj,j:Vj,L:ex,m:Yj,M:Zj,p:V,q:W,Q:vm,s:ym,S:Jj,u:Qj,U:eT,V:tT,w:rT,W:nT,x:null,X:null,y:iT,Y:oT,Z:sT,"%":pm},O={a:X,A:ce,b:ye,B:_e,c:null,d:dm,e:dm,f:hT,g:OT,G:ST,H:cT,I:lT,j:fT,L:rx,m:dT,M:pT,p:Ve,q:Se,Q:vm,s:ym,S:vT,u:yT,U:mT,V:gT,w:bT,W:xT,x:null,X:null,y:wT,Y:_T,Z:AT,"%":pm},m={a:I,A:M,b:T,B:C,c:$,d:lm,e:lm,f:zj,g:cm,G:sm,H:fm,I:fm,j:qj,L:Fj,m:Rj,M:Lj,p:A,q:Dj,Q:Uj,s:Kj,S:Bj,u:Cj,U:$j,V:Ij,w:Mj,W:kj,x:j,X:N,y:cm,Y:sm,Z:Nj,"%":Wj};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(U,Z){return function(J){var R=[],pe=-1,ne=0,D=U.length,K,te,be;for(J instanceof Date||(J=new Date(+J));++pe<D;)U.charCodeAt(pe)===37&&(R.push(U.slice(ne,pe)),(te=um[K=U.charAt(++pe)])!=null?K=U.charAt(++pe):te=K==="e"?" ":"0",(be=Z[K])&&(K=be(J,te)),R.push(K),ne=pe+1);return R.push(U.slice(ne,pe)),R.join("")}}function _(U,Z){return function(J){var R=hn(1900,void 0,1),pe=S(R,U,J+="",0),ne,D;if(pe!=J.length)return null;if("Q"in R)return new Date(R.Q);if("s"in R)return new Date(R.s*1e3+("L"in R?R.L:0));if(Z&&!("Z"in R)&&(R.Z=0),"p"in R&&(R.H=R.H%12+R.p*12),R.m===void 0&&(R.m="q"in R?R.q:0),"V"in R){if(R.V<1||R.V>53)return null;"w"in R||(R.w=1),"Z"in R?(ne=Ac(hn(R.y,0,1)),D=ne.getUTCDay(),ne=D>4||D===0?na.ceil(ne):na(ne),ne=Ha.offset(ne,(R.V-1)*7),R.y=ne.getUTCFullYear(),R.m=ne.getUTCMonth(),R.d=ne.getUTCDate()+(R.w+6)%7):(ne=Sc(hn(R.y,0,1)),D=ne.getDay(),ne=D>4||D===0?ra.ceil(ne):ra(ne),ne=pi.offset(ne,(R.V-1)*7),R.y=ne.getFullYear(),R.m=ne.getMonth(),R.d=ne.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),D="Z"in R?Ac(hn(R.y,0,1)).getUTCDay():Sc(hn(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(D+5)%7:R.w+R.U*7-(D+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,Ac(R)):Sc(R)}}function S(U,Z,J,R){for(var pe=0,ne=Z.length,D=J.length,K,te;pe<ne;){if(R>=D)return-1;if(K=Z.charCodeAt(pe++),K===37){if(K=Z.charAt(pe++),te=m[K in um?Z.charAt(pe++):K],!te||(R=te(U,J,R))<0)return-1}else if(K!=J.charCodeAt(R++))return-1}return R}function A(U,Z,J){var R=c.exec(Z.slice(J));return R?(U.p=f.get(R[0].toLowerCase()),J+R[0].length):-1}function I(U,Z,J){var R=p.exec(Z.slice(J));return R?(U.w=y.get(R[0].toLowerCase()),J+R[0].length):-1}function M(U,Z,J){var R=l.exec(Z.slice(J));return R?(U.w=h.get(R[0].toLowerCase()),J+R[0].length):-1}function T(U,Z,J){var R=g.exec(Z.slice(J));return R?(U.m=x.get(R[0].toLowerCase()),J+R[0].length):-1}function C(U,Z,J){var R=v.exec(Z.slice(J));return R?(U.m=d.get(R[0].toLowerCase()),J+R[0].length):-1}function $(U,Z,J){return S(U,t,Z,J)}function j(U,Z,J){return S(U,r,Z,J)}function N(U,Z,J){return S(U,n,Z,J)}function q(U){return o[U.getDay()]}function F(U){return a[U.getDay()]}function z(U){return s[U.getMonth()]}function H(U){return u[U.getMonth()]}function V(U){return i[+(U.getHours()>=12)]}function W(U){return 1+~~(U.getMonth()/3)}function X(U){return o[U.getUTCDay()]}function ce(U){return a[U.getUTCDay()]}function ye(U){return s[U.getUTCMonth()]}function _e(U){return u[U.getUTCMonth()]}function Ve(U){return i[+(U.getUTCHours()>=12)]}function Se(U){return 1+~~(U.getUTCMonth()/3)}return{format:function(U){var Z=b(U+="",w);return Z.toString=function(){return U},Z},parse:function(U){var Z=_(U+="",!1);return Z.toString=function(){return U},Z},utcFormat:function(U){var Z=b(U+="",O);return Z.toString=function(){return U},Z},utcParse:function(U){var Z=_(U+="",!0);return Z.toString=function(){return U},Z}}}var um={"-":"",_:" ",0:"0"},Me=/^\s*\d+/,jj=/^%/,Tj=/[\\^$*+?|[\]().{}]/g;function ae(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 Ej(e){return e.replace(Tj,"\\$&")}function dn(e){return new RegExp("^(?:"+e.map(Ej).join("|")+")","i")}function pn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Mj(e,t,r){var n=Me.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Cj(e,t,r){var n=Me.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function $j(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Ij(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function kj(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function sm(e,t,r){var n=Me.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function cm(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Nj(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 Dj(e,t,r){var n=Me.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Rj(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function lm(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function qj(e,t,r){var n=Me.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function fm(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Lj(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Bj(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Fj(e,t,r){var n=Me.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function zj(e,t,r){var n=Me.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Wj(e,t,r){var n=jj.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Uj(e,t,r){var n=Me.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Kj(e,t,r){var n=Me.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function hm(e,t){return ae(e.getDate(),t,2)}function Hj(e,t){return ae(e.getHours(),t,2)}function Gj(e,t){return ae(e.getHours()%12||12,t,2)}function Vj(e,t){return ae(1+pi.count(It(e),e),t,3)}function ex(e,t){return ae(e.getMilliseconds(),t,3)}function Xj(e,t){return ex(e,t)+"000"}function Yj(e,t){return ae(e.getMonth()+1,t,2)}function Zj(e,t){return ae(e.getMinutes(),t,2)}function Jj(e,t){return ae(e.getSeconds(),t,2)}function Qj(e){var t=e.getDay();return t===0?7:t}function eT(e,t){return ae(Ga.count(It(e)-1,e),t,2)}function tx(e){var t=e.getDay();return t>=4||t===0?Nr(e):Nr.ceil(e)}function tT(e,t){return e=tx(e),ae(Nr.count(It(e),e)+(It(e).getDay()===4),t,2)}function rT(e){return e.getDay()}function nT(e,t){return ae(ra.count(It(e)-1,e),t,2)}function iT(e,t){return ae(e.getFullYear()%100,t,2)}function aT(e,t){return e=tx(e),ae(e.getFullYear()%100,t,2)}function oT(e,t){return ae(e.getFullYear()%1e4,t,4)}function uT(e,t){var r=e.getDay();return e=r>=4||r===0?Nr(e):Nr.ceil(e),ae(e.getFullYear()%1e4,t,4)}function sT(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ae(t/60|0,"0",2)+ae(t%60,"0",2)}function dm(e,t){return ae(e.getUTCDate(),t,2)}function cT(e,t){return ae(e.getUTCHours(),t,2)}function lT(e,t){return ae(e.getUTCHours()%12||12,t,2)}function fT(e,t){return ae(1+Ha.count(kt(e),e),t,3)}function rx(e,t){return ae(e.getUTCMilliseconds(),t,3)}function hT(e,t){return rx(e,t)+"000"}function dT(e,t){return ae(e.getUTCMonth()+1,t,2)}function pT(e,t){return ae(e.getUTCMinutes(),t,2)}function vT(e,t){return ae(e.getUTCSeconds(),t,2)}function yT(e){var t=e.getUTCDay();return t===0?7:t}function mT(e,t){return ae(Va.count(kt(e)-1,e),t,2)}function nx(e){var t=e.getUTCDay();return t>=4||t===0?Dr(e):Dr.ceil(e)}function gT(e,t){return e=nx(e),ae(Dr.count(kt(e),e)+(kt(e).getUTCDay()===4),t,2)}function bT(e){return e.getUTCDay()}function xT(e,t){return ae(na.count(kt(e)-1,e),t,2)}function wT(e,t){return ae(e.getUTCFullYear()%100,t,2)}function OT(e,t){return e=nx(e),ae(e.getUTCFullYear()%100,t,2)}function _T(e,t){return ae(e.getUTCFullYear()%1e4,t,4)}function ST(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Dr(e):Dr.ceil(e),ae(e.getUTCFullYear()%1e4,t,4)}function AT(){return"+0000"}function pm(){return"%"}function vm(e){return+e}function ym(e){return Math.floor(+e/1e3)}var br,ix,ax;PT({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 PT(e){return br=Pj(e),ix=br.format,br.parse,ax=br.utcFormat,br.utcParse,br}function jT(e){return new Date(e)}function TT(e){return e instanceof Date?+e:+new Date(+e)}function wh(e,t,r,n,i,a,o,u,s,c){var f=uh(),l=f.invert,h=f.domain,p=c(".%L"),y=c(":%S"),v=c("%I:%M"),d=c("%I %p"),g=c("%a %d"),x=c("%b %d"),w=c("%B"),O=c("%Y");function m(b){return(s(b)<b?p:u(b)<b?y:o(b)<b?v:a(b)<b?d:n(b)<b?i(b)<b?g:x: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,TT)):h().map(jT)},f.ticks=function(b){var _=h();return e(_[0],_[_.length-1],b??10)},f.tickFormat=function(b,_){return _==null?m:c(_)},f.nice=function(b){var _=h();return(!b||typeof b.range!="function")&&(b=t(_[0],_[_.length-1],b??10)),b?h(K0(_,b)):f},f.copy=function(){return di(f,wh(e,t,r,n,i,a,o,u,s,c))},f}function ET(){return it.apply(wh(Sj,Aj,It,bh,Ga,pi,mh,vh,nr,ix).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function MT(){return it.apply(wh(Oj,_j,kt,xh,Va,Ha,gh,yh,nr,ax).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Xa(){var e=0,t=1,r,n,i,a,o=Be,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(u=!!l,c):u},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(h){var p,y;return arguments.length?([p,y]=h,o=l(p,y),c):[o(0),o(1)]}}return c.range=f(an),c.rangeRound=f(oh),c.unknown=function(l){return arguments.length?(s=l,c):s},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),c}}function Vt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function ox(){var e=Gt(Xa()(Be));return e.copy=function(){return Vt(e,ox())},Rt.apply(e,arguments)}function ux(){var e=lh(Xa()).domain([1,10]);return e.copy=function(){return Vt(e,ux()).base(e.base())},Rt.apply(e,arguments)}function sx(){var e=fh(Xa());return e.copy=function(){return Vt(e,sx()).constant(e.constant())},Rt.apply(e,arguments)}function Oh(){var e=hh(Xa());return e.copy=function(){return Vt(e,Oh()).exponent(e.exponent())},Rt.apply(e,arguments)}function CT(){return Oh.apply(null,arguments).exponent(.5)}function cx(){var e=[],t=Be;function r(n){if(n!=null&&!isNaN(n=+n))return t((fi(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Ut),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)=>mP(e,a/n))},r.copy=function(){return cx(t).domain(e)},Rt.apply(r,arguments)}function Ya(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=Be,f,l=!1,h;function p(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:s),c(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),s=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?(c=v,p):c};function y(v){return function(d){var g,x,w;return arguments.length?([g,x,w]=d,c=WP(v,[g,x,w]),p):[c(0),c(.5),c(1)]}}return p.range=y(an),p.rangeRound=y(oh),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),s=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function lx(){var e=Gt(Ya()(Be));return e.copy=function(){return Vt(e,lx())},Rt.apply(e,arguments)}function fx(){var e=lh(Ya()).domain([.1,1,10]);return e.copy=function(){return Vt(e,fx()).base(e.base())},Rt.apply(e,arguments)}function hx(){var e=fh(Ya());return e.copy=function(){return Vt(e,hx()).constant(e.constant())},Rt.apply(e,arguments)}function _h(){var e=hh(Ya());return e.copy=function(){return Vt(e,_h()).exponent(e.exponent())},Rt.apply(e,arguments)}function $T(){return _h.apply(null,arguments).exponent(.5)}const mm=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Nn,scaleDiverging:lx,scaleDivergingLog:fx,scaleDivergingPow:_h,scaleDivergingSqrt:$T,scaleDivergingSymlog:hx,scaleIdentity:U0,scaleImplicit:ql,scaleLinear:ea,scaleLog:H0,scaleOrdinal:nh,scalePoint:Sn,scalePow:dh,scaleQuantile:X0,scaleQuantize:Y0,scaleRadial:V0,scaleSequential:ox,scaleSequentialLog:ux,scaleSequentialPow:Oh,scaleSequentialQuantile:cx,scaleSequentialSqrt:CT,scaleSequentialSymlog:sx,scaleSqrt:hj,scaleSymlog:G0,scaleThreshold:Z0,scaleTime:ET,scaleUtc:MT,tickFormat:W0},Symbol.toStringTag,{value:"Module"}));var Pc,gm;function dx(){if(gm)return Pc;gm=1;var e=Qr();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],s=n(u);if(s!=null&&(c===void 0?s===s&&!e(s):i(s,c)))var c=s,f=u}return f}return Pc=t,Pc}var jc,bm;function IT(){if(bm)return jc;bm=1;function e(t,r){return t>r}return jc=e,jc}var Tc,xm;function kT(){if(xm)return Tc;xm=1;var e=dx(),t=IT(),r=nn();function n(i){return i&&i.length?e(i,r,t):void 0}return Tc=n,Tc}var NT=kT();const zt=de(NT);var Ec,wm;function DT(){if(wm)return Ec;wm=1;function e(t,r){return t<r}return Ec=e,Ec}var Mc,Om;function RT(){if(Om)return Mc;Om=1;var e=dx(),t=DT(),r=nn();function n(i){return i&&i.length?e(i,r,t):void 0}return Mc=n,Mc}var qT=RT();const Za=de(qT);var Cc,_m;function LT(){if(_m)return Cc;_m=1;var e=Lf(),t=Ht(),r=_0(),n=We();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return Cc=i,Cc}var $c,Sm;function BT(){if(Sm)return $c;Sm=1;var e=w0(),t=LT();function r(n,i){return e(t(n,i),1)}return $c=r,$c}var FT=BT();const zT=de(FT);var Ic,Am;function WT(){if(Am)return Ic;Am=1;var e=Jf();function t(r,n){return e(r,n)}return Ic=t,Ic}var UT=WT();const Rr=de(UT);var on=1e9,KT={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Ah,me=!0,nt="[DecimalError] ",ur=nt+"Invalid argument: ",Sh=nt+"Exponent out of range: ",un=Math.floor,er=Math.pow,HT=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ge,Ee=1e7,ve=7,px=9007199254740991,ia=un(px/ve),G={};G.absoluteValue=G.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};G.comparedTo=G.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};G.decimalPlaces=G.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ve;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};G.dividedBy=G.div=function(e){return Mt(this,new this.constructor(e))};G.dividedToIntegerBy=G.idiv=function(e){var t=this,r=t.constructor;return le(Mt(t,new r(e),0,1),r.precision)};G.equals=G.eq=function(e){return!this.cmp(e)};G.exponent=function(){return Oe(this)};G.greaterThan=G.gt=function(e){return this.cmp(e)>0};G.greaterThanOrEqualTo=G.gte=function(e){return this.cmp(e)>=0};G.isInteger=G.isint=function(){return this.e>this.d.length-2};G.isNegative=G.isneg=function(){return this.s<0};G.isPositive=G.ispos=function(){return this.s>0};G.isZero=function(){return this.s===0};G.lessThan=G.lt=function(e){return this.cmp(e)<0};G.lessThanOrEqualTo=G.lte=function(e){return this.cmp(e)<1};G.logarithm=G.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(Ge))throw Error(nt+"NaN");if(r.s<1)throw Error(nt+(r.s?"NaN":"-Infinity"));return r.eq(Ge)?new n(0):(me=!1,t=Mt(Bn(r,a),Bn(e,a),a),me=!0,le(t,i))};G.minus=G.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?mx(t,e):vx(t,(e.s=-e.s,e))};G.modulo=G.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(nt+"NaN");return r.s?(me=!1,t=Mt(r,e,0,1).times(e),me=!0,r.minus(t)):le(new n(r),i)};G.naturalExponential=G.exp=function(){return yx(this)};G.naturalLogarithm=G.ln=function(){return Bn(this)};G.negated=G.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};G.plus=G.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?vx(t,e):mx(t,(e.s=-e.s,e))};G.precision=G.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ur+e);if(t=Oe(i)+1,n=i.d.length-1,r=n*ve+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};G.squareRoot=G.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(nt+"NaN")}for(e=Oe(u),me=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=pt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=un((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(Mt(u,a,o+2)).times(.5),pt(a.d).slice(0,o)===(t=pt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(le(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return me=!0,le(n,r)};G.times=G.mul=function(e){var t,r,n,i,a,o,u,s,c,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,s=h.length,c=p.length,s<c&&(a=h,h=p,p=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+p[n]*h[i-n-1]+t,a[i--]=u%Ee|0,t=u/Ee|0;a[i]=(a[i]+t)%Ee|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,me?le(e,l.precision):e};G.toDecimalPlaces=G.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(gt(e,0,on),t===void 0?t=n.rounding:gt(t,0,8),le(r,e+Oe(r)+1,t))};G.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=lr(n,!0):(gt(e,0,on),t===void 0?t=i.rounding:gt(t,0,8),n=le(new i(n),e+1,t),r=lr(n,!0,e+1)),r};G.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?lr(i):(gt(e,0,on),t===void 0?t=a.rounding:gt(t,0,8),n=le(new a(i),e+Oe(i)+1,t),r=lr(n.abs(),!1,e+Oe(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};G.toInteger=G.toint=function(){var e=this,t=e.constructor;return le(new t(e),Oe(e)+1,t.rounding)};G.toNumber=function(){return+this};G.toPower=G.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,c=12,f=+(e=new s(e));if(!e.s)return new s(Ge);if(u=new s(u),!u.s){if(e.s<1)throw Error(nt+"Infinity");return u}if(u.eq(Ge))return u;if(n=s.precision,e.eq(Ge))return le(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=px){for(i=new s(Ge),t=Math.ceil(n/ve+4),me=!1;r%2&&(i=i.times(u),jm(i.d,t)),r=un(r/2),r!==0;)u=u.times(u),jm(u.d,t);return me=!0,e.s<0?new s(Ge).div(i):le(i,n)}}else if(a<0)throw Error(nt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,me=!1,i=e.times(Bn(u,n+c)),me=!0,i=yx(i),i.s=a,i};G.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Oe(i),n=lr(i,r<=a.toExpNeg||r>=a.toExpPos)):(gt(e,1,on),t===void 0?t=a.rounding:gt(t,0,8),i=le(new a(i),e,t),r=Oe(i),n=lr(i,e<=r||r<=a.toExpNeg,e)),n};G.toSignificantDigits=G.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(gt(e,1,on),t===void 0?t=n.rounding:gt(t,0,8)),le(new n(r),e,t)};G.toString=G.valueOf=G.val=G.toJSON=G[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Oe(e),r=e.constructor;return lr(e,t<=r.toExpNeg||t>=r.toExpPos)};function vx(e,t){var r,n,i,a,o,u,s,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),me?le(t,l):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=c.length):(n=c,i=o,u=s.length),o=Math.ceil(l/ve),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=c.length,u-a<0&&(a=u,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/Ee|0,s[a]%=Ee;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,me?le(t,l):t}function gt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(ur+e)}function pt(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=ve-n.length,r&&(a+=Bt(r)),a+=n;o=e[t],n=o+"",r=ve-n.length,r&&(a+=Bt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Mt=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%Ee|0,o=a/Ee|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Ee+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,f,l,h,p,y,v,d,g,x,w,O,m,b,_,S,A=n.constructor,I=n.s==i.s?1:-1,M=n.d,T=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(nt+"Division by zero");for(s=n.e-i.e,_=T.length,m=M.length,p=new A(I),y=p.d=[],c=0;T[c]==(M[c]||0);)++c;if(T[c]>(M[c]||0)&&--s,a==null?x=a=A.precision:o?x=a+(Oe(n)-Oe(i))+1:x=a,x<0)return new A(0);if(x=x/ve+2|0,c=0,_==1)for(f=0,T=T[0],x++;(c<m||f)&&x--;c++)w=f*Ee+(M[c]||0),y[c]=w/T|0,f=w%T|0;else{for(f=Ee/(T[0]+1)|0,f>1&&(T=e(T,f),M=e(M,f),_=T.length,m=M.length),O=_,v=M.slice(0,_),d=v.length;d<_;)v[d++]=0;S=T.slice(),S.unshift(0),b=T[0],T[1]>=Ee/2&&++b;do f=0,u=t(T,v,_,d),u<0?(g=v[0],_!=d&&(g=g*Ee+(v[1]||0)),f=g/b|0,f>1?(f>=Ee&&(f=Ee-1),l=e(T,f),h=l.length,d=v.length,u=t(l,v,h,d),u==1&&(f--,r(l,_<h?S:T,h))):(f==0&&(u=f=1),l=T.slice()),h=l.length,h<d&&l.unshift(0),r(v,l,d),u==-1&&(d=v.length,u=t(T,v,_,d),u<1&&(f++,r(v,_<d?S:T,d))),d=v.length):u===0&&(f++,v=[0]),y[c++]=f,u&&v[0]?v[d++]=M[O]||0:(v=[M[O]],d=1);while((O++<m||v[0]!==void 0)&&x--)}return y[0]||y.shift(),p.e=s,le(p,o?a+Oe(p)+1:a)}})();function yx(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(Oe(e)>16)throw Error(Sh+Oe(e));if(!e.s)return new f(Ge);for(me=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(er(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Ge),f.precision=u;;){if(i=le(i.times(e),u),r=r.times(++s),o=a.plus(Mt(i,r,u)),pt(o.d).slice(0,u)===pt(a.d).slice(0,u)){for(;c--;)a=le(a.times(a),u);return f.precision=l,t==null?(me=!0,le(a,l)):a}a=o}}function Oe(e){for(var t=e.e*ve,r=e.d[0];r>=10;r/=10)t++;return t}function kc(e,t,r){if(t>e.LN10.sd())throw me=!0,r&&(e.precision=r),Error(nt+"LN10 precision limit exceeded");return le(new e(e.LN10),t)}function Bt(e){for(var t="";e--;)t+="0";return t}function Bn(e,t){var r,n,i,a,o,u,s,c,f,l=1,h=10,p=e,y=p.d,v=p.constructor,d=v.precision;if(p.s<1)throw Error(nt+(p.s?"NaN":"-Infinity"));if(p.eq(Ge))return new v(0);if(t==null?(me=!1,c=d):c=t,p.eq(10))return t==null&&(me=!0),kc(v,c);if(c+=h,v.precision=c,r=pt(y),n=r.charAt(0),a=Oe(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=pt(p.d),n=r.charAt(0),l++;a=Oe(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return s=kc(v,c+2,d).times(a+""),p=Bn(new v(n+"."+r.slice(1)),c-h).plus(s),v.precision=d,t==null?(me=!0,le(p,d)):p;for(u=o=p=Mt(p.minus(Ge),p.plus(Ge),c),f=le(p.times(p),c),i=3;;){if(o=le(o.times(f),c),s=u.plus(Mt(o,new v(i),c)),pt(s.d).slice(0,c)===pt(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(kc(v,c+2,d).times(a+""))),u=Mt(u,new v(l),c),v.precision=d,t==null?(me=!0,le(u,d)):u;u=s,i+=2}}function Pm(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=un(r/ve),e.d=[],n=(r+1)%ve,r<0&&(n+=ve),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ve;n<i;)e.d.push(+t.slice(n,n+=ve));t=t.slice(n),n=ve-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),me&&(e.e>ia||e.e<-ia))throw Error(Sh+r)}else e.s=0,e.e=0,e.d=[0];return e}function le(e,t,r){var n,i,a,o,u,s,c,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=ve,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/ve),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=ve,i=n-ve+o}if(r!==void 0&&(a=er(10,o-i-1),u=c/a%10|0,s=t<0||l[f+1]!==void 0||c%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?c/er(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=Oe(e),l.length=1,t=t-a-1,l[0]=er(10,(ve-t%ve)%ve),e.e=un(-t/ve)||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=er(10,ve-n),l[f]=i>0?(c/er(10,o-i)%er(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==Ee&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Ee)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(me&&(e.e>ia||e.e<-ia))throw Error(Sh+Oe(e));return e}function mx(e,t){var r,n,i,a,o,u,s,c,f,l,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),me?le(t,p):t;if(s=e.d,l=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(f=o<0,f?(r=s,o=-o,u=l.length):(r=l,n=c,u=s.length),i=Math.max(Math.ceil(p/ve),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(s[i]!=l[i]){f=s[i]<l[i];break}o=0}for(f&&(r=s,s=l,l=r,t.s=-t.s),u=s.length,i=l.length-u;i>0;--i)s[u++]=0;for(i=l.length;i>o;){if(s[--i]<l[i]){for(a=i;a&&s[--a]===0;)s[a]=Ee-1;--s[a],s[i]+=Ee}s[i]-=l[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,me?le(t,p):t):new h(0)}function lr(e,t,r){var n,i=Oe(e),a=pt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Bt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Bt(-i-1)+a,r&&(n=r-o)>0&&(a+=Bt(n))):i>=o?(a+=Bt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Bt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Bt(n))),e.s<0?"-"+a:a}function jm(e,t){if(e.length>t)return e.length=t,!0}function gx(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(ur+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 Pm(o,a.toString())}else if(typeof a!="string")throw Error(ur+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,HT.test(a))Pm(o,a);else throw Error(ur+a)}if(i.prototype=G,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=gx,i.config=i.set=GT,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 GT(e){if(!e||typeof e!="object")throw Error(nt+"Object expected");var t,r,n,i=["precision",1,on,"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(un(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(ur+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ur+r+": "+n);return this}var Ah=gx(KT);Ge=new Ah(1);const se=Ah;function VT(e){return JT(e)||ZT(e)||YT(e)||XT()}function XT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
21
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YT(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 ZT(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function JT(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}var QT=function(t){return t},bx={},xx=function(t){return t===bx},Tm=function(t){return function r(){return arguments.length===0||arguments.length===1&&xx(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},eE=function e(t,r){return t===1?r:Tm(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!==bx}).length;return o>=t?r.apply(void 0,i):e(t-o,Tm(function(){for(var u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var f=i.map(function(l){return xx(l)?s.shift():l});return r.apply(void 0,VT(f).concat(s))}))})},Ja=function(t){return eE(t.length,t)},Wl=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},tE=Ja(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),rE=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return QT;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,s){return s(u)},a.apply(void 0,arguments))}},Ul=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},wx=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,s){return u===r[s]})||(r=a,n=t.apply(void 0,a)),n}};function nE(e){var t;return e===0?t=1:t=Math.floor(new se(e).abs().log(10).toNumber())+1,t}function iE(e,t,r){for(var n=new se(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var aE=Ja(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),oE=Ja(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),uE=Ja(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:iE,getDigitCount:nE,interpolateNumber:aE,uninterpolateNumber:oE,uninterpolateTruncation:uE};function Kl(e){return lE(e)||cE(e)||Ox(e)||sE()}function sE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function lE(e){if(Array.isArray(e))return Hl(e)}function Fn(e,t){return dE(e)||hE(e,t)||Ox(e,t)||fE()}function fE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ox(e,t){if(e){if(typeof e=="string")return Hl(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 Hl(e,t)}}function Hl(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 hE(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(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function dE(e){if(Array.isArray(e))return e}function _x(e){var t=Fn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Sx(e,t,r){if(e.lte(0))return new se(0);var n=Qa.getDigitCount(e.toNumber()),i=new se(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new se(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new se(Math.ceil(s))}function pE(e,t,r){var n=1,i=new se(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new se(10).pow(Qa.getDigitCount(e)-1),i=new se(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new se(Math.floor(e)))}else e===0?i=new se(Math.floor((t-1)/2)):r||(i=new se(Math.floor(e)));var o=Math.floor((t-1)/2),u=rE(tE(function(s){return i.add(new se(s-o).mul(n)).toNumber()}),Wl);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 se(0),tickMin:new se(0),tickMax:new se(0)};var a=Sx(new se(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new se(0):(o=new se(e).add(t).div(2),o=o.sub(new se(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new se(t).sub(o).div(a).toNumber()),c=u+s+1;return c>r?Ax(e,t,r,n,i+1):(c<r&&(s=t>0?s+(r-c):s,u=t>0?u:u+(r-c)),{step:a,tickMin:o.sub(new se(u).mul(a)),tickMax:o.add(new se(s).mul(a))})}function vE(e){var t=Fn(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=_x([r,n]),s=Fn(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat(Kl(Wl(0,i-1).map(function(){return 1/0}))):[].concat(Kl(Wl(0,i-1).map(function(){return-1/0})),[f]);return r>n?Ul(l):l}if(c===f)return pE(c,i,a);var h=Ax(c,f,o,a),p=h.step,y=h.tickMin,v=h.tickMax,d=Qa.rangeStep(y,v.add(new se(.1).mul(p)),p);return r>n?Ul(d):d}function yE(e,t){var r=Fn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=_x([n,i]),u=Fn(o,2),s=u[0],c=u[1];if(s===-1/0||c===1/0)return[n,i];if(s===c)return[s];var f=Math.max(t,2),l=Sx(new se(c).sub(s).div(f-1),a,0),h=[].concat(Kl(Qa.rangeStep(new se(s),new se(c).sub(new se(.99).mul(l)),l)),[c]);return n>i?Ul(h):h}var mE=wx(vE),gE=wx(yE),bE="Invariant failed";function fr(e,t){throw new Error(bE)}var xE=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function qr(e){"@babel/helpers - typeof";return qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qr(e)}function 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 wE(e,t){return AE(e)||SE(e,t)||_E(e,t)||OE()}function OE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _E(e,t){if(e){if(typeof e=="string")return Em(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 Em(e,t)}}function Em(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 SE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function AE(e){if(Array.isArray(e))return e}function PE(e,t){if(e==null)return{};var r=jE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jE(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function TE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tx(n.key),n)}}function ME(e,t,r){return t&&EE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CE(e,t,r){return t=oa(t),$E(e,Px()?Reflect.construct(t,r||[],oa(e).constructor):t.apply(e,r))}function $E(e,t){if(t&&(qr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IE(e)}function IE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Px(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Px=function(){return!!e})()}function oa(e){return oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oa(e)}function kE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gl(e,t)}function Gl(e,t){return Gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gl(e,t)}function jx(e,t,r){return t=Tx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tx(e){var t=NE(e,"string");return qr(t)=="symbol"?t:t+""}function NE(e,t){if(qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vi=(function(e){function t(){return TE(this,t),CE(this,t,arguments)}return kE(t,e),ME(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,h=PE(n,xE),p=ee(h,!1);this.props.direction==="x"&&f.type!=="number"&&fr();var y=s.map(function(v){var d=c(v,u),g=d.x,x=d.y,w=d.value,O=d.errorVal;if(!O)return null;var m=[],b,_;if(Array.isArray(O)){var S=wE(O,2);b=S[0],_=S[1]}else b=_=O;if(a==="vertical"){var A=f.scale,I=x+i,M=I+o,T=I-o,C=A(w-b),$=A(w+_);m.push({x1:$,y1:M,x2:$,y2:T}),m.push({x1:C,y1:I,x2:$,y2:I}),m.push({x1:C,y1:M,x2:C,y2:T})}else if(a==="horizontal"){var j=l.scale,N=g+i,q=N-o,F=N+o,z=j(w-b),H=j(w+_);m.push({x1:q,y1:H,x2:F,y2:H}),m.push({x1:N,y1:z,x2:N,y2:H}),m.push({x1:q,y1:z,x2:F,y2:z})}return P.createElement(he,aa({className:"recharts-errorBar",key:"bar-".concat(m.map(function(V){return"".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))},p),m.map(function(V){return P.createElement("line",aa({},V,{key:"line-".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))}))});return P.createElement(he,{className:"recharts-errorBars"},y)}}])})(P.Component);jx(vi,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});jx(vi,"displayName","ErrorBar");function zn(e){"@babel/helpers - typeof";return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn(e)}function Mm(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 Jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mm(Object(r),!0).forEach(function(n){DE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DE(e,t,r){return t=RE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RE(e){var t=qE(e,"string");return zn(t)=="symbol"?t:t+""}function qE(e,t){if(zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ex=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=He(r,Et);if(!o)return null;var u=Et.defaultProps,s=u!==void 0?Jt(Jt({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(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}}))},[]):c=(n||[]).map(function(f){var l=f.item,h=l.type.defaultProps,p=h!==void 0?Jt(Jt({},h),l.props):{},y=p.dataKey,v=p.name,d=p.legendType,g=p.hide;return{inactive:g,dataKey:y,type:s.iconType||d||"square",color:Ph(l),value:v||y,payload:p}}),Jt(Jt(Jt({},s),Et.getWithHeight(o,i)),{},{payload:c,item: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 Cm(e){return zE(e)||FE(e)||BE(e)||LE()}function LE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
25
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BE(e,t){if(e){if(typeof e=="string")return Vl(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 Vl(e,t)}}function FE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zE(e){if(Array.isArray(e))return Vl(e)}function Vl(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 $m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$m(Object(r),!0).forEach(function(n){jr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jr(e,t,r){return t=WE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WE(e){var t=UE(e,"string");return Wn(t)=="symbol"?t:t+""}function UE(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 Fe(e,t,r){return re(e)||re(t)?r:je(t)?tt(e,t,r):Q(t)?t(e):r}function An(e,t,r,n){var i=zT(e,function(u){return Fe(u,t)});if(r==="number"){var a=i.filter(function(u){return B(u)||parseFloat(u)});return a.length?[Za(a),zt(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!re(u)}):i;return o.map(function(u){return je(u)||u instanceof Date?u:""})}var KE=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,c=0;c<u;c++){var f=c>0?i[c-1].coordinate:i[u-1].coordinate,l=i[c].coordinate,h=c>=u-1?i[0].coordinate:i[c+1].coordinate,p=void 0;if(ft(l-f)!==ft(h-l)){var y=[];if(ft(h-l)===ft(s[1]-s[0])){p=h;var v=l+s[1]-s[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{p=f;var d=h+s[1]-s[0];y[0]=Math.min(l,(d+l)/2),y[1]=Math.max(l,(d+l)/2)}var g=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){o=i[c].index;break}}else{var x=Math.min(f,h),w=Math.max(f,h);if(t>(x+l)/2&&t<=(w+l)/2){o=i[c].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},Ph=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ge(ge({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},HE=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),s=0,c=u.length;s<c;s++)for(var f=a[u[s]].stackGroups,l=Object.keys(f),h=0,p=l.length;h<p;h++){var y=f[l[h]],v=y.items,d=y.cateAxisId,g=v.filter(function(_){return jt(_.type).indexOf("Bar")>=0});if(g&&g.length){var x=g[0].type.defaultProps,w=x!==void 0?ge(ge({},x),g[0].props):g[0].props,O=w.barSize,m=w[d];o[m]||(o[m]=[]);var b=re(O)?r:O;o[m].push({item:g[0],stackList:g.slice(1),barSize:re(b)?void 0:cr(b,n,0)})}}return o},GE=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,s=o.length;if(s<1)return null;var c=cr(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/s,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(s-1)*c,y>=i&&(y-=(s-1)*c,c=0),y>=i&&p>0&&(h=!0,p*=.9,y=s*p);var v=(i-y)/2>>0,d={offset:v-c,size:0};f=o.reduce(function(O,m){var b={item:m.item,position:{offset:d.offset+d.size+c,size:h?p:m.barSize}},_=[].concat(Cm(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 g=cr(n,i,0,!0);i-2*g-(s-1)*c<=0&&(c=0);var x=(i-2*g-(s-1)*c)/s;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,b){var _=[].concat(Cm(O),[{item:m.item,position:{offset:g+(x+c)*b+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){_.push({item:S,position:_[_.length-1].position})}),_},l)}return f},VE=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=Ex({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,h=f.height,p=c.align,y=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&p!=="center"&&B(t[p]))return ge(ge({},t),{},jr({},p,t[p]+(l||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&y!=="middle"&&B(t[y]))return ge(ge({},t),{},jr({},y,t[y]+(h||0)))}return t},XE=function(t,r,n){return re(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Mx=function(t,r,n,i,a){var o=r.props.children,u=rt(o,vi).filter(function(c){return XE(i,a,c.props.direction)});if(u&&u.length){var s=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=Fe(f,n);if(re(l))return c;var h=Array.isArray(l)?[Za(l),zt(l)]:[l,l],p=s.reduce(function(y,v){var d=Fe(f,v,0),g=h[0]-Math.abs(Array.isArray(d)?d[0]:d),x=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(g,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},YE=function(t,r,n,i,a){var o=r.map(function(u){return Mx(t,u,n,a,i)}).filter(function(u){return!re(u)});return o&&o.length?o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]):null},Cx=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&Mx(t,s,c,i)||An(t,c,n,a)});if(n==="number")return o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);var u={};return o.reduce(function(s,c){for(var f=0,l=c.length;f<l;f++)u[c[f]]||(u[c[f]]=!0,s.push(c[f]));return s},[])},$x=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Ix=function(t,r,n,i){if(i)return t.map(function(s){return s.coordinate});var a,o,u=t.map(function(s){return s.coordinate===r&&(a=!0),s.coordinate===n&&(o=!0),s.coordinate});return a||u.push(r),o||u.push(n),u},Pt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(c=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?ft(u[0]-u[1])*2*c:c,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)+c,value:l,offset:c}});return f.filter(function(l){return!tn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+c,value:l,index:h,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+c,value:l,offset:c}}):i.domain().map(function(l,h){return{coordinate:i(l)+c,value:a?a[l]:l,index:h,offset:c}})},Nc=new WeakMap,ji=function(t,r){if(typeof r!="function")return t;Nc.has(t)||Nc.set(t,new WeakMap);var n=Nc.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},ZE=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:Nn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:ea(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Sn(),realScaleType:"point"}:a==="category"?{scale:Nn(),realScaleType:"band"}:{scale:ea(),realScaleType:"linear"};if(sr(i)){var s="scale".concat(qa(i));return{scale:(mm[s]||Sn)(),realScaleType:mm[s]?s:"point"}}return Q(i)?{scale:i}:{scale:Sn(),realScaleType:"point"}},Im=1e-4,JE=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])-Im,o=Math.max(i[0],i[1])+Im,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},QE=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},eM=function(t,r){if(!r||r.length!==2||!B(r[0])||!B(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!B(t[0])||t[0]<n)&&(a[0]=n),(!B(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},tM=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 s=tn(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=a,t[u][n][1]=a+s,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},rM=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=tn(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)}},nM={sign:tM,expand:B_,none:Er,silhouette:F_,wiggle:z_,positive:rM},iM=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=nM[n],o=L_().keys(i).value(function(u,s){return+Fe(u,s,0)}).order(Sl).offset(a);return o(t)},aM=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?ge(ge({},h.type.defaultProps),h.props):h.props,v=y.stackId,d=y.hide;if(d)return l;var g=y[n],x=l[g]||{hasStack:!1,stackGroups:{}};if(je(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[rn("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return ge(ge({},l),{},jr({},g,x))},s),f={};return Object.keys(c).reduce(function(l,h){var p=c[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,d){var g=p.stackGroups[d];return ge(ge({},v),{},jr({},d,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:iM(t,g.items,a)}))},y)}return ge(ge({},l),{},jr({},h,p))},f)},oM=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=mE(c,a,u);return t.domain([Za(f),zt(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=gE(l,a,u);return{niceTicks:h}}return null};function ua(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&&!re(i[t.dataKey])){var u=Ii(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=Fe(i,re(o)?t.dataKey:o);return re(s)?null:t.scale(s)}var km=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var s=Fe(o,r.dataKey,r.domain[u]);return re(s)?null:r.scale(s)-a/2+i},uM=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]},sM=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ge(ge({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(je(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},cM=function(t){return t.reduce(function(r,n){return[Za(n.concat([r[0]]).filter(B)),zt(n.concat([r[1]]).filter(B))]},[1/0,-1/0])},kx=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(c,f){var l=cM(f.slice(r,n+1));return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Nm=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Dm=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Xl=function(t,r,n){if(Q(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(B(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Nm.test(t[0])){var a=+Nm.exec(t[0])[1];i[0]=r[0]-a}else Q(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(B(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Dm.test(t[1])){var o=+Dm.exec(t[1])[1];i[1]=r[1]+o}else Q(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},sa=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=eh(r,function(l){return l.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var c=a[u],f=a[u-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Rm=function(t,r,n){return!t||!t.length||Rr(t,tt(n,"type.defaultProps.domain"))?r:t},Nx=function(t,r){var n=t.type.defaultProps?ge(ge({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,c=n.chartType,f=n.hide;return ge(ge({},ee(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Ph(t),value:Fe(r,i),type:s,payload:r,chartType:c,hide:f})};function Un(e){"@babel/helpers - typeof";return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Un(e)}function qm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qm(Object(r),!0).forEach(function(n){lM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lM(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=hM(e,"string");return Un(t)=="symbol"?t:t+""}function hM(e,t){if(Un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ca=Math.PI/180,dM=function(t){return t*180/Math.PI},ke=function(t,r,n,i){return{x:t+Math.cos(-ca*i)*n,y:r+Math.sin(-ca*i)*n}},pM=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))},vM=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=pM({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var s=(n-a)/u,c=Math.acos(s);return i>o&&(c=2*Math.PI-c),{radius:u,angle:dM(c),angleInRadian:c}},yM=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}},mM=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},Bm=function(t,r){var n=t.x,i=t.y,a=vM({x:n,y:i},r),o=a.radius,u=a.angle,s=r.innerRadius,c=r.outerRadius;if(o<s||o>c)return!1;if(o===0)return!0;var f=yM(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?Lm(Lm({},r),{},{radius:o,angle:mM(p,r)}):null};function Kn(e){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(e)}var gM=["offset"];function bM(e){return _M(e)||OM(e)||wM(e)||xM()}function xM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
26
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wM(e,t){if(e){if(typeof e=="string")return Yl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yl(e,t)}}function OM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _M(e){if(Array.isArray(e))return Yl(e)}function Yl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function SM(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 Fm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fm(Object(r),!0).forEach(function(n){PM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PM(e,t,r){return t=jM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jM(e){var t=TM(e,"string");return Kn(t)=="symbol"?t:t+""}function TM(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)}function Hn(){return Hn=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},Hn.apply(this,arguments)}var EM=function(t){var r=t.value,n=t.formatter,i=re(t.children)?r:t.children;return Q(n)?n(i):i},MM=function(t,r){var n=ft(r-t),i=Math.min(Math.abs(r-t),360);return n*i},CM=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,c=s.cx,f=s.cy,l=s.innerRadius,h=s.outerRadius,p=s.startAngle,y=s.endAngle,v=s.clockWise,d=(l+h)/2,g=MM(p,y),x=g>=0?1:-1,w,O;i==="insideStart"?(w=p+x*o,O=v):i==="insideEnd"?(w=y-x*o,O=!v):i==="end"&&(w=y+x*o,O=v),O=g<=0?O:!O;var m=ke(c,f,d,w),b=ke(c,f,d,w+(O?1:-1)*359),_="M".concat(m.x,",").concat(m.y,`
27
- A`).concat(d,",").concat(d,",0,1,").concat(O?0:1,`,
28
- `).concat(b.x,",").concat(b.y),S=re(t.id)?rn("recharts-radial-line-"):t.id;return P.createElement("text",Hn({},n,{dominantBaseline:"central",className:ie("recharts-radial-bar-label",u)}),P.createElement("defs",null,P.createElement("path",{id:S,d:_})),P.createElement("textPath",{xlinkHref:"#".concat(S)},r))},$M=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,c=a.outerRadius,f=a.startAngle,l=a.endAngle,h=(f+l)/2;if(i==="outside"){var p=ke(o,u,c+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=(s+c)/2,g=ke(o,u,d,h),x=g.x,w=g.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},IM=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,c=o.width,f=o.height,l=f>=0?1:-1,h=l*i,p=l>0?"end":"start",y=l>0?"start":"end",v=c>=0?1:-1,d=v*i,g=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+c/2,y:s-l*i,textAnchor:"middle",verticalAnchor:p};return Pe(Pe({},w),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var O={x:u+c/2,y:s+f+h,textAnchor:"middle",verticalAnchor:y};return Pe(Pe({},O),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(a==="left"){var m={x:u-d,y:s+f/2,textAnchor:g,verticalAnchor:"middle"};return Pe(Pe({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var b={x:u+c+d,y:s+f/2,textAnchor:x,verticalAnchor:"middle"};return Pe(Pe({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:f}:{})}var _=n?{width:c,height:f}:{};return a==="insideLeft"?Pe({x:u+d,y:s+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?Pe({x:u+c-d,y:s+f/2,textAnchor:g,verticalAnchor:"middle"},_):a==="insideTop"?Pe({x:u+c/2,y:s+h,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?Pe({x:u+c/2,y:s+f-h,textAnchor:"middle",verticalAnchor:p},_):a==="insideTopLeft"?Pe({x:u+d,y:s+h,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?Pe({x:u+c-d,y:s+h,textAnchor:g,verticalAnchor:y},_):a==="insideBottomLeft"?Pe({x:u+d,y:s+f-h,textAnchor:x,verticalAnchor:p},_):a==="insideBottomRight"?Pe({x:u+c-d,y:s+f-h,textAnchor:g,verticalAnchor:p},_):en(a)&&(B(a.x)||tr(a.x))&&(B(a.y)||tr(a.y))?Pe({x:u+cr(a.x,c),y:s+cr(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):Pe({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},kM=function(t){return"cx"in t&&B(t.cx)};function qe(e){var t=e.offset,r=t===void 0?5:t,n=SM(e,gM),i=Pe({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,c=i.content,f=i.className,l=f===void 0?"":f,h=i.textBreakAll;if(!a||re(u)&&re(s)&&!L.isValidElement(c)&&!Q(c))return null;if(L.isValidElement(c))return L.cloneElement(c,i);var p;if(Q(c)){if(p=L.createElement(c,i),L.isValidElement(p))return p}else p=EM(i);var y=kM(a),v=ee(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return CM(i,p,v);var d=y?$M(i):IM(i);return P.createElement(Hi,Hn({className:ie("recharts-label",l)},v,d,{breakAll:h}),p)}qe.displayName="Label";var Dx=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,h=t.y,p=t.top,y=t.left,v=t.width,d=t.height,g=t.clockWise,x=t.labelViewBox;if(x)return x;if(B(v)&&B(d)){if(B(l)&&B(h))return{x:l,y:h,width:v,height:d};if(B(p)&&B(y))return{x:p,y,width:v,height:d}}return B(l)&&B(h)?{x:l,y:h,width:0,height:0}:B(r)&&B(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:f||s||u||0,clockWise:g}:t.viewBox?t.viewBox:{}},NM=function(t,r){return t?t===!0?P.createElement(qe,{key:"label-implicit",viewBox:r}):je(t)?P.createElement(qe,{key:"label-implicit",viewBox:r,value:t}):L.isValidElement(t)?t.type===qe?L.cloneElement(t,{key:"label-implicit",viewBox:r}):P.createElement(qe,{key:"label-implicit",content:t,viewBox:r}):Q(t)?P.createElement(qe,{key:"label-implicit",content:t,viewBox:r}):en(t)?P.createElement(qe,Hn({viewBox:r},t,{key:"label-implicit"})):null:null},DM=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=Dx(t),o=rt(i,qe).map(function(s,c){return L.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=NM(t.label,r||a);return[u].concat(bM(o))};qe.parseViewBox=Dx;qe.renderCallByParent=DM;var Dc,zm;function RM(){if(zm)return Dc;zm=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Dc=e,Dc}var qM=RM();const LM=de(qM);function Gn(e){"@babel/helpers - typeof";return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gn(e)}var BM=["valueAccessor"],FM=["data","dataKey","clockWise","id","textBreakAll"];function zM(e){return HM(e)||KM(e)||UM(e)||WM()}function WM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
29
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UM(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 KM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HM(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 la(){return la=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},la.apply(this,arguments)}function Wm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Um(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){GM(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 GM(e,t,r){return t=VM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VM(e){var t=XM(e,"string");return Gn(t)=="symbol"?t:t+""}function XM(e,t){if(Gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Km(e,t){if(e==null)return{};var r=YM(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 YM(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 ZM=function(t){return Array.isArray(t.value)?LM(t.value):t.value};function Ct(e){var t=e.valueAccessor,r=t===void 0?ZM:t,n=Km(e,BM),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=Km(n,FM);return!i||!i.length?null:P.createElement(he,{className:"recharts-label-list"},i.map(function(f,l){var h=re(a)?r(f,l):Fe(f&&f.payload,a),p=re(u)?{}:{id:"".concat(u,"-").concat(l)};return P.createElement(qe,la({},ee(f,!0),c,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:s,viewBox:qe.parseViewBox(re(o)?f:Um(Um({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}Ct.displayName="LabelList";function JM(e,t){return e?e===!0?P.createElement(Ct,{key:"labelList-implicit",data:t}):P.isValidElement(e)||Q(e)?P.createElement(Ct,{key:"labelList-implicit",data:t,content:e}):en(e)?P.createElement(Ct,la({data:t},e,{key:"labelList-implicit"})):null:null}function QM(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=rt(n,Ct).map(function(o,u){return L.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=JM(e.label,t);return[a].concat(zM(i))}Ct.renderCallByParent=QM;function Vn(e){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(e)}function Jl(){return Jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jl.apply(this,arguments)}function 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 Gm(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){eC(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 eC(e,t,r){return t=tC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tC(e){var t=rC(e,"string");return Vn(t)=="symbol"?t:t+""}function rC(e,t){if(Vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nC=function(t,r){var n=ft(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Ti=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,s=t.cornerRadius,c=t.cornerIsExternal,f=s*(u?1:-1)+i,l=Math.asin(s/f)/ca,h=c?a:a+o*l,p=ke(r,n,f,h),y=ke(r,n,i,h),v=c?a-o*l:a,d=ke(r,n,f*Math.cos(l*ca),v);return{center:p,circleTangency:y,lineTangency:d,theta:l}},Rx=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=nC(o,u),c=o+s,f=ke(r,n,a,o),l=ke(r,n,a,c),h="M ".concat(f.x,",").concat(f.y,`
30
- A `).concat(a,",").concat(a,`,0,
31
- `).concat(+(Math.abs(s)>180),",").concat(+(o>c),`,
32
- `).concat(l.x,",").concat(l.y,`
33
- `);if(i>0){var p=ke(r,n,i,o),y=ke(r,n,i,c);h+="L ".concat(y.x,",").concat(y.y,`
34
- A `).concat(i,",").concat(i,`,0,
35
- `).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`,
36
- `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},iC=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,s=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,l=ft(f-c),h=Ti({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),p=h.circleTangency,y=h.lineTangency,v=h.theta,d=Ti({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),g=d.circleTangency,x=d.lineTangency,w=d.theta,O=s?Math.abs(c-f):Math.abs(c-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,`
37
- a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
38
- a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
39
- `):Rx({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
40
- A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,`
41
- A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(g.x,",").concat(g.y,`
42
- A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
43
- `);if(i>0){var b=Ti({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=b.circleTangency,S=b.lineTangency,A=b.theta,I=Ti({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),M=I.circleTangency,T=I.lineTangency,C=I.theta,$=s?Math.abs(c-f):Math.abs(c-f)-A-C;if($<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(T.x,",").concat(T.y,`
44
- A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(M.x,",").concat(M.y,`
45
- A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
46
- 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},aC={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},qx=function(t){var r=Gm(Gm({},aC),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,h=r.className;if(o<a||f===l)return null;var p=ie("recharts-sector",h),y=o-a,v=cr(u,y,0,!0),d;return v>0&&Math.abs(f-l)<360?d=iC({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):d=Rx({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),P.createElement("path",Jl({},ee(r,!0),{className:p,d,role:"img"}))};function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}function 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)}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 Xm(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){oC(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 oC(e,t,r){return t=uC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uC(e){var t=sC(e,"string");return Xn(t)=="symbol"?t:t+""}function sC(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ym={curveBasisClosed:T_,curveBasisOpen:E_,curveBasis:j_,curveBumpX:d_,curveBumpY:p_,curveLinearClosed:M_,curveLinear:Ba,curveMonotoneX:C_,curveMonotoneY:$_,curveNatural:I_,curveStep:k_,curveStepAfter:D_,curveStepBefore:N_},Ei=function(t){return t.x===+t.x&&t.y===+t.y},vn=function(t){return t.x},yn=function(t){return t.y},cC=function(t,r){if(Q(t))return t;var n="curve".concat(qa(t));return(n==="curveMonotone"||n==="curveBump")&&r?Ym["".concat(n).concat(r==="vertical"?"Y":"X")]:Ym[n]||Ba},lC=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,s=t.connectNulls,c=s===void 0?!1:s,f=cC(n,u),l=c?a.filter(function(v){return Ei(v)}):a,h;if(Array.isArray(o)){var p=c?o.filter(function(v){return Ei(v)}):o,y=l.map(function(v,d){return Xm(Xm({},v),{},{base:p[d]})});return u==="vertical"?h=xi().y(yn).x1(vn).x0(function(v){return v.base.x}):h=xi().x(vn).y1(yn).y0(function(v){return v.base.y}),h.defined(Ei).curve(f),h(y)}return u==="vertical"&&B(o)?h=xi().y(yn).x1(vn).x0(o):B(o)?h=xi().x(vn).y1(yn).y0(o):h=Ub().x(vn).y(yn),h.defined(Ei).curve(f),h(l)},Tr=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?lC(t):i;return L.createElement("path",Ql({},ee(t,!1),ki(t),{className:ie("recharts-curve",r),d:o,ref:a}))},Rc={exports:{}},qc,Zm;function fC(){if(Zm)return qc;Zm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qc=e,qc}var Lc,Jm;function hC(){if(Jm)return Lc;Jm=1;var e=fC();function t(){}function r(){}return r.resetWarningCache=t,Lc=function(){function n(o,u,s,c,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},Lc}var Qm;function dC(){return Qm||(Qm=1,Rc.exports=hC()()),Rc.exports}var pC=dC();const ue=de(pC),{getOwnPropertyNames:vC,getOwnPropertySymbols:yC}=Object,{hasOwnProperty:mC}=Object.prototype;function Bc(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Mi(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);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 s=e(r,n,i);return a.delete(r),a.delete(n),s}}function gC(e){return e!=null?e[Symbol.toStringTag]:void 0}function eg(e){return vC(e).concat(yC(e))}const bC=Object.hasOwn||((e,t)=>mC.call(e,t));function mr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const xC="__v",wC="__o",OC="_owner",{getOwnPropertyDescriptor:tg,keys:rg}=Object;function _C(e,t){return e.byteLength===t.byteLength&&fa(new Uint8Array(e),new Uint8Array(t))}function SC(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&&fa(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function PC(e,t){return mr(e.getTime(),t.getTime())}function jC(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function TC(e,t){return e===t}function ng(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,s=0;for(;(o=a.next())&&!o.done;){const c=t.entries();let f=!1,l=0;for(;(u=c.next())&&!u.done;){if(i[l]){l++;continue}const h=o.value,p=u.value;if(r.equals(h[0],p[0],s,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;s++}return!0}const EC=mr;function MC(e,t,r){const n=rg(e);let i=n.length;if(rg(t).length!==i)return!1;for(;i-- >0;)if(!Lx(e,t,r,n[i]))return!1;return!0}function mn(e,t,r){const n=eg(e);let i=n.length;if(eg(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!Lx(e,t,r,a)||(o=tg(e,a),u=tg(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function CC(e,t){return mr(e.valueOf(),t.valueOf())}function $C(e,t){return e.source===t.source&&e.flags===t.flags}function ig(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 s=t.values();let c=!1,f=0;for(;(u=s.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1}return!0}function fa(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 IC(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 Lx(e,t,r,n){return(n===OC||n===wC||n===xC)&&(e.$$typeof||t.$$typeof)?!0:bC(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const kC="[object ArrayBuffer]",NC="[object Arguments]",DC="[object Boolean]",RC="[object DataView]",qC="[object Date]",LC="[object Error]",BC="[object Map]",FC="[object Number]",zC="[object Object]",WC="[object RegExp]",UC="[object Set]",KC="[object String]",HC={"[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},GC="[object URL]",VC=Object.prototype.toString;function XC({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:s,arePrimitiveWrappersEqual:c,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:y}){return function(d,g,x){if(d===g)return!0;if(d==null||g==null)return!1;const w=typeof d;if(w!==typeof g)return!1;if(w!=="object")return w==="number"?u(d,g,x):w==="function"?a(d,g,x):!1;const O=d.constructor;if(O!==g.constructor)return!1;if(O===Object)return s(d,g,x);if(Array.isArray(d))return t(d,g,x);if(O===Date)return n(d,g,x);if(O===RegExp)return f(d,g,x);if(O===Map)return o(d,g,x);if(O===Set)return l(d,g,x);const m=VC.call(d);if(m===qC)return n(d,g,x);if(m===WC)return f(d,g,x);if(m===BC)return o(d,g,x);if(m===UC)return l(d,g,x);if(m===zC)return typeof d.then!="function"&&typeof g.then!="function"&&s(d,g,x);if(m===GC)return p(d,g,x);if(m===LC)return i(d,g,x);if(m===NC)return s(d,g,x);if(HC[m])return h(d,g,x);if(m===kC)return e(d,g,x);if(m===RC)return r(d,g,x);if(m===DC||m===FC||m===KC)return c(d,g,x);if(y){let b=y[m];if(!b){const _=gC(d);_&&(b=y[_])}if(b)return b(d,g,x)}return!1}}function YC({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:_C,areArraysEqual:r?mn:SC,areDataViewsEqual:AC,areDatesEqual:PC,areErrorsEqual:jC,areFunctionsEqual:TC,areMapsEqual:r?Bc(ng,mn):ng,areNumbersEqual:EC,areObjectsEqual:r?mn:MC,arePrimitiveWrappersEqual:CC,areRegExpsEqual:$C,areSetsEqual:r?Bc(ig,mn):ig,areTypedArraysEqual:r?Bc(fa,mn):fa,areUrlsEqual:IC,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Mi(n.areArraysEqual),a=Mi(n.areMapsEqual),o=Mi(n.areObjectsEqual),u=Mi(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function ZC(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function JC({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,s){const{cache:c=e?new WeakMap:void 0,meta:f}=r();return t(u,s,{cache:c,equals:n,meta:f,strict:i})};if(e)return function(u,s){return t(u,s,{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,s){return t(u,s,a)}}const QC=Xt();Xt({strict:!0});Xt({circular:!0});Xt({circular:!0,strict:!0});Xt({createInternalComparator:()=>mr});Xt({strict:!0,createInternalComparator:()=>mr});Xt({circular:!0,createInternalComparator:()=>mr});Xt({circular:!0,createInternalComparator:()=>mr,strict:!0});function Xt(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=YC(e),o=XC(a),u=r?r(o):ZC(o);return JC({circular:t,comparator:o,createState:n,equals:u,strict:i})}function e$(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function ag(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):e$(i)};requestAnimationFrame(n)}function ef(e){"@babel/helpers - typeof";return ef=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},ef(e)}function t$(e){return a$(e)||i$(e)||n$(e)||r$()}function r$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
47
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n$(e,t){if(e){if(typeof e=="string")return og(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 og(e,t)}}function og(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function a$(e){if(Array.isArray(e))return e}function o$(){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=t$(o),s=u[0],c=u.slice(1);if(typeof s=="number"){ag(i.bind(null,c),s);return}i(s),ag(i.bind(null,c));return}ef(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 Yn(e){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(e)}function 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 sg(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){Bx(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 Bx(e,t,r){return t=u$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u$(e){var t=s$(e,"string");return Yn(t)==="symbol"?t:String(t)}function s$(e,t){if(Yn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var c$=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},l$=function(t){return t},f$=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Pn=function(t,r){return Object.keys(r).reduce(function(n,i){return sg(sg({},n),{},Bx({},i,t(i,r[i])))},{})},cg=function(t,r,n){return t.map(function(i){return"".concat(f$(i)," ").concat(r,"ms ").concat(n)}).join(",")};function h$(e,t){return v$(e)||p$(e,t)||Fx(e,t)||d$()}function d$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
48
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function v$(e){if(Array.isArray(e))return e}function y$(e){return b$(e)||g$(e)||Fx(e)||m$()}function m$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
49
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fx(e,t){if(e){if(typeof e=="string")return tf(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 tf(e,t)}}function g$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function b$(e){if(Array.isArray(e))return tf(e)}function tf(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 ha=1e-4,zx=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},Wx=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},lg=function(t,r){return function(n){var i=zx(t,r);return Wx(i,n)}},x$=function(t,r){return function(n){var i=zx(t,r),a=[].concat(y$(i.map(function(o,u){return o*u}).slice(1)),[0]);return Wx(a,n)}},fg=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 s=r[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var c=s[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),f=h$(c,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=lg(i,o),h=lg(a,u),p=x$(i,o),y=function(g){return g>1?1:g<0?0:g},v=function(g){for(var x=g>1?1:g,w=x,O=0;O<8;++O){var m=l(w)-x,b=p(w);if(Math.abs(m-x)<ha||b<ha)return h(w);w=y(w-m/b)}return h(w)};return v.isStepper=!1,v},w$=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,s=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)<ha&&Math.abs(v)<ha?[l,0]:[d,v]};return s.isStepper=!0,s.dt=u,s},O$=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 fg(i);case"spring":return w$();default:if(i.split("(")[0]==="cubic-bezier")return fg(i)}return typeof i=="function"?i:null};function Zn(e){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(e)}function hg(e){return A$(e)||S$(e)||Ux(e)||_$()}function _$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
50
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function A$(e){if(Array.isArray(e))return nf(e)}function dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dg(Object(r),!0).forEach(function(n){rf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rf(e,t,r){return t=P$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P$(e){var t=j$(e,"string");return Zn(t)==="symbol"?t:String(t)}function j$(e,t){if(Zn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function T$(e,t){return C$(e)||M$(e,t)||Ux(e,t)||E$()}function E$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
51
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ux(e,t){if(e){if(typeof e=="string")return nf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nf(e,t)}}function nf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function C$(e){if(Array.isArray(e))return e}var da=function(t,r,n){return t+(r-t)*n},af=function(t){var r=t.from,n=t.to;return r!==n},$$=function e(t,r,n){var i=Pn(function(a,o){if(af(o)){var u=t(o.from,o.to,o.velocity),s=T$(u,2),c=s[0],f=s[1];return Ce(Ce({},o),{},{from:c,velocity:f})}return o},r);return n<1?Pn(function(a,o){return af(o)?Ce(Ce({},o),{},{velocity:da(o.velocity,i[a].velocity,n),from:da(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const I$=(function(e,t,r,n,i){var a=c$(e,t),o=a.reduce(function(d,g){return Ce(Ce({},d),{},rf({},g,[e[g],t[g]]))},{}),u=a.reduce(function(d,g){return Ce(Ce({},d),{},rf({},g,{from:e[g],velocity:0,to:t[g]}))},{}),s=-1,c,f,l=function(){return null},h=function(){return Pn(function(g,x){return x.from},u)},p=function(){return!Object.values(u).filter(af).length},y=function(g){c||(c=g);var x=g-c,w=x/r.dt;u=$$(r,u,w),i(Ce(Ce(Ce({},e),t),h())),c=g,p()||(s=requestAnimationFrame(l))},v=function(g){f||(f=g);var x=(g-f)/n,w=Pn(function(m,b){return da.apply(void 0,hg(b).concat([r(x)]))},o);if(i(Ce(Ce(Ce({},e),t),w)),x<1)s=requestAnimationFrame(l);else{var O=Pn(function(m,b){return da.apply(void 0,hg(b).concat([r(1)]))},o);i(Ce(Ce(Ce({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}});function Lr(e){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lr(e)}var k$=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function N$(e,t){if(e==null)return{};var r=D$(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function D$(e,t){if(e==null)return{};var r={},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 Fc(e){return B$(e)||L$(e)||q$(e)||R$()}function R$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
52
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q$(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 L$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function B$(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 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 ot(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){wn(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 wn(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 F$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z$(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 W$(e,t,r){return t&&z$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kx(e){var t=U$(e,"string");return Lr(t)==="symbol"?t:String(t)}function U$(e,t){if(Lr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function K$(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 H$(e){var t=G$();return function(){var n=pa(e),i;if(t){var a=pa(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sf(this,i)}}function sf(e,t){if(t&&(Lr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cf(e)}function cf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G$(){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 pa(e){return pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pa(e)}var bt=(function(e){K$(r,e);var t=H$(r);function r(n,i){var a;F$(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,c=o.from,f=o.to,l=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(cf(a)),a.changeStyle=a.changeStyle.bind(cf(a)),!u||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),sf(a);if(l&&l.length)a.state={style:l[0].style};else if(c){if(typeof h=="function")return a.state={style:c},sf(a);a.state={style:s?wn({},s,c):c}}else a.state={style:{}};return a}return W$(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,s=a.attributeName,c=a.shouldReAnimate,f=a.to,l=a.from,h=this.state.style;if(u){if(!o){var p={style:s?wn({},s,f):f};this.state&&h&&(s&&h[s]!==f||!s&&h!==f)&&this.setState(p);return}if(!(QC(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||c?l:i.to;if(this.state&&h){var d={style:s?wn({},s,v):v};(s&&h[s]!==v||!s&&h!==v)&&this.setState(d)}this.runAnimation(ot(ot({},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,s=i.duration,c=i.easing,f=i.begin,l=i.onAnimationEnd,h=i.onAnimationStart,p=I$(o,u,O$(c),s,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,f,y,s,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,s=i.onAnimationStart,c=o[0],f=c.style,l=c.duration,h=l===void 0?0:l,p=function(v,d,g){if(g===0)return v;var x=d.duration,w=d.easing,O=w===void 0?"ease":w,m=d.style,b=d.properties,_=d.onAnimationEnd,S=g>0?o[g-1]:d,A=b||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(Fc(v),[a.runJSAnimation.bind(a,{from:S.style,to:m,duration:x,easing:O}),x]);var I=cg(A,x,O),M=ot(ot(ot({},S.style),m),{},{transition:I});return[].concat(Fc(v),[M,x,_]).filter(l$)};return this.manager.start([s].concat(Fc(o.reduce(p,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=o$());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,c=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 c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=u?wn({},u,s):s,d=cg(Object.keys(v),o,c);y.start([f,a,ot(ot({},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 s=N$(i,k$),c=L.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||c===0||o<=0)return a;var l=function(p){var y=p.props,v=y.style,d=v===void 0?{}:v,g=y.className,x=L.cloneElement(p,ot(ot({},s),{},{style:ot(ot({},d),f),className:g}));return x};return c===1?l(L.Children.only(a)):P.createElement("div",null,L.Children.map(a,function(h){return l(h)}))}}]),r})(L.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:ue.oneOfType([ue.object,ue.string]),to:ue.oneOfType([ue.object,ue.string]),attributeName:ue.string,duration:ue.number,begin:ue.number,easing:ue.oneOfType([ue.string,ue.func]),steps:ue.arrayOf(ue.shape({duration:ue.number.isRequired,style:ue.object.isRequired,easing:ue.oneOfType([ue.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ue.func]),properties:ue.arrayOf("string"),onAnimationEnd:ue.func})),children:ue.oneOfType([ue.node,ue.func]),isActive:ue.bool,canBegin:ue.bool,onAnimationEnd:ue.func,shouldReAnimate:ue.bool,onAnimationStart:ue.func,onAnimationReStart:ue.func};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 va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},va.apply(this,arguments)}function V$(e,t){return J$(e)||Z$(e,t)||Y$(e,t)||X$()}function X$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
53
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y$(e,t){if(e){if(typeof e=="string")return vg(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 vg(e,t)}}function vg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Z$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function J$(e){if(Array.isArray(e))return e}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 mg(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){Q$(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 Q$(e,t,r){return t=eI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eI(e){var t=tI(e,"string");return Jn(t)=="symbol"?t:t+""}function tI(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 gg=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,c=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(c,",").concat(t+s*l[0],",").concat(r)),f+="L ".concat(t+n-s*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`,
54
- `).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(c,`,
55
- `).concat(t+n-s*l[2],",").concat(r+i)),f+="L ".concat(t+s*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`,
56
- `).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,`
57
- A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+s*y,",").concat(r,`
58
- L `).concat(t+n-s*y,",").concat(r,`
59
- A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n,",").concat(r+u*y,`
60
- L `).concat(t+n,",").concat(r+i-u*y,`
61
- A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n-s*y,",").concat(r+i,`
62
- L `).concat(t+s*y,",").concat(r+i,`
63
- A `).concat(y,",").concat(y,",0,0,").concat(c,",").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},rI=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var c=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+s),h=Math.max(o,o+s);return n>=c&&n<=f&&i>=l&&i<=h}return!1},nI={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},jh=function(t){var r=mg(mg({},nI),t),n=L.useRef(),i=L.useState(-1),a=V$(i,2),o=a[0],u=a[1];L.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var s=r.x,c=r.y,f=r.width,l=r.height,h=r.radius,p=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,g=r.isAnimationActive,x=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var w=ie("recharts-rectangle",p);return x?P.createElement(bt,{canBegin:o>0,from:{width:f,height:l,x:s,y:c},to:{width:f,height:l,x:s,y:c},duration:v,animationEasing:y,isActive:x},function(O){var m=O.width,b=O.height,_=O.x,S=O.y;return P.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:g,easing:y},P.createElement("path",va({},ee(r,!0),{className:w,d:gg(_,S,m,b,h),ref:n})))}):P.createElement("path",va({},ee(r,!0),{className:w,d:gg(s,c,f,l,h)}))};function lf(){return lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lf.apply(this,arguments)}var eo=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ie("recharts-dot",a);return r===+r&&n===+n&&i===+i?L.createElement("circle",lf({},ee(t,!1),ki(t),{className:o,cx:r,cy:n,r:i})):null};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)}var iI=["x","y","top","left","width","height","className"];function ff(){return ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ff.apply(this,arguments)}function 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 aI(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){oI(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 oI(e,t,r){return t=uI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uI(e){var t=sI(e,"string");return Qn(t)=="symbol"?t:t+""}function sI(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 cI(e,t){if(e==null)return{};var r=lI(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 lI(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 fI=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},hI=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,s=t.left,c=s===void 0?0:s,f=t.width,l=f===void 0?0:f,h=t.height,p=h===void 0?0:h,y=t.className,v=cI(t,iI),d=aI({x:n,y:a,top:u,left:c,width:l,height:p},v);return!B(n)||!B(a)||!B(l)||!B(p)||!B(u)||!B(c)?null:P.createElement("path",ff({},ee(d,!0),{className:ie("recharts-cross",y),d:fI(n,a,l,p,u,c)}))},zc,xg;function dI(){if(xg)return zc;xg=1;var e=d0(),t=e(Object.getPrototypeOf,Object);return zc=t,zc}var Wc,wg;function pI(){if(wg)return Wc;wg=1;var e=Nt(),t=dI(),r=Dt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function c(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)==s}return Wc=c,Wc}var vI=pI();const yI=de(vI);var Uc,Og;function mI(){if(Og)return Uc;Og=1;var e=Nt(),t=Dt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Uc=n,Uc}var gI=mI();const bI=de(gI);function ei(e){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(e)}function ya(){return ya=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},ya.apply(this,arguments)}function xI(e,t){return SI(e)||_I(e,t)||OI(e,t)||wI()}function wI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
64
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OI(e,t){if(e){if(typeof e=="string")return _g(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 _g(e,t)}}function _g(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _I(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function SI(e){if(Array.isArray(e))return e}function Sg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ag(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sg(Object(r),!0).forEach(function(n){AI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AI(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=jI(e,"string");return ei(t)=="symbol"?t:t+""}function jI(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pg=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},TI={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},EI=function(t){var r=Ag(Ag({},TI),t),n=L.useRef(),i=L.useState(-1),a=xI(i,2),o=a[0],u=a[1];L.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var s=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,h=r.height,p=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,g=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var x=ie("recharts-trapezoid",p);return g?P.createElement(bt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:h,x:s,y:c},duration:v,animationEasing:y,isActive:g},function(w){var O=w.upperWidth,m=w.lowerWidth,b=w.height,_=w.x,S=w.y;return P.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},P.createElement("path",ya({},ee(r,!0),{className:x,d:Pg(_,S,O,m,b),ref:n})))}):P.createElement("g",null,P.createElement("path",ya({},ee(r,!0),{className:x,d:Pg(s,c,f,l,h)})))},MI=["option","shapeType","propTransformer","activeClassName","isActive"];function ti(e){"@babel/helpers - typeof";return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(e)}function CI(e,t){if(e==null)return{};var r=$I(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 $I(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 jg(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 ma(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jg(Object(r),!0).forEach(function(n){II(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function II(e,t,r){return t=kI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kI(e){var t=NI(e,"string");return ti(t)=="symbol"?t:t+""}function NI(e,t){if(ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DI(e,t){return ma(ma({},t),e)}function RI(e,t){return e==="symbols"}function Tg(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return P.createElement(jh,r);case"trapezoid":return P.createElement(EI,r);case"sector":return P.createElement(qx,r);case"symbols":if(RI(t))return P.createElement(Hf,r);break;default:return null}}function qI(e){return L.isValidElement(e)?e.props:e}function LI(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?DI:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=CI(e,MI),c;if(L.isValidElement(t))c=L.cloneElement(t,ma(ma({},s),qI(t)));else if(Q(t))c=t(s);else if(yI(t)&&!bI(t)){var f=i(t,s);c=P.createElement(Tg,{shapeType:r,elementProps:f})}else{var l=s;c=P.createElement(Tg,{shapeType:r,elementProps:l})}return u?P.createElement(he,{className:o},c):c}function to(e,t){return t!=null&&"trapezoids"in e.props}function ro(e,t){return t!=null&&"sectors"in e.props}function ri(e,t){return t!=null&&"points"in e.props}function BI(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 FI(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function zI(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function WI(e,t){var r;return to(e,t)?r=BI:ro(e,t)?r=FI:ri(e,t)&&(r=zI),r}function UI(e,t){var r;return to(e,t)?r="trapezoids":ro(e,t)?r="sectors":ri(e,t)&&(r="points"),r}function KI(e,t){if(to(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(ro(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 ri(e,t)?t.payload:{}}function HI(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=UI(r,t),a=KI(r,t),o=n.filter(function(s,c){var f=Rr(a,s),l=r.props[i].filter(function(y){var v=WI(r,t);return v(y,t)}),h=r.props[i].indexOf(l[l.length-1]),p=c===h;return f&&p}),u=n.indexOf(o[o.length-1]);return u}var Kc,Eg;function GI(){if(Eg)return Kc;Eg=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,s=t(e((i-n)/(a||1)),0),c=Array(s);s--;)c[o?s:++u]=n,n+=a;return c}return Kc=r,Kc}var Hc,Mg;function Hx(){if(Mg)return Hc;Mg=1;var e=E0(),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 Hc=n,Hc}var Gc,Cg;function VI(){if(Cg)return Gc;Cg=1;var e=GI(),t=Ua(),r=Hx();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 Gc=n,Gc}var Vc,$g;function XI(){if($g)return Vc;$g=1;var e=VI(),t=e();return Vc=t,Vc}var YI=XI();const ga=de(YI);function ni(e){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ni(e)}function Ig(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ig(Object(r),!0).forEach(function(n){Gx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ig(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gx(e,t,r){return t=ZI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZI(e){var t=JI(e,"string");return ni(t)=="symbol"?t:t+""}function JI(e,t){if(ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QI=["Webkit","Moz","O","ms"],ek=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=QI.reduce(function(a,o){return kg(kg({},a),{},Gx({},o+n,r))},{});return i[t]=r,i};function Br(e){"@babel/helpers - typeof";return Br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Br(e)}function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ba.apply(this,arguments)}function Ng(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 Xc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ng(Object(r),!0).forEach(function(n){Ke(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ng(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dg(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 rk(e,t,r){return t&&Dg(e.prototype,t),r&&Dg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nk(e,t,r){return t=xa(t),ik(e,Vx()?Reflect.construct(t,r||[],xa(e).constructor):t.apply(e,r))}function ik(e,t){if(t&&(Br(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ak(e)}function ak(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 xa(e){return xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xa(e)}function ok(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&&hf(e,t)}function hf(e,t){return hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hf(e,t)}function Ke(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=uk(e,"string");return Br(t)=="symbol"?t:t+""}function uk(e,t){if(Br(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sk=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 s=r.length,c=Sn().domain(ga(0,s)).range([a,a+o-u]),f=c.domain().map(function(l){return c(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:f}},Rg=function(t){return t.changedTouches&&!!t.changedTouches.length},Fr=(function(e){function t(r){var n;return tk(this,t),n=nk(this,t,[r]),Ke(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ke(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ke(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Ke(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ke(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ke(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ke(n,"handleSlideDragStart",function(i){var a=Rg(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 ok(t,e),rk(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,s=u.gap,c=u.data,f=c.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%s,endIndex:y===f?f:y-y%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=Fe(a[n],u,n);return Q(o)?o(s,n):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,s=this.props,c=s.x,f=s.width,l=s.travellerWidth,h=s.startIndex,p=s.endIndex,y=s.onChange,v=n.pageX-a;v>0?v=Math.min(v,c+f-l-u,c+f-l-o):v<0&&(v=Math.max(v,c-o,c-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=Rg(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,s=i.startX,c=this.state[o],f=this.props,l=f.x,h=f.width,p=f.travellerWidth,y=f.onChange,v=f.gap,d=f.data,g={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+h-p-c):x<0&&(x=Math.max(x,l-c)),g[o]=c+x;var w=this.getIndex(g),O=w.startIndex,m=w.endIndex,b=function(){var S=d.length-1;return o==="startX"&&(u>s?O%v===0:m%v===0)||u<s&&m===S||o==="endX"&&(u>s?m%v===0:O%v===0)||u>s&&m===S};this.setState(Ke(Ke({},o,c+x),"brushMoveStartX",n.pageX),function(){y&&b()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,c=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>=c||i==="endX"&&p<=s||this.setState(Ke({},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,s=n.fill,c=n.stroke;return P.createElement("rect",{stroke:c,fill:s,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,s=n.data,c=n.children,f=n.padding,l=L.Children.only(c);return l?P.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,h=s.traveller,p=s.ariaLabel,y=s.data,v=s.startIndex,d=s.endIndex,g=Math.max(n,this.props.x),x=Xc(Xc({},ee(this.props,!1)),{},{x:g,y:c,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 P.createElement(he,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,0);return P.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,h=f.endX,p=5,y={pointerEvents:"none",fill:c};return P.createElement(he,{className:"recharts-brush-texts"},P.createElement(Hi,ba({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-p,y:o+u/2},y),this.getTextOfTick(i)),P.createElement(Hi,ba({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+s+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,s=n.y,c=n.width,f=n.height,l=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,v=h.isTextActive,d=h.isSlideMoving,g=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!B(u)||!B(s)||!B(c)||!B(f)||c<=0||f<=0)return null;var w=ie("recharts-brush",a),O=P.Children.count(o)===1,m=ek("userSelect","none");return P.createElement(he,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(v||d||g||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(a+u/2)-1;return P.createElement(P.Fragment,null,P.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),P.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),P.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return P.isValidElement(n)?a=P.cloneElement(n,i):Q(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,s=n.travellerWidth,c=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return Xc({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?sk({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:c,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 s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(L.PureComponent);Ke(Fr,"displayName","Brush");Ke(Fr,"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 Yc,qg;function ck(){if(qg)return Yc;qg=1;var e=Qf();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Yc=t,Yc}var Zc,Lg;function lk(){if(Lg)return Zc;Lg=1;var e=o0(),t=Ht(),r=ck(),n=We(),i=Ua();function a(o,u,s){var c=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),c(o,t(u,3))}return Zc=a,Zc}var fk=lk();const hk=de(fk);var mt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Jc,Bg;function dk(){if(Bg)return Jc;Bg=1;var e=S0();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Jc=t,Jc}var Qc,Fg;function pk(){if(Fg)return Qc;Fg=1;var e=dk(),t=O0(),r=Ht();function n(i,a){var o={};return a=r(a,3),t(i,function(u,s,c){e(o,s,a(u,s,c))}),o}return Qc=n,Qc}var vk=pk();const yk=de(vk);var el,zg;function mk(){if(zg)return el;zg=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 el=e,el}var tl,Wg;function gk(){if(Wg)return tl;Wg=1;var e=Qf();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return tl=t,tl}var rl,Ug;function bk(){if(Ug)return rl;Ug=1;var e=mk(),t=gk(),r=Ht(),n=We(),i=Ua();function a(o,u,s){var c=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),c(o,r(u,3))}return rl=a,rl}var xk=bk();const Yx=de(xk);var wk=["x","y"];function ii(e){"@babel/helpers - typeof";return ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ii(e)}function df(){return df=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},df.apply(this,arguments)}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 gn(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){Ok(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 Ok(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=Sk(e,"string");return ii(t)=="symbol"?t:t+""}function Sk(e,t){if(ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ak(e,t){if(e==null)return{};var r=Pk(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 Pk(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 jk(e,t){var r=e.x,n=e.y,i=Ak(e,wk),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),h=parseInt(l,10);return gn(gn(gn(gn(gn({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function Hg(e){return P.createElement(LI,df({shapeType:"rectangle",propTransformer:jk,activeClassName:"recharts-active-bar"},e))}var Tk=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=B(n)||NO(n);return a?t(n,i):(a||fr(),r)}},Ek=["value","background"],Zx;function zr(e){"@babel/helpers - typeof";return zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zr(e)}function Mk(e,t){if(e==null)return{};var r=Ck(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 Ck(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 wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wa.apply(this,arguments)}function Gg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gg(Object(r),!0).forEach(function(n){Wt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vg(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,Qx(n.key),n)}}function Ik(e,t,r){return t&&Vg(e.prototype,t),r&&Vg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function kk(e,t,r){return t=Oa(t),Nk(e,Jx()?Reflect.construct(t,r||[],Oa(e).constructor):t.apply(e,r))}function Nk(e,t){if(t&&(zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dk(e)}function Dk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jx=function(){return!!e})()}function Oa(e){return Oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oa(e)}function Rk(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 Wt(e,t,r){return t=Qx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qx(e){var t=qk(e,"string");return zr(t)=="symbol"?t:t+""}function qk(e,t){if(zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $e=(function(e){function t(){var r;$k(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=kk(this,t,[].concat(i)),Wt(r,"state",{isAnimationFinished:!1}),Wt(r,"id",rn("recharts-bar-")),Wt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Wt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return Rk(t,e),Ik(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,c=a.activeBar,f=ee(this.props,!1);return n&&n.map(function(l,h){var p=h===s,y=p?c:o,v=xe(xe(xe({},f),l),{},{isActive:p,option:y,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return P.createElement(he,wa({className:"recharts-bar-rectangle"},Ni(i.props,l,h),{key:"rectangle-".concat(l==null?void 0:l.x,"-").concat(l==null?void 0:l.y,"-").concat(l==null?void 0:l.value,"-").concat(h)}),P.createElement(Hg,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,f=i.animationEasing,l=i.animationId,h=this.state.prevData;return P.createElement(bt,{begin:s,duration:c,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,g){var x=h&&h[g];if(x){var w=Ie(x.x,d.x),O=Ie(x.y,d.y),m=Ie(x.width,d.width),b=Ie(x.height,d.height);return xe(xe({},d),{},{x:w(y),y:O(y),width:m(y),height:b(y)})}if(o==="horizontal"){var _=Ie(0,d.height),S=_(y);return xe(xe({},d),{},{y:d.y+d.height-S,height:S})}var A=Ie(0,d.width),I=A(y);return xe(xe({},d),{},{width:I})});return P.createElement(he,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Rr(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,s=ee(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,h=Mk(c,Ek);if(!l)return null;var p=xe(xe(xe(xe(xe({},h),{},{fill:"#eee"},l),s),Ni(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return P.createElement(Hg,wa({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,s=a.yAxis,c=a.layout,f=a.children,l=rt(f,vi);if(!l)return null;var h=c==="vertical"?o[0].height/2:o[0].width/2,p=function(d,g){var x=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:x,errorVal:Fe(d,g)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(he,y,l.map(function(v){return P.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,c=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,g=ie("recharts-bar",o),x=u&&u.allowDataOverflow,w=s&&s.allowDataOverflow,O=x||w,m=re(v)?this.id:v;return P.createElement(he,{className:g},x||w?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(m)},P.createElement("rect",{x:x?c:c-l/2,y:w?f:f-h/2,width:x?l:l*2,height:w?h:h*2}))):null,P.createElement(he,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!p||d)&&Ct.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}}])})(L.PureComponent);Zx=$e;Wt($e,"displayName","Bar");Wt($e,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!pr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Wt($e,"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,s=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,p=QE(n,r);if(!p)return null;var y=t.layout,v=r.type.defaultProps,d=v!==void 0?xe(xe({},v),r.props):r.props,g=d.dataKey,x=d.children,w=d.minPointSize,O=y==="horizontal"?o:a,m=c?O.scale.domain():null,b=uM({numericAxis:O}),_=rt(x,On),S=l.map(function(A,I){var M,T,C,$,j,N;c?M=eM(c[f+I],m):(M=Fe(A,g),Array.isArray(M)||(M=[b,M]));var q=Tk(w,Zx.defaultProps.minPointSize)(M[1],I);if(y==="horizontal"){var F,z=[o.scale(M[0]),o.scale(M[1])],H=z[0],V=z[1];T=km({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:A,index:I}),C=(F=V??H)!==null&&F!==void 0?F:void 0,$=p.size;var W=H-V;if(j=Number.isNaN(W)?0:W,N={x:T,y:o.y,width:$,height:o.height},Math.abs(q)>0&&Math.abs(j)<Math.abs(q)){var X=ft(j||q)*(Math.abs(q)-Math.abs(j));C-=X,j+=X}}else{var ce=[a.scale(M[0]),a.scale(M[1])],ye=ce[0],_e=ce[1];if(T=ye,C=km({axis:o,ticks:s,bandSize:i,offset:p.offset,entry:A,index:I}),$=_e-ye,j=p.size,N={x:a.x,y:C,width:a.width,height:j},Math.abs(q)>0&&Math.abs($)<Math.abs(q)){var Ve=ft($||q)*(Math.abs(q)-Math.abs($));$+=Ve}}return xe(xe(xe({},A),{},{x:T,y:C,width:$,height:j,value:c?M:M[1],payload:A,background:N},_&&_[I]&&_[I].props),{},{tooltipPayload:[Nx(r,A)],tooltipPosition:{x:T+$/2,y:C+j/2}})});return xe({data:S,layout:y},h)});function ai(e){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ai(e)}function Lk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ew(n.key),n)}}function Bk(e,t,r){return t&&Xg(e.prototype,t),r&&Xg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}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 st(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){no(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 no(e,t,r){return t=ew(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ew(e){var t=Fk(e,"string");return ai(t)=="symbol"?t:t+""}function Fk(e,t){if(ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Th=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=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=!!He(c,$e);return f.reduce(function(p,y){var v=r[y],d=v.orientation,g=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,m=v.reversed,b="".concat(d).concat(O?"Mirror":""),_,S,A,I,M;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var T=g[1]-g[0],C=1/0,$=v.categoricalDomain.sort(qO);if($.forEach(function(ce,ye){ye>0&&(C=Math.min((ce||0)-($[ye-1]||0),C))}),Number.isFinite(C)){var j=C/T,N=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=j*N/2),v.padding==="no-gap"){var q=cr(t.barCategoryGap,j*N),F=j*N/2;_=F-q-(F-q)/N*q}}}i==="xAxis"?S=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?S=s==="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 z=ZE(v,a,h),H=z.scale,V=z.realScaleType;H.domain(g).range(S),JE(H);var W=oM(H,st(st({},v),{},{realScaleType:V}));i==="xAxis"?(M=d==="top"&&!O||d==="bottom"&&O,A=n.left,I=l[b]-M*v.height):i==="yAxis"&&(M=d==="left"&&!O||d==="right"&&O,A=l[b]-M*v.width,I=n.top);var X=st(st(st({},v),W),{},{realScaleType:V,x:A,y:I,scale:H,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=sa(X,W),!v.hide&&i==="xAxis"?l[b]+=(M?-1:1)*X.height:v.hide||(l[b]+=(M?-1:1)*X.width),st(st({},p),{},no({},y,X))},{})},tw=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)}},zk=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return tw({x:r,y:n},{x:i,y:a})},rw=(function(){function e(t){Lk(this,e),this.scale=t}return Bk(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 s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();no(rw,"EPS",1e-4);var Eh=function(t){var r=Object.keys(t).reduce(function(n,i){return st(st({},n),{},no({},i,rw.create(t[i])))},{});return st(st({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return yk(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return Yx(i,function(a,o){return r[o].isInRange(a)})}})};function Wk(e){return(e%180+180)%180}var Uk=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Wk(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},nl,Zg;function Kk(){if(Zg)return nl;Zg=1;var e=Ht(),t=li(),r=za();function n(i){return function(a,o,u){var s=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(l){return c(s[l],l,s)}}var f=i(a,o,u);return f>-1?s[c?a[f]:f]:void 0}}return nl=n,nl}var il,Jg;function Hk(){if(Jg)return il;Jg=1;var e=Hx();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return il=t,il}var al,Qg;function Gk(){if(Qg)return al;Qg=1;var e=m0(),t=Ht(),r=Hk(),n=Math.max;function i(a,o,u){var s=a==null?0:a.length;if(!s)return-1;var c=u==null?0:r(u);return c<0&&(c=n(s+c,0)),e(a,t(o,3),c)}return al=i,al}var ol,eb;function Vk(){if(eb)return ol;eb=1;var e=Kk(),t=Gk(),r=e(t);return ol=r,ol}var Xk=Vk();const Yk=de(Xk);var Zk=$b();const Jk=de(Zk);var Qk=Jk(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("")}),Mh=L.createContext(void 0),Ch=L.createContext(void 0),nw=L.createContext(void 0),iw=L.createContext({}),aw=L.createContext(void 0),ow=L.createContext(0),uw=L.createContext(0),tb=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,s=t.width,c=t.height,f=Qk(a);return P.createElement(Mh.Provider,{value:n},P.createElement(Ch.Provider,{value:i},P.createElement(iw.Provider,{value:a},P.createElement(nw.Provider,{value:f},P.createElement(aw.Provider,{value:o},P.createElement(ow.Provider,{value:c},P.createElement(uw.Provider,{value:s},u)))))))},eN=function(){return L.useContext(aw)},sw=function(t){var r=L.useContext(Mh);r==null&&fr();var n=r[t];return n==null&&fr(),n},tN=function(){var t=L.useContext(Mh);return Ft(t)},rN=function(){var t=L.useContext(Ch),r=Yk(t,function(n){return Yx(n.domain,Number.isFinite)});return r||Ft(t)},cw=function(t){var r=L.useContext(Ch);r==null&&fr();var n=r[t];return n==null&&fr(),n},nN=function(){var t=L.useContext(nw);return t},iN=function(){return L.useContext(iw)},$h=function(){return L.useContext(uw)},Ih=function(){return L.useContext(ow)};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 aN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oN(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,fw(n.key),n)}}function uN(e,t,r){return t&&oN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sN(e,t,r){return t=_a(t),cN(e,lw()?Reflect.construct(t,r||[],_a(e).constructor):t.apply(e,r))}function cN(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 lN(e)}function lN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lw=function(){return!!e})()}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_a(e)}function fN(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&&vf(e,t)}function vf(e,t){return vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vf(e,t)}function rb(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 nb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rb(Object(r),!0).forEach(function(n){kh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kh(e,t,r){return t=fw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fw(e){var t=hN(e,"string");return Wr(t)=="symbol"?t:t+""}function hN(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)}function dN(e,t){return mN(e)||yN(e,t)||vN(e,t)||pN()}function pN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
65
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vN(e,t){if(e){if(typeof e=="string")return ib(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 ib(e,t)}}function ib(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function mN(e){if(Array.isArray(e))return e}function yf(){return yf=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},yf.apply(this,arguments)}var gN=function(t,r){var n;return P.isValidElement(t)?n=P.cloneElement(t,r):Q(t)?n=t(r):n=P.createElement("line",yf({},r,{className:"recharts-reference-line-line"})),n},bN=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,h=a.width,p=a.height;if(n){var y=c.y,v=t.y.apply(y,{position:o});if(mt(c,"discard")&&!t.y.isInRange(v))return null;var d=[{x:f+h,y:v},{x:f,y:v}];return s==="left"?d.reverse():d}if(r){var g=c.x,x=t.x.apply(g,{position:o});if(mt(c,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+p},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=c.segment,m=O.map(function(b){return t.apply(b,{position:o})});return mt(c,"discard")&&hk(m,function(b){return!t.isInRange(b)})?null:m}return null};function xN(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,c=eN(),f=sw(i),l=cw(a),h=nN();if(!c||!h)return null;Tt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Eh({x:f.scale,y:l.scale}),y=je(t),v=je(r),d=n&&n.length===2,g=bN(p,y,v,d,h,e.position,f.orientation,l.orientation,e);if(!g)return null;var x=dN(g,2),w=x[0],O=w.x,m=w.y,b=x[1],_=b.x,S=b.y,A=mt(e,"hidden")?"url(#".concat(c,")"):void 0,I=nb(nb({clipPath:A},ee(e,!0)),{},{x1:O,y1:m,x2:_,y2:S});return P.createElement(he,{className:ie("recharts-reference-line",u)},gN(o,I),qe.renderCallByParent(e,zk({x1:O,y1:m,x2:_,y2:S})))}var Nh=(function(e){function t(){return aN(this,t),sN(this,t,arguments)}return fN(t,e),uN(t,[{key:"render",value:function(){return P.createElement(xN,this.props)}}])})(P.Component);kh(Nh,"displayName","ReferenceLine");kh(Nh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function mf(){return mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mf.apply(this,arguments)}function Ur(e){"@babel/helpers - typeof";return Ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ur(e)}function ab(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ob(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ab(Object(r),!0).forEach(function(n){io(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ab(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ON(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 _N(e,t,r){return t&&ON(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SN(e,t,r){return t=Sa(t),AN(e,hw()?Reflect.construct(t,r||[],Sa(e).constructor):t.apply(e,r))}function AN(e,t){if(t&&(Ur(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PN(e)}function PN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hw=function(){return!!e})()}function Sa(e){return Sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sa(e)}function jN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gf(e,t)}function gf(e,t){return gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gf(e,t)}function io(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=TN(e,"string");return Ur(t)=="symbol"?t:t+""}function TN(e,t){if(Ur(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var EN=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Eh({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return mt(t,"discard")&&!o.isInRange(u)?null:u},ao=(function(e){function t(){return wN(this,t),SN(this,t,arguments)}return jN(t,e),_N(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,c=je(i),f=je(a);if(Tt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=EN(this.props);if(!l)return null;var h=l.x,p=l.y,y=this.props,v=y.shape,d=y.className,g=mt(this.props,"hidden")?"url(#".concat(s,")"):void 0,x=ob(ob({clipPath:g},ee(this.props,!0)),{},{cx:h,cy:p});return P.createElement(he,{className:ie("recharts-reference-dot",d)},t.renderDot(v,x),qe.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(P.Component);io(ao,"displayName","ReferenceDot");io(ao,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});io(ao,"renderDot",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):Q(e)?r=e(t):r=P.createElement(eo,mf({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function bf(){return bf=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},bf.apply(this,arguments)}function Kr(e){"@babel/helpers - typeof";return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kr(e)}function ub(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 sb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ub(Object(r),!0).forEach(function(n){oo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ub(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vw(n.key),n)}}function $N(e,t,r){return t&&CN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function IN(e,t,r){return t=Aa(t),kN(e,pw()?Reflect.construct(t,r||[],Aa(e).constructor):t.apply(e,r))}function kN(e,t){if(t&&(Kr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NN(e)}function NN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pw=function(){return!!e})()}function Aa(e){return Aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Aa(e)}function DN(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&&xf(e,t)}function xf(e,t){return xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xf(e,t)}function oo(e,t,r){return t=vw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vw(e){var t=RN(e,"string");return Kr(t)=="symbol"?t:t+""}function RN(e,t){if(Kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qN=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var h=Eh({x:f.scale,y:l.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(s,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(u,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(c,{position:"end"}):h.y.rangeMax};return mt(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:tw(p,y)},uo=(function(e){function t(){return MN(this,t),IN(this,t,arguments)}return DN(t,e),$N(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.className,c=n.alwaysShow,f=n.clipPathId;Tt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=je(i),h=je(a),p=je(o),y=je(u),v=this.props.shape;if(!l&&!h&&!p&&!y&&!v)return null;var d=qN(l,h,p,y,this.props);if(!d&&!v)return null;var g=mt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return P.createElement(he,{className:ie("recharts-reference-area",s)},t.renderRect(v,sb(sb({clipPath:g},ee(this.props,!0)),d)),qe.renderCallByParent(this.props,d))}}])})(P.Component);oo(uo,"displayName","ReferenceArea");oo(uo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});oo(uo,"renderRect",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):Q(e)?r=e(t):r=P.createElement(jh,bf({},t,{className:"recharts-reference-area-rect"})),r});function yw(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 LN(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Uk(n,r)}function BN(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 Pa(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 FN(e,t){return yw(e,t+1)}function zN(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,c=1,f=o,l=function(){var y=n==null?void 0:n[s];if(y===void 0)return{v:yw(n,c)};var v=s,d,g=function(){return d===void 0&&(d=r(y,v)),d},x=y.coordinate,w=s===0||Pa(e,x,g,f,u);w||(s=0,f=o,c+=1),w&&(f=x+e*(g()/2+i),s+=c)},h;c<=a.length;)if(h=l(),h)return h.v;return[]}function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function cb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cb(Object(r),!0).forEach(function(n){WN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WN(e,t,r){return t=UN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UN(e){var t=KN(e,"string");return oi(t)=="symbol"?t:t+""}function KN(e,t){if(oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HN(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=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-s);a[h]=p=Re(Re({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=Re(Re({},p),{},{tickCoord:p.coordinate});var g=Pa(e,p.tickCoord,v,u,s);g&&(s=p.tickCoord-e*(v()/2+i),a[h]=Re(Re({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function GN(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var f=n[u-1],l=r(f,u-1),h=e*(f.coordinate+e*l/2-c);o[u-1]=f=Re(Re({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=Pa(e,f.tickCoord,function(){return l},s,c);p&&(c=f.tickCoord-e*(l/2+i),o[u-1]=Re(Re({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,m=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var b=e*(w.coordinate-e*m()/2-s);o[x]=w=Re(Re({},w),{},{tickCoord:b<0?w.coordinate-b*e:w.coordinate})}else o[x]=w=Re(Re({},w),{},{tickCoord:w.coordinate});var _=Pa(e,w.tickCoord,m,s,c);_&&(s=w.tickCoord+e*(m()/2+i),o[x]=Re(Re({},w),{},{isShow:!0}))},d=0;d<y;d++)v(d);return o}function Dh(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,c=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(B(s)||pr.isSsr)return FN(i,typeof s=="number"&&B(s)?s:0);var h=[],p=u==="top"||u==="bottom"?"width":"height",y=f&&p==="width"?_n(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var m=Q(c)?c(w.value,O):w.value;return p==="width"?LN(_n(m,{fontSize:t,letterSpacing:r}),y,l):_n(m,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?ft(i[1].coordinate-i[0].coordinate):1,g=BN(a,d,p);return s==="equidistantPreserveStart"?zN(d,g,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?h=GN(d,g,v,i,o,s==="preserveStartEnd"):h=HN(d,g,v,i,o),h.filter(function(x){return x.isShow}))}var VN=["viewBox"],XN=["viewBox"],YN=["ticks"];function Hr(e){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hr(e)}function _r(){return _r=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},_r.apply(this,arguments)}function lb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lb(Object(r),!0).forEach(function(n){Rh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ul(e,t){if(e==null)return{};var r=ZN(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 ZN(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 JN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fb(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,gw(n.key),n)}}function QN(e,t,r){return t&&fb(e.prototype,t),r&&fb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function eD(e,t,r){return t=ja(t),tD(e,mw()?Reflect.construct(t,r||[],ja(e).constructor):t.apply(e,r))}function tD(e,t){if(t&&(Hr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rD(e)}function rD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mw=function(){return!!e})()}function ja(e){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ja(e)}function nD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wf(e,t)}function wf(e,t){return wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wf(e,t)}function Rh(e,t,r){return t=gw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gw(e){var t=iD(e,"string");return Hr(t)=="symbol"?t:t+""}function iD(e,t){if(Hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sn=(function(e){function t(r){var n;return JN(this,t),n=eD(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return nD(t,e),QN(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=ul(n,VN),u=this.props,s=u.viewBox,c=ul(u,XN);return!Ar(a,s)||!Ar(o,c)||!Ar(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,s=i.height,c=i.orientation,f=i.tickSize,l=i.mirror,h=i.tickMargin,p,y,v,d,g,x,w=l?-1:1,O=n.tickSize||f,m=B(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":p=y=n.coordinate,d=o+ +!l*s,v=d-w*O,x=v-w*h,g=m;break;case"left":v=d=n.coordinate,y=a+ +!l*u,p=y-w*O,g=p-w*h,x=m;break;case"right":v=d=n.coordinate,y=a+ +l*u,p=y+w*O,g=p+w*h,x=m;break;default:p=y=n.coordinate,d=o+ +l*s,v=d+w*O,x=v+w*h,g=m;break}return{line:{x1:p,y1:v,x2:y,y2:d},tick:{x:g,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.orientation,c=n.mirror,f=n.axisLine,l=Ae(Ae(Ae({},ee(this.props,!1)),ee(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var h=+(s==="top"&&!c||s==="bottom"&&c);l=Ae(Ae({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var p=+(s==="left"&&!c||s==="right"&&c);l=Ae(Ae({},l),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+u})}return P.createElement("line",_r({},l,{className:ie("recharts-cartesian-axis-line",tt(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,f=u.tick,l=u.tickFormatter,h=u.unit,p=Dh(Ae(Ae({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),d=ee(this.props,!1),g=ee(f,!1),x=Ae(Ae({},d),{},{fill:"none"},ee(s,!1)),w=p.map(function(O,m){var b=o.getTickLineCoord(O),_=b.line,S=b.tick,A=Ae(Ae(Ae(Ae({textAnchor:y,verticalAnchor:v},d),{},{stroke:"none",fill:c},g),S),{},{index:m,payload:O,visibleTicksCount:p.length,tickFormatter:l});return P.createElement(he,_r({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},Ni(o.props,O,m)),s&&P.createElement("line",_r({},x,_,{className:ie("recharts-cartesian-axis-tick-line",tt(s,"className"))})),f&&t.renderTickItem(f,A,"".concat(Q(l)?l(O.value,m):O.value).concat(h||"")))});return P.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,s=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var l=this.props,h=l.ticks,p=ul(l,YN),y=h;return Q(s)&&(y=h&&h.length>0?s(this.props):s(p)),o<=0||u<=0||!y||!y.length?null:P.createElement(he,{className:ie("recharts-cartesian-axis",c),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),qe.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=ie(i.className,"recharts-cartesian-axis-tick-value");return P.isValidElement(n)?o=P.cloneElement(n,Ae(Ae({},i),{},{className:u})):Q(n)?o=n(Ae(Ae({},i),{},{className:u})):o=P.createElement(Hi,_r({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(L.Component);Rh(sn,"displayName","CartesianAxis");Rh(sn,"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 aD=["x1","y1","x2","y2","key"],oD=["offset"];function hr(e){"@babel/helpers - typeof";return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hr(e)}function hb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hb(Object(r),!0).forEach(function(n){uD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uD(e,t,r){return t=sD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sD(e){var t=cD(e,"string");return hr(t)=="symbol"?t:t+""}function cD(e,t){if(hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ir(){return ir=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},ir.apply(this,arguments)}function db(e,t){if(e==null)return{};var r=lD(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 lD(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 fD=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,s=t.ry;return P.createElement("rect",{x:i,y:a,ry:s,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function bw(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(Q(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,s=db(t,aD),c=ee(s,!1);c.offset;var f=db(c,oD);r=P.createElement("line",ir({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function hD(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,s){var c=Le(Le({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(s),index:s});return bw(i,c)});return P.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function dD(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,s){var c=Le(Le({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(s),index:s});return bw(i,c)});return P.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function pD(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,s=e.horizontal,c=s===void 0?!0:s;if(!c||!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 P.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 P.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function vD(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,s=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var f=c.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 P.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:v,height:s,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var yD=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return Ix(Dh(Le(Le(Le({},sn.defaultProps),n),{},{ticks:Pt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},mD=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return Ix(Dh(Le(Le(Le({},sn.defaultProps),n),{},{ticks:Pt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},xr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Qe(e){var t,r,n,i,a,o,u=$h(),s=Ih(),c=iN(),f=Le(Le({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:xr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:xr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:xr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:xr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:xr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:xr.verticalFill,x:B(e.x)?e.x:c.left,y:B(e.y)?e.y:c.top,width:B(e.width)?e.width:c.width,height:B(e.height)?e.height:c.height}),l=f.x,h=f.y,p=f.width,y=f.height,v=f.syncWithTicks,d=f.horizontalValues,g=f.verticalValues,x=tN(),w=rN();if(!B(p)||p<=0||!B(y)||y<=0||!B(l)||l!==+l||!B(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||yD,m=f.horizontalCoordinatesGenerator||mD,b=f.horizontalPoints,_=f.verticalPoints;if((!b||!b.length)&&Q(m)){var S=d&&d.length,A=m({yAxis:w?Le(Le({},w),{},{ticks:S?d:w.ticks}):void 0,width:u,height:s,offset:c},S?!0:v);Tt(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(hr(A),"]")),Array.isArray(A)&&(b=A)}if((!_||!_.length)&&Q(O)){var I=g&&g.length,M=O({xAxis:x?Le(Le({},x),{},{ticks:I?g:x.ticks}):void 0,width:u,height:s,offset:c},I?!0:v);Tt(Array.isArray(M),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(hr(M),"]")),Array.isArray(M)&&(_=M)}return P.createElement("g",{className:"recharts-cartesian-grid"},P.createElement(fD,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),P.createElement(hD,ir({},f,{offset:c,horizontalPoints:b,xAxis:x,yAxis:w})),P.createElement(dD,ir({},f,{offset:c,verticalPoints:_,xAxis:x,yAxis:w})),P.createElement(pD,ir({},f,{horizontalPoints:b})),P.createElement(vD,ir({},f,{verticalPoints:_})))}Qe.displayName="CartesianGrid";var gD=["type","layout","connectNulls","ref"],bD=["key"];function Gr(e){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gr(e)}function pb(e,t){if(e==null)return{};var r=xD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function jn(){return jn=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},jn.apply(this,arguments)}function vb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vb(Object(r),!0).forEach(function(n){ct(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wr(e){return SD(e)||_D(e)||OD(e)||wD()}function wD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
66
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OD(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 _D(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SD(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 AD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ww(n.key),n)}}function PD(e,t,r){return t&&yb(e.prototype,t),r&&yb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function jD(e,t,r){return t=Ta(t),TD(e,xw()?Reflect.construct(t,r||[],Ta(e).constructor):t.apply(e,r))}function TD(e,t){if(t&&(Gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ED(e)}function ED(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xw=function(){return!!e})()}function Ta(e){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ta(e)}function MD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_f(e,t)}function _f(e,t){return _f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_f(e,t)}function ct(e,t,r){return t=ww(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ww(e){var t=CD(e,"string");return Gr(t)=="symbol"?t:t+""}function CD(e,t){if(Gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yi=(function(e){function t(){var r;AD(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=jD(this,t,[].concat(i)),ct(r,"state",{isAnimationFinished:!0,totalLength:0}),ct(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),ct(r,"getStrokeDasharray",function(o,u,s){var c=s.reduce(function(g,x){return g+x});if(!c)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/c),l=o%c,h=u-o,p=[],y=0,v=0;y<s.length;v+=s[y],++y)if(v+s[y]>l){p=[].concat(wr(s.slice(0,y)),[l-v]);break}var d=p.length%2===0?[0,h]:[h];return[].concat(wr(t.repeat(s,f)),wr(p),d).map(function(g){return"".concat(g,"px")}).join(", ")}),ct(r,"id",rn("recharts-line-")),ct(r,"pathRef",function(o){r.mainCurve=o}),ct(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),ct(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return MD(t,e),PD(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,s=a.yAxis,c=a.layout,f=a.children,l=rt(f,vi);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 P.createElement(he,p,l.map(function(y){return P.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,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,s=u.dot,c=u.points,f=u.dataKey,l=ee(this.props,!1),h=ee(s,!0),p=c.map(function(v,d){var g=Ue(Ue(Ue({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:c});return t.renderDotItem(s,g)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(he,jn({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,s=u.type,c=u.layout,f=u.connectNulls;u.ref;var l=pb(u,gD),h=Ue(Ue(Ue({},ee(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:s,layout:c,connectNulls:f});return P.createElement(Tr,jn({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.strokeDasharray,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,v=o.width,d=o.height,g=this.state,x=g.prevPoints,w=g.totalLength;return P.createElement(bt,{begin:f,duration:l,isActive:c,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var m=O.t;if(x){var b=x.length/u.length,_=u.map(function(T,C){var $=Math.floor(C*b);if(x[$]){var j=x[$],N=Ie(j.x,T.x),q=Ie(j.y,T.y);return Ue(Ue({},T),{},{x:N(m),y:q(m)})}if(y){var F=Ie(v*2,T.x),z=Ie(d/2,T.y);return Ue(Ue({},T),{},{x:F(m),y:z(m)})}return Ue(Ue({},T),{},{x:T.x,y:T.y})});return a.renderCurveStatically(_,n,i)}var S=Ie(0,w),A=S(m),I;if(s){var M="".concat(s).split(/[,\s]+/gim).map(function(T){return parseFloat(T)});I=a.getStrokeDasharray(A,w,M)}else I=a.generateSimpleStrokeDasharray(w,A);return a.renderCurveStatically(u,n,i,{strokeDasharray:I})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,s=this.state,c=s.prevPoints,f=s.totalLength;return u&&o&&o.length&&(!c&&f>0||!Rr(c,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,s=i.className,c=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 g=this.state.isAnimationFinished,x=u.length===1,w=ie("recharts-line",s),O=c&&c.allowDataOverflow,m=f&&f.allowDataOverflow,b=O||m,_=re(d)?this.id:d,S=(n=ee(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=S.r,I=A===void 0?3:A,M=S.strokeWidth,T=M===void 0?2:M,C=Rb(o)?o:{},$=C.clipDot,j=$===void 0?!0:$,N=I*2+T;return P.createElement(he,{className:w},O||m?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(_)},P.createElement("rect",{x:O?h:h-p/2,y:m?l:l-y/2,width:O?p:p*2,height:m?y:y*2})),!j&&P.createElement("clipPath",{id:"clipPath-dots-".concat(_)},P.createElement("rect",{x:h-N/2,y:l-N/2,width:p+N,height:y+N}))):null,!x&&this.renderCurve(b,_),this.renderErrorBar(b,_),(x||o)&&this.renderDots(b,j,_),(!v||g)&&Ct.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(wr(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(wr(o),wr(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(P.isValidElement(n))a=P.cloneElement(n,i);else if(Q(n))a=n(i);else{var o=i.key,u=pb(i,bD),s=ie("recharts-line-dot",typeof n!="boolean"?n.className:"");a=P.createElement(eo,jn({key:o},u,{className:s}))}return a}}])})(L.PureComponent);ct(yi,"displayName","Line");ct(yi,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!pr.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});ct(yi,"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,s=e.displayedData,c=e.offset,f=t.layout,l=s.map(function(h,p){var y=Fe(h,o);return f==="horizontal"?{x:ua({axis:r,ticks:i,bandSize:u,entry:h,index:p}),y:re(y)?null:n.scale(y),value:y,payload:h}:{x:re(y)?null:r.scale(y),y:ua({axis:n,ticks:a,bandSize:u,entry:h,index:p}),value:y,payload:h}});return Ue({points:l,layout:f},c)});var $D=["layout","type","stroke","connectNulls","isRange","ref"],ID=["key"],Ow;function Vr(e){"@babel/helpers - typeof";return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vr(e)}function _w(e,t){if(e==null)return{};var r=kD(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 kD(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 ar(){return ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ar.apply(this,arguments)}function mb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mb(Object(r),!0).forEach(function(n){vt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ND(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Aw(n.key),n)}}function DD(e,t,r){return t&&gb(e.prototype,t),r&&gb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RD(e,t,r){return t=Ea(t),qD(e,Sw()?Reflect.construct(t,r||[],Ea(e).constructor):t.apply(e,r))}function qD(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 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 Sw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sw=function(){return!!e})()}function Ea(e){return Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ea(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&&Sf(e,t)}function Sf(e,t){return Sf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sf(e,t)}function vt(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=FD(e,"string");return Vr(t)=="symbol"?t:t+""}function FD(e,t){if(Vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ht=(function(e){function t(){var r;ND(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=RD(this,t,[].concat(i)),vt(r,"state",{isAnimationFinished:!0}),vt(r,"id",rn("recharts-area-")),vt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Q(o)&&o()}),vt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Q(o)&&o()}),r}return BD(t,e),DD(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var s=this.props,c=s.dot,f=s.points,l=s.dataKey,h=ee(this.props,!1),p=ee(c,!0),y=f.map(function(d,g){var x=Lt(Lt(Lt({key:"dot-".concat(g),r:3},h),p),{},{index:g,cx:d.x,cy:d.y,dataKey:l,value:d.value,payload:d.payload,points:f});return t.renderDotItem(c,x)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(he,ar({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].x,c=o[o.length-1].x,f=n*Math.abs(s-c),l=zt(o.map(function(h){return h.y||0}));return B(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(zt(a.map(function(h){return h.y||0})),l)),B(l)?P.createElement("rect",{x:s<c?s:s-f,y:0,width:f,height:Math.floor(l+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].y,c=o[o.length-1].y,f=n*Math.abs(s-c),l=zt(o.map(function(h){return h.x||0}));return B(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(zt(a.map(function(h){return h.x||0})),l)),B(l)?P.createElement("rect",{x:0,y:s<c?s:s-f,width:l+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,s=u.layout,c=u.type,f=u.stroke,l=u.connectNulls,h=u.isRange;u.ref;var p=_w(u,$D);return P.createElement(he,{clipPath:a?"url(#clipPath-".concat(o,")"):null},P.createElement(Tr,ar({},ee(p,!0),{points:n,connectNulls:l,type:c,baseLine:i,layout:s,stroke:"none",className:"recharts-area-area"})),f!=="none"&&P.createElement(Tr,ar({},ee(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:n})),f!=="none"&&h&&P.createElement(Tr,ar({},ee(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.baseLine,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,h=o.animationEasing,p=o.animationId,y=this.state,v=y.prevPoints,d=y.prevBaseLine;return P.createElement(bt,{begin:f,duration:l,isActive:c,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var x=g.t;if(v){var w=v.length/u.length,O=u.map(function(S,A){var I=Math.floor(A*w);if(v[I]){var M=v[I],T=Ie(M.x,S.x),C=Ie(M.y,S.y);return Lt(Lt({},S),{},{x:T(x),y:C(x)})}return S}),m;if(B(s)&&typeof s=="number"){var b=Ie(d,s);m=b(x)}else if(re(s)||tn(s)){var _=Ie(d,0);m=_(x)}else m=s.map(function(S,A){var I=Math.floor(A*w);if(d[I]){var M=d[I],T=Ie(M.x,S.x),C=Ie(M.y,S.y);return Lt(Lt({},S),{},{x:T(x),y:C(x)})}return S});return a.renderAreaStatically(O,m,n,i)}return P.createElement(he,null,P.createElement("defs",null,P.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),P.createElement(he,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,s,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,s=a.isAnimationActive,c=this.state,f=c.prevPoints,l=c.prevBaseLine,h=c.totalLength;return s&&o&&o.length&&(!f&&h>0||!Rr(f,o)||!Rr(l,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.top,f=i.left,l=i.xAxis,h=i.yAxis,p=i.width,y=i.height,v=i.isAnimationActive,d=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,x=u.length===1,w=ie("recharts-area",s),O=l&&l.allowDataOverflow,m=h&&h.allowDataOverflow,b=O||m,_=re(d)?this.id:d,S=(n=ee(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=S.r,I=A===void 0?3:A,M=S.strokeWidth,T=M===void 0?2:M,C=Rb(o)?o:{},$=C.clipDot,j=$===void 0?!0:$,N=I*2+T;return P.createElement(he,{className:w},O||m?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(_)},P.createElement("rect",{x:O?f:f-p/2,y:m?c:c-y/2,width:O?p:p*2,height:m?y:y*2})),!j&&P.createElement("clipPath",{id:"clipPath-dots-".concat(_)},P.createElement("rect",{x:f-N/2,y:c-N/2,width:p+N,height:y+N}))):null,x?null:this.renderArea(b,_),(o||x)&&this.renderDots(b,j,_),(!v||g)&&Ct.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(L.PureComponent);Ow=ht;vt(ht,"displayName","Area");vt(ht,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!pr.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});vt(ht,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(B(u)&&typeof u=="number")return u;var s=i==="horizontal"?n:r,c=s.scale.domain();if(s.type==="number"){var f=Math.max(c[0],c[1]),l=Math.min(c[0],c[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return u==="dataMin"?c[0]:u==="dataMax"?c[1]:c[0]});vt(ht,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,s=e.dataKey,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,p=t.layout,y=c&&c.length,v=Ow.getBaseValue(t,r,n,i),d=p==="horizontal",g=!1,x=l.map(function(O,m){var b;y?b=c[f+m]:(b=Fe(O,s),Array.isArray(b)?g=!0:b=[v,b]);var _=b[1]==null||y&&Fe(O,s)==null;return d?{x:ua({axis:n,ticks:a,bandSize:u,entry:O,index:m}),y:_?null:i.scale(b[1]),value:b,payload:O}:{x:_?null:n.scale(b[1]),y:ua({axis:i,ticks:o,bandSize:u,entry:O,index:m}),value:b,payload:O}}),w;return y||g?w=x.map(function(O){var m=Array.isArray(O.value)?O.value[0]:null;return d?{x:O.x,y:m!=null&&O.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:O.y}}):w=d?i.scale(v):n.scale(v),Lt({points:x,baseLine:w,layout:p,isRange:g},h)});vt(ht,"renderDotItem",function(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(Q(e))r=e(t);else{var n=ie("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=_w(t,ID);r=P.createElement(eo,ar({},a,{key:i,className:n}))}return r});function Xr(e){"@babel/helpers - typeof";return Xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xr(e)}function zD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WD(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,Tw(n.key),n)}}function UD(e,t,r){return t&&WD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KD(e,t,r){return t=Ma(t),HD(e,Pw()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}function HD(e,t){if(t&&(Xr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return 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 Pw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pw=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ma(e)}function VD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 jw(e,t,r){return t=Tw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tw(e){var t=XD(e,"string");return Xr(t)=="symbol"?t:t+""}function XD(e,t){if(Xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Pf(){return Pf=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},Pf.apply(this,arguments)}function YD(e){var t=e.xAxisId,r=$h(),n=Ih(),i=sw(t);return i==null?null:L.createElement(sn,Pf({},i,{className:ie("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Pt(o,!0)}}))}var Ne=(function(e){function t(){return zD(this,t),KD(this,t,arguments)}return VD(t,e),UD(t,[{key:"render",value:function(){return L.createElement(YD,this.props)}}])})(L.Component);jw(Ne,"displayName","XAxis");jw(Ne,"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 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 ZD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JD(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 QD(e,t,r){return t&&JD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eR(e,t,r){return t=Ca(t),tR(e,Ew()?Reflect.construct(t,r||[],Ca(e).constructor):t.apply(e,r))}function tR(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 rR(e)}function rR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ew(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ew=function(){return!!e})()}function Ca(e){return Ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ca(e)}function nR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jf(e,t)}function jf(e,t){return jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jf(e,t)}function Mw(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=iR(e,"string");return Yr(t)=="symbol"?t:t+""}function iR(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)}function Tf(){return Tf=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},Tf.apply(this,arguments)}var aR=function(t){var r=t.yAxisId,n=$h(),i=Ih(),a=cw(r);return a==null?null:L.createElement(sn,Tf({},a,{className:ie("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return Pt(u,!0)}}))},De=(function(e){function t(){return ZD(this,t),eR(this,t,arguments)}return nR(t,e),QD(t,[{key:"render",value:function(){return L.createElement(aR,this.props)}}])})(L.Component);Mw(De,"displayName","YAxis");Mw(De,"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 bb(e){return cR(e)||sR(e)||uR(e)||oR()}function oR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
67
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uR(e,t){if(e){if(typeof e=="string")return Ef(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 Ef(e,t)}}function sR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cR(e){if(Array.isArray(e))return Ef(e)}function Ef(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 Mf=function(t,r,n,i,a){var o=rt(t,Nh),u=rt(t,ao),s=[].concat(bb(o),bb(u)),c=rt(t,uo),f="".concat(i,"Id"),l=i[0],h=r;if(s.length&&(h=s.reduce(function(v,d){if(d.props[f]===n&&mt(d.props,"extendDomain")&&B(d.props[l])){var g=d.props[l];return[Math.min(v[0],g),Math.max(v[1],g)]}return v},h)),c.length){var p="".concat(l,"1"),y="".concat(l,"2");h=c.reduce(function(v,d){if(d.props[f]===n&&mt(d.props,"extendDomain")&&B(d.props[p])&&B(d.props[y])){var g=d.props[p],x=d.props[y];return[Math.min(v[0],g,x),Math.max(v[1],g,x)]}return v},h)}return a&&a.length&&(h=a.reduce(function(v,d){return B(d)?[Math.min(v[0],d),Math.max(v[1],d)]:v},h)),h},sl={exports:{}},xb;function lR(){return xb||(xb=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(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function a(s,c,f,l,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,l||s,h),y=r?r+c:c;return s._events[y]?s._events[y].fn?s._events[y]=[s._events[y],p]:s._events[y].push(p):(s._events[y]=p,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],f,l;if(this._eventsCount===0)return c;for(l in f=this._events)t.call(f,l)&&c.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},u.prototype.listeners=function(c){var f=r?r+c:c,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(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(c,f,l,h,p,y){var v=r?r+c:c;if(!this._events[v])return!1;var d=this._events[v],g=arguments.length,x,w;if(d.fn){switch(d.once&&this.removeListener(c,d.fn,void 0,!0),g){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,f),!0;case 3:return d.fn.call(d.context,f,l),!0;case 4:return d.fn.call(d.context,f,l,h),!0;case 5:return d.fn.call(d.context,f,l,h,p),!0;case 6:return d.fn.call(d.context,f,l,h,p,y),!0}for(w=1,x=new Array(g-1);w<g;w++)x[w-1]=arguments[w];d.fn.apply(d.context,x)}else{var O=d.length,m;for(w=0;w<O;w++)switch(d[w].once&&this.removeListener(c,d[w].fn,void 0,!0),g){case 1:d[w].fn.call(d[w].context);break;case 2:d[w].fn.call(d[w].context,f);break;case 3:d[w].fn.call(d[w].context,f,l);break;case 4:d[w].fn.call(d[w].context,f,l,h);break;default:if(!x)for(m=1,x=new Array(g-1);m<g;m++)x[m-1]=arguments[m];d[w].fn.apply(d[w].context,x)}}return!0},u.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,h){var p=r?r+c:c;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=[],g=y.length;v<g;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(c){var f;return c?(f=r?r+c:c,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})(sl)),sl.exports}var fR=lR();const hR=de(fR);var cl=new hR,ll="recharts.syncMouseEvents";function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(e)}function dR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$w(n.key),n)}}function vR(e,t,r){return t&&pR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fl(e,t,r){return t=$w(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $w(e){var t=yR(e,"string");return ui(t)=="symbol"?t:t+""}function yR(e,t){if(ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mR=(function(){function e(){dR(this,e),fl(this,"activeIndex",0),fl(this,"coordinateList",[]),fl(this,"layout","horizontal")}return vR(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,s=r.layout,c=s===void 0?null:s,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=c??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,s=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+s+c,h=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:h})}}}])})();function gR(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&B(n)&&B(i))return!0}return!1}function bR(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 Iw(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=ke(t,r,n,i),u=ke(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function xR(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,s=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,h=ke(u,s,c,l),p=ke(u,s,f,l);n=h.x,i=h.y,a=p.x,o=p.y}else return Iw(t);return[{x:n,y:i},{x:a,y:o}]}function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}function wb(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 Ci(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wb(Object(r),!0).forEach(function(n){wR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wR(e,t,r){return t=OR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OR(e){var t=_R(e,"string");return si(t)=="symbol"?t:t+""}function _R(e,t){if(si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SR(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=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=Tr;if(h==="ScatterChart")y=o,v=hI;else if(h==="BarChart")y=bR(l,o,s,f),v=jh;else if(l==="radial"){var d=Iw(o),g=d.cx,x=d.cy,w=d.radius,O=d.startAngle,m=d.endAngle;y={cx:g,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=qx}else y={points:xR(l,o,s)},v=Tr;var b=Ci(Ci(Ci(Ci({stroke:"#ccc",pointerEvents:"none"},s),y),ee(p,!1)),{},{payload:u,payloadIndex:c,className:ie("recharts-tooltip-cursor",p.className)});return L.isValidElement(p)?L.cloneElement(p,b):L.createElement(v,b)}var AR=["item"],PR=["children","className","width","height","style","compact","title","desc"];function Zr(e){"@babel/helpers - typeof";return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zr(e)}function 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 Ob(e,t){return ER(e)||TR(e,t)||Nw(e,t)||jR()}function jR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
68
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function ER(e){if(Array.isArray(e))return e}function _b(e,t){if(e==null)return{};var r=MR(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 MR(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 CR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $R(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&&$R(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kR(e,t,r){return t=$a(t),NR(e,kw()?Reflect.construct(t,r||[],$a(e).constructor):t.apply(e,r))}function NR(e,t){if(t&&(Zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DR(e)}function DR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kw=function(){return!!e})()}function $a(e){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$a(e)}function RR(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 Jr(e){return BR(e)||LR(e)||Nw(e)||qR()}function qR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
69
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nw(e,t){if(e){if(typeof e=="string")return $f(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 $f(e,t)}}function LR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BR(e){if(Array.isArray(e))return $f(e)}function $f(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 Sb(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 k(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sb(Object(r),!0).forEach(function(n){Y(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y(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=FR(e,"string");return Zr(t)=="symbol"?t:t+""}function FR(e,t){if(Zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zR={xAxis:["bottom","top"],yAxis:["left","right"]},WR={width:"100%",height:"100%"},Rw={x:0,y:0};function $i(e){return e}var UR=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},KR=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 k(k(k({},i),ke(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return k(k(k({},i),ke(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return Rw},so=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var c=s.props.data;return c&&c.length?[].concat(Jr(u),Jr(c)):u},[]);return o.length>0?o:t&&t.length&&B(i)&&B(a)?t.slice(i,a+1):[]};function qw(e){return e==="number"?[0,"auto"]:void 0}var If=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=so(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var f,l=(f=c.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=Ii(p,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Jr(s),[Nx(c,h)]):s},[])},Ab=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=UR(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=KE(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,h=If(t,r,f,l),p=KR(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:p}}return null},HR=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,p=$x(f,a);return n.reduce(function(y,v){var d,g=v.type.defaultProps!==void 0?k(k({},v.type.defaultProps),v.props):v.props,x=g.type,w=g.dataKey,O=g.allowDataOverflow,m=g.allowDuplicatedCategory,b=g.scale,_=g.ticks,S=g.includeHidden,A=g[o];if(y[A])return y;var I=so(t.data,{graphicalItems:i.filter(function(W){var X,ce=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o];return ce===A}),dataStartIndex:s,dataEndIndex:c}),M=I.length,T,C,$;gR(g.domain,O,x)&&(T=Xl(g.domain,null,O),p&&(x==="number"||b!=="auto")&&($=An(I,w,"category")));var j=qw(x);if(!T||T.length===0){var N,q=(N=g.domain)!==null&&N!==void 0?N:j;if(w){if(T=An(I,w,x),x==="category"&&p){var F=RO(T);m&&F?(C=T,T=ga(0,M)):m||(T=Rm(q,T,v).reduce(function(W,X){return W.indexOf(X)>=0?W:[].concat(Jr(W),[X])},[]))}else if(x==="category")m?T=T.filter(function(W){return W!==""&&!re(W)}):T=Rm(q,T,v).reduce(function(W,X){return W.indexOf(X)>=0||X===""||re(X)?W:[].concat(Jr(W),[X])},[]);else if(x==="number"){var z=YE(I,i.filter(function(W){var X,ce,ye=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o],_e="hide"in W.props?W.props.hide:(ce=W.type.defaultProps)===null||ce===void 0?void 0:ce.hide;return ye===A&&(S||!_e)}),w,a,f);z&&(T=z)}p&&(x==="number"||b!=="auto")&&($=An(I,w,"category"))}else p?T=ga(0,M):u&&u[A]&&u[A].hasStack&&x==="number"?T=h==="expand"?[0,1]:kx(u[A].stackGroups,s,c):T=Cx(I,i.filter(function(W){var X=o in W.props?W.props[o]:W.type.defaultProps[o],ce="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return X===A&&(S||!ce)}),x,f,!0);if(x==="number")T=Mf(l,T,A,a,_),q&&(T=Xl(q,T,O));else if(x==="category"&&q){var H=q,V=T.every(function(W){return H.indexOf(W)>=0});V&&(T=H)}}return k(k({},y),{},Y({},A,k(k({},g),{},{axisType:a,domain:T,categoricalDomain:$,duplicateDomain:C,originalDomain:(d=g.domain)!==null&&d!==void 0?d:j,isCategorical:p,layout:f})))},{})},GR=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,h=so(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=h.length,y=$x(f,a),v=-1;return n.reduce(function(d,g){var x=g.type.defaultProps!==void 0?k(k({},g.type.defaultProps),g.props):g.props,w=x[o],O=qw("number");if(!d[w]){v++;var m;return y?m=ga(0,p):u&&u[w]&&u[w].hasStack?(m=kx(u[w].stackGroups,s,c),m=Mf(l,m,w,a)):(m=Xl(O,Cx(h,n.filter(function(b){var _,S,A=o in b.props?b.props[o]:(_=b.type.defaultProps)===null||_===void 0?void 0:_[o],I="hide"in b.props?b.props.hide:(S=b.type.defaultProps)===null||S===void 0?void 0:S.hide;return A===w&&!I}),"number",f),i.defaultProps.allowDataOverflow),m=Mf(l,m,w,a)),k(k({},d),{},Y({},w,k(k({axisType:a},i.defaultProps),{},{hide:!0,orientation:tt(zR,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return d},{})},VR=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=rt(f,a),p={};return h&&h.length?p=HR(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=GR(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),p},XR=function(t){var r=Ft(t),n=Pt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:eh(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:sa(r,n)}},Pb=function(t){var r=t.children,n=t.defaultShowTooltip,i=He(r,Fr),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}},YR=function(t){return!t||!t.length?!1:t.some(function(r){var n=jt(r&&r.type);return n&&n.indexOf("Bar")>=0})},jb=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"}},ZR=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,f=n.height,l=n.children,h=n.margin||{},p=He(l,Fr),y=He(l,Et),v=Object.keys(s).reduce(function(m,b){var _=s[b],S=_.orientation;return!_.mirror&&!_.hide?k(k({},m),{},Y({},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?k(k({},m),{},Y({},S,tt(m,"".concat(S))+_.height)):m},{top:h.top||0,bottom:h.bottom||0}),g=k(k({},d),v),x=g.bottom;p&&(g.bottom+=p.props.height||Fr.defaultProps.height),y&&r&&(g=VE(g,i,n,r));var w=c-g.left-g.right,O=f-g.top-g.bottom;return k(k({brushBottom:x},g),{},{width:Math.max(w,0),height:Math.max(O,0)})},JR=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},qh=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,s=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,h=function(g,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,b=x.updateId,_=x.dataStartIndex,S=x.dataEndIndex,A=g.barSize,I=g.layout,M=g.barGap,T=g.barCategoryGap,C=g.maxBarSize,$=jb(I),j=$.numericAxisName,N=$.cateAxisName,q=YR(w),F=[];return w.forEach(function(z,H){var V=so(g.data,{graphicalItems:[z],dataStartIndex:_,dataEndIndex:S}),W=z.type.defaultProps!==void 0?k(k({},z.type.defaultProps),z.props):z.props,X=W.dataKey,ce=W.maxBarSize,ye=W["".concat(j,"Id")],_e=W["".concat(N,"Id")],Ve={},Se=s.reduce(function(Yt,Zt){var co=x["".concat(Zt.axisType,"Map")],Bh=W["".concat(Zt.axisType,"Id")];co&&co[Bh]||Zt.axisType==="zAxis"||fr();var Fh=co[Bh];return k(k({},Yt),{},Y(Y({},Zt.axisType,Fh),"".concat(Zt.axisType,"Ticks"),Pt(Fh)))},Ve),U=Se[N],Z=Se["".concat(N,"Ticks")],J=O&&O[ye]&&O[ye].hasStack&&sM(z,O[ye].stackGroups),R=jt(z.type).indexOf("Bar")>=0,pe=sa(U,Z),ne=[],D=q&&HE({barSize:A,stackGroups:O,totalSize:JR(Se,N)});if(R){var K,te,be=re(ce)?C:ce,wt=(K=(te=sa(U,Z,!0))!==null&&te!==void 0?te:be)!==null&&K!==void 0?K:0;ne=GE({barGap:M,barCategoryGap:T,bandSize:wt!==pe?wt:pe,sizeList:D[_e],maxBarSize:be}),wt!==pe&&(ne=ne.map(function(Yt){return k(k({},Yt),{},{position:k(k({},Yt.position),{},{offset:Yt.position.offset-wt/2})})}))}var mi=z&&z.type&&z.type.getComposedData;mi&&F.push({props:k(k({},mi(k(k({},Se),{},{displayedData:V,props:g,dataKey:X,item:z,bandSize:pe,barPosition:ne,offset:m,stackedData:J,layout:I,dataStartIndex:_,dataEndIndex:S}))),{},Y(Y(Y({key:z.key||"item-".concat(H)},j,Se[j]),N,Se[N]),"animationId",b)),childIndex:XO(z,g.children),item:z})}),F},p=function(g,x){var w=g.props,O=g.dataStartIndex,m=g.dataEndIndex,b=g.updateId;if(!Jd({props:w}))return null;var _=w.children,S=w.layout,A=w.stackOffset,I=w.data,M=w.reverseStackOrder,T=jb(S),C=T.numericAxisName,$=T.cateAxisName,j=rt(_,n),N=aM(I,j,"".concat(C,"Id"),"".concat($,"Id"),A,M),q=s.reduce(function(W,X){var ce="".concat(X.axisType,"Map");return k(k({},W),{},Y({},ce,VR(w,k(k({},X),{},{graphicalItems:j,stackGroups:X.axisType===C&&N,dataStartIndex:O,dataEndIndex:m}))))},{}),F=ZR(k(k({},q),{},{props:w,graphicalItems:j}),x==null?void 0:x.legendBBox);Object.keys(q).forEach(function(W){q[W]=f(w,q[W],F,W.replace("Map",""),r)});var z=q["".concat($,"Map")],H=XR(z),V=h(w,k(k({},q),{},{dataStartIndex:O,dataEndIndex:m,updateId:b,graphicalItems:j,stackGroups:N,offset:F}));return k(k({formattedGraphicalItems:V,graphicalItems:j,offset:F,stackGroups:N},H),q)},y=(function(d){function g(x){var w,O,m;return CR(this,g),m=kR(this,g,[x]),Y(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Y(m,"accessibilityManager",new mR),Y(m,"handleLegendBBoxUpdate",function(b){if(b){var _=m.state,S=_.dataStartIndex,A=_.dataEndIndex,I=_.updateId;m.setState(k({legendBBox:b},p({props:m.props,dataStartIndex:S,dataEndIndex:A,updateId:I},k(k({},m.state),{},{legendBBox:b}))))}}),Y(m,"handleReceiveSyncEvent",function(b,_,S){if(m.props.syncId===b){if(S===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),Y(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 k({dataStartIndex:_,dataEndIndex:S},p({props:m.props,dataStartIndex:_,dataEndIndex:S,updateId:A},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:S})}}),Y(m,"handleMouseEnter",function(b){var _=m.getMouseInfo(b);if(_){var S=k(k({},_),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var A=m.props.onMouseEnter;Q(A)&&A(S,b)}}),Y(m,"triggeredAfterMouseMove",function(b){var _=m.getMouseInfo(b),S=_?k(k({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var A=m.props.onMouseMove;Q(A)&&A(S,b)}),Y(m,"handleItemMouseEnter",function(b){m.setState(function(){return{isTooltipActive:!0,activeItem:b,activePayload:b.tooltipPayload,activeCoordinate:b.tooltipPosition||{x:b.cx,y:b.cy}}})}),Y(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),Y(m,"handleMouseMove",function(b){b.persist(),m.throttleTriggeredAfterMouseMove(b)}),Y(m,"handleMouseLeave",function(b){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var S=m.props.onMouseLeave;Q(S)&&S(_,b)}),Y(m,"handleOuterEvent",function(b){var _=VO(b),S=tt(m.props,"".concat(_));if(_&&Q(S)){var A,I;/.*touch.*/i.test(_)?I=m.getMouseInfo(b.changedTouches[0]):I=m.getMouseInfo(b),S((A=I)!==null&&A!==void 0?A:{},b)}}),Y(m,"handleClick",function(b){var _=m.getMouseInfo(b);if(_){var S=k(k({},_),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var A=m.props.onClick;Q(A)&&A(S,b)}}),Y(m,"handleMouseDown",function(b){var _=m.props.onMouseDown;if(Q(_)){var S=m.getMouseInfo(b);_(S,b)}}),Y(m,"handleMouseUp",function(b){var _=m.props.onMouseUp;if(Q(_)){var S=m.getMouseInfo(b);_(S,b)}}),Y(m,"handleTouchMove",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(b.changedTouches[0])}),Y(m,"handleTouchStart",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseDown(b.changedTouches[0])}),Y(m,"handleTouchEnd",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseUp(b.changedTouches[0])}),Y(m,"handleDoubleClick",function(b){var _=m.props.onDoubleClick;if(Q(_)){var S=m.getMouseInfo(b);_(S,b)}}),Y(m,"handleContextMenu",function(b){var _=m.props.onContextMenu;if(Q(_)){var S=m.getMouseInfo(b);_(S,b)}}),Y(m,"triggerSyncEvent",function(b){m.props.syncId!==void 0&&cl.emit(ll,m.props.syncId,b,m.eventEmitterSymbol)}),Y(m,"applySyncEvent",function(b){var _=m.props,S=_.layout,A=_.syncMethod,I=m.state.updateId,M=b.dataStartIndex,T=b.dataEndIndex;if(b.dataStartIndex!==void 0||b.dataEndIndex!==void 0)m.setState(k({dataStartIndex:M,dataEndIndex:T},p({props:m.props,dataStartIndex:M,dataEndIndex:T,updateId:I},m.state)));else if(b.activeTooltipIndex!==void 0){var C=b.chartX,$=b.chartY,j=b.activeTooltipIndex,N=m.state,q=N.offset,F=N.tooltipTicks;if(!q)return;if(typeof A=="function")j=A(F,b);else if(A==="value"){j=-1;for(var z=0;z<F.length;z++)if(F[z].value===b.activeLabel){j=z;break}}var H=k(k({},q),{},{x:q.left,y:q.top}),V=Math.min(C,H.x+H.width),W=Math.min($,H.y+H.height),X=F[j]&&F[j].value,ce=If(m.state,m.props.data,j),ye=F[j]?{x:S==="horizontal"?F[j].coordinate:V,y:S==="horizontal"?W:F[j].coordinate}:Rw;m.setState(k(k({},b),{},{activeLabel:X,activeCoordinate:ye,activePayload:ce,activeTooltipIndex:j}))}else m.setState(b)}),Y(m,"renderCursor",function(b){var _,S=m.state,A=S.isTooltipActive,I=S.activeCoordinate,M=S.activePayload,T=S.offset,C=S.activeTooltipIndex,$=S.tooltipAxisBandSize,j=m.getTooltipEventType(),N=(_=b.props.active)!==null&&_!==void 0?_:A,q=m.props.layout,F=b.key||"_recharts-cursor";return P.createElement(SR,{key:F,activeCoordinate:I,activePayload:M,activeTooltipIndex:C,chartName:r,element:b,isActive:N,layout:q,offset:T,tooltipAxisBandSize:$,tooltipEventType:j})}),Y(m,"renderPolarAxis",function(b,_,S){var A=tt(b,"type.axisType"),I=tt(m.state,"".concat(A,"Map")),M=b.type.defaultProps,T=M!==void 0?k(k({},M),b.props):b.props,C=I&&I[T["".concat(A,"Id")]];return L.cloneElement(b,k(k({},C),{},{className:ie(A,C.className),key:b.key||"".concat(_,"-").concat(S),ticks:Pt(C,!0)}))}),Y(m,"renderPolarGrid",function(b){var _=b.props,S=_.radialLines,A=_.polarAngles,I=_.polarRadius,M=m.state,T=M.radiusAxisMap,C=M.angleAxisMap,$=Ft(T),j=Ft(C),N=j.cx,q=j.cy,F=j.innerRadius,z=j.outerRadius;return L.cloneElement(b,{polarAngles:Array.isArray(A)?A:Pt(j,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray(I)?I:Pt($,!0).map(function(H){return H.coordinate}),cx:N,cy:q,innerRadius:F,outerRadius:z,key:b.key||"polar-grid",radialLines:S})}),Y(m,"renderLegend",function(){var b=m.state.formattedGraphicalItems,_=m.props,S=_.children,A=_.width,I=_.height,M=m.props.margin||{},T=A-(M.left||0)-(M.right||0),C=Ex({children:S,formattedGraphicalItems:b,legendWidth:T,legendContent:c});if(!C)return null;var $=C.item,j=_b(C,AR);return L.cloneElement($,k(k({},j),{},{chartWidth:A,chartHeight:I,margin:M,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),Y(m,"renderTooltip",function(){var b,_=m.props,S=_.children,A=_.accessibilityLayer,I=He(S,we);if(!I)return null;var M=m.state,T=M.isTooltipActive,C=M.activeCoordinate,$=M.activePayload,j=M.activeLabel,N=M.offset,q=(b=I.props.active)!==null&&b!==void 0?b:T;return L.cloneElement(I,{viewBox:k(k({},N),{},{x:N.left,y:N.top}),active:q,label:j,payload:q?$:[],coordinate:C,accessibilityLayer:A})}),Y(m,"renderBrush",function(b){var _=m.props,S=_.margin,A=_.data,I=m.state,M=I.offset,T=I.dataStartIndex,C=I.dataEndIndex,$=I.updateId;return L.cloneElement(b,{key:b.key||"_recharts-brush",onChange:ji(m.handleBrushChange,b.props.onChange),data:A,x:B(b.props.x)?b.props.x:M.left,y:B(b.props.y)?b.props.y:M.top+M.height+M.brushBottom-(S.bottom||0),width:B(b.props.width)?b.props.width:M.width,startIndex:T,endIndex:C,updateId:"brush-".concat($)})}),Y(m,"renderReferenceElement",function(b,_,S){if(!b)return null;var A=m,I=A.clipPathId,M=m.state,T=M.xAxisMap,C=M.yAxisMap,$=M.offset,j=b.type.defaultProps||{},N=b.props,q=N.xAxisId,F=q===void 0?j.xAxisId:q,z=N.yAxisId,H=z===void 0?j.yAxisId:z;return L.cloneElement(b,{key:b.key||"".concat(_,"-").concat(S),xAxis:T[F],yAxis:C[H],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:I})}),Y(m,"renderActivePoints",function(b){var _=b.item,S=b.activePoint,A=b.basePoint,I=b.childIndex,M=b.isRange,T=[],C=_.props.key,$=_.item.type.defaultProps!==void 0?k(k({},_.item.type.defaultProps),_.item.props):_.item.props,j=$.activeDot,N=$.dataKey,q=k(k({index:I,dataKey:N,cx:S.x,cy:S.y,r:4,fill:Ph(_.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},ee(j,!1)),ki(j));return T.push(g.renderActiveDot(j,q,"".concat(C,"-activePoint-").concat(I))),A?T.push(g.renderActiveDot(j,k(k({},q),{},{cx:A.x,cy:A.y}),"".concat(C,"-basePoint-").concat(I))):M&&T.push(null),T}),Y(m,"renderGraphicChild",function(b,_,S){var A=m.filterFormatItem(b,_,S);if(!A)return null;var I=m.getTooltipEventType(),M=m.state,T=M.isTooltipActive,C=M.tooltipAxis,$=M.activeTooltipIndex,j=M.activeLabel,N=m.props.children,q=He(N,we),F=A.props,z=F.points,H=F.isRange,V=F.baseLine,W=A.item.type.defaultProps!==void 0?k(k({},A.item.type.defaultProps),A.item.props):A.item.props,X=W.activeDot,ce=W.hide,ye=W.activeBar,_e=W.activeShape,Ve=!!(!ce&&T&&q&&(X||ye||_e)),Se={};I!=="axis"&&q&&q.props.trigger==="click"?Se={onClick:ji(m.handleItemMouseEnter,b.props.onClick)}:I!=="axis"&&(Se={onMouseLeave:ji(m.handleItemMouseLeave,b.props.onMouseLeave),onMouseEnter:ji(m.handleItemMouseEnter,b.props.onMouseEnter)});var U=L.cloneElement(b,k(k({},A.props),Se));function Z(Zt){return typeof C.dataKey=="function"?C.dataKey(Zt.payload):null}if(Ve)if($>=0){var J,R;if(C.dataKey&&!C.allowDuplicatedCategory){var pe=typeof C.dataKey=="function"?Z:"payload.".concat(C.dataKey.toString());J=Ii(z,pe,j),R=H&&V&&Ii(V,pe,j)}else J=z==null?void 0:z[$],R=H&&V&&V[$];if(_e||ye){var ne=b.props.activeIndex!==void 0?b.props.activeIndex:$;return[L.cloneElement(b,k(k(k({},A.props),Se),{},{activeIndex:ne})),null,null]}if(!re(J))return[U].concat(Jr(m.renderActivePoints({item:A,activePoint:J,basePoint:R,childIndex:$,isRange:H})))}else{var D,K=(D=m.getItemByXY(m.state.activeCoordinate))!==null&&D!==void 0?D:{graphicalItem:U},te=K.graphicalItem,be=te.item,wt=be===void 0?b:be,mi=te.childIndex,Yt=k(k(k({},A.props),Se),{},{activeIndex:mi});return[L.cloneElement(wt,Yt),null,null]}return H?[U,null,null]:[U,null]}),Y(m,"renderCustomized",function(b,_,S){return L.cloneElement(b,k(k({key:"recharts-customized-".concat(S)},m.props),m.state))}),Y(m,"renderMap",{CartesianGrid:{handler:$i,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:$i},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:$i},YAxis:{handler:$i},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:rn("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=M0(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return RR(g,d),IR(g,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,m=w.data,b=w.height,_=w.layout,S=He(O,we);if(S){var A=S.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var I=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,M=If(this.state,m,A,I),T=this.state.tooltipTicks[A].coordinate,C=(this.state.offset.top+b)/2,$=_==="horizontal",j=$?{x:T,y:C}:{y:T,x:C},N=this.state.formattedGraphicalItems.find(function(F){var z=F.item;return z.type.name==="Scatter"});N&&(j=k(k({},j),N.props.points[A].tooltipPosition),M=N.props.points[A].tooltipPayload);var q={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:I,activePayload:M,activeCoordinate:j};this.setState(q),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){ml([He(w.children,we)],[He(this.props.children,we)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=He(this.props.children,we);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=NA(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 I=this.state,M=I.xAxisMap,T=I.yAxisMap,C=this.getTooltipEventType(),$=Ab(this.state,this.props.data,this.props.layout,A);if(C!=="axis"&&M&&T){var j=Ft(M).scale,N=Ft(T).scale,q=j&&j.invert?j.invert(_.chartX):null,F=N&&N.invert?N.invert(_.chartY):null;return k(k({},_),{},{xValue:q,yValue:F},$)}return $?k(k({},_),$):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,I=_>=A.left&&_<=A.left+A.width&&S>=A.top&&S<=A.top+A.height;return I?{x:_,y:S}:null}var M=this.state,T=M.angleAxisMap,C=M.radiusAxisMap;if(T&&C){var $=Ft(T);return Bm({x:_,y:S},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=He(w,we),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 _=ki(this.props,this.handleOuterEvent);return k(k({},_),b)}},{key:"addListener",value:function(){cl.on(ll,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){cl.removeListener(ll,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===jt(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 P.createElement("defs",null,P.createElement("clipPath",{id:w},P.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=Ob(m,2),_=b[0],S=b[1];return k(k({},O),{},Y({},_,S.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=Ob(m,2),_=b[0],S=b[1];return k(k({},O),{},Y({},_,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[_],I=A.props,M=A.item,T=M.type.defaultProps!==void 0?k(k({},M.type.defaultProps),M.props):M.props,C=jt(M.type);if(C==="Bar"){var $=(I.data||[]).find(function(F){return rI(w,F)});if($)return{graphicalItem:A,payload:$}}else if(C==="RadialBar"){var j=(I.data||[]).find(function(F){return Bm(w,F)});if(j)return{graphicalItem:A,payload:j}}else if(to(A,b)||ro(A,b)||ri(A,b)){var N=HI({graphicalItem:A,activeTooltipItem:b,itemData:T.data}),q=T.activeIndex===void 0?N:T.activeIndex;return{graphicalItem:k(k({},A),{},{childIndex:q}),payload:ri(A,b)?T.data[N]:A.props.data[N]}}}return null}},{key:"render",value:function(){var w=this;if(!Jd(this))return null;var O=this.props,m=O.children,b=O.className,_=O.width,S=O.height,A=O.style,I=O.compact,M=O.title,T=O.desc,C=_b(O,PR),$=ee(C,!1);if(I)return P.createElement(tb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement(bl,Sr({},$,{width:_,height:S,title:M,desc:T}),this.renderClipPath(),ep(m,this.renderMap)));if(this.props.accessibilityLayer){var j,N;$.tabIndex=(j=this.props.tabIndex)!==null&&j!==void 0?j:0,$.role=(N=this.props.role)!==null&&N!==void 0?N:"application",$.onKeyDown=function(F){w.accessibilityManager.keyboardEvent(F)},$.onFocus=function(){w.accessibilityManager.focus()}}var q=this.parseEventsOfWrapper();return P.createElement(tb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement("div",Sr({className:ie("recharts-wrapper",b),style:k({position:"relative",cursor:"default",width:_,height:S},A)},q,{ref:function(z){w.container=z}}),P.createElement(bl,Sr({},$,{width:_,height:S,title:M,desc:T,style:WR}),this.renderClipPath(),ep(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(L.Component);Y(y,"displayName",r),Y(y,"defaultProps",k({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),Y(y,"getDerivedStateFromProps",function(d,g){var x=d.dataKey,w=d.data,O=d.children,m=d.width,b=d.height,_=d.layout,S=d.stackOffset,A=d.margin,I=g.dataStartIndex,M=g.dataEndIndex;if(g.updateId===void 0){var T=Pb(d);return k(k(k({},T),{},{updateId:0},p(k(k({props:d},T),{},{updateId:0}),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(x!==g.prevDataKey||w!==g.prevData||m!==g.prevWidth||b!==g.prevHeight||_!==g.prevLayout||S!==g.prevStackOffset||!Ar(A,g.prevMargin)){var C=Pb(d),$={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},j=k(k({},Ab(g,w,_)),{},{updateId:g.updateId+1}),N=k(k(k({},C),$),j);return k(k(k({},N),p(k({props:d},N),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(!ml(O,g.prevChildren)){var q,F,z,H,V=He(O,Fr),W=V&&(q=(F=V.props)===null||F===void 0?void 0:F.startIndex)!==null&&q!==void 0?q:I,X=V&&(z=(H=V.props)===null||H===void 0?void 0:H.endIndex)!==null&&z!==void 0?z:M,ce=W!==I||X!==M,ye=!re(w),_e=ye&&!ce?g.updateId:g.updateId+1;return k(k({updateId:_e},p(k(k({props:d},g),{},{updateId:_e,dataStartIndex:W,dataEndIndex:X}),g)),{},{prevChildren:O,dataStartIndex:W,dataEndIndex:X})}return null}),Y(y,"renderActiveDot",function(d,g,x){var w;return L.isValidElement(d)?w=L.cloneElement(d,g):Q(d)?w=d(g):w=P.createElement(eo,g),P.createElement(he,{className:"recharts-active-dot",key:x},w)});var v=L.forwardRef(function(g,x){return P.createElement(y,Sr({},g,{ref:x}))});return v.displayName=y.displayName,v},QR=qh({chartName:"LineChart",GraphicalChild:yi,axisComponents:[{axisType:"xAxis",AxisComp:Ne},{axisType:"yAxis",AxisComp:De}],formatAxisMap:Th}),_t=qh({chartName:"BarChart",GraphicalChild:$e,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Ne},{axisType:"yAxis",AxisComp:De}],formatAxisMap:Th}),e2=qh({chartName:"AreaChart",GraphicalChild:ht,axisComponents:[{axisType:"xAxis",AxisComp:Ne},{axisType:"yAxis",AxisComp:De}],formatAxisMap:Th});function Lh(){const{theme:e}=Lw();return L.useMemo(()=>{const t=getComputedStyle(document.documentElement),r=c=>t.getPropertyValue(c).trim(),n={bg:r("--bg"),panel:r("--panel"),panel2:r("--panel2"),border:r("--border"),text:r("--text"),muted:r("--muted"),accent:r("--accent"),green:r("--user"),gold:r("--gold"),red:r("--err"),violet:r("--violet"),teal:r("--teal")},i={input:n.green,output:n.accent,cache_creation:n.gold,cache_read:n.muted},a=[n.accent,n.green,n.gold,n.violet,n.teal,n.red,n.muted,"#d98c5f","#5f9ed9"],o={stroke:n.muted,tick:{fill:n.muted,fontSize:11},tickLine:!1},u={stroke:n.border,strokeDasharray:"3 3",vertical:!1},s={contentStyle:{background:n.panel2,border:`1px solid ${n.border}`,borderRadius:6,fontSize:12},labelStyle:{color:n.text},itemStyle:{color:n.text}};return{C:n,TOKEN_COLORS:i,PALETTE:a,axisProps:o,gridProps:u,tooltipStyle:s}},[e])}function ut({title:e,hint:t,actions:r,bodyHeight:n,hidden:i,children:a}){return i?null:E.jsxs("div",{className:"card",children:[E.jsxs("div",{className:"card-head",children:[E.jsx("h3",{children:e}),t&&E.jsx("span",{className:"card-hint",children:t}),r&&E.jsx("span",{className:"card-actions",children:r})]}),E.jsx("div",{className:"chart-body",style:n!=null?{height:n}:void 0,children:a})]})}function Je({label:e,value:t,sub:r,title:n}){return E.jsxs("div",{className:"kpi",title:n,children:[E.jsx("div",{className:"kpi-label",children:e}),E.jsx("div",{className:"kpi-value",children:t}),r!=null&&E.jsx("div",{className:"kpi-sub",children:r})]})}function t2({s:e}){const t=new Map(e.by_severity.map(a=>[a.severity,a.n])),r=t.get("critical")??0,n=t.get("high")??0,i=e.total===0?"—":`${r} / ${n}`;return E.jsxs(Vw,{className:"kpi kpi-btn"+(r>0?" sev-critical":n>0?" sev-high":""),to:"/security",title:"Security findings — critical / high. Opens the Security page.",children:[E.jsx("div",{className:"kpi-label",children:"Security findings"}),E.jsx("div",{className:"kpi-value",children:i}),E.jsx("div",{className:"kpi-sub",children:e.total===0?"no open findings":`critical / high · ${e.total} open in ${e.sessions_flagged} sessions`})]})}function r2({t:e}){const{TOKEN_COLORS:t}=Lh(),r=e.input+e.output+e.cache_creation+e.cache_read,n=[{name:"Input",v:e.input,c:t.input},{name:"Output",v:e.output,c:t.output},{name:"Cache write",v:e.cache_creation,c:t.cache_creation},{name:"Cache read",v:e.cache_read,c:t.cache_read}];return E.jsxs("div",{className:"kpi",title:"Token totals by type: input · output · cache-write · cache-read",children:[E.jsx("div",{className:"kpi-label",children:"Token breakdown"}),E.jsx("ul",{className:"kpi-bd",children:n.map(i=>E.jsxs("li",{children:[E.jsx("span",{className:"kpi-bd-dot",style:{background:i.c},"aria-hidden":"true"}),E.jsx("span",{className:"kpi-bd-name",children:i.name}),E.jsx("span",{className:"kpi-bd-val",children:qt(i.v)}),E.jsxs("span",{className:"kpi-bd-pct",children:[r?Math.round(i.v/r*100):0,"%"]})]},i.name))})]})}const n2=[null,null,null],i2=["trivial","small","medium","large","xl"],hl=8,a2=26,o2=[{id:"tokens-over-time",label:"Tokens over time"},{id:"cost-over-time",label:"Cost over time"},{id:"activity",label:"Activity over time"},{id:"tool-errors",label:"Tool errors over time"},{id:"error-types",label:"Error types"},{id:"tokens-by-model",label:"Tokens by model"},{id:"category",label:"Category distribution"},{id:"complexity",label:"Complexity bands"},{id:"tool-frequency",label:"Tool frequency"},{id:"skill-activation",label:"Skill activation"},{id:"subagent-fanout",label:"Subagent fan-out"}],dl="dashboard.charts";function u2({hidden:e,onToggle:t}){return E.jsxs("details",{className:"col-customizer",children:[E.jsx("summary",{"aria-label":"Show or hide charts",title:"Show/hide charts",children:"⚙"}),E.jsx("div",{className:"col-menu",role:"group","aria-label":"Toggle charts",children:o2.map(r=>E.jsxs("label",{children:[E.jsx("input",{type:"checkbox",checked:!e.has(r.id),onChange:n=>t(r.id,n.target.checked)}),r.label]},r.id))})]})}function Tb(e,t){var n;const r=((n=e==null?void 0:e.payload)==null?void 0:n[t])??(e==null?void 0:e[t]);return typeof r=="string"&&r!==""?r:null}function s2({active:e,payload:t,versionsByName:r}){var s,c,f,l;const{C:n,tooltipStyle:i}=Lh();if(!e||!(t!=null&&t.length))return null;const a=String(((c=(s=t[0])==null?void 0:s.payload)==null?void 0:c.name)??""),o=Number(((l=(f=t[0])==null?void 0:f.payload)==null?void 0:l.n)??0),u=r.get(a)??[];return E.jsxs("div",{style:{...i.contentStyle,padding:"8px 10px",maxWidth:280},children:[E.jsx("div",{style:{color:n.text,fontWeight:600,marginBottom:4},children:a}),E.jsxs("div",{style:{color:n.muted,marginBottom:u.length?6:0},children:[o," firing",o===1?"":"s"," total"]}),u.map(h=>E.jsxs("div",{style:{color:n.text,display:"flex",justifyContent:"space-between",gap:12},children:[E.jsx("span",{style:{color:n.muted},children:h.version_id.slice(0,8)}),E.jsx("span",{children:h.n})]},h.version_id)),u.length>0&&E.jsx("div",{style:{color:n.muted,marginTop:6,fontSize:11},children:"click to open skill →"})]})}function pl({x:e,y:t,payload:r,onSelect:n,title:i}){return E.jsxs("text",{x:e,y:t,dy:4,textAnchor:"end",className:"axis-link",fontSize:11,onClick:()=>(r==null?void 0:r.value)&&n(r.value),children:[i&&E.jsx("title",{children:i}),r==null?void 0:r.value]})}function l2(){var R,pe,ne;const{C:e,TOKEN_COLORS:t,PALETTE:r,axisProps:n,gridProps:i,tooltipStyle:a}=Lh(),{get:o,set:u,pick:s}=Bw(),c=Fw(),f=zh("/sources",[]),l=zh("/security/summary",null),[h,p]=L.useState(new Set),y=D=>p(K=>{const te=new Set(K);return te.has(D)?te.delete(D):te.add(D),te}),[v,d]=L.useState(()=>new Set(zw(dl,[])));L.useEffect(()=>{Ww(dl).then(D=>D&&d(new Set(D)))},[]);const g=D=>!v.has(D),x=(D,K)=>d(te=>{const be=new Set(te);return K?be.delete(D):be.add(D),Gw(dl,[...be]),be}),[w,O]=L.useState("tokens"),[m,b]=L.useState(new Set),_=D=>b(K=>{const te=new Set(K);return te.has(D)?te.delete(D):te.add(D),te}),S=s(["source","from","to","bucket"]),A=S.toString()?"?"+S.toString():"",{data:I,loading:M,error:T}=Uw(()=>Promise.all([lo("/dashboard/overview"+A),lo("/dashboard/timeseries"+A),lo("/dashboard/breakdowns"+A)]),[A]),[C,$,j]=I??n2,N=((j==null?void 0:j.by_category)??[]).map(D=>({name:D.category,value:D.n})),q=i2.map(D=>{var K;return{name:D,value:((K=j==null?void 0:j.by_complexity.find(te=>te.band===D))==null?void 0:K.n)??0}}).filter(D=>D.value>0),F=((j==null?void 0:j.by_model)??[]).map(D=>({name:Wh(D.model),model:D.model,tokens:D.total_tokens,cost:D.cost})),z=(((R=j==null?void 0:j.error_types)==null?void 0:R.by_type)??[]).map(D=>({name:D.type,n:D.n,kind:D.kind})),H=((pe=j==null?void 0:j.error_types)==null?void 0:pe.failures)??0,V=((ne=j==null?void 0:j.error_types)==null?void 0:ne.rejections)??0,W=(C==null?void 0:C.tool_calls)??0,X=W?H/W*100:0,ce=W?V/W*100:0,ye=new Map;for(const D of(j==null?void 0:j.skill_versions)??[]){const K=ye.get(D.name)??[];K.push(D),ye.set(D.name,K)}const _e=(D,K)=>h.has(K)?D:D.slice(0,hl),Ve=(D,K,te=a2)=>h.has(D)?Math.max(240,K*te):void 0,Se=(D,K)=>{if(!(K<=hl))return E.jsx("button",{type:"button",className:"link-btn",onClick:()=>y(D),children:h.has(D)?`show top ${hl}`:`show all (${K})`})},U=(D,K)=>`/?${D}=${encodeURIComponent(K)}`,Z=(D,K)=>{K!=null&&K!==""&&c(U(D,K))},J=(D,K)=>te=>Z(D,Tb(te,K));return E.jsxs("div",{children:[E.jsx("h1",{className:"sr-only",children:"Dashboard"}),E.jsxs("div",{className:"filters",children:[E.jsxs("select",{"aria-label":"Filter by source",value:o("source"),onChange:D=>u({source:D.target.value}),children:[E.jsx("option",{value:"",children:"all sources"}),f.map(D=>E.jsxs("option",{value:D.id,children:[D.label," (",D.session_count,")"]},D.id))]}),E.jsxs("label",{className:"ctl",children:["from ",E.jsx("input",{type:"date",value:o("from"),onChange:D=>u({from:D.target.value})})]}),E.jsxs("label",{className:"ctl",children:["to ",E.jsx("input",{type:"date",value:o("to"),onChange:D=>u({to:D.target.value})})]}),E.jsxs("select",{"aria-label":"Time bucket",value:o("bucket"),onChange:D=>u({bucket:D.target.value}),children:[E.jsxs("option",{value:"",children:["bucket: auto",$?` (${$.bucket})`:""]}),E.jsx("option",{value:"day",children:"day"}),E.jsx("option",{value:"week",children:"week"}),E.jsx("option",{value:"month",children:"month"})]})]}),E.jsx(Kw,{error:T}),M&&E.jsx(Hw,{}),C&&!M&&E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"kpis",children:[E.jsx(Je,{label:"Sessions",value:C.sessions_main,sub:`+${C.sessions_subagent.toLocaleString()} subagent runs`}),E.jsx(Je,{label:"Projects",value:C.projects,sub:"distinct project paths"}),E.jsx(Je,{label:"Turns",value:C.turns,sub:`${C.tool_calls.toLocaleString()} tool calls`}),E.jsx(Je,{label:"Tool error rate",value:W?X.toFixed(1)+"%":"—",title:"Genuine tool failures as a share of all tool calls (rejections/blocks excluded — see the rejection rate).",sub:`${H.toLocaleString()} failed of ${W.toLocaleString()} calls`}),E.jsx(Je,{label:"Rejection rate",value:W?ce.toFixed(1)+"%":"—",title:"User-rejected + guardrail-blocked tool calls as a share of all tool calls. Not agent failures.",sub:`${V.toLocaleString()} rejected/blocked`}),E.jsx(Je,{label:"Workflow runs",value:C.workflows.total||"—",title:"Async workflow runs in range. Success rate is over decided runs (completed vs failed); in-flight runs are excluded from the rate.",sub:C.workflows.total?`${Math.round(C.workflows.success_rate*100)}% success · ${qt(C.workflows.total_tokens)}`:"no workflow runs"}),E.jsx(Je,{label:"Est. cost (API-equiv.)",value:cn(C.cost),title:"Estimated at API list prices for this usage (cache reads/writes included at their discounted cache rates).",sub:C.unpriced_models.length?`⚠ unpriced: ${C.unpriced_models.map(Wh).join(", ")}`:"API list price estimate"}),E.jsx(Je,{label:"Cost / session",value:C.sessions_main?cn(C.cost/C.sessions_main):"—",title:"Estimated API-equivalent cost divided by main sessions in range.",sub:"API-equiv. per main session"}),E.jsx(Je,{label:"Cache-read ratio",value:(C.cache_read_ratio*100).toFixed(1)+"%",sub:"of all tokens are cached replays — excluded from “work”"}),E.jsx(Je,{label:"Turn duration p50 / p95",value:`${bi(C.turn_duration_ms.p50)} / ${bi(C.turn_duration_ms.p95)}`,sub:`${C.turn_duration_ms.count} turns`}),E.jsx(Je,{label:"Session duration p50 / p95",value:`${bi(C.session_duration_ms.p50)} / ${bi(C.session_duration_ms.p95)}`,title:"End-to-end wall-clock length of main sessions (subagents excluded).",sub:`${C.session_duration_ms.count} sessions`}),E.jsx(Je,{label:"Total tokens",value:qt(C.total_tokens),sub:`${qt(C.tokens.input+C.tokens.output)} non-cache`}),E.jsx(r2,{t:C.tokens}),l&&E.jsx(t2,{s:l})]}),E.jsx("div",{className:"dash-toolbar",children:E.jsx(u2,{hidden:v,onToggle:x})}),E.jsxs("div",{className:"cards",children:[E.jsx(ut,{title:"Tokens over time",hint:"input · output · cache-write · cache-read (kept separate)",hidden:!g("tokens-over-time"),children:E.jsx(at,{width:"100%",height:"100%",children:E.jsxs(e2,{data:($==null?void 0:$.series)??[],margin:{top:8,right:8,left:0,bottom:0},children:[E.jsx(Qe,{...i}),E.jsx(Ne,{dataKey:"bucket",...n,minTickGap:24}),E.jsx(De,{...n,tickFormatter:D=>qt(D),width:48}),E.jsx(we,{...a,formatter:(D,K)=>[qt(Number(D)),K]}),E.jsx(Et,{wrapperStyle:{fontSize:12,cursor:"pointer"},onClick:D=>(D==null?void 0:D.dataKey)&&_(String(D.dataKey)),formatter:(D,K)=>E.jsx("span",{style:{opacity:m.has(String(K==null?void 0:K.dataKey))?.4:1},children:D})}),E.jsx(ht,{type:"monotone",dataKey:"input",hide:m.has("input"),stackId:"1",stroke:t.input,fill:t.input,fillOpacity:.5}),E.jsx(ht,{type:"monotone",dataKey:"output",hide:m.has("output"),stackId:"1",stroke:t.output,fill:t.output,fillOpacity:.5}),E.jsx(ht,{type:"monotone",dataKey:"cache_creation",hide:m.has("cache_creation"),stackId:"1",stroke:t.cache_creation,fill:t.cache_creation,fillOpacity:.5}),E.jsx(ht,{type:"monotone",dataKey:"cache_read",hide:m.has("cache_read"),stackId:"1",stroke:t.cache_read,fill:t.cache_read,fillOpacity:.35})]})})}),E.jsx(ut,{title:"Cost over time",hint:"API list price estimate, model × tokens (cache-aware)",hidden:!g("cost-over-time"),children:E.jsx(at,{width:"100%",height:"100%",children:E.jsxs(QR,{data:($==null?void 0:$.series)??[],margin:{top:8,right:8,left:0,bottom:0},children:[E.jsx(Qe,{...i}),E.jsx(Ne,{dataKey:"bucket",...n,minTickGap:24}),E.jsx(De,{...n,tickFormatter:D=>"$"+D,width:48}),E.jsx(we,{...a,formatter:D=>cn(Number(D))}),E.jsx(yi,{type:"monotone",dataKey:"cost",stroke:e.red,strokeWidth:2,dot:!1})]})})}),E.jsx(ut,{title:"Activity over time",hint:"sessions & turns per bucket",hidden:!g("activity"),children:E.jsx(at,{width:"100%",height:"100%",children:E.jsxs(_t,{data:($==null?void 0:$.series)??[],margin:{top:8,right:8,left:0,bottom:0},children:[E.jsx(Qe,{...i}),E.jsx(Ne,{dataKey:"bucket",...n,minTickGap:24}),E.jsx(De,{...n,width:36}),E.jsx(we,{...a}),E.jsx(Et,{wrapperStyle:{fontSize:12}}),E.jsx($e,{dataKey:"sessions",fill:e.accent}),E.jsx($e,{dataKey:"turns",fill:e.green})]})})}),E.jsx(ut,{title:"Tool errors over time",hint:"failed tool calls per bucket · rejections/blocks kept separate (not agent failures)",hidden:!g("tool-errors"),children:E.jsx(at,{width:"100%",height:"100%",children:E.jsxs(_t,{data:($==null?void 0:$.series)??[],margin:{top:8,right:8,left:0,bottom:0},children:[E.jsx(Qe,{...i}),E.jsx(Ne,{dataKey:"bucket",...n,minTickGap:24}),E.jsx(De,{...n,width:36,allowDecimals:!1}),E.jsx(we,{...a}),E.jsx(Et,{wrapperStyle:{fontSize:12}}),E.jsx($e,{dataKey:"failures",name:"failures",stackId:"e",fill:e.red}),E.jsx($e,{dataKey:"rejections",name:"rejected/blocked",stackId:"e",fill:e.muted})]})})}),E.jsx(ut,{title:"Error types",hint:"heuristic buckets from the tool result text · rejections/blocks are not agent failures · click a bar for those sessions",actions:Se("errors",z.length),bodyHeight:Ve("errors",z.length,28),hidden:!g("error-types"),children:j&&z.length===0?E.jsx("div",{className:"empty",children:"No errored tool calls in range."}):E.jsx(at,{width:"100%",height:"100%",children:E.jsxs(_t,{data:_e(z,"errors"),layout:"vertical",margin:{top:4,right:8,left:24,bottom:0},children:[E.jsx(Qe,{...i,horizontal:!1}),E.jsx(Ne,{type:"number",...n,allowDecimals:!1}),E.jsx(De,{type:"category",dataKey:"name",...n,width:130,tick:D=>E.jsx(pl,{...D,title:"click to filter sessions",onSelect:K=>Z("error_type",K)})}),E.jsx(we,{...a,formatter:(D,K,te)=>{var be;return[`${D} (${(be=te.payload)==null?void 0:be.kind})`,"count"]}}),E.jsx($e,{dataKey:"n",cursor:"pointer",onClick:J("error_type","name"),children:_e(z,"errors").map((D,K)=>E.jsx(On,{fill:D.kind==="rejection"?e.muted:e.red},K))})]})})}),E.jsx(ut,{title:"Tokens by model",hint:"click a bar for those sessions",hidden:!g("tokens-by-model"),actions:E.jsxs("span",{className:"seg",role:"group","aria-label":"Metric",children:[E.jsx("button",{type:"button",className:w==="tokens"?"on":"",onClick:()=>O("tokens"),children:"tokens"}),E.jsx("button",{type:"button",className:w==="cost"?"on":"",onClick:()=>O("cost"),children:"cost"})]}),children:E.jsx(at,{width:"100%",height:"100%",children:E.jsxs(_t,{data:F,layout:"vertical",margin:{top:8,right:8,left:24,bottom:0},children:[E.jsx(Qe,{...i,horizontal:!1}),E.jsx(Ne,{type:"number",...n,tickFormatter:D=>w==="cost"?cn(Number(D)):qt(D)}),E.jsx(De,{type:"category",dataKey:"name",...n,width:120,tick:D=>E.jsx(pl,{...D,title:"click to filter sessions",onSelect:K=>{var te;return Z("model",(te=F.find(be=>be.name===K))==null?void 0:te.model)}})}),E.jsx(we,{...a,formatter:(D,K,te)=>{var be,wt;return[`${qt(Number((be=te.payload)==null?void 0:be.tokens))} · ${cn(Number((wt=te.payload)==null?void 0:wt.cost))}`,w]}}),E.jsx($e,{dataKey:w,cursor:"pointer",onClick:J("model","model"),children:F.map((D,K)=>E.jsx(On,{fill:r[K%r.length]},K))})]})})}),E.jsx(ut,{title:"Category distribution",hint:"main sessions only",hidden:!g("category"),children:E.jsx(at,{width:"100%",height:"100%",children:E.jsxs(_t,{data:N,margin:{top:8,right:8,left:0,bottom:0},children:[E.jsx(Qe,{...i}),E.jsx(Ne,{dataKey:"name",...n}),E.jsx(De,{...n,width:36,allowDecimals:!1}),E.jsx(we,{...a}),E.jsx($e,{dataKey:"value",children:N.map((D,K)=>E.jsx(On,{fill:r[K%r.length]},K))})]})})}),E.jsx(ut,{title:"Complexity bands",hint:"main sessions only",hidden:!g("complexity"),children:E.jsx(at,{width:"100%",height:"100%",children:E.jsxs(_t,{data:q,margin:{top:8,right:8,left:0,bottom:0},children:[E.jsx(Qe,{...i}),E.jsx(Ne,{dataKey:"name",...n}),E.jsx(De,{...n,width:36,allowDecimals:!1}),E.jsx(we,{...a}),E.jsx($e,{dataKey:"value",fill:e.violet})]})})}),E.jsx(ut,{title:"Tool frequency",hint:"top tools by call count",actions:Se("tools",(j==null?void 0:j.tools.length)??0),bodyHeight:Ve("tools",(j==null?void 0:j.tools.length)??0,22),hidden:!g("tool-frequency"),children:E.jsx(at,{width:"100%",height:"100%",children:E.jsxs(_t,{data:_e((j==null?void 0:j.tools)??[],"tools"),layout:"vertical",margin:{top:4,right:8,left:24,bottom:0},children:[E.jsx(Qe,{...i,horizontal:!1}),E.jsx(Ne,{type:"number",...n}),E.jsx(De,{type:"category",dataKey:"name",...n,width:110}),E.jsx(we,{...a}),E.jsx($e,{dataKey:"n",fill:e.teal})]})})}),E.jsx(ut,{title:"Skill activation",hint:"firings per skill (all versions grouped) · hover for versions · click to open",actions:Se("skills",(j==null?void 0:j.skills.length)??0),bodyHeight:Ve("skills",(j==null?void 0:j.skills.length)??0,22),hidden:!g("skill-activation"),children:j&&j.skills.length===0?E.jsxs("div",{className:"empty",children:["No ",E.jsx("code",{children:"Skill"})," tool calls in range. Skill usage is captured from ",E.jsx("code",{children:"input.skill"}),"; this fills in once skills are actually invoked in collected sessions."]}):E.jsx(at,{width:"100%",height:"100%",children:E.jsxs(_t,{data:_e((j==null?void 0:j.skills)??[],"skills"),layout:"vertical",margin:{top:4,right:8,left:24,bottom:0},children:[E.jsx(Qe,{...i,horizontal:!1}),E.jsx(Ne,{type:"number",...n}),E.jsx(De,{type:"category",dataKey:"name",...n,width:140,tick:D=>E.jsx(pl,{...D,title:"click to open skill",onSelect:K=>K&&c(`/skill/${encodeURIComponent(K)}`)})}),E.jsx(we,{cursor:{fill:e.border,fillOpacity:.25},content:E.jsx(s2,{versionsByName:ye})}),E.jsx($e,{dataKey:"n",fill:e.gold,cursor:"pointer",onClick:D=>{const K=Tb(D,"name");K&&c(`/skill/${encodeURIComponent(K)}`)}})]})})}),E.jsx(ut,{title:"Subagent fan-out",hint:j?`${j.subagent_fanout.total_spawns} spawns · ${j.subagent_fanout.sessions_with_subagents} sessions · avg ${j.subagent_fanout.avg_per_session}, max ${j.subagent_fanout.max_per_session}`:void 0,actions:Se("subagents",(j==null?void 0:j.subagent_fanout.by_type.length)??0),bodyHeight:Ve("subagents",(j==null?void 0:j.subagent_fanout.by_type.length)??0,28),hidden:!g("subagent-fanout"),children:j&&j.subagent_fanout.by_type.length===0?E.jsx("div",{className:"empty",children:"No subagents spawned in range."}):E.jsx(at,{width:"100%",height:"100%",children:E.jsxs(_t,{data:_e((j==null?void 0:j.subagent_fanout.by_type)??[],"subagents"),layout:"vertical",margin:{top:4,right:8,left:24,bottom:0},children:[E.jsx(Qe,{...i,horizontal:!1}),E.jsx(Ne,{type:"number",...n}),E.jsx(De,{type:"category",dataKey:"type",...n,width:120}),E.jsx(we,{...a}),E.jsx($e,{dataKey:"n",fill:e.accent})]})})})]})]})]})}export{l2 as default};